Create Fixed-Point Filter Models
- Updated2025-10-10
- 2 minute(s) read
In a fixed-point implementation, after quantizing the coefficients of a reference floating-point filter, you also must configure all other quantizers, such as the input, output, and multiplicand quantizers. This process creates a fixed-point model for the filter.
You must create a fixed-point filter model before you simulate the filtering process
or generate code from the filter. You can use either the DFD FXP
Modeling VI or the DFD FXP Set Quantizer VI to
create fixed-point filter models. Refer to the Details
section of the DFD FXP Set Quantizer VI for information about
guidelines on the quantizer settings.
Note After quantizing the
coefficients of a reference floating-point filter, you automatically obtain a
fixed-point filter model with the following default values: input word length =
output word length = 16. The Specifying the Word Length
and Integer Word Length topic contains more information about the
effects of different word length values.
If you use the DFD FXP Modeling VI to create the fixed-point filter model, complete the following steps:
- Specify the word lengths and integer word lengths for the input signal and word lengths for the output signal.
- Set the rounding mode for the output signal.
The DFD FXP Modeling VI automatically calculates all quantizer settings of the
fixed-point filter model. You can use the DFD FXP Get Quantizer
VI to retrieve the quantizer settings or use the DFD FXP Set
Quantizer VI to modify the quantizer settings.
Note Output quantizers
generally have different integer word lengths from the input quantizers. Before
generating code, check the quantizer settings to confirm or modify the settings
you want to use for the fixed-point filter. If you reduce the default output
integer word length, the manufacturer recommends that you change the
overflow mode to
Saturate.
If you use the DFD FXP Set Quantizer VI to create the fixed-point filter model, you must configure the quantizers.