cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
KKilic
Observer
Observer
348 Views
Registered: ‎01-01-2021

Simple Question about AXIS Interval

Jump to solution

Hi, 

I have a very basic AXI stream code. Could you please tell me why interval is 2? Does it mean this function can read stream data in every 2 clock cycles? Why?

Thanks

 

void process_udp_packet (hls::stream<transPkt> &input, hls::stream<transPkt> &output) {
	#pragma HLS PIPELINE II=1 dataflow 
	#pragma HLS TOP
	#pragma HLS INTERFACE axis port=output register_mode=forward register
	#pragma HLS INTERFACE axis port=input register_mode=reverse register


	transPkt inputWord;

	inputWord = input.read();
	output.write(inputWord);
}

 

KKilic_1-1611703185970.png

 

 

 

0 Kudos
1 Solution

Accepted Solutions
watari
Professor
Professor
344 Views
Registered: ‎06-16-2013

Hi @KKilic 

 

I'm not familiar with hls.

But because you use register setting on pragma at input and output, interval is 2.

 

Best regards,

View solution in original post

1 Reply
watari
Professor
Professor
345 Views
Registered: ‎06-16-2013

Hi @KKilic 

 

I'm not familiar with hls.

But because you use register setting on pragma at input and output, interval is 2.

 

Best regards,

View solution in original post