cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
afilgueras
Contributor
Contributor
15,192 Views
Registered: ‎03-05-2014

Vivado hls co-simulation fail

Hi

 

I am trying to run co-simulation for an HLS design.

The process ends with an error from "ap_source":

 

@I [SIM-14] Instrumenting C test bench ...
@E [SIM-4] *** C/RTL co-simulation finished: FAIL ***
command 'ap_source' returned error code
    while executing
"source [lindex $::argv 1] "
    ("uplevel" body line 1)
    invoked from within
"uplevel \#0 { source [lindex $::argv 1] } "

@I [LIC-101] Checked in feature [HLS]

 

I am using vivado 2013.4.

I also have another vivado_hls (2013.2)  installation in a different machine that works properly. :?

 

Any idea on what's going on?

0 Kudos
5 Replies
debrajr
Moderator
Moderator
15,172 Views
Registered: ‎04-17-2011

Are you able to run RTL cosim for any of the example design present in HLS install with this setup?
Regards,
Debraj
----------------------------------------------------------------------------------------------
Kindly note- 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
afilgueras
Contributor
Contributor
15,169 Views
Registered: ‎03-05-2014

Hi.

 

I have tried with some example designs and everithing seems to be working properly.

There may be something wrong with this project. I still cannot understand what's wrong :/

 

Kind regards

0 Kudos
debrajr
Moderator
Moderator
15,157 Views
Registered: ‎04-17-2011

Check this: http://www.xilinx.com/support/answers/61063.htm
Regards,
Debraj
----------------------------------------------------------------------------------------------
Kindly note- 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
afilgueras
Contributor
Contributor
15,115 Views
Registered: ‎03-05-2014

I have finally solved this error.

It seems that some paths were wrong as I copied the project from another machine. I checked this and deleted all generated files under solution* directory.

 

Now this popped up:

 

Info: /OSCI/SystemC: Simulation stopped by user.
@I [SIM-316] Starting C post checking ...
nan
FAIL
@E [SIM-361] C TB post check failed, nonzero return value '1'.
@E [SIM-4] *** C/RTL co-simulation finished: FAIL ***
command 'ap_source' returned error code
    while executing
"source [lindex $::argv 1] "
    ("uplevel" body line 1)
    invoked from within
"uplevel \#0 { source [lindex $::argv 1] } "

 

It should output the error (~0) instead of nan.

I find this quite strange since in my older installation everithing works fine and csim validates the results.

 

Any insight on this?

 

Thank you

0 Kudos
debrajr
Moderator
Moderator
15,105 Views
Registered: ‎04-17-2011

Use the latest 2014.2 HLS and also refer to the AR above which covers simulation mismatch.
Regards,
Debraj
----------------------------------------------------------------------------------------------
Kindly note- 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