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!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
1,376 Views
Registered: ‎07-09-2017

hls simulation error

Jump to solution

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.

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Teacher muzaffer
Teacher
2,191 Views
Registered: ‎03-31-2012

Re: hls simulation error

Jump to solution

@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.
0 Kudos
2 Replies
Highlighted
Teacher muzaffer
Teacher
2,192 Views
Registered: ‎03-31-2012

Re: hls simulation error

Jump to solution

@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.
0 Kudos
Scholar u4223374
Scholar
1,296 Views
Registered: ‎04-26-2015

Re: hls simulation error

Jump to solution

@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.