UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

取消
显示结果 
搜索替代 
您的意思是: 
Observer yanjian
Observer
2,687 次查看
注册日期: ‎11-28-2018

vivado hls 编译错误

Starting C simulation ...
C:/Xilinx/Vivado_HLS/2016.3/bin/vivado_hls.bat D:/xiilx/milianke/array_test/array_test/solution1/csim.tcl
INFO: [HLS 200-10] Running 'C:/Xilinx/Vivado_HLS/2016.3/bin/unwrapped/win64.o/vivado_hls.exe'
INFO: [HLS 200-10] For user 'Administrator' on host 'win-20170406dtz' (Windows NT_amd64 version 6.1) on Thu Dec 13 10:35:25 +0800 2018
INFO: [HLS 200-10] In directory 'D:/xiilx/milianke/array_test'
INFO: [HLS 200-10] Opening project 'D:/xiilx/milianke/array_test/array_test'.
INFO: [HLS 200-10] Opening solution 'D:/xiilx/milianke/array_test/array_test/solution1'.
INFO: [SYN 201-201] Setting up clock 'default' with a period of 10ns.
INFO: [HLS 200-10] Setting target device to 'xc7z014sclg400-1'
INFO: [SIM 211-2] *************** CSIM start ***************
WARNING: [SIM 211-51] HLS only supports CLANG compiler in Linux.
INFO: [SIM 211-4] CSIM will launch GCC as the compiler.
Compiling ../../../../testbench.cpp in debug mode
Compiling ../../../../thin.cpp in debug mode
Generating csim.exe
In file included from C:/Xilinx/Vivado_HLS/2016.3/include/floating_point_v7_0_bitacc_cmodel.h:143:0,
from C:/Xilinx/Vivado_HLS/2016.3/include/hls_half.h:40,
from C:/Xilinx/Vivado_HLS/2016.3/include/hls/utils/x_hls_utils.h:37,
from C:/Xilinx/Vivado_HLS/2016.3/include/hls/hls_axi_io.h:40,
from C:/Xilinx/Vivado_HLS/2016.3/include/hls_video.h:48,
from ../../../../thinn.h:3,
from ../../../../testbench.cpp:1:
C:/Xilinx/Vivado_HLS/2016.3/include/gmp.h:62:0: warning: "__GMP_LIBGMP_DLL" redefined [enabled by default]
C:/Xilinx/Vivado_HLS/2016.3/include/floating_point_v7_0_bitacc_cmodel.h:135:0: note: this is the location of the previous definition
In file included from C:/Xilinx/Vivado_HLS/2016.3/include/floating_point_v7_0_bitacc_cmodel.h:143:0,
from C:/Xilinx/Vivado_HLS/2016.3/include/hls_half.h:40,
from C:/Xilinx/Vivado_HLS/2016.3/include/hls/utils/x_hls_utils.h:37,
from C:/Xilinx/Vivado_HLS/2016.3/include/hls/hls_axi_io.h:40,
from C:/Xilinx/Vivado_HLS/2016.3/include/hls_video.h:48,
from ../../../../thinn.h:3,
from ../../../../thin.cpp:2:
C:/Xilinx/Vivado_HLS/2016.3/include/gmp.h:62:0: warning: "__GMP_LIBGMP_DLL" redefined [enabled by default]
C:/Xilinx/Vivado_HLS/2016.3/include/floating_point_v7_0_bitacc_cmodel.h:135:0: note: this is the location of the previous definition
Assertion failed: (_rows > 0) && (_rows <= ROWS) && (_cols > 0) && (_cols <= COLS) && "The number of rows and columns must be less than the template arguments.", file C:/Xilinx/Vivado_HLS/2016.3/include/hls/hls_video_core.h, line 600

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
@E Simulation failed: Function 'main' returns nonzero value '3'.
ERROR: [SIM 211-100] 'csim_design' failed: nonzero return value.

 

编译错误 ?请问是什么原因  谢谢!!!

0 项奖励
9 条回复9
Moderator
Moderator
2,656 次查看
注册日期: ‎05-27-2018

回复: vivado hls 编译错误

Hi @yanjian,

       在头文件里面重新搜索一下__GMP_LIBGMP_DLL,是否还存在变量重定义

       另,Assertion failed: (_rows > 0) && (_rows <= ROWS) && (_cols > 0) && (_cols <= COLS) && "The number of rows and columns must be less than the template arguments."

      是不是有一些行和列的变量大小大于了定义的参数大小,导致程序无法判断?

谢谢,

Wen

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------
Highlighted
Observer yanjian
Observer
2,622 次查看
注册日期: ‎11-28-2018

回复: vivado hls 编译错误

按照你的建议找了一天,硬是没发现问题所在。我上传了源代码,能否麻烦帮忙调试一下,谢谢。我用的是VIVADO16.3版本   谢谢!!!

0 项奖励
Moderator
Moderator
2,579 次查看
注册日期: ‎05-27-2018

回复: vivado hls 编译错误

Hi @yanjian

    我按照如下格式复现了你的工程,关于以下选中区域的数据格式需要更改,需要使用指令'set_directive_stream'或'HLS stream'编译指示来调整数据流的大小

    因为你在non dataflow设计中使用stream指令而没有深度,vivado hls不知道如何为你找出合理的默认深度,查看UG902,page224-226确定修改方案。

   另, 你贴出的log和我看到的不一样。

     thin.png

谢谢,

Wen

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------
Observer yanjian
Observer
2,548 次查看
注册日期: ‎11-28-2018

回复: vivado hls 编译错误

ERROR: [XFORM 203-711] Internal global variable 'arry_imga.V' failed dataflow checking: it can only be read in one process function.
WARNING: [XFORM 203-713] Internal global variable 'arry_imga.V' has read and write operations in process function 'Loop_4_proc' (thin.cpp:174:24).
WARNING: [XFORM 203-713] Internal global variable 'arry_imga.V' has read operations in process function 'Loop_6_proc' (thin.cpp:221:27).
WARNING: [XFORM 203-713] All the elements of global array 'arry_imga.V' should be updated in process function 'Loop_4_proc' (thin.cpp:174:24), otherwise it may not be synthesized correctly.
WARNING: [XFORM 203-713] All the elements of global array '' should be updated in process function 'Loop_6_proc' (thin.cpp:221:27), otherwise it may not be synthesized correctly.
WARNING: [XFORM 203-713] All the elements of global array '' should be updated in process function 'Loop_6_proc' (thin.cpp:221:27), otherwise it may not be synthesized correctly.
WARNING: [XFORM 203-713] All the elements of global array '.037' should be updated in process function 'Loop_6_proc' (thin.cpp:221:27), otherwise it may not be synthesized correctly.

 

按照你的指导 添加了#pragma HLS dataflow,重新编译错误。

ERROR: [XFORM 203-711] Internal global variable 'arry_imga.V' failed dataflow checking: it can only be read in one process function.  

这是什么原因?  谢谢!!

0 项奖励
Moderator
Moderator
2,518 次查看
注册日期: ‎05-27-2018

回复: vivado hls 编译错误

Hi @yanjian

    这个问题是由于arry_imga在dataflow指令下,不能同时对端口进行读写操作,只能读取或者写入导致的,如果将最后一个对arry_imga写入的LOOP注释掉,就可以综合完成了,但是明显功能和时序以及资源都不达标。

    代码还需要针对功能进行进一步优化,可以参考一下XAPP1167,尝试用一些本地的变量将读写的数组以及给到端口的数据流清晰地分开。

    有问题欢迎继续交流。

 

谢谢,

Wen

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------
0 项奖励
Observer yanjian
Observer
2,479 次查看
注册日期: ‎11-28-2018

回复: vivado hls 编译错误

编译通过,但是 BRAM_18K消耗太大!!!这个如何优化!!!

QQ截图20181224161040.png
0 项奖励
Moderator
Moderator
2,461 次查看
注册日期: ‎05-27-2018

回复: vivado hls 编译错误

Hi @yanjian

      使用以下指令可以指定变量的 Storage Cores, 你的设计BRAM可以优化为 分布式RAM, 但由于超出资源太多,有可能还是不行,试一下吧。
     

#pragma HLS RESOURCE variable= *  core=*

       具体参考UG902,Page174-177

 

谢谢,

Wen

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------
0 项奖励
Moderator
Moderator
2,422 次查看
注册日期: ‎05-27-2018

回复: vivado hls 编译错误

Hi @yanjian

     问题解决了吗?有问题欢迎继续交流~

 

Wen

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------
0 项奖励
Observer yanjian
Observer
2,398 次查看
注册日期: ‎11-28-2018

回复: vivado hls 编译错误

还是没有?能否帮忙调试  谢谢!!!

0 项奖励