7.13.21. Run-time Configurable Decimating and Interpolating Half-Rate FIR Filter
In decimation mode, the design example accepts a new sample every clock cycle, and produces a new result every two clock cycles. When interpolating, the design example accepts a new input every other clock cycle, and produces a new result every clock cycle. In both cases, the design example fully uses multipliers, making this structure very efficient compared to parallel instantiations of interpolate and decimate filters, or compared to a single rate filter with external interpolate and decimate stages.
The coefficients are set to [1 0 3 0 5 6 5 0 3 0 1] to illustrate the operation of the filter in setup_demo_fir_tdd.m.
The model file is demo_fir_tdd.mdl.