Complete the following steps to create mappings between National Instruments FPGA devices and a model DLL.
- Specify the model DLL and real-time (RT) target.
- Click the Hardware I/O tab of the SIT Connection Manager dialog box.
- Place a checkmark in the NI FPGA checkbox.
- Click the Configure NI FPGA button to launch the Configure FPGA Devices wizard.
- Click the Add Device button to launch the Add FPGA Device dialog box. When you launch this dialog box, the Simulation Interface Toolkit queries the RT target for installed FPGA devices.
- Choose an FPGA device from the FPGA Device list. If you are using more than one FPGA device in the simulation and you want this FPGA device to control the timing of the other FPGA devices, place a checkmark in the Master Device checkbox.
 |
Caution If you add more than one FPGA device, RTSI 0 synchronizes the master and slave FPGA devices. Driving this RTSI line with another device can damage both devices. National Instruments is not liable for any damage resulting from such signal driving. |
- Specify the FPGA VI that corresponds to the FPGA device you selected. An FPGA VI defines the available inputs and outputs of the FPGA device. The LabVIEW Simulation Interface Toolkit provides FPGA VIs you can use with the supported PXI devices. You also can use the LabVIEW FPGA Module to create and compile a custom FPGA VI for other FPGA devices. You must place custom FPGA VIs in the labview\vi.lib\addons\Simulation Interface\_IOTypes\NI FPGA\FPGA IO VIs\ directory.
If you are using a custom FPGA bitfile, click the Browse button next to the FPGA VI file path indicator and select the FPGA VI appropriate for the FPGA device in the FPGA Device list. The Browse button appears dimmed if you do not have any custom FPGA VIs.
 |
Note You must specify an FPGA VI for each FPGA device you want to use. |
- Click the OK button to return to the Configure FPGA Devices wizard. The FPGA Devices table updates to show the device you added. The first row of this table shows the FPGA device you specified as the master device. You can add multiple FPGA devices as long as you specify an FPGA VI for each device.
- Click the Next button.
- Select an FPGA input or output from the FPGA Channels tree.
 |
Note You can create mappings only between FPGA inputs and model DLL inputs and only between FPGA outputs and model DLL outputs. |
- Select a model DLL input or output from the Model Inputs/Outputs tree.
- Click the Add button to add the mapping. The Current Mappings table updates to show the mapping you added.
 |
Note To remove a mapping, select a row in the Current Mappings table and click the Remove button. To remove all mappings, click the Clear button. |
- Click the Finish button to return to the SIT Connection Manager dialog box. The Hardware Mappings table updates to show any mappings you made.
- Click the Build Model Files button to generate the driver VI for the configuration.
- Click the OK button to generate the block diagram code for the host VI.