Table Of Contents

Converting Data Types to Fixed-Point for Implementation on an FPGA

Last Modified: September 20, 2016

Because resources are limited on an FPGA, convert floating-point data types in your application to fixed-point to conserve resources when you implement the application on an FPGA.

Before you convert the data types of the objects in your design, make sure that you have already created a copy of the code you want to convert and added it to the testbench. Refer to Adapting a Testbench for Fixed-Point Conversion for help creating a copy of the code you want to convert and setting up your testbench.

Complete the following tasks to convert the floating-point data types in your design to an accurate fixed-point representation:

  1. Profile code to convert to fixed-pointProfile a design to display fixed-point conversion metrics that you use to analyze and adjust data types when converting to fixed-point.
  2. Choose a fixed-point conversion strategyWhen converting the floating-point data types in your design to fixed-point, you choose a conversion strategy that defines how LabVIEW generates initial data type suggestions.
  3. Convert floating-point data types to fixed-point using suggestions from LabVIEWWhen you convert floating-point data types to fixed-point, the Convert to Fixed-Point tab provides fixed-point data type suggestions based on your conversion strategy settings.
  4. Refine converted fixed-point data types to meet your precision and resource requirementsWhen converting your floating-point data types to fixed-point for implementation on an FPGA, you may need to adjust the fixed-point data types to meet your application requirements.

Examples

Search LabVIEW for the following installed lessons:

  • Fixed-Point Conversion
  • Introduction to Float-to-Fixed Conversion

After the output of your fixed-point design meets both the precision and resource requirements of your application, you can begin to map out your application for use with hardware.


Recently Viewed Topics