Jump back to chapter selection.
Table of Contents
11.1 FIR and IIR Filters
11.2 Realisation Structures
11.3 Linear Phase, All-Pass, and Minimum Phase
11.4 Filter Specifications
11.5 IIR Filter Design
11.6 FIR Filter Design
11.7 Numerical Effects
11 Digital Filter Structures and Design
Once the z-transform has described a discrete-time LTI system, the next question is how to realise and design it. A digital filter is not just a transfer function; it is also a numerical algorithm. Different realisations of the same
11.1 FIR and IIR Filters
A general causal rational digital filter is described by
Its system function is
If all
The impulse response has finite length. FIR filters are always BIBO stable if their coefficients are finite. They can also be designed to have exact generalized linear phase.
If any feedback coefficient
The basic tradeoff is:
- FIR: robust stability and linear phase, but often higher order;
- IIR: efficient sharp filters, but nonlinear phase and more numerical sensitivity.
11.2 Realisation Structures
The same rational
The direct-form realisation follows the difference equation directly. Direct Form I uses separate delay lines for feedforward and feedback parts. Direct Form II combines them into one delay line and is more memory efficient. However, direct forms can be sensitive to coefficient quantization for high-order filters.
In cascade form, the system function is factored into first- and second-order sections:
Second-order sections are preferred for complex-conjugate pole-zero pairs:
Cascade form is numerically safer because each section can be scaled and implemented independently.
In parallel form, partial-fraction expansion gives
This is useful when the system naturally decomposes into resonant sections.
Transposed structures reverse the signal-flow graph while preserving the transfer function. They often have better numerical behaviour in finite precision and are common in software libraries.
11.3 Linear Phase, All-Pass, and Minimum Phase
A real FIR filter has exact linear phase if its impulse response is symmetric or antisymmetric:
or
The corresponding group delay is
Linear phase is important when waveform shape matters, because all frequencies in the passband are delayed equally.
An all-pass system has
for all
More generally, stable all-pass systems have zeros that are reciprocal conjugates of their poles.
A minimum-phase system has all zeros inside the unit circle, assuming it is causal and stable. It has a causal stable inverse. Any stable rational system can often be factored conceptually into
where
This is a useful warning: specifying only
11.4 Filter Specifications
Digital filter design starts from specifications. For a lowpass filter, typical parameters are:
- passband edge
; - stopband edge
; - passband ripple
; - stopband ripple
; - transition width
.
In magnitude form:
and
Stopband attenuation is often given in decibels:
No finite-order filter can have an ideal brick-wall transition. A narrower transition band or smaller ripple requires a higher-order filter.
11.5 IIR Filter Design
IIR digital filters are often designed from analogue prototypes. Classical analogue lowpass families include Butterworth, Chebyshev, inverse Chebyshev, and elliptic filters.
A Butterworth filter has maximally flat passband magnitude:
It is smooth but does not give the sharpest transition for a given order.
Chebyshev and elliptic filters allow ripple in one or both bands to achieve sharper transitions. Elliptic filters are usually the lowest order for given magnitude specifications, but their phase is more nonlinear.
Two common mappings from analogue to digital filters are impulse invariance and the bilinear transform.
Impulse invariance samples the analogue impulse response:
It maps analogue poles according to
This preserves time-domain samples of the impulse response, but it aliases the analogue frequency response. It is appropriate only when the analogue response is sufficiently bandlimited.
The bilinear transform maps the
It maps the entire left half-plane into the inside of the unit circle, so stability is preserved and no aliasing occurs. The frequency mapping is nonlinear:
Because of this warping, critical frequencies are prewarped before designing the analogue prototype:
11.6 FIR Filter Design
The ideal lowpass impulse response is infinite:
The simplest FIR design method truncates it with a finite window:
Windowing in time smooths the frequency response but produces a transition band and ripple. The window controls the tradeoff between main-lobe width and side-lobe level.
The Kaiser window is useful because it has an adjustable parameter
where
Equiripple FIR design instead directly optimises the maximum weighted error between the desired and actual responses. The Parks-McClellan algorithm is the standard method. Its characteristic result is equal ripple in the optimised bands:
oscillates between equal positive and negative extrema.
Window design is simple and predictable. Equiripple design is usually more efficient for strict specifications. Both methods are widely used.
11.7 Numerical Effects
Digital filters are implemented with finite word length. This introduces several effects:
- coefficient quantization moves poles and zeros;
- arithmetic round-off injects noise;
- fixed-point overflow can destabilise recursive filters;
- recursive filters can exhibit limit cycles even with zero input.
IIR filters are especially sensitive because pole locations determine stability. A pole that is stable before quantization can move closer to the unit circle, changing resonance and decay time, or in the worst case move outside the unit circle.
This is why high-order IIR filters are almost always implemented as cascaded second-order sections rather than one high-order direct form. Each section can be scaled to avoid overflow and quantized with less pole sensitivity.
FIR filters are more robust because they have no feedback. Coefficient quantization changes the magnitude and phase response but cannot create instability. This robustness is one of the reasons FIR filters are often chosen even when they require more multiplications.