bvrtic Posted July 23, 2010 Report Share Posted July 23, 2010 Hi, I have the question about the best practices how to write the array of 32 bit values into RAM on FlexRIO card. The arrays can be quite large up to 2 400 000 of elements. there are simple 1D array that are read from HDD. This files are prepared before. We need to write this array to the specific address in RAM. Because there can be this array read several times we can't use FIFO's. The problem is if I use the for loop and write into ram Address after address the time for large arrays is big, several seconds. Do you have better solution or some proposal? Thank you for your help. Quote Link to comment
njg Posted July 29, 2010 Report Share Posted July 29, 2010 The most efficient method, with regards to speed, for writing data from PC memory to FPGA memory is to utilize a DMA channel. On the host you would load the data from disk and then place it in the DMA buffer. This could be done in segments if the data set was huge. On the target (FPGA) you would have a loop that reads the DMA buffer and places the data in memory, one element at a time. A single cycle timed loop (SCTL) would be the prefered implementation for that loop. This implementation should handle 2,400,000 elements in well under a second. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.