Table Of Contents

Floating-Point to Fixed-Point Conversion

Last Modified: April 26, 2016

To conserve FPGA resources and reduce power consumption, convert the floating-point data types in your design to fixed-point for use on an FPGA.

LabVIEW provides tools to quickly convert your floating-point designs to fixed-point to save resources on an FPGA and optimize the performance of your application. The fixed-point data type allows you to specify the exact size and precision of numbers so that an FPGA can use the numbers more efficiently. LabVIEW provides an interactive conversion tool that evaluates your code and offers fixed-point data type suggestions based on how you configure the tool.

Converting your floating-point design to fixed-point consists of the following phases:

  1. Adapting a Testbench for Fixed-Point ConversionWhen converting a floating-point design to fixed-point, you can adapt an existing testbench, such as the testbench used to test the original floating-point design, to test the output of the converted fixed-point design and make sure it sufficiently represents the output of the original floating-point design.
  2. Converting Data Types to Fixed-Point for Implementation on an FPGABecause 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.

Recently Viewed Topics