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!

AR# 53800

2012.4 - Simulation with Vivado HLS leads to error

Description

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]

 
 

 

Solution

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
Date Created 01/15/2013
Last Updated 03/05/2015
Status Active
Type General Article
Tools
  • Vivado Design Suite
  • AutoESL