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!

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

vivado hls 编译错误

#include "thinn.h"
#include "hls_opencv.h"
//#include<iostream>
using namespace std;
int main(int argc,char**argv)
{

IplImage* src=cvLoadImage(INPUT_IMAGE,0);
IplImage* dst = cvCreateImage(cvGetSize(src), src->depth, src->nChannels);
//cvShowImage("hls_src", src);

//HLS视频库处理
AXI_STREAM src_axi;
Point3f array_out[MAX_WIDTH];
IplImage2AXIvideo(src, src_axi);
thinning(src_axi, src->height, src->width,array_out);
// cout<<"array_out:"<<array_out<<endl;
cvReleaseImage(&src);
cvWaitKey(0);
 return 0;


}

 

编译信息

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 Tue Dec 04 16:44:54 +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 项奖励
1 条回复1
Xilinx Employee
Xilinx Employee
495 次查看
注册日期: ‎07-17-2008

回复: vivado hls 编译错误

看起来是用法问题。

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

你可以按照信息提示的,到安装目录下找到对应的文件,对照代码排查是哪里的行列设置超标。

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 项奖励