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,759 Views
Registered: ‎10-27-2017

note: candidate function template not viable: requires 3 arguments, but 5 were provided

Jump to solution

 

error :note: candidate function template not viable: requires 3 arguments, but 5 were provided
void dut_mmult_accel_core (

 

 

 

template <typename T, int DIM1,int DIM2,int DIMa,int DIMb,int DIMc,int DIMd,int DIMe,int DIMf, int SIZE, int U, int TI, int TD>
void dut_mmult_accel_core (
	AXI_VAL in_stream[SIZE],
	AXI_VAL out_stream[3*SIZE],
	//volatile ap_uint<1> *hw_trig)
	 volatile   ap_uint<1> *predict_label1_hw_trig;
	 volatile	ap_uint<1> *precision1_hw_trig;
	 volatile	ap_uint<1> *prob_estimates_t1_hw;
{

// 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"

	ap_uint<1> logic_zero = 0;
	ap_uint<1> logic_one = 1;
	T LabelS [DIM1][DIM2];
    T out predict_label1[DIMa][DIMb];
	T out precision1[DIMc][DIMd];
	T out prob_estimates_t1[DIMe][DIMf];
	
	

	*predict_label1_trig = logic_zero;
	*precision1_trig = logic_zero;
	*prob_estimates_t1_trig = logic_zero;
	
	assert(sizeof(T)*8 == 32);
	
	*predict_label1_trig = logic_one;
	*precision1_trig = logic_one;
	*prob_estimates_t1_trig = logic_one;

 

0 Kudos
1 Solution

Accepted Solutions
Scholar u4223374
Scholar
2,327 Views
Registered: ‎04-26-2015

Re: note: candidate function template not viable: requires 3 arguments, but 5 were provided

Jump to solution

I'mn not sure, but I suspect that it's just because you've got semicolons after your last three arguments. All except the last should have a comma, and the last should have nothing.

View solution in original post

0 Kudos
1 Reply
Scholar u4223374
Scholar
2,328 Views
Registered: ‎04-26-2015

Re: note: candidate function template not viable: requires 3 arguments, but 5 were provided

Jump to solution

I'mn not sure, but I suspect that it's just because you've got semicolons after your last three arguments. All except the last should have a comma, and the last should have nothing.

View solution in original post

0 Kudos