Basic IIR Digital Filter Structures
Basic IIR Digital Filter Structures
Structures
• The causal IIR digital filters we are
concerned with in this course are
characterized by a real rational transfer
function of z 1 or, equivalently by a constant
coefficient difference equation
• From the difference equation representation,
it can be seen that the realization of the
causal IIR digital filters requires some form
of feedback
Copyright © 2001, S. K. Mitra
Basic IIR Digital Filter
Structures
• An N-th order IIR digital transfer function is
characterized by 2N+1 unique coefficients,
and in general, requires 2N+1 multipliers
and 2N two-input adders for implementation
• Direct form IIR filters: Filter structures in
which the multiplier coefficients are
precisely the coefficients of the transfer
function
Copyright © 2001, S. K. Mitra
Direct Form IIR Digital Filter
Structures
• Consider for simplicity a 3rd-order IIR filter
with a transfer function
P( z ) p0 p1z 1 p2 z 2 p3 z 3
H ( z)
D( z ) 1 d1z 1 d 2 z 2 d3 z 3
where
W ( z)
H1( z ) P( z ) p0 p1z 1 p2 z 2 p3 z 3
X ( z)
Y ( z) 1 1
H 2 ( z)
W ( z ) D( z ) 1 d1z 1 d 2 z 2 d3 z 3
Copyright © 2001, S. K. Mitra
Direct Form IIR Digital Filter
Structures
• The filter section H1(z ) can be seen to be
an FIR filter and can be realized as shown
below
w[n] p0 x[n] p1x[n 1] p2 x[n 2] p3 x[n 3]
0.440.362 z 1 0.02 z 2 z 1
1 2 1
1 0.8 z 0.5 z 10.4 z
are shown on the next slide
• The corresponding
parallel form II
realization is shown
on the right
Copyright © 2001, S. K. Mitra
Realization Using MATLAB
• The cascade form requires the factorization
of the transfer function which can be
developed using the M-file zp2sos
• The statement sos = zp2sos(z,p,k)
generates a matrix sos containing the
coefficients of each 2nd-order section of the
equivalent transfer function H(z) determined
from its pole-zero form
Type 1A
Type 1B Type 1A t
Type 1B t
Copyright © 2001, S. K. Mitra
Second-Order Allpass
Structures
• A 2nd-order allpass transfer function is
characterized by 2 unique coefficients
• Hence, it can be realized using only 2
multipliers
• Type 2 allpass transfer function:
d1d2 d1z 1 z 2
A2( z )
1 d1z 1 d1d 2 z 2
1 1
t11 km , t22 km z , t12 (1 km ) z , t21 1 km
1 2 1
t11 km , t22 km z , t12 1 km z , t21 1 km
2
1 2 1
t11 km , t22 km z , t12 (1 km ) z , t21 1
k3 0.2
Copyright © 2001, S. K. Mitra
Realization Using Two-Pair
Extraction Approach
• The allpass transfer function A2 ( z ) is of the
form
d 2' d1' z 1 z 2
A2 ( z ) ' 1 ' 2
1 d1z d 2 z
• Its coefficients are given by
d1 d3d 2 0.4( 0.2)(0.18)
d1' 0.4541667
1 d32 1( 0.2) 2
k3 0.2, k2 0.2708333
Copyright © 2001, S. K. Mitra
Realization Using Two-Pair
Extraction Approach
• The allpass transfer function A1( z ) is of the
form d1" z 1
A1( z )
1 d1" z 1
• It coefficient is given by
d1' d 2' d1' d1' 0.4541667
d1" ' 0.3573771
1( d 2' ) 2 1 d 2 1.2708333
k3 0.2, k2 0.2708333
k1 0.3573771 Copyright © 2001, S. K. Mitra
Cascaded Lattice Realization
Using MATLAB
• The M-file poly2rc can be used to realize
an allpass transfer function in the cascaded
lattice form
• To this end Program 6_3 can be employed