cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mrbietola
Scholar
Scholar
377 Views
Registered: ‎05-31-2012

Change stream data width

Hi i have an HLS block that read from memory with 128 bit as datawidth (2 pixel of 64 bit).

I then need to stream out this data but 64 bit at the time.

What i need to convert the width?

0 Kudos
4 Replies
dsakjl
Explorer
Explorer
354 Views
Registered: ‎07-20-2018

Hi @mrbietola ,

probably you can do something as follow:

ap_uint<128> data = read_memory(...);

queue_out.write(data.range(63,0));

queue_out.write(data.range(127,64));

 

0 Kudos
mrbietola
Scholar
Scholar
342 Views
Registered: ‎05-31-2012

Hi, thanks for reply, what type is queue_out?

a similar code i tried "broke" the burst reading from the memory.

0 Kudos
dsakjl
Explorer
Explorer
339 Views
Registered: ‎07-20-2018

queue_out is not a data type. It is an hypothetical name for your output stream, which should be of type hls::stream<>.

"a similar code i tried "broke" the burst reading from the memory." What does it means?

 

0 Kudos
mrbietola
Scholar
Scholar
259 Views
Registered: ‎05-31-2012

Hi, i will try your suggestions.

Broke the burst mean that the burst was not performed if a 2 writes to 64 bit variables are performed later.

I'm helping a collegue of mine, i'm actually not aware of what he tried to do

0 Kudos