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: 
Contributor
Contributor
3,970 Views
Registered: ‎05-12-2015

Simulation error vivado HLS IP creating

Hi I have written this simple code to create an IP in HLS for my vivado design

 

 

#include"ap_int.h"


int transform(ap_int<3> input, int * output)
{
	int s ;
	s=input-1;
	*output=s;


return 0;

}

 

in which both input and output are axi stream interface, axis

 

I created this test bench 

int transform( ap_int<3>, int * );
int main(void){
int i;
int y;
int x;
for (i=0; i<100;i++)
transform(x,&y);
return 0;
}

 and run simulation 

and I receive this msg 

@E [SIM-317] C++ compile error.
@E [SIM-321] EXE file generate failed.
@E [SIM-321] EXE file generate failed.
@E [SIM-331] Aborting co-simulation: C simulation failed, compilation errors.
@E [SIM-4] *** C/RTL co-simulation finished: FAIL ***
command 'ap_source' returned error code
    while executing
"source C:/Users/DELL/workspace/project0/solution1/cosim.tcl"
    invoked from within
"hls::main C:/Users/DELL/workspace/project0/solution1/cosim.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel 1 hls::main {*}$args"
    (procedure "hls_proc" line 5)
    invoked from within
"hls_proc $argv"

first where is C/simulation I just found verilog and vhdl, using vivado HLS 2015.1

 

 

second what is not working when I run the simulation

 

thank you

0 Kudos
2 Replies
Teacher xilinxacct
Teacher
443 Views
Registered: ‎10-23-2018

Re: Simulation error vivado HLS IP creating

0 Kudos
Teacher xilinxacct
Teacher
434 Views
Registered: ‎10-23-2018

Re: Simulation error vivado HLS IP creating

@riwa

Running this on a newer version seems to work... I do note that 'x' is never initialized. I don't know if older versions are more suspectible to that.

Hope that helps

If so, please mark as solution accepted to close this issue. Kudos also welcomed.

0 Kudos