Table Of Contents

Floating-Point Design and Testing

Last Modified: September 21, 2016

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 ApplicationYou 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 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.
  • Creating CodeIf you want to analyze or process data in any way, you must create code on the diagram.
  • Tips and Tricks for Editing Diagram CodeLabVIEW 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.


Recently Viewed Topics