cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
neeruajith
Visitor
Visitor
1,607 Views
Registered: ‎06-12-2018

Segmentation fault in vivado HLS design example during Co-simulation

Dear All,

 

I was running 2d convolution example given by vivado. It contains two possible top level functions. I selected "filter11x11_orig". 

The only change I did is "#define TEST_IMG_ROWS 8 #define TEST_IMG_COLS 8".

Rest entire code is same. But still co-simulation failed with following message.

ERROR: System received a signal named SIGSEGV and the program has to stop immediately!
This signal was generated when a program tries to read or write outside the memory that is allocated for it, or to write memory that can only be read.
Possible cause of this problem may be: 1) the depth setting of pointer type argument is much larger than it needed; 2)insufficient depth of array argument; 3)null pointer etc.
Current execution stopped during CodeState = ENTER_WRAPC_PC.
You can search CodeState variable name in apatb*.cpp file under ./sim/wrapc dir to locate the position.


ERROR: [COSIM 212-379] Detected segmentation violation, please check C tb.
ERROR: [COSIM 212-362] Aborting co-simulation: C TB post check failed.
ERROR: [COSIM 212-4] *** C/RTL co-simulation finished: FAIL ***

Can anyone please help me?

0 Kudos
1 Reply
neeruajith
Visitor
Visitor
1,592 Views
Registered: ‎06-12-2018

This issue has been solved. I forgot to change the depth of ap_bus interface of the top-level function argument.