Designing IIR filter for an FPGA – Fixed Point Implementation

Data type optimization to find the optimal data types to convert floating point IIR filter model


Updated 23 Mar 2018

View License

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:
Video demonstration:

Cite As

MathWorks Fixed Point Team (2023). Designing IIR filter for an FPGA – Fixed Point Implementation (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Updated example & added video link
Added copyright notice.