首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用HLS实现c++的哈夫曼编码

用HLS实现c++的哈夫曼编码
EN

Stack Overflow用户
提问于 2016-08-15 08:25:38
回答 1查看 1.1K关注 0票数 0

当我尝试使用Vivado HLS进行合成时,我得到了关于不可合成的type.My项目是关于huffman编码的错误。

代码语言:javascript
复制
@I [HLS-10] Starting code transformations ...
@I [HLS-10] Checking synthesizability ...
@E [SYNCHK-11] huff.c:17: Constant 'temp' has an unsynthesizable type '[13 x %struct.tnode.0.2.4]*' (possible cause(s): structure variable cannot be decomposed due to unsupported type conversion or memory copy operation).
@E [SYNCHK-11] huff.c:21: Constant 'ptemp' has an unsynthesizable type '[13 x %struct.tnode.0.2.4*]*' (possible cause(s): pointer to pointer or global pointer).
@E [SYNCHK-72] huff.c:24: unsupported c/c++ library function 'qsort'.
@E [SYNCHK-41] huff.c:38: unsupported pointer reinterpretation from type '%struct.tnode.0.2.4 = type { %struct.tnode.0.2.4*, %struct.t...' to type 'i8*' on variable 'ptemp'.
@E [SYNCHK-42] huff.c:47: pointer comparison is not supported.
@I [SYNCHK-10] 5 error(s), 0 warning(s).
@E [HLS-70] Synthesizability check failed. 

而且在做C模拟的时候也有一些困难。

代码语言:javascript
复制
    **..
...
@I [APCC-3] Tmp directory is apcc_db
@I [APCC-1] APCC is done.
@I [LIC-101] Checked in feature [VIVADO_HLS]
   Generating csim.exe
@E Simulation failed: SIGSEGV.
@E [SIM-1] CSim failed with errors.
4
    while executing
"source C:/Users/qijun/Desktop/Huff/hls/solution1/csim.tcl"
    invoked from within
"hls::main C:/Users/qijun/Desktop/Huff/hls/solution1/csim.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel 1 hls::main {*}$args"
    (procedure "hls_proc" line 5)
    invoked from within
"hls_proc $argv"
@I [LIC-101] Checked in feature [VIVADO_HLS] **

附件包括我的"top函数“的代码。我没有使用HLS工具的经验。有人能帮我解决这个问题吗?我们如何在vivado HLS的top函数中包含数据结构?谢谢

EN

回答 1

Stack Overflow用户

发布于 2016-08-26 12:31:17

首先,您忘记添加附件或任何代码。

其次,我强烈建议您至少阅读一些Xilinx文档中的Recommended Coding Styles,其中特别说明了某些类型的C构造是不受支持的,比如您在输出中看到的那些构造。

因此,您可能只想重构或重新编码您的霍夫曼的一部分,以满足这些标准。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38947831

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档