Expand description
Cascaded integrator-comb (CIC) decimators and interpolators (Hogenauer).
A CIC filter is N cascaded moving sums of length R·M built from N integrators and N
combs (differential delay M) with the rate change between them, so it needs no multipliers:
H(z) = ((1 − z^{−RM}) / (1 − z^{−1}))^N, magnitude |sin(πRMf) / sin(πf)|^N and DC gain
(RM)^N. Integer (two’s complement) arithmetic is required: the integrators overflow by
design, and the wrap-around cancels exactly in the combs as long as the output itself fits.
See the book entry Resampling: polyphase, half-band and CIC filters.
Structs§
- CicDecimator
- A CIC decimator by
R: integrators at the input rate, then combs at the output rate. - CicInterpolator
- A CIC interpolator by
R: combs at the input rate, zero-stuffing, integrators at the output rate.
Functions§
- cic_
magnitude_ response - The magnitude response of a CIC decimator at frequency
fin cycles per input sample, normalised to unit DC gain:|sin(πRMf) / (RM sin(πf))|^N.