The fixed-point data type provides some of the flexibility of the floating-point data type but also maintains the size and speed advantages of integer arithmetic. By default, each operation on the fixed-point data type generates a fixed-point result that is large enough to hold all possible output values specified by the input types.
![]() |
Note FIFOs, memory, FPGA Math & Analysis VIs, and some functions do not support the fixed-point data type. |
![]() |
Caution If you wire a fixed-point number to an integer, you might lose significant fractional bits. |
Use the Desired Range options on the Properties dialog box to increase or decrease the resources a function uses. Right-click a numeric constant, control, indicator, or function that accepts fixed-point data and select Properties from the shortcut menu to display the Properties dialog box. When you set the range on inputs, the FPGA Module propagates the range throughout the block diagram. The propagation reduces resources when possible. The FPGA Module does not propagate through subVIs, so coercion dots appear on the inputs of subVIs if the range is different than the range being propagated.
![]() |
Note If you set the Desired Range in places other than the inputs, the VI might require additional hardware resources. |
Functions that support the fixed-point data type include modes to handle the overflow and quantization. Use the Properties dialog box for the function to select the overflow and quantization modes. Right-click a function and select Properties from the shortcut menu to display the Properties dialog box.
Refer to the Numeric Data topic for information about each of the overflow modes. The overflow modes affect the logic generated within the FPGA as follows:
Refer to the Numeric Data topic for information about each of the quantization modes. Each of the quantization modes affect the logic generated within the FPGA as follows:
![]() |
Note If you select the Saturate, Round-Half-Up (Asymmetric), or Round-Half-Even modes and the output can handle the overflow or quantization, the operation does not require additional hardware resources. If a coercion dot does not appear on the block diagram, the output can handle the overflow or quantization without additional hardware resources. |