Downloading and Running an FPGA VI
- Updated2023-02-17
- 3 minute(s) read
Downloading and Running an FPGA VI
To complete this task, you need a host VI and a compiled bitfile for the FPGA VI.
What to Use
What to Do
Create the following diagram to download and run your FPGA VI to an FPGA target.
Customize the gray sections for your unique programming goals.

|
|
Use the device name for your FPGA found in SystemDesigner to specify an FPGA target. To ensure your code runs on the FPGA, the device name input must match the FPGA device name. To specify the FPGA bitfile you want to deploy to the target, complete the following steps:
|
|
|
Download the FPGA VI specified in the bitfile to the FPGA target and run the VI. The Download FPGA VI and Run FPGA VI nodes replace the code on the FPGA each time you run the FPGA VI, ensuring that the FPGA VI properly resets before each execution. |
|
|
Use the FPGA Host Interface nodes to interact with and send data to the FPGA. In this example, the host and the FPGA VI communicate in the following ways:
|
|
|
Use the Close FPGA VI Reference node to close every reference the Open FPGA Reference node creates. If you don't close the reference, the FPGA VI runs until the host application stops running. |
Examples
Search within the programming environment to access the following installed example: FPGA Host Interface.
Related Information
- 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.
- Testing Communication between the Host VI and an FPGA VI