AR# 53800

2012.4 - Simulation with Vivado HLS leads to error

描述

When running Vivado HLS simulation of a design, the following error occurs:

@I [LIC-101] Checked in feature [HLS]
cc1plus.exe: warning: command line option "-std=c99" is valid for C/ObjC but not for C++
apatb_fftpair_run_sp_synthesis.cpp: In function 'void fftpair_run_sp_synthesis(float*, float*, int)':
apatb_fftpair_run_sp_synthesis.cpp:102:59: warning: deprecated conversion from string constant to 'char*'
apatb_fftpair_run_sp_synthesis.cpp:104:61: warning: deprecated conversion from string constant to 'char*'
apatb_fftpair_run_sp_synthesis.cpp:106:59: warning: deprecated conversion from string constant to 'char*'
apatb_fftpair_run_sp_synthesis.cpp:108:61: warning: deprecated conversion from string constant to 'char*'
apatb_fftpair_run_sp_synthesis.cpp:110:45: warning: deprecated conversion from string constant to 'char*'
apatb_fftpair_run_sp_synthesis.cpp:112:77: warning: deprecated conversion from string constant to 'char*'
apatb_fftpair_run_sp_synthesis.cpp:115:45: warning: deprecated conversion from string constant to 'char*'
apatb_fftpair_run_sp_synthesis.cpp:211:79: warning: deprecated conversion from string constant to 'char*'
make: *** [obj/hlsfftsp_demo_synthesis.c_pre.c.tb.o] Error 1
@E [SIM-2] Error(s) found in compilation.
@E [SIM-331] Aborting co-simulation: C simulation failed, compilation errors.
@E [SIM-4] *** C/RTL co-simulation finished: FAIL ***
@I [LIC-101] Checked in feature [HLS]

 
 

 

解决方案

The issue is caused by the improper use of #defines, for example:

#ifndef __SYNTHESIS__
#define __SYNTHESIS__
#endif

As a result of this, there is time keeping code being kept from the benchmark that is required for the co-simulation.

This is causing the failure.

 

Additionally, -I for files not included in the design needs to be removed from the flags along with the -std=99 options.

AR# 53800
日期 03/05/2015
状态 Active
Type 综合文章
Tools