cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
wuzhuangzhuang
Visitor
Visitor
339 Views
Registered: ‎03-30-2021

Vitis HLS中,进行联合仿真(C/RTL cosimulation)时报错

我运行下图中的示例工程

捕获.PNG

 C/RTL协同仿真出现下面问题

捕获.PNG捕获1.PNG

 

vitis2019.1,2020.1,2020.2版本我都尝试过,都报相同的错误,不知道如何解决,请求帮助,谢谢~

Tags (1)
0 Kudos
5 Replies
crystal
Contributor
Contributor
326 Views
Registered: ‎02-24-2018

在HLS的主函数文件里,你尝试一下手动引用这个头文件。

#include "path_to_/include/gmp.h"

0 Kudos
wuzhuangzhuang
Visitor
Visitor
288 Views
Registered: ‎03-30-2021

我尝试了一下,还是报相同的错误

捕获.PNG

0 Kudos
wenchen
Moderator
Moderator
265 Views
Registered: ‎05-27-2018

Hi @wuzhuangzhuang ,

我这边跑Cosim 没有问题,看来不是代码的问题,你尝试在Vitis HLS 的git repo 里面打开这个例程还有这个问题吗? 用的Linux 什么版本呢?

$finish called at time : 5312500 ps : File "/home/wenchen/.Xilinx/vitis_hls/2020.2/vitis_hls_examples/HLS-Tiny-Tutorials/interface_hls_stream/proj_hls_stream/solution1/sim/verilog/bytestrm_dwordproc.autotb.v" Line 310
## quit
INFO: [Common 17-206] Exiting xsim at Wed May 12 03:09:31 2021...
INFO: [COSIM 212-316] Starting C post checking ...
*** Test Passes ***
The maximum depth reached by any of the 2 hls::stream() instances in the design is 0
INFO: [COSIM 212-1000] *** C/RTL co-simulation finished: PASS ***
INFO: [COSIM 212-211] II is measurable only when transaction number is greater than 1 in RTL simulation. Otherwise, they will be marked as all NA. If user wants to calculate them, please make sure there are at least 2 transactions in RTL simulation.
INFO: [HLS 200-111] Finished Command cosim_design CPU user time: 23.48 seconds. CPU system time: 3.36 seconds. Elapsed time: 30.07 seconds; current allocated memory: 229.793 MB.
Finished C/RTL cosimulation.

Wen

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.


**~ Got a minute? Answer our Vitis HLS survey here! ~**


-------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------
0 Kudos
wuzhuangzhuang
Visitor
Visitor
221 Views
Registered: ‎03-30-2021

我的系统是Ubuntu 16.04.6 LTS,在Vitis HLS 的git repo 里面打开这个例程还是有这个问题,我尝试重装vitis也无法解决这个问题

0 Kudos
wenchen
Moderator
Moderator
170 Views
Registered: ‎05-27-2018

Hi @wuzhuangzhuang ,

请问问题解决了吗?换台机器试试看?

Wen

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.


**~ Got a minute? Answer our Vitis HLS survey here! ~**


-------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------
0 Kudos