From 09:00 PM Friday, August 7 - 10:30 AM CST Saturday, August 8, will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Table Of Contents

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

Last Modified: August 9, 2019

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 set up a testbench, created a copy of the code you want to convert, and added the code 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 a 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.


Search within the programming environment to access the following 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