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 eri77
Visitor
6,415 Views
Registered: ‎12-15-2015

unused stream data

Hi ,

 

Is it possible to "consume" unused stream data in some way?

 

In the example code below, only a fraction of the produced stream data is used.

 

Example:

hls::stream<int>   strm_data_in;

#pragma HLS STREAM variable=strm_data_in depth=1 dim=1

hls::stream<int>   strm_data_out;

#pragma HLS STREAM variable=strm_data_out depth=1 dim=1

...

for (int j=0; j<1024; j++ ){

   tmp = strm_data_in.read();

   if (i%4==0){

      strm_data_out.write(tmp);

   }

}

...

0 Kudos