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: 
Xilinx Employee
Xilinx Employee
5,178 Views
Registered: ‎08-17-2011

Re: Vivado HLS - C/RTL Cosimulation Error: C TB simulation failed, nonzero return value '15'

Hello James,

 

You missed a header file: dtw.h in the files you attached.

 

You know what they say, read the manual...

The TB needs to return 0 when success and non-zero when fail; (see it as if it returns the number of errors).

 

Your TB doesn't do that (it's void main() so doesn't return value) so that's the first thing to address.

 

*PLEASE* do not return a constant value, otherwise your TB will always return the same result, independently of your design working or not!

 

Also it looks like you use vars t1 and t2 used both in TB and toplevel, that doesn't sound correct..

 

I HTH

- Hervé

SIGNATURE:
* New Dedicated Vivado HLS forums* http://forums.xilinx.com/t5/High-Level-Synthesis-HLS/bd-p/hls
* Readme/Guidance* http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369

* 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