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!

Reply
Adventurer
Posts: 69
Registered: ‎07-09-2017
Accepted Solution

hls simulation error

Hi,

 

can someone help me with this error?  Ps: windows version HLS.

 

@E Simulation failed: SIGSEGV.
ERROR: [SIM 211-100] CSim failed with errors.
INFO: [SIM 211-3] *************** CSIM finish ***************
4
while executing
"source C:/Vivado_HLS_Tutorial/MAAR/time_lagged_autocorrelation_prj/solution1/csim.tcl"
invoked from within
"hls::main C:/Vivado_HLS_Tutorial/MAAR/time_lagged_autocorrelation_prj/solution1/csim.tcl"
("uplevel" body line 1)
invoked from within
"uplevel 1 hls::main {*}$args"
(procedure "hls_proc" line 5)
invoked from within
"hls_proc $argv"
Finished C simulation.


Accepted Solutions
Highlighted
Teacher
Posts: 5,146
Registered: ‎03-31-2012

Re: hls simulation error

@jianmingli1 this means your c simulation has an issue. Technically it hass nothing to do with HLS. You should be able to run your csim project without any HLS involvement and it should compile and run properly by itself. The solution is to debug your testbench under a debugger and see why it's crashing. SIGSEGV means segment violation signal which almost always means that you have accessed memory which doesn't exist or accessed address 0 (both of which are possible outcomes of uninitialized pointer dereferencing)

- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.

View solution in original post


All Replies
Highlighted
Teacher
Posts: 5,146
Registered: ‎03-31-2012

Re: hls simulation error

@jianmingli1 this means your c simulation has an issue. Technically it hass nothing to do with HLS. You should be able to run your csim project without any HLS involvement and it should compile and run properly by itself. The solution is to debug your testbench under a debugger and see why it's crashing. SIGSEGV means segment violation signal which almost always means that you have accessed memory which doesn't exist or accessed address 0 (both of which are possible outcomes of uninitialized pointer dereferencing)

- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
Scholar
Posts: 2,189
Registered: ‎04-26-2015

Re: hls simulation error

@jianmingli1 By far the most common cause of this error in HLS is that you've allocated a huge array on the stack. In normal C you'd just use malloc to work around this problem, but HLS doesn't support malloc. The solution for HLS is to declare any reasonably large (eg. over 1000 element) arrays as static, which moves them to a different section of the program's memory space.