Forum Discussion
Altera_Forum
Honored Contributor
14 years agofind number of elements in external memory
Say I've got 10 32-bits integers in the external memory and the system on FPGA should read all the integers but it doesn't know how many integers are actually stored in the memory. What's the regular way to allow the system to find out how many elements in the external memory it's supposed to read?
I can tell the system by sending the number (10 for the above case), but for a large-scale data set this seems not very good. Any ideas? Thanks a lot!2 Replies
- Altera_Forum
Honored Contributor
with no idea how many to check, you have to send a number of how many to check.
- Altera_Forum
Honored Contributor
Possibly as the first entry in the data set.
Maybe allow multiple such sets, ending with a zero length data set. The only other alternative is to use an 'end marker' value - but that needs a value that cannot occur in the normal data.