09-27-2016 07:07 AM
I want to implement such function-------
Every period there is a sync signal.
Then I begin to read M data from RAM.
After N periods, I got M*N data samples.
I need to use this entire M*N matrix for my next algorithm.
I know a for-loop could read data from RAM to local memory,
but it is only one dimension.
I really do NOT know how to write code
to read and save the data to a two-dimension matrix in HLS.
Please help me !
09-27-2016 04:00 PM
09-28-2016 12:33 AM
Have a look at the image processing examples (eg. XAPP 1167). After all, an image is a 2D array of numbers, just like a matrix.
What you'll find is that in RAM images are stored as long 1D arrays, and for streaming they're treated as 1D arrays with a marker to indicate each line (TLAST, set on the last bit of each line).