Jump to content

Fast writing into RAM on FlexRIO


bvrtic

Recommended Posts

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.

Link to comment

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.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.