Download LabVIEW FPGA Module User Manual

Transcript
Chapter 5
Debugging FPGA VIs
You must have an FPGA device installed to use an emulator. However, you still
can debug the FPGA VI without an FPGA device by targeting LabVIEW for Windows.
When you run an FPGA VI while targeting LabVIEW for Windows, LabVIEW generates
random data for the FPGA Device I/O functions.
Note
Building Debugging into an FPGA VI
In addition to using emulators, you can build debugging functionality into
the FPGA VI with additional indicators or additional I/O. You can use
additional indicators and additional I/O with Interactive Front Panel
Communication or Programmatic FPGA Interface Communication.
Adding Indicators
You can add indicators to the FPGA VI block diagram to monitor the
internal state of the FPGA VI. Use indicators as you do probes. Place an
indicator anywhere on the block diagram where you need to see data to
verify the functionality of the VI. You also can perform more advanced
debugging by using controls to change execution of the FPGA VI.
If you use additional indicators with Programmatic FPGA Interface
Communication, you must program the host VI to read the additional
indicators.
Note Adding indicators to the FPGA VI takes up more space on the FPGA. Be sure to
remove debugging indicators if you encounter space constraints on the FPGA.
An indicator consumes a small amount of execution time, which can affect
the performance of the FPGA VI. Whenever possible, add debugging
indicators in parallel to other operations in the FPGA VI to minimize the
effect on execution time.
Adding I/O
If you have unused I/O resources on the FPGA device, you can add
additional I/O terminals to the FPGA VI block diagram to aid debugging.
You can easily monitor the internal state of Boolean logic, triggers, and so
on. You can create more advanced debugging tools by adding LabVIEW
code to analyze data and events and to control flow.
FPGA Module User Manual
5-2
ni.com