Designing IIR filter for an FPGA – Fixed Point Implementation
In Simulink, you can design signal processing algorithms such as IIR filters, FIR filters etc. In this example, we show how you can take a IIR filter design in floating-point and convert it to a fixed-point model.
The data type optimization feature in Fixed Point Designer:
• Automatically iterates and chooses the smallest heterogeneous data types for your system under design while meeting behavioral constraints
• Optimizes bit width by choosing smallest data types that can meet the user specified tolerances for quantization noise
The download contains an IIR filter using floating point data type and a script that uses data type optimization to convert it to an optimal fixed-point design.
Please refer to the following documentation link to learn more about this feature:
Data type optimization: http://www.mathworks.com/help/fixedpoint/ref/fxpopt.html
Video demonstration: https://www.mathworks.com/videos/data-type-optimization-1520281452641.html
Cite As
MathWorks Fixed Point Team (2026). Designing IIR filter for an FPGA – Fixed Point Implementation (https://se.mathworks.com/matlabcentral/fileexchange/66478-designing-iir-filter-for-an-fpga-fixed-point-implementation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Code Generation > Fixed-Point Designer > Embedded Implementation > Fixed-Point Matrix Operations in Simulink > Convert to Fixed Point >
- FPGA, ASIC, and SoC Development > Fixed-Point Designer > Embedded Implementation > Fixed-Point Matrix Operations in Simulink > Convert to Fixed Point >
- FPGA, ASIC, and SoC Development >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Updated example & added video link
|
