Floating-Point Design and Testing
Begin the FPGA design flow by planning and creating your program using floating-point numbers, testing your design with a testbench, and debugging errors in your design. Creating your initial design using floating-point data types means you are not constrained to the limited ranges and precision of fixed-point data types when designing your application.
In a later phase of the design flow, you will convert your floating-point design, which runs on the host, to fixed-point code that runs efficiently on the FPGA.
Floating-Point Design Planning and Creation
Planning the elements of your design before you begin programming helps to make sure you make the most effective programming decisions for your design.
When you're ready to begin programming, pick the language that is best suited to the purpose of your design. After picking a language, create a document associated with the language you've chosen and create code for your design on the diagram of that document. The diagram palette provides nodes that you use to construct your design.
Refer to the following resources for help planning and creating your floating-point design.
Choosing a Programming Language for Your Application—You can choose from several language options to develop your application. The purpose of the application and your programming preferences determine which language you should choose.
Language Integration in LabVIEW—You 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.
Creating Code—If you want to analyze or process data in any way, you must create code on the diagram.
Tips and Tricks for Editing Diagram Code—LabVIEW offers a set of time-saving tools to help you edit diagram code more efficiently.
Floating-Point Design Testing and Debugging
Testing and debugging are essential practices for ensuring that your design functions properly and generates expected results.
In this phase of the design flow, test your floating-point design at the unit level in a testbench on the host. The unit level is the most fundamental level of code you can build that maps to a specific processing function. If your design generates unexpected results, identify and correct problems in your design using debugging tools.
Refer to the following resources for help testing and debugging your floating-point design.
Strategies for Testing FPGA Applications—Testing an application, and the pieces of the application, allows you to ensure that the application functions as you expect and helps to prevent errors later in development.
Creating a Testbench to Test a Floating-Point Design—Use a testbench to test the output of your floating-point design and ensure the results are what you expect.
Debugging Tools—When the results of your application do not appear as you expect, LabVIEW provides a set of tools to help you determine where errors occur within your code.
Probes on the Multirate Diagram—Because the Multirate diagram has no panel, probes provide the most direct method of visualizing data.
Multirate Diagram Simulation—After you create code on a Multirate diagram, test the code to make sure it works properly by running diagram simulations.