From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Host memory buffers for data transfer between Host (RT) and target (FPGA)

I am a little confused by the usage of host memory buffers for host to target data transfer. When attempting to place host memory buffer methods on the FPGA, I get errors suggesting that I must use (all three) Write, Request and Retrieve data methods. 

 

Simplistically I would have assumed that I could just request and retrieve data methods on the FPGA, and use the Open host memory buffer VI on the RT to create an EDVR, and then use an in place element structure to write data from the RT host as the Host memory buffer white paper suggests.

 

http://www.ni.com/product-documentation/53881/en/

 

Am I missing something here. Is there an example available that demonstrates a working FPGA and RT implementation of host memory buffers for fast data transfer from the host to target?

 

0 Kudos
Message 1 of 4
(2,153 Views)

A DMA transfer buffer is like a FIFO, a QUEUE, not a single-address memory.

 

This applies to both directions.

 

A DMA on FPGA will have either Write (target-to-host) OR Read (host-to-target), not both. Are you sure you instantiated a DMA channel and not a normal FIFO?

0 Kudos
Message 2 of 4
(2,143 Views)

My understanding is that it is neither a DMA or a FIFO.

 

It is DRAM memory, configured by right clicking in the project (within the FPGA) and selecting new, Memory and then choosing DRAM under implementation. The DRAM bank dropdown then appears which has Host Memory Buffer selected. This is purported to be a new method for Host to Target communication, and my understanding is that it is NOT like a FIFO or queue.

0 Kudos
Message 3 of 4
(2,137 Views)

OK, my bad, never heard of this before. Sounds cool.

0 Kudos
Message 4 of 4
(2,112 Views)