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: 
Visitor mouhamedmbr
Visitor
1,048 Views
Registered: ‎10-27-2017

Function 'test' could not be resolved in HLS

Hello,

I have the following errors in test file of my project ,first when when launching the C simulation I have a problems:

INFO: [SIM 2] *************** CSIM start ***************
WARNING: [SIM 51] HLS only supports CLANG compiler in Linux.
INFO: [SIM 4] CSIM will launch GCC as the compiler.
Compiling ../../../../codegen/lib/testtestphase/examples/main.cpp in debug mode
../../../../codegen/lib/testtestphase/examples/main.cpp:33:26: fatal error: rt_nonfinite.h: No such file or directory
compilation terminated.
make: *** [obj/main.o] Error 1
CRITICAL WARNING: [SIM 100] 'csim_design' failed: compilation error(s).
INFO: [SIM 3] *************** CSIM finish ***************

 

 

second when I open the file test reports these errors.

multiple markers at this line

-Function 'testph' could not be resolved; 

-symbol 'testph'could not be resolved; 

#define MCR_SIZE 60
void testtestphase (AXI_VAL in_stream[MCR_SIZE], AXI_VAL out_stream[3*MCR_SIZE], volatile ap_uint<1> *hw_trig)
{
	// Map ports to Vivado HLS interfaces
	#pragma HLS INTERFACE ap_fifo port=in_stream
	#pragma HLS INTERFACE ap_fifo port=out_stream

	// Map HLS ports to AXI interfaces
	#pragma HLS RESOURCE variable=in_stream  core=AXIS metadata="-bus_bundle INPUT_STREAM"
	#pragma HLS RESOURCE variable=out_stream core=AXIS metadata="-bus_bundle OUTPUT_STREAM"
	#pragma HLS RESOURCE variable=return core=AXI4LiteS metadata="-bus_bundle CONTROL_BUS"
	#pragma HLS INTERFACE ap_none register port=hw_trig

	dut_testtestphase <float, 60, 1*60, 4, 5, 5>(in_stream, out_stream, hw_trig);

	return;
}
t1.PNG
t2.PNG
0 Kudos
3 Replies
Moderator
Moderator
1,045 Views
Registered: ‎06-24-2015

Re: Function 'test' could not be resolved in HLS

@mouhamedmbr

 

Have you added rt_nonfinite.h to your project?

Thanks,
Nupur
--------------------------------------------------------------------------------------------
Google your question before posting. If someone's post answers your question, mark the post as answer with "Accept as solution". If you see a particularly good and informative post, consider giving it Kudos (click on the 'thumbs-up' button).
0 Kudos
Visitor mouhamedmbr
Visitor
1,037 Views
Registered: ‎10-27-2017

Re: Function 'test' could not be resolved in HLS

yes ,i added but the error still

t3.PNG
0 Kudos
Visitor mouhamedmbr
Visitor
1,007 Views
Registered: ‎10-27-2017

Re: Function 'test' could not be resolved in HLS

@Nupur
yes ,i added but the error still
0 Kudos