Home > Support > NI Product Manuals > LabVIEW Communications System Design Suite 1.0 Manual

System Integration and Testing

After you convert the floating-point data types in your design to fixed-point, move the design to the FPGA in SystemDesigner, call it from your FPGA application, test the system components and the overall system, and make any necessary adjustments to meet the specifications of your hardware device.

System Integration

FPGA VIs serve as the container for all code that runs on an FPGA, so when you integrate the FPGA code, you integrate it into an FPGA VI or into a Clock-Driven Logic document called from an FPGA VI. You designate a single FPGA VI as the top-level VI on the FPGA and it serves as the container for your overall FPGA application. Place all of the code that makes up your FPGA application either on the diagram of the FPGA VI directly or within subdocuments that appear on the diagram of the FPGA VI. This code can include Clock-Driven Logic, FPGA IP, and Multirate Dataflow code. If you are using a project template, the FPGA VI that you add your design to may be one of the VIs in the project template.

The following resources provide information to help you integrate the pieces of your system.

  • Creating a Project from a TemplateProject templates provide common application architectures using well-established industry design patterns that you can modify to quickly build a working system. When you are ready to integrate your design into an FPGA application, consider adding your design to a project template.
  • Language Integration in LabVIEWYou can use multiple programming languages to develop your application. How you integrate pieces of code written in different languages into your overall application depends on the language and the target you are integrating the code into.
  • Multirate Diagram Integration Node Behavior in an FPGA VI—When you integrate a Multirate Diagram into your FPGA application, you can use a Multirate Diagram integration node to call a Multirate Diagram from outside of a Clock-Driven Loop in an FPGA VI.
  • FPGA IP VIs in Other Document Types—When you integrate an FPGA IP VI into your FPGA application, you can call the FPGA IP VI from either Clock-Driven Logic or Multirate Dataflow.
  • Clock-Driven Logic—Clock-Driven Logic is the primary language on the FPGA. Clock-Driven Logic allows you to integrate the pieces of your application, optimize your FPGA code, and communicate with system resources.
  • Using Handshaking to Ensure Valid Data in a Clock-Driven Loop—When you integrate code into Clock-Driven Logic, use a handshaking protocol to ensure valid data transfers to and from code that requires more than one clock cycle to return valid data.

Examples

Search LabVIEW for the following installed lessons: Deploying an Application on an FPGA

System and Component Testing

Testing and adjusting your system components before integrating into your system saves you time and effort when you test your entire system.

Component testing allows you to ensure that each component, or complex portion of code that relies on the timing of the system, works as you expect and reduces the amount of troubleshooting your application requires at the system level. System testing helps you identify any necessary adjustments you need to make to ensure your system runs properly.

The following resources provide information to help you test your system and its components.

  • Strategies for Testing FPGA Applications—Use these strategies to identify and test your system and its components.
  • Ensure FPGA IP Algorithms Fit on the FPGA—After you move an FPGA IP algorithm to the FPGA, estimate the FPGA resources that the algorithm requires using resource estimation tools that LabVIEW provides. Estimating resources helps you determine whether your FPGA IP VI will run successfully on the FPGA.
  • Testing a Clock-Driven Logic Document on the Host—To test that a Clock-Driven Logic (CDL) document processes data as you expect, use the Run FPGA Simulation node in a testbench to simulate running the CDL on an FPGA. You can use the same procedure to test an FPGA IP VI if you place the FPGA IP VI in a CDL document and simulate that CDL document.
  • Testing Communication between the Host VI and an FPGA VI—To ensure your system application will run as you expect it to on an FPGA, use the FPGA Host Interface nodes in a testbench to simulate how your code will run on an FPGA. You can use the same procedure to test a Multirate Diagram that communicates with a Clock-Driven Loop. Place the Multirate Diagram integration node and the Clock-Driven Loop it communicates with in a separate FPGA VI and simulate that FPGA VI.

Related Topics