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:
Profile code to convert to fixed-point—Profile a design to display fixed-point conversion metrics that you use to analyze and adjust data types when converting to fixed-point.
Choose a fixed-point conversion strategy—When 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.
Convert floating-point data types to fixed-point using suggestions from LabVIEW—When 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.
Refine converted fixed-point data types to meet your precision and resource requirements—When 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 LabVIEW for the following installed lessons:
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.