Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Read more elements from a DMA FIFO than Number of Elements

Solved!
Go to solution
I’m figuring out how to transfer data from an FPGA to the RT-target. A FIFO seems to be a good choice.In an example application that came with the hardware I studied the concept and experimented with it. The number of elements of the DMA FIFO is 1023 but I find it strange that on the RT-application I am able to read 2000 samples at a time. The example works fine so how is it possible to read more samples than the size of the FIFO?
0 Kudos
Message 1 of 5
(5,254 Views)
Solution
Accepted by topic author Steffan
There are 2 FIFO's, one on the FPGA and the other on the host.  The FPGA FIFO is limited to 1023 elements.  The host FIFO can be much larger. The default size is 10000 elements.  The DMA is considered full once both are FIFO's are full.
Message 2 of 5
(5,248 Views)

How is the size of the FIFO on the RT side managed? I see that on the FPGA side, it can be set in MAX.

 

Rick

 

Rick Foster
MIT Kavli Institute for Astrophysics and Space Research
0 Kudos
Message 3 of 5
(4,486 Views)

MAX is not involved with FPGA DMA FIFOs. The FPGA DMA FIFO depth is set at development time.  The host side (not necessarily RT) depth can be managed with the configure method.

 

See this link for more info.

Message 4 of 5
(4,470 Views)

Thanks, I see how to use the configure for the RT side now.

 

 

Rick

 

 

PS: I meant to say I used Project Explorer, not MAX to configure the FPGA side FIFO  😞

 

 

Rick Foster
MIT Kavli Institute for Astrophysics and Space Research
0 Kudos
Message 5 of 5
(4,466 Views)