Testing Communication between the Host VI and an FPGA VI
- 更新日2023-02-17
- 3分で読める
Testing Communication between the Host VI and an FPGA VI
To complete this task, you need the FPGA VI and the host VI you want to communicate between.
What to Use
What to Do
Create the following diagram to communicate with the FPGA VI from a host VI.
Customize the gray section for your unique programming goals.

|
|
To specify the FPGA bitfile you want to deploy to the target, complete the following steps:
|
|
|
When testing communication between a host VI and the FPGA VI, use test code that mirrors the communication that you want to occur when you actually deploy the FPGA VI. Use the FPGA Host Interface nodes to communicate with code on an FPGA and in simulation on the host computer. In the diagram above, one of the ways the host VI and the FPGA VI communicates is through a DMA FIFO using the Write DMA FIFO and Read DMA FIFO nodes. When this host VI runs, the host VI and the FPGA VI write data to and read data from a block of memory on the host that simulates a FIFO on the FPGA. Note The host VI cannot simulate FPGA Host Interface nodes that perform hardware-specific functions, such as the Download FPGA VI node or the P2P Streaming nodes. |
|
|
Use the Close FPGA VI Reference node to close every reference the Open FPGA Reference node creates. If you do not close the reference, the FPGA VI runs indefinitely until you click the Abort button in the FPGA VI. |
Examples
Search within the programming environment to access the following installed example: FPGA Host Interface.
関連コンテンツ
- Host VIs
A host VI is a VI that you target to a processor, often a PC or a controller, within your hardware device.
- FPGA VIs
An FPGA VI is a VI that you target to an FPGA.
- Execution of FPGA Code
You can run FPGA code on the FPGA directly or you can run the code on the host computer to simulate running it on the FPGA.
- Compiling FPGA Code
To run code on an FPGA, you must compile the FPGA code into a bitfile that you then deploy to the FPGA. The bitfile contains binary data that describes how to configure the FPGA circuit so that it performs the same function as the code in the FPGA VI.
- Downloading and Running an FPGA VI