Professional Documents
Culture Documents
Digital Filter Structures Digital Filter Structures
Digital Filter Structures Digital Filter Structures
Digital Filter Structures Digital Filter Structures
• The convolution sum description of an LTI • Here the input-output relation involves a
discrete-time system can, in principle, be finite sum of products:
used to implement the system y[n] = −∑kN=1 d k y[n − k ] + ∑kM=0 pk x[ n − k ]
• For an IIR finite-dimensional system this • On the other hand, an FIR system can be
approach is not practical as here the impulse implemented using the convolution sum
response is of infinite length which is a finite sum of products:
• However, a direct implementation of the IIR y[n] = ∑ kN=0 h[ k ] x[n − k ]
finite-dimensional system is practical
1 2
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
1
Block Diagram Representation Block Diagram Representation
• For the implementation of an LTI digital
filter, the input-output relationship must be • The filter is described by the difference
described by a valid computational algorithm equation
• To illustrate what we mean by a y[n] = − d1 y[n − 1] + p0 x[n] + p1x[n − 1]
computational algorithm, consider the causal • Using the above equation we can compute
first-order LTI digital filter shown below y[n] for n ≥ 0 knowing the initial condition
y[−1] and the input x[n] for n ≥ −1:
7 8
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
2
Basic Building Blocks Analysis of Block Diagrams
• Carried out by writing down the expressions
• (3) Easy to manipulate a block diagram to for the output signals of each adder as a sum
derive other “equivalent” block diagrams of its input signals, and developing a set of
yielding different computational algorithms equations relating the filter input and output
• (4) Easy to determine the hardware signals in terms of all internal signals
requirements • Eliminating the unwanted internal variables
• (5) Easier to develop block diagram then results in the expression for the output
representations from the transfer function signal as a function of the input signal and
directly the filter parameters that are the multiplier
13 14 coefficients
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
3
Analysis of Block Diagrams Analysis of Block Diagrams
• Substituting the last two relations in the first
four equations we get • Combining the last two equations we get
W1 = X − α z −1W3 −1
W3 = ε + z −1 W1
W2 = W1 − δ z −1W2 1+ δz
• Substituting the above equation in
W3 = z −1W2 + εW2
W1 = X − α z −1W3 , Y = βW1 + γ z −1W3
Y = βW1 + γ z −1W3
we finally arrive at
• From the second equation we get
W2 = W1 /(1 + δz −1 ) and from the third Y β + (βδ + γε) z −1 + γz − 2
H ( z) = =
equation we get W3 = (ε + z −1)W2 X 1 + (δ + αε) z −1 + αz − 2
19 20
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
4
Canonic and Noncanonic Canonic and Noncanonic
Structures Structures
• The structure shown below is noncanonic as
• A digital filter structure is said to be it employs two delays to realize a first-order
canonic if the number of delays in the block difference equation
diagram representation is equal to the order y[n] = − d1 y[n − 1] + p0 x[n] + p1x[n − 1]
of the transfer function
• Otherwise, it is a noncanonic structure
25 26
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
+ Y(z) X(z)
• All other methods for developing equivalent
Original structure Transposed structure
structures are based on a specific algorithm
for each structure
29 30
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
5
Equivalent Structures Equivalent Structures
• There are literally an infinite number of • Under infinite precision arithmetic any
equivalent structures realizing the same given realization of a digital filter behaves
transfer function identically to any other equivalent structure
• It is thus impossible to develop all • However, in practice, due to the finite
equivalent realizations wordlength limitations, a specific
• In this course we restrict our attention to a realization behaves totally differently from
discussion of some commonly used its other equivalent realizations
structures
31 32
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
6
Direct Form FIR Digital Filter Direct Form FIR Digital Filter
Structures Structures
• A direct form realization of an FIR filter can • An analysis of this structure yields
be readily developed from the convolution y[n] = h[0]x[n] + h[1]x[n − 1] + h[2]x[n − 2]
sum description as indicated below for N = 4 + h[3]x[n − 3] + h[4]x[n − 4]
which is precisely of the form of the
convolution sum description
• The direct form structure shown on the
previous slide is also known as a
transversal filter
37 38
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
7
Polyphase FIR Structures Polyphase FIR Structures
• H(z) can be expressed as a sum of two • By using the notation
terms, with one term containing the even-
indexed coefficients and the other E0 ( z ) = h[0] + h[2]z −1 + h[4]z − 2 + h[6]z −3 + h[8]z −4
containing the odd-indexed coefficients: E1( z ) = h[1] + h[3]z −1 + h[5]z −2 + h[7]z −3
we can express H(z) as
H ( z ) = (h[0] + h[2]z − 2 + h[4]z − 4 + h[6]z −6 + h[8]z −8 )
H ( z ) = E0 ( z 2 ) + z −1E1( z 2 )
+ (h[1]z −1 + h[3]z −3 + h[5]z −5 + h[7]z −7 ) • The above decompostion is more commonly
= (h[0] + h[2]z − 2 + h[4]z − 4 + h[6]z −6 + h[8]z −8 ) known as the 2-branch polyphase
+ z −1(h[1] + h[3]z −2 + h[5]z − 4 + h[7]z −6 ) decomposition
43 44
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
or below
H ( z ) = E0 ( z 3 ) + z −1E1( z 3 ) + z −2 E2 ( z 3 ) E 0( z3 ) +
−1
is more commonly known as the 3-branch z
E1( z 3 ) +
polyphase decomposition −1
z
E 2( z3 )
47 48
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
8
Polyphase FIR Structures Polyphase FIR Structures
• In the general case, an L-branch polyphase • The subfilters Em ( z L ) in the polyphase
decomposition of an FIR transfer function realization of an FIR transfer function are
of order N is of the form also FIR filters and can be realized using
L −1 − m
H ( z ) = ∑m L
=0 z Em ( z )
any methods described so far
where • However, to obtain a canonic realization of
( N +1) / L the overall structure, the delays in all
Em ( z ) = ∑ h[Ln + m]z −m subfilters must be shared
n =0
49
with h[n]=0 for n > N 50
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
9
Linear-Phase FIR Structures Linear-Phase FIR Structures
• Note: The Type 2 linear-phase structure for
a length-8 FIR filter requires 4 multipliers,
whereas a direct form realization requires 8
multipliers
• Similar savings occurs in the realization of
• Note: The Type 1 linear-phase structure for Type 3 and Type 4 linear-phase FIR filters
a length-7 FIR filter requires 4 multipliers, with antisymmetric impulse responses
whereas a direct form realization requires 7
multipliers
55 56
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
57 58
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
59
Copyright © 2005, S. K. Mitra
10