LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass data from Host to FPGA using DMA

What is the best way to read data out of a DMA FIFO within the FPGA?  At the host I pack parameter data to write to the FPGA via DMA FIFO.  Currently I am reading the data from the FIFO within the FPGA into a constant array and then indexing the array to get at the specific elements.  Is this the best way to do this?  I have read that using arrays in the FPGA is expensive in terms of size, is this true for constant arrays?  Is there another way to read all of the elements off of the DMA FIFO within the FPGA to be able to piece the data into individual parameters?
 
Thanks,
Kevin
0 Kudos
Message 1 of 2
(5,114 Views)
I believe reading from the FIFO is limited to one element at a time. I have not used DMA at this point as it is not critical that I read or write to/from the FPGA at the fastest possible speed. I simply pass my array with the normal FPGA I/O read/write.

Once the data is in the FPGA, however......for small arrays I simply convert my  fixed size array to a fixed size cluster and then do an unbundle to get access to the data all at once as in the screenshot below.


Message Edited by Bill@NGC on 08-24-2007 04:53 PM

Message Edited by Bill@NGC on 08-24-2007 04:58 PM

0 Kudos
Message 2 of 2
(5,092 Views)