Chapter 4 - System Realization
Chapter 4 - System Realization
4
4.1 INTRODUCTION
Systems may be continuous-time systems or discrete-time systems. Discrete-time systems
may be FIR (Finite Impulse Response) systems or IIR (Infinite Impulse Response) systems.
FIR systems are the systems whose impulse response has finite number of samples and IIR
systems are systems whose impulse response has infinite number of samples. Realization of a
discrete-time system means obtaining a network corresponding to the difference equation or
transfer function of the system. In this chapter, various methods of realization of discrete-
time systems are discussed.
Figure 4.1 (a) Adder (b) Constant multiplier and (c) Unit delay element.
277
278 h Digital Signal Processing
Adder: An adder is used to add two or more signals. The output of adder is equal to the
sum of all incoming signals.
Constant multiplier: A constant multiplier is used to multiply the signals by a constant. The
output of the multiplier is equal to the product of the input signal and the constant of the
multiplier.
Unit delay element: A unit delay element is used to delay the signal passing through it by
one sampling time.
EXAMPLE 4.1 Construct the block diagram for the discrete-time systems whose input-
output relations are described by the following difference equations:
(a) y( n) = 0.7x (n) + 0.3 x (n 1)
(b) y(n) = 0.5y(n 1) + 0.8 x (n) + 0.4 x (n 1)
Solution:
(a) Given y(n) = 0.7x (n) + 0.3 x (n 1)
The system may be realized by using the difference equation directly or by using
the Z-transformed version of that. The individual terms of the given difference
equation are 0.7x(n) and 0.3x(n – 1). They are represented by the basic elements as
shown in Figure 4.2.
Alternatively
Taking Z-transform on both sides of the given difference equation, we have
Y(z) = 0.7X(z) + 0.3z–1X(z)
The individual terms of the above equation are: 0.7X ( z ) and 0.3 z 1 X (z ).
They are represented by the basic elements as shown in Figure 4.2.
Figure 4.2 Block diagram representation of (a) 0.7X(z) and (b) 0.3z1X(z).
The input to the system is X(z) [or x(n)] and the output of the system is Y(z) [or
y(n)]. The above elements are connected as shown in Figure 4.3 to get the output
Y(z) [or y(n)].
System Realization h 279
The individual terms of the above equation are 0.5 z 1Y (z), 0.8X ( z) and 0.4 z 1 X (z) .
They are represented by the basic elements as shown in Figure 4.4.
Figure 4.4 Block diagram representation of (a) 0.8X(z) (b) 0.4z1X(z) and (c) 0.5z1Y(z).
The input to the system is X(z)[or x(n)] and the output of the system is Y(z)[or y(n)].
The above elements are connected as shown in Figure 4.5 to get the output Y(z)[or y(n)].
Figure 4.5 Realization of the system described by y(n) = 0.5y(n1) + 0.8x(n) + 0.4x(n1).
280 h Digital Signal Processing
Discrete-time LTI systems may be divided into two types: IIR systems (those that have
an infinite duration impulse response) and FIR systems (those that have a finite duration
impulse response).
Since this weighted sum involves the present and all the past input samples, we can say that
the IIR system has an infinite memory.
A system whose output y(n) at time n depends on the present input and any number of
past values of input and output is called a recursive system. The past outputs are
y(n – 1), y(n – 2), y(n – 3), ...
Hence, for recursive system, the output y(n) is given by
y( n) = F[y(n 1), y(n 2), ..., y(n N ), x ( n), x (n 1), ..., x ( n M )]
In recursive system, in order to compute y(n0), we need to compute all the previous values
y(0), y(1), y(2), ..., y(n0 – 1) before calculating y(n0). Hence, output of recursive system has
to be computed in order [y(0), y(1), y(2), ... ].
i.e. in general, IIR systems are those in which the output at any instant of time depends not
only on the present and past inputs but also on the past outputs. Hence, in general, an IIR
system is of recursive type.
On taking Z-transform of the above equation for y(n), we get
N M
Y (z) = ak z k Y (z ) + bk z k X (z)
k 1 k 0
N M
i.e. Y (z ) + ak z k Y (z) = bk z k X (z )
k 1 k 0
System Realization h 281
The system function or the transfer function of the IIR system is:
M
bk z k
Y ( z) k 0 b0 + b1 z 1 + b2 z 2 + ... + bM z M
= H ( z) = =
X (z ) N
1 + a1 z 1 + a2 z 2 + ... + aN z N
1+ ak z k
k 1
The above equations for Y(z) and H(z) can be viewed as a computational procedure (or
algorithm) to determine the output sequence y(n) from the input sequence x(n). The
computations in the above equation can be arranged into various equivalent sets of difference
equations with each set of equations defining a computational procedure or algorithm for
implementing the system.
For each set of equations, we can construct a block diagram consisting of delays,
adders and multipliers. Such block diagrams are referred to as realization of the system or
equivalently as structure for realizing the system.
The main advantage of re-arranging the sets of difference equations (i.e. the main
criteria for selecting a particular structure) is to reduce the computational complexity,
memory requirements and finite word length effects in computations.
So the factors that influence the choice of structure for realization of LTI system are:
computational complexity, memory requirements and finite word length effects in
computations.
Computational complexity refers to the number of arithmetic operations required to
compute the output value y(n) for the system.
Memory requirements refer to the number of memory locations required to store the
system parameters, past inputs and outputs and any intermediate computed values.
Finite-word-length effects or finite precision effects refer to the quantization effects that
are inherent in any digital implementation of the system either in hardware or in software.
Although the above three factors play a major role in influencing our choice of the
realization of the system, other factors such as whether the structure lends itself to parallel
processing or whether the computations can be pipelined may play a role in selecting a
specific structure.
The different types of structures for realizing IIR systems are:
1. Direct form-I structure 2. Direct form-II structure
3. Transposed form structure 4. Cascade form structure
5. Parallel form structure 6. Lattice structure
7. Ladder structure
The equation for Y(z) [or y(n)] can be directly represented by a block diagram as
shown in Figure 4.6 and this structure is called Direct form-I structure. This structure uses
separate delays (z–1) for input and output samples. Hence, for realizing this structure more
memory is required. The direct form structure provides a direct relation between time domain
and z-domain equations.
The structure shown in Figure 4.6 is called a non-canonical structure because the
number of delay elements used is more than the order of the difference equation.
If the IIR system is more complex, that is of higher order, then introduce an
intermediate variable W(z) so that
M
W (z ) = bk z k X (z) = b0 X (z) + b1 z 1 X (z) + ... + bM z M X (z)
k=0
M
or w( n) = bk x (n k ) = b0 x (n) + b1 x (n 1) + . . . + bM x (n m)
k 0
On taking Z-transform of the above equation and neglecting initial conditions, we get
Y ( z) = a1 z 1Y ( z) a2 z 2Y ( z ) ... aN z N Y ( z ) + b0 X ( z ) + b1 z 1 X ( z) + ... + bM z M X ( z )
Y ( z) b + b1 z 1 + b2 z 2 + ... + bM z M
i.e. = 0
X (z ) 1 + a1 z 1 + a2 z 2 + ... + aN z N
Y (z ) Y (z ) W (z )
Let =
X ( z ) W ( z) X ( z)
W ( z) 1
where =
X ( z) 1 + a1 z 1 + a2 z 2 + ... + a N z N
Y ( z)
and = b0 + b1 z 1 + b2 z 2 + ... + bM z M
W ( z)
On cross multiplying the above equations, we get
Since the number of delay elements used in direct form-II is the same as that of the
order of the difference equation, direct form-II is called a canonical structure.
The comparison of direct form-I and direct form-II structures is given in Table 4.1
Figure 4.8 (a) Direct form-I structure as cascade of two systems (b) Direct form-I structure after
interchanging the order of cascading.
In Figure 4.8(b), we can observe that the inputs to the delay elements in H1(z) and
H2(z) are the same and so the outputs of the delay elements in H1(z) and H2(z) are same.
Therefore, instead of having separate delays for H1(z) and H2(z), a single set of delays can be
used. Hence, the delays can be merged to combine the cascaded systems to a single system.
The resultant structure will be direct form-II structure as that of Figure 4.7. The process of
converting direct form-I structure to direct form-II structure is shown in Figure 4.9.
Y ( z) 4 + 5z 1 + 6z 2
H (z ) = =
X ( z ) 1 + 2z 1 + 3z 2
288 h Digital Signal Processing
Figure 4.10 (a) General transposed structure realization of IIR system through direct form-I,
(b) General transposed structure realization of IIR system through direct form-II.
The direct form-II realization structure, the recovered realization structure and the
transposed form realization structure of this system are shown in Figure 4.11[(a), (b) and (c)
respectively].
a1 = 2, a2 = 3, b0 = 4, b1 = 5, b2 = 6
3 Hi (z )
k
Y (z )
H ( z) = =
X (z ) i 1
System Realization h 289
Figure 4.11 (a) Direct form-II realization (b) Recovered realization structure and (c) Transposed
realization structure (Example 4.2).
C0 i + C1i z 1 + C2 i z 2
where H i (z) = [second order section]
d0 i + d1i z 1 + d2 i z 2
C0 i + C1i z 1
or H i ( z) = [first order section]
d0 i + d1i z 1
Each of these sections is realized separately and all of them are connected in cascade
(series). Therefore, the cascade form realization is also called a series structure in which one
sub transfer function is the input to the other transfer function and so on.
The cascade form realization is shown in Figure 4.12.
C0 i + C1i z 1
where, H i (z) = [second order section]
d0 i + d1i z 1 + d2 i z 2
C0 i
or H i ( z) = [first order section]
d0 i + d1i z 1
Each first order and second order section is realized either in direct form-I structure or in
direct form-II structure and the individual sections are connected in parallel to obtain the
over all system as shown in Figure 4.13. As the filter operation is performed in parallel, i.e.
the processing is performed simultaneously, the parallel form structure is used for high speed
filtering application.
The difficulty with this method is expressing the transfer function in partial fraction
form is not easy for higher order systems.
M
bk z k
k
M
1
= bk z
k 0
H ( z) = N N = H z (z ) H p ( z)
1+ ak z k k 0 1 +
ak z k
k 1 k 1
M
where H z (z) = bk z k = Zeros
k 0
1
H p (z) = N
= Poles
1+ ak z k
k 1
1 Yp (z )
H p (z ) = N
=
X p (z)
1+ ak z k
k =1
or X p (z) = Yp ( z ) + ak z k Yp ( z )
k 1
Taking the inverse Z-transform on both sides and rearranging it, we get
N
y p (n) = x p (n) ak y p ( n k )
k 1
The output of the sub-transfer function Hz(z) is the input to the sub-transfer function Hp(z).
So yz(n) = xp(n).
While realizing the IIR system using the lattice structure, the zeroes, i.e. Hz(z) should
be realized first and then the poles, i.e. Hp(z) which is realized in cascade.
For the realization of the poles, a lattice structure consists of two paths, xp(n) and x¢p(n)
through which the input xp(n) or yz(n) is processed. However, those two different paths are
opposite in direction to each other. A single-stage lattice structure for a pole is shown in
Figure 4.14.
292 h Digital Signal Processing
Substituting the value of x p1 (n) in the expression for xp(n), we have
Therefore, the overall lattice structure for a second order IIR system (both poles and zeros
are of second order) can be in general, realized as shown in Figure 4.16.
In a similar fashion, the (M – 1)th order or (N – 1)th order IIR system can be realized
by using the lattice structure.
System Realization h 293
Figure 4.16 A general realization of second order IIR system using the all-zero-all-pole lattice structure.
EXAMPLE 4.3 Determine the lattice coefficients corresponding to an IIR filter described
2 1 1
by y( n) y( n 1) + y(n 2) = x (n) + x ( n 1) and realize it.
5 5 4
Solution: The given system described by the difference equation
2 1 1
y( n) = y( n 1) y( n 2) + x (n) + x ( n 1)
5 5 4
has first order zeroes and second order poles. Hence, the proposed lattice structure is given
in Figure 4.17.
Hence, the lattice structure realization of the given IIR filter is shown in Figure 4.18.
The realization obtained in Figure 4.18 is called all-zero-all-pole lattice structure
realization.
The ladder structure realization of the above equation for H(z) is shown in Figure 4.19(a).
Figure 4.19 (a) Ladder structure realization of IIR system for case-I (b) Ladder structure realization of
IIR system for case-II.
CASE-II: If the order of both the numerator and denominator polynomials is equal, that is
bN z N + ... + b3 z 3 + b2 z 2 + b1 z 1 + b0
H ( z) =
aN z N + ... + a3 z 3 + a2 z 2 + a1 z 1 + a0
then, the transfer function for a ladder structure is shown below.
1
H ( z) = B 0 +
1
C1z 1 +
1
B1 + 1
C2 z 1 +
1
B2 +
C3 z 1
+ ...
The ladder structure realization of the above equation for H(z) is shown in Figure 4.19(b).
3 z 2 + 5z + 4
H ( z) =
z 2 + 6z + 8
using ladder structure.
3 z 2 + 5z + 4 3 + 5 z 1 + 4 z 2 4 z 2 + 5 z 1 + 3
Solution: Given H ( z) = = =
z 2 + 6z + 8 1 + 6 z 1 + 8 z 2 8 z 2 + 6 z 1 + 1
Here, the negative order of the numerator and denominator is equal. So it falls under case-II.
Performing sequential division operation.
1 1 4
B0 = , C1 = 4, B1 = , C2 = and a2 =3
2 2 3
Hence, the required transfer function for realization is
1 1
H (z ) = +
2 1
4z 1 +
1 1
+
2 4 1 1
z +
3 3
Thus, the realization of the given IIR filter using the ladder form structure is shown in
Figure 4.20.
System Realization h 297
5z 3 + 3 z 2 + 4 z + 2
H (z ) =
z [2 z 2 + 3z + 1]
using ladder structure
Solution: Given
5z 3 + 3z 2 + 4 z + 2 z 3 [5 + 3z 1 + 4z 2 + 2z 3 ] 2 z 3 + 4z 2 + 3z 1 + 5
H (z ) = = =
z [2z 2 + 3z + 1] z 3 [2 + 3z 1 + z 2 ] z 2 + 3z 1 + 2
Here the negative order of the numerator polynomial is greater than that of the denominator.
So it falls under case-I.
Performing the sequential division operation
1 4 25 169 8
B1 = 2, C1 = , B 2 = , C2 = , B3 = , C3 =
2 5 26 40 65
Hence, the required transfer function for realization is
1
H (z) = 2z 1 +
1 1
+
2 4 1
z 1 +
5 25 1
+
26 169 1 1
z +
40 8
65
298 h Digital Signal Processing
Thus, the realization of the given IIR filter using the ladder form structure is shown in Figure 4.21.
EXAMPLE 4.6 Obtain the direct form-I, direct form-II, cascade and parallel form realiza-
tions of the LTI system governed by the equation
13 9 1
y(n) = y( n 1) y( n 2) y( n 3) + x ( n) + 4x (n 1) + 3x (n 2)
12 24 24
Solution:
Direct form-I
13 9 1
Given y(n) = y( n 1) y( n 2) y( n 3) + x ( n) + 4x (n 1) + 3x (n 2)
12 24 24
Taking Z-transform on both sides, we get
13 1 9 2 1 3
Y (z ) = z Y (z) z Y (z ) z Y (z ) + X (z) + 4z 1 X (z ) + 3z 2 X (z )
12 24 24
The direct form-I structure can be obtained from the above equation as shown in Figure 4.22.
Direct form-II
Taking Z-transform of the given difference equation, we have
13 1 9 2 1 3
Y (z ) = z Y (z) z Y (z ) z Y (z ) + X ( z) + 4z 1 X (z ) + 3z 2 X (z )
12 24 24
System Realization h 299
13 1 9 2 1 3
i.e. Y ( z) + z Y (z ) + z Y ( z) + z Y (z) = X ( z ) + 4z 1 X ( z ) + 3z 2 X (z )
12 24 24
13 1 9 2 1 3
i.e. Y ( z) 1 + z + z + z = X ( z ) [1 + 4z 1 + 3z 2 ]
12 24 24
Therefore, the transfer function of the system is
Y (z ) 1 + 4 z 1 + 3 z 2
H ( z) = =
X ( z) 1 + (13/12) z 1 + (9/24) z 2 + (1/24) z 3
Y (z ) Y (z ) W (z )
Let =
X ( z ) W ( z) X ( z)
W ( z) 1
where =
X (z ) 1 + (13/12) z + (9/24) z 2 + (1/24) z 3
1
300 h Digital Signal Processing
Y ( z)
and = 1 + 4z 1 + 3z 2
W (z )
On cross multiplying the above equations, we get
13 1 9 2 1 3
W ( z ) 1 + z + z + z = X (z )
12 24 24
13 1 9 2 1 3
i.e. W ( z ) = X ( z) z W (z ) z W ( z) z W ( z)
12 24 24
and Y ( z) = W (z ) + 4 z 1 W ( z) + 3z 2W ( z)
The above equations for W(z) and Y(z) can be realized by a direct form-II structure as shown
in Figure 4.23.
Cascade form
Y ( z) 1 + 4z 1 + 3z 2
The transfer function is H ( z ) = =
X ( z ) 1 + (13/12) z 1 + (9/24) z 2 + (1/24) z 3
Factorizing the numerator and denominator, we have
(1 + z 1 ) (1 + 3z 1 )
H ( z) =
[1 + (1/2) z 1 ] [1 + (1/3) z 1 ] [1 + (1/4) z 1 ]
Since there are three first order factors in the denominator of H(z), H(z) can be expressed as
product of three sections.
System Realization h 301
1 + z 1 1 + 3z 1 1
where H1 (z ) = , H ( z ) = and H3 ( z) =
1 + (1/2) z 1 1 + (1/3)z 1 1 + (1/4)z 1
2
The transfer function H1(z) can be realized in direct form-II structure as shown in Figure 4.24(a).
Y1 ( z ) Y ( z) W1 (z) 1 + z 1
Let H1 (z ) = = 1 . =
X ( z) W1 ( z) X ( z ) 1 + (1/2)z 1
W1 ( z) 1 Y (z )
where = 1
and 1 = 1 + z 1
X ( z) 1 + (1/2) z W 1 ( z )
1 1
\ W1 ( z) = X ( z ) z W1 (z)
2
The transfer function H2(z) can be realized in direct form-II structure as shown in Figure 4.24(b).
Y2 (z ) Y (z ) . W2 (z ) 1 + 3z 1
Let H 2 (z ) = = 2 =
Y1 (z) W2 (z) Y1 (z ) 1 + (1/3)z 1
W2 (z) 1 Y (z )
where = 1
and 2 = 1 + 3 z 1
Y1 ( z ) 1 + (1/3) z W2 ( z)
302 h Digital Signal Processing
Figure 4.24 Direct form-II structure of (a) H1(z), (b) H2(z) and (c) H3(z) (Example 4.6).
1 1
\ W2 (z) = Y1 (z) z W2 (z)
3
and Y2 ( z ) = W2 (z) + 3z 1W2 (z )
The transfer function H3(z) can be realized in direct form-II structure as shown in Figure 4.24(c).
Y ( z) 1
Let H 3 ( z) = =
Y2 ( z) 1 + (1/4) z 1
1 1
\ Y (z) = Y2 (z) z Y (z)
4
The cascade structure of the given system is obtained by connecting the individual sections
shown in Figures 4.24(a), (b) and (c) in cascade as shown in Figure 4.25.
Parallel form
(1 + z 1 ) (1 + 3z 1 )
Consider the equation H ( z) =
[1 + (1/2) z 1 ] [1 + (1/3) z 1 ] [1 + (1/4) z 1 ]
By partial fraction expansion, we have
A B C
H (z ) = + +
1 + (1/2) z 1 1 + (1/3) z 1 1 + (1/4) z 1
System Realization h 303
(1 + z 1 )(1 + 3z 1 ) (1 2) (1 6) 5
A= z 1 = 2
= = = 30
1 1 1 1 2 2 1.1
1 + z 1 + z 1 1
3 4 3 4 3 2
(1 + z 1 ) (1 + 3z 1 ) (1 3) (1 9) 16
B= z 1 = 3
= = = 128
1 1 1 1 3 3
1.1
1 + z 1 + z 1 1
2 4 2 4 2 4
(1 + z 1 ) (1 + 3z 1 ) (1 4) (1 12) 33
C= z 1 4
= = = 99
1 1 1 1 4 1
1 + z 1 + z
1 2 1 1 .
2 3 3 3
30 128 99
\ H ( z) = +
1 1
1 + (1/2) z 1 + (1/3) z 1 + (1/4) z 1
Y ( z)
Let H ( z) =
X (z )
Y ( z) 30 128 99
\ = +
1 1
X ( z ) 1 + (1/2) z 1 + (1/3) z 1 + (1/3) z 1
30 128 99
\ Y ( z) = 1
X ( z) 1
X (z ) + X (z )
1 + (1/2) z 1 + (1/3) z 1 + (1/4) z 1
Let Y ( z) = Y1 ( z ) + Y2 ( z ) + Y3 (z)
30 128 99
where Y1 (z ) = X ( z ); Y2 (z ) = X ( z ) and Y3 ( z) = X (z )
1 + (1/2) z 1 1 + (1/3) z 1 1 + (1/4) z 1
Y1 ( z) 30 Y (z) 128
Let H1 ( z ) = = ; H 2 (z ) = 2 =
X ( z ) 1 + (1/2) z 1 X (z ) 1 + (1/2) z 1
Y3 (z ) 99
and H3 (z ) = =
X ( z ) 1 + (1/4) z 1
The transfer function H1(z) can be realized in direct form-I structure as shown in Figure 4.26(a).
Y1 ( z) 30
Let H1 ( z ) = =
X ( z ) 1 + (1/2) z 1
Figure 4.26 Direct form-I structure of (a) H1(z), (b) H2(z) and (c) H3(z) (Example 4.6).
The transfer function H2(z) can be realized in direct form-I structure as shown in Figure 4.26(b).
Y2 ( z ) 128
Let H2 (z ) = =
X ( z) 1 + (1/3) z 1
1 1
Y2 ( z ) = 128 X ( z ) z Y2 (z )
3
The transfer function H3(z) can be realized in direct form-I structure as shown in Figure 4.26(c).
Y3 ( z ) 99
Let H 3 (z) = =
X ( z) 1 + (1/4) z 1
On cross multiplying and rearranging, we get
1 1
Y3 ( z) = 99 X ( z) z Y3 (z)
4
The overall structure is obtained by connecting the individual sections in Figures 4.26(a), (b)
and (c) in parallel as shown in Figure 4.27.
EXAMPLE 4.7 Find the direct form-I and direct form-II realizations of a discrete-time
system represented by the transfer function
3z 3 5z 2 + 9z 3
H ( z) =
[z (1/2)][z 2 z + (1/3)]
Y ( z)
Solution: Let H ( z) =
X (z )
where Y(z) = Output and X(z) = input
System Realization h 305
Y (z ) 3z 3 5z 2 + 9z 3 3 z 3 5z 2 + 9z 3
\ H ( z) = = =
X ( z) [z (1/2)] [z 2 z + (1/3)] z 3 (3/2)z 2 + (5/6) z (1/6)
z 3 [3 5z 1 + 9z 2 3z 3 ] 3 5z 1 + 9z 2 3z 3
= =
z 3 [1 (3/2) z 1 + (5/6) z 2 (1/6) z 3 ] 1 (3/2) z 1 + (5/6) z 2 (1/6) z 3
Direct form-I
On cross multiplying the above equation for Y(z)/X(z), we have
3 1 5 1
Y (z ) z Y ( z) + z 2Y ( z) z 3Y ( z ) = 3X ( z) 5z 1 X ( z) + 9z 2 X ( z) 3z 3 X ( z)
2 6 6
3 1 5 1
\ Y ( z) = z Y (z) z 2Y (z ) + z 3Y ( z) + 3X ( z ) 5z 1 X ( z) + 9z 2 X ( z) 3 z 3 X ( z)
2 6 6
306 h Digital Signal Processing
The direct form-I structure of the above equation for Y(z) can be obtained as shown in Figure 4.28.
Direct form-II
Y (z ) 3 5z 1 + 9z 2 3z 3
The equation for H(z) is H (z) = =
X ( z) 1 (3/2) z 1 + (5/6) z 2 (1/6) z 3
Let Y (z) Y ( z) . W ( z ) 3 5z 1 + 9z 2 3z 3
H (z ) = = =
X ( z) W ( z) X ( z ) 1 (3/2) z 1 + (5/6) z 2 (1/6) z 3
W (z ) 1
where =
X (z ) 1 (3/2) z + (5/6) z 2 (1/6) z 3
1
Y (z )
and = 3 5z 1 + 9z 2 3 z 3
W (z )
3 1 5 1
W (z ) z W ( z ) + z 2W ( z ) z 3W (z ) = X ( z )
2 6 6
3 1 5 1
i.e. W ( z ) = X (z ) + z W ( z ) z 2W (z ) + z 3W ( z)
2 6 6
System Realization h 307
EXAMPLE 4.8 Find the digital network in direct and transposed form for the system
described by the difference equation
y(n) = 2x(n) + 0.3 x( n 1) + 0.5 x (n 2) 0.7 y( n 1) 0.9 y(n 2)
Direct form
The direct form-I digital network can be realized using the above equation for Y(z) as shown
in Figure 4.30.
Transposed form
On rearranging the equation for Y(z), we get
\ Y ( z) 2 + 0.3 z 1 + 0.5 z 2
H (z ) = =
X (z ) 1 + 0.7z 1 + 0.9 z 2
Y (z ) Y (z ) . W ( z ) 2 + 0.3z 1 + 0.5z 2
Let = =
X ( z) W (z ) X ( z ) 1 + 0.7z 1 + 0.9z 2
W ( z) 1 Y ( z)
where = 1 2
and = 2 + 0.3 z 1 + 0.5 z 2
X ( z) 1 + 0.7 z + 0.9z W ( z )
The transposed form of digital network is realized using equations for W(z) and Y(z) as
shown in Figure 4.31. The recovered realization structure and the transposed forms structure
obtained from the direct form-II are shown in Figure 4.31[(b) and (c)].
System Realization h 309
Figure 4.31 (a) Direct form-II structure (b) Recovered realization structure (c) Transposed form structure
(Example 4.8).
EXAMPLE 4.9 Realize the given system in cascade and parallel forms
1 + (1/3) z 1
H (z ) =
[1 (1/2) z 1 + (1/3) z 2 ] [1 (1/3) z 1 + (1/2) z 2 ]
Solution:
Cascade form
Let us realize the system as cascade of two second order sections.
1 + (1/3) z 1 1
H ( z) = = H1 (z ) H2 ( z )
1 (1/2) z (1/ 3) z 1 (1/3) z + (1/2) z 2
1 2 1
310 h Digital Signal Processing
1 + (1/3) z 1
where H1 ( z ) =
1 (1/2) z 1 (1/ 3) z 2
1
and H2 (z ) = 1
1 (1/3) z + (1/2) z 2
Y1 ( z ) Y ( z) W1 ( z) 1 + (1/3) z 1
Let H1 (z ) = = 1 =
X1 ( z ) W1 ( z) X1 ( z ) 1 (1/2) z 1 + (1/3) z 2
W1 ( z ) 1
where =
X1 ( z) 1 (1/2) z + (1/3) z 2
1
Y1 ( z ) 1
and = 1 + z 1
W1 ( z ) 3
On cross multiplying the above equations, we get
1 1 1
W1 ( z) z W1 ( z ) + z 2W1 ( z ) = X1 ( z)
2 3
1 1 1
i.e. W1 ( z) = X1 ( z ) + z W1 ( z ) z 2W1 ( z)
2 3
1 1
and Y1 ( z) = W1 ( z) + z W1 ( z)
3
Using the above equations for W1(z) and Y1(z), the system H1(z) can be realized in direct
form-II structure as shown in Figure 4.32(a).
Figure 4.32 Direct form-II structure of (a) H1(z) and (b) H2(z) (Example 4.9).
System Realization h 311
Y2 ( z ) 1
Let H 2 (z ) = =
Y1 ( z ) 1 1
1 z 1 + z 2
3 2
On cross multiplying, we get
1 1 1
Y2 ( z ) z Y2 ( z ) + z 2Y2 ( z ) = Y1 ( z)
3 2
1 1 1
i.e. Y2 ( z) = Y1 ( z ) + z Y2 (z ) z 2Y2 ( z)
3 2
The above equation for Y2(z) can be realized in direct form-II structure as shown in Figure 4.32(b).
The cascade structure of H(z) is obtained by connecting the structures of H1(z) and
H2(z) in cascade as shown in Figure 4.33.
Parallel realization
1 + (1/3) z 1
Given H (z ) =
[1 (1/2) z 1 + (1/3) z 2 ] [1 (1/3) z 1 + (1/2) z 2 ]
z 1 [z + (1/3)]
=
z 4 [z 2 (1/2) z + (1/3)][ z 2 (1/3) z + (1/2)]
z 3 [ z + (1/3)]
=
[ z 2 (1/2) z + (1/3)] [ z 2 (1/3) z + (1/2)]
z [z 3 + (1/3) z 2 ]
=
[z 2 (1/2) z + (1/3)][ z 2 (1/3) z + (1/2)]
312 h Digital Signal Processing
H (z) [z 3 + (1/3) z 2 ] Az + B Cz +D
= 2 = 2 + 2
z [z (1/2) z + (1/3)] [z (1/3) z + (1/2)] z (1/2) z + (1/3)
2
z (1/3) z + (1/2)
On cross multiplying the above equation, we get
1 2 1 1 1 1 1 1 1
= A z3 A z + A z + B z 2 B z + B + Cz 3 Cz 2 + Cz + Dz 2 Dz + D
3 2 3 2 2 3 2 3
1 1 1 1 1 1 1 1
= (A + C ) z 3 + (B + D A C) z2 + A B + C D z + B + D
3 2 2 3 3 2 2 3
On equating the coefficients on both sides and solving for A, B, C and D, we get
13 14 2 21
A= , B= , C = and D =
11 11 11 11
(13/11) (14/11) z 1
where Y1 ( z) = X ( z)
1 (1/2) z 1 + (1/3) z 2
(2/11) + (21/11) z 1
and Y2 (z ) = X ( z)
1 (1/3)z 1 + (1/2) z 2
Y1 ( z ) Y ( z) W1 ( z) (13/11) (14/11) z 1
Let H1 (z ) = = 1 . =
X ( z) W1 ( z) X ( z ) 1 (1/2) z 1 + (1/3) z 2
System Realization h 313
W1 ( z ) 1
where =
X ( z) 1 (1/2) z + (1/3) z 2
1
Y1 ( z ) 13 14 1
and = z
W1 ( z ) 11 11
1 1 1
W1 ( z) z W1 ( z) + z 2W1 (z ) = X ( z )
2 3
1 1 1
i.e. W1 ( z) = X (z) + z W1 ( z ) z 2W1 ( z )
2 3
13 14 1
and Y1 ( z) = W1 ( z ) z W1 ( z)
11 11
The direct form-II structure of system H1(z) can be realized using the above equations for
W1(z) and Y1(z) as shown in Figure 4.34(a).
Figure 4.34 Direct form-II structure of (a) H1(z) and (b) H2(z) (Example 4.9).
Y2 (z ) Y (z ) W2 ( z) (2/11) + (21/11) z 1
Let H2 (z ) = = 2 . =
X ( z) W2 ( z) X ( z) 1 (1/3) z 1 (1 / 2) z 2
W2 ( z ) 1
where =
X ( z) 1 (1/3) z + (1/2) z 2
1
Y2 ( z ) 2 21 1
and = + z
W2 ( z) 11 11
314 h Digital Signal Processing
1 1
W2 (z) z 1W2 (z ) + z 2W2 (z ) = X ( z)
3 2
1 1 1
i.e. W2 ( z) = X ( z ) + z W2 ( z ) z 2W2 (z)
3 2
2 21 1
and Y2 (z ) = W2 ( z ) + z W2 (z )
11 11
The direct form-II structure of the system H2(z) can be realized using the above equations for
W2(z) and Y2(z) as shown in Figure 4.34(b).
The parallel form structure of H(z) is obtained by connecting the direct form-II
structures of H1(z) and H2(z) in parallel as shown in Figure 4.35.
i.e. Y ( z) [1 + 2z 1 z 2 ] = X (z )
Y ( z) 1 1
H (z ) = = 1 2
=
X (z ) 1 + 2 z z (1 0.414 z ) (1 + 2.414 z 1 )
1
Let H ( z) = H1 (z) H 2 ( z )
1 1
where H1 (z ) = 1
and H 2 (z ) =
1 0.414 z 1 + 2.414 z 1
Cascade realization
Y1 ( z ) 1
Let H1 ( z ) = =
X ( z) 1 0.414 z 1
On cross multiplying, we get
Y 1 ( z) 0.414 z 1Y1 ( z ) = X ( z )
(a) (b)
Figure 4.36 Direct form-I structure of (a) H1(z) and (b) H2(z) (Example 4.10).
316 h Digital Signal Processing
Y ( z) 1
Let H2 (z ) = =
Y1 ( z ) 1 + 2.414 z 1
On cross multiplying, we get
Y ( z ) + 2.414z 1Y (z ) = Y1 ( z )
Parallel realization
Y (z ) 1 A B
H ( z) = = = +
X ( z) (1 0.414 z 1 ) (1 + 2.414 z 1 ) 1 0.414 z 1 1 + 2.414 z 1
1
where A = (1 0.414 z 1 ) H ( z ) 1 = = 0.146
z 1 = 1
0.414 1 + 2.414
0.414
1
B = (1 + 2.414 z 1 ) H ( z ) 1 1 = = 0.853
z = 1
2.414 1 + 0.414
2.414
Y ( z) 0.146 0.853
\ = +
X ( z ) 1 0.414 z 1 1 + 2.414 z 1
\ 0.146 0.853
Y (z ) = X (z ) + X (z )
1 0.414 z 1 1 + 2.414 z 1
System Realization h 317
Let Y ( z) = Y1 ( z) + Y2 (z)
Y1 ( z ) 0.146 Y2 ( z ) 0.853
\ = H1 ( z ) = and = H2 (z ) =
X ( z) 1 0.414 z 1 X ( z) 1 + 2.414 z 1
(a) (b)
Figure 4.38 Direct form-I structure of (a) H1(z) and (b) H2(z) (Example 4.10).
Y2 ( z ) 0.853
=
X ( z) 1 + 2.414 z 1
3 + 2 z 1 + z 2
H ( z) =
[1 + (1/3) z 1 ] [1 (1/3) z 1 ] [1 + (1/3) z 1 ]
318 h Digital Signal Processing
3 + 2 z 1 + z 2
Solution: Given H ( z) =
[1 + (1/3) z 1 ] [1 (1/3) z 1 ] [1 + (1/3) z 1 ]
The roots of the numerator polynomial
2 4 12
z 1 =
6
are complex conjugate. Hence, H(z) can be realized as cascade of one first order and one second
order system.
\ 1 3 + 2 z 1 + z 2
H ( z) =
1 (1/3) z 1 [1 + (1/3) z 1 ] [(1 + (1/3) z 1 ]
1 3 + 2 z 1 + z 2
=
1 (1/3) z 1 + (2/3) z 1 + (1/9) z 2
1
Y1 ( z) 1
Let H1 ( z ) = =
X ( z) 1 (1/3) z 1
The direct form-II structure of H1(z) can be obtained from the equation for Y1(z) as shown in
Figure 4.40(a).
Figure 4.40 Direct form structure of (a) H1(z) and (b) H2(z) (Example 4.11).
Y (z ) 3 + 2 z 1 + z 2
Let H2 (z ) =
Y1 ( z) 1 + (2/3) z 1 + (1/9) z 2
and Y (z ) Y ( z) W1 ( z)
=
Y1 ( z) W1 ( z) Y1 ( z )
W1 ( z) 1 Y (z )
where = and = 3 + 2 z 1 + z 2
Y1 ( z) 1 + (2/3) z + (1/9) z 2
1 W1 ( z )
2 1 1
W1 ( z) + z W1 ( z) + z 2W1 (z ) = Y1 ( z)
3 9
2 1 1
i.e. W1 ( z) = Y1 ( z) z W1 ( z) z 2W1 ( z )
3 9
The direct form-II structure of H2(z) can be obtained by using the above equations for W1(z)
and Y(z) as shown in Figure 4.30(b).
320 h Digital Signal Processing
The cascade realization of H(z) is obtained by connecting the direct form-II structures
of H1(z) and H2(z) as shown in Figure 4.41.
(1 + z 1 )3
H ( z) =
[1 (1/2) z 1 ][1 + z 1 + (1/3) z 2 ]
Given (1 + z 1 )3
H ( z) =
[1 (1/2) z 1 ] [1 + z 1 + (1/3) z 2 ]
1 1 (4/3)
z 1 =
2
are complex conjugate. Hence, the system has to be realized as the cascading of one first
order section and one second order section.
(1 + z 1 ) (1 + z 1 ) 2
\ H (z ) =
[1 (1/2) z 1 ] [1 + z 1 + (1/3) z 2 ]
(1 + z 1 ) (1 + 2 z 1 + z 2 )
=
[1 (1/2) z 1 ] [1 + z 1 + (1/3) z 2 ]
System Realization h 321
Let H ( z ) = H1 ( z ) H 2 ( z)
(1 + z 1 ) (1 + 2 z 1 + z 2 )
where H1 ( z ) = and H ( z ) =
[1 (1/2) z 1 ] [1 + z 1 + (1/3) z 2 ]
2
Y1 ( z) 1 + z 1
Let H1 ( z ) = =
X ( z) 1 (1/2) z 1
Let Y1 ( z ) Y ( z) W1 ( z ) 1 + z 1
= 1 =
X ( z) W1 ( z ) X ( z) 1 (1/2) z 1
W1 ( z) 1 Y ( z)
where = and 1 = 1 + z 1
X ( z) 1 (1/2) z 1 W1 ( z)
1 1
W1 ( z) z W1 (z ) = X ( z)
2
1 1
i.e. W1 ( z) = X ( z) + z W1 (z)
2
and Y1 ( z ) = W1 ( z ) + z 1W1 (z )
The direct form-II structure of H1(z) can be realized using the above equations for W1(z) and
Y1(z) as shown in Figure 4.42(a).
Figure 4.42 Direct form-II structure of (a) H1(z) and (b) H2(z) (Example 4.12).
Y ( z) 1 + 2 z 1 + z 2
Let H 2 ( z) = =
Y1 ( z) 1 + z 1 + (1/3) z 2
322 h Digital Signal Processing
Y (z ) Y ( z ) W2 ( z)
and =
Y1 ( z ) W2 ( z ) Y1 ( z )
W2 ( z) 1 Y ( z)
where = 1 2
and = 1 + 2 z 1 + z 2
Y1 ( z ) 1 + z + (1/3) z W2 ( z)
1 2
i.e. W2 ( z) = Y1 ( z) z 1W2 ( z ) z W2 ( z )
3
and Y ( z) = W2 ( z ) + 2z 1 W2 ( z) + z 2W2 (z)
The direct form-II structure of H2(z) can be realized using the above equations for W2(z) and
Y(z) as shown in Figure 4.42(b).
The cascade realization of H(z) is obtained by connecting the direct form-II structures
of H1(z) and H2(z) in cascade as shown in Figure 4.43.
Parallel realization
(1 + z 1 )3
Given H ( z) =
[1 (1/2) z 1 ] [1 + z 1 + (1/3) z 2 ]
z 3 (z + 1)3 z 3 + 3z 2 + 3z + 1
= =
1 1 1 1 1
z 1 z z 2 z 2 + z + z3 + z 2 z
2 3 2 6 6
System Realization h 323
1 2 1 1
z3 + z z ) z3 + 2 z2 + 3 z + 1 ( 1
2 6 6
1 1 1
z3 + z2 z
2 6 6
5 2 19 7
z + z+
2 6 6
(81/26) z 1
where Y1 ( z ) = X (z )
1 (1/2) z 1
(8/13) z 1 (10/39) z 2
and Y2 ( z) = X (z )
1 + z 1 + (1/3) z 2
Y1 ( z) Y ( z)
Also = H1 (z) and 2 = H 2 (z )
X (z ) X (z )
On cross multiplying the above equations for Y1(z) and Y2(z), we have
1 1 81 1
Y1 ( z ) z Y1 ( z ) = z X (z )
2 26
81 1 1
i.e. Y1 ( z ) = z X (z ) + z 1Y1 ( z)
26 2
1 2 8 10 2
and Y2 ( z) + z 1Y2 (z ) + z Y2 (z) = z 1 X (z ) z X (z )
3 13 39
324 h Digital Signal Processing
8 1 10 2 1
\ Y2 (z ) = z X (z) z X (z ) z 1Y2 (z ) z 2Y2 ( z )
13 39 3
Using the equation for Y1(z), the direct form-I structure of H1(z) can be drawn as shown in
Figure 4.44(a).
Using equation for Y2(z) the direct form-I structure of H2(z) can be drawn as shown in
Figure 4.44(b).
Figure 4.44 Direct form-I structure of (a) H1(z) and (b) H2(z) (Example 4.12).
The parallel structure of H(z) is obtained by connecting the direct form-I structures of H1(z)
and H2(z) as shown in Figure 4.45.
where h(n) = 0 for n < 0 and n ³ N. This implies that, the impulse response selects only N
samples of the input signal. In effect, the system acts as a window that views only the most
recent N input signal samples in forming the output. It neglects or simply forgets all prior
input samples. Thus, a FIR system has a finite memory of length N samples.
A system whose output depends only on the present and past inputs and not on past
outputs is called a non-recursive system. Hence, for non-recursive systems, the output y(n) is
given by
y(n) = F[ x (n), x (n 1), ..., x (n M )]
Hence, in general, an FIR system is of non-recursive type.
System Realization h 325
In non-recursive system, y(n0) can be computed immediately without having y(n0 – 1),
y(n0 – 2), ... . Hence, the output of non-recursive system can be computed in any order.
[i.e. y(50), y(5), y(2), y(100), ...]
i.e. in general, in Finite Impulse Response (FIR) systems, the output at any instant depends
only on the present and the past inputs. It does not depend on the past outputs.
Taking Z-transform on both sides of equation for y(n), we get
N 1
y(z) = bk z k X ( z )
k 0
326 h Digital Signal Processing
" +b
N 1
Y ( z)
H (z ) =
X (z )
= bk z k = b0 + b1z 1 + b2 z 2 + N 1 z ( N 1)
k 0
Also, we know that H(z) = Z[h(n)], where h(n) is the impulse response of the FIR system.
Let us replace the index n by k.
" + h(n 1) z
N 1
\ H (z ) = h( k ) z k = h(0) + h(1) z 1 + h(2) z 2 + ( N 1)
k 0
On comparing the above two equations for H(z), we can say that bk = h(k) for k = 0, 1, 2, ...,
(N – 1).
The above equations for Y(z) and H(z) can be viewed as a computational procedure to
determine the output sequence y(n) from the input sequence x(n). These equations can be
used to construct the block diagram of the system using delays, adders and multipliers.
This block diagram is referred to as realization of the system or equivalently as a
structure for realizing the system.
The different types of structures for realizing FIR systems are:
1. Direct form realization 2. Transposed form realization
3. Cascade realization 4. Lattice structure realization
5. Linear phase realization
The direct form structure using the above equation for Y(z) can be drawn as shown in
Figure 4.46.
The direct form realization of Figure 4.46 is often called a transversal or tapped-delay-
line filter because the output is just tapping the delayed inputs. This structure is also called a
canonical structure because the number of delay elements used and the order of the filter is
the same.
System Realization h 327
Y ( z) = 2X ( z) + 4z 1 X (z) 3 z 2 X (z )
The direct form structure, the recovered realization structure and the transposed structure are
shown in Figure 4.48 [(a), (b) and (c) respectively].
328 h Digital Signal Processing
Figure 4.47 (a) A general direct form structure of FIR system (b) Transposed structure of FIR system.
Figure 4.48 (a) Direct form structure (b) Recovered realization structure and (c) Transposed structure
(Example 4.13).
The block diagram representation of a cascade form structure is shown in Figure 4.49.
Each second order factor of the above equation for H(z) can be realized in direct form and
all the second order systems are connected in cascade to realize H(z) as shown in Figure 4.50.
When N is even, then (N – 1) will be odd and so H(z) will have one first order factor
and (N – 2)/2 second order factors.
When N is even, then
N 1
3 (C0i + C1i z 1 + C2i z 2 )
N/2
H ( z) = bk z k = (C0 i + C1i z 1 )
i2
k 0
Similarly, the two-stage lattice structure is shown in Figure 4.53. The output from the second
stage of Figure 4.53, which is the second order FIR system is given as follows:
y2 (n) = y1 (n) + K 2 y1 (n 1)
y2 (n) = K 2 y1 (n) + y1 (n 1)
System Realization h 331
Substituting the values of y1(n) and y¢1(n) in the above equations for y2(n) and y¢2(n) we get
2
or y2 (n) = B2 (k ) x(n k )
k 0
Therefore, in general, the output of the mth order FIR system by using the lattice structure
can be written as:
m
ym (n) = B m ( k ) x (n k )
k 0
The above equation is the convolution sum. Using the convolution property it can be
re-written as:
Ym (z ) = B m (z ) X ( z )
Ym ( z)
B m (z) =
X (z )
The FIR filter having a system function given above is called the forward prediction.
332 h Digital Signal Processing
EXAMPLE 4.14 Realize a system with H(z) = 5 + 3z–1 by using lattice structure.
Y (z )
Solution: Given H ( z) = = 5 + 3z 1
X (z )
3
= 5[x (n) + x ( n 1)] = 5 p(n)
5
3
This is of first order. So comparing p(n) = x ( n) + x (n 1) with the standard equation for first
5
order lattice structure, i.e. with y(n) = x(n) + K1x(n – 1), we get
3
K1 =
5
Therefore, the lattice structure realization of the given first order FIR system is as shown in
Figure 4.54.
EXAMPLE 4.15 Determine the lattice coefficients corresponding to the FIR system with
7 1 3 2
the system function H ( z) = 1 + z + z and realize it.
9 5
Y ( z) 7 3
Solution: Given H ( z) = = 1 + z 1 + z 2
X ( z) 9 5
7 1 3
\ Y (z ) = X ( z ) + z X ( z ) + z 2 X ( z )
9 5
Taking inverse Z-transform on both sides, we get
7 3
y(n) = x (n) + x (n 1) + x ( n 2)
9 5
This corresponds to a second order system. Comparing this with the standard equation for
second order lattice structure, i.e. with y( n) = x (n) + K1 (1 + K 2 ) x (n 1) + K2 x ( n 2) , we get
3
K2 =
5
and 7
K1 (1 + K 2 ) =
9
7/9 35
or K1 = =
1 + (3/5) 72
Therefore, the lattice structure realization of the given FIR system is shown in Figure 4.55.
antisymmetric FIR system. Here we discuss symmetric FIR systems. The symmetric
condition may be viewed as
1. Odd symmetry
2. Even symmetry
The impulse response is symmetrical, i.e. h( k ) = h( N 1 k ) means
N N
h(0) = h ( N 1); h (1) = h( N 2); . . . ; h 1 = h
2 2
By using this symmetry condition, it is possible to reduce the number of multipliers required
for the realization of FIR system.
N 1
The impulse h will remain single.
2
Substituting these in the expression for Y(z), we have the direct form structure of linear
phase FIR system as
In Figure 4.57
Y0 = h0 [X (z) + z ( N 1) X (z )]; Y1 = h1 [z 1 X (z) + z ( N 2) X (z)]
( N 5)
( N 3)
Y N 5 = h N 5 z 2 X ( z ) + z 2 X ( z)
2 2
(N 3)
(N 1)
Y N 3 = h N 3 z 2 X (z ) + z 2 X ( z )
2 2
336 h Digital Signal Processing
Even symmetry
A function is said to have even symmetry if it has even number of samples and satisfies the
condition h(k) = h(N – 1 – k).
For example, if N = 8 (i.e. N is even), then a linear phase symmetric FIR system will
have
h(0) = h (8 1 0) = h (7), h (1) = h(8 1 1) = h(6), h(2) = h (8 1 2) = h (5)
and h(3) = h(8 1 3) = h(4)
In the case of even symmetry, since there is no central sample, a virtual central sample
is selected at k = (N – 1)/2. In this case virtual sample is at k = (8–1)/2 = 3.5.
The graphical representation of the above impulse responses for N = 8 is shown in
Figure 4.58.
" +h 1 N
Y (z ) = h0 [X (z) + z ( N 1) X (z )] + h1[z 1 X ( z) + z ( N 2) X (z )] + N [z 2
X (z) + z 2 X ( z )]
1
2
N 2 N
1
YN = hN z 2
X (z ) + z 2
X (z )
2 2
2 2
System Realization h 337
N 1 N
YN = hN z 2
X (z ) + z 2 X (z)
1 1
2 2
N 1
Y N 1 = h N 1 z 2 X (z)
2
2
EXAMPLE 4.16 Draw the direct form structure of the FIR system described by the
transfer function
1 1 3 2 1 3 1 4 1 5
H (z ) = 1 + z + z + z + z + z
5 4 3 7 6
Y (z ) 1 3 1 1 1
Solution: Let H (z) = = 1 + z 1 + z 2 + z 3 + z 4 + z 5
X ( z) 5 4 3 7 6
1 1 3 1 1 1
\ Y (z ) = X (z ) + z X (z ) + z 2 X (z ) + z 3 X (z ) + z 4 X (z ) + z 5 X (z )
5 4 3 7 6
The direct form structure of FIR system can be obtained directly from the above equation for
Y(z) as shown in Figure 4.60.
EXAMPLE 4.17 Realize the filter transfer function given by the expression below using
the direct form
H ( z) = (1 z 1 ) (1 + 2 z 1 3 z 2 )
Solution: Since the given filter transfer function has only the numerator part or zeros, it is
an FIR system. To realize in direct form, multiply the factors and obtain a single expression.
Y (z )
Given H ( z) = = (1 z 1 )(1 + 2z 1 3z 2 ) = 1 + z 1 5z 2 + 3z 3
X ( z)
On cross multiplying, we get
Y ( z) = X (z) + z 1 X (z ) 5z 2 X (z) + 3z 3 X (z )
The direct form realization of Y(z) is shown in Figure 4.61.
EXAMPLE 4.18 Realize the following systems with minimum number of multipliers.
1 1 1 2 2 1 3 1 4
(a) H (z ) = + z + z + z + z
3 5 3 5 3
1 1 1 1
(b) H (z ) = + z 1 + z 2 + z 3
2 4 4 2
1 1 1 2
(c) H ( z ) = 1 + z 1 + z 2 1 + 5 z + z
3
Solution:
1 1 1 2 2 1 3 1 4
(a) Given H (z ) = + z + z + z + z
3 5 3 5 3
By the definition of Z-transform, we get
1 1 2 1 1
Impulse response h( n) = , , , ,
3 5 3 5 3
Here h(n) satisfies the condition, h(n) = H(N – 1 – n) and so the impulse response
is symmetrical. Hence, the system has linear phase and can be realized with
minimum number of multipliers.
Y (z ) 1 1 2 1 1
Let H ( z) = = + z 1 + z 2 + z 3 + z 4
X ( z) 3 5 3 5 3
1 1 2 1 1
\ Y ( z) = X ( z ) + z 1 X ( z ) + z 2 X ( z ) + z 3 X ( z ) + z 4 X ( z )
3 5 3 5 3
1 1 2
= [ X ( z ) + z 4 X ( z)] + [ z 1 X ( z ) + z 3 X ( z )] + z 2 X ( z )
3 5 3
The direct form structure of linear phase FIR system is constructed using the above
equation for Y(z) as shown in Figure 4.62.
1 1 1 1
(b) Given H ( z) = + z 1 + z 2 + z 3
2 4 4 2
Y ( z) 1 1 1 1
Let H (z ) = = + z 1 + z 2 + z 3
X (z ) 2 4 4 2
340 h Digital Signal Processing
1 1 1 1
\ Y ( z) = X ( z) + z 1 X ( z ) + z 2 X ( z ) + z 3 X ( z)
2 4 4 2
1 1
= [ X (z) + z 3 X (z)] + [ z 1 X ( z) + z 2 X ( z)]
2 4
The direct form realization of H(z) with minimum number of multipliers (i.e. linear
phase realization) is obtained using the above equation for Y(z) as shown in Figure 4.63.
1 1
(c) Given H ( z ) = 1 + z 1 + z 2 1 + z 1 + z 2
3 5
The given system can be realized as cascade of two second order systems. Each system
can be realized with minimum number of multipliers (i.e. linear phase realization).
Let H ( z) = H1 (z) H 2 (z )
1 1 1
where H1 ( z ) = 1 + z + z 2 and H 2 (z ) = 1 + z 1 + z 2
3 5
Y1 ( z ) 1
Let H1 ( z ) = = 1 + z 1 + z 2
X ( z) 3
1 1
\ Y1 ( z ) = X ( z ) + z X (z) + z 2 X (z)
3
1 1
= [X (z ) + z 2 X (z)] + z X ( z)
3
The linear phase realization structure of H1(z) using the above equation for Y1(z) is
as shown in Figure 4.64(a).
System Realization h 341
Figure 4.64 Linear phase realization of (a) H1(z) and (b) H2(z) [Example 4.18(c)].
Y ( z) 1
Let H2 (z ) = = 1 + z 1 + z 2
Y1 ( z) 5
1 1
\ Y (z) = Y1 ( z) + z Y1 ( z ) + z 2Y1 (z )
5
1 1
= [Y1 (z ) + z 2Y1 (z )] + z Y1 ( z)
5
The linear phase realization structure of H2(z) using the above equation for Y(z) is
as shown in Figure 4.64(b).
The linear phase structure of H(z) is obtained by connecting the systems H1(z)
and H2(z) in cascade as shown in Figure 4.65.
4. What are the basic elements used to construct the block diagram of a discrete-time
system? Draw their symbols.
Ans. The basic elements used to construct the block diagram of a discrete-time
system are: Adder, Constant multiplier and Unit delay element. The symbols are
given below.
7. Write the general difference equation and transfer function of an IIR system.
Ans. In general, an IIR system is described by the difference equation
N M
y( n) = ak y ( n k ) + bk x (n k )
k 1 k 0
bk z k
Y (z ) k 0 b0 + b1 z 1 + b2 z 2 + "+b z M
+"+a z
M
H ( z) = = =
X ( z) N
1 + a1 z 1 + a2 z 2 N
1+ ak z k N
k 1
8. What are the factors that influence the choice of structure for realization of an LTI
system?
Ans. The major factors that influence the choice of structure for realization of
LTI system are: computational complexity, memory requirements and finite word
length effects. Other factors that influence the choice of realization are: whether the
structure lends itself to parallel processing or whether the computations can be
pipelined.
344 h Digital Signal Processing
17. Write the general difference equation and transfer function of an FIR system.
Ans. In general, an FIR system is described by the difference equation
System Realization h 345
N 1
y ( n) = bk x (n k )
k 0
"+b
N 1
Y (z )
H (z ) =
X ( z)
= bk z k = b0 + b1 z 1 + b2 z 2 + N 1 z
( N 1)
k 0
18. List the different types of structures for realizing FIR systems.
Ans. The different types of structures for realizing FIR systems are:
(a) Direct form realization (b) Transposed form realization
(c) Cascade realization (d) Lattice structure realization
(e) Linear phase realization
19. What is the advantage of linear phase realization of FIR systems?
Ans. The advantage of linear phase realization of FIR systems is that the system
can be realized with minimum number of delay elements.
REVIEW QUESTIONS
1. Discuss the basic elements used to construct the block diagram of discrete-time
systems.
2. Explain the factors that influence the choice of structure for realization of a LTI system.
3. Write the difference equations for FIR and IIR system and hence derive the transfer
functions of FIR and IIR systems.
4. Discuss the different methods of realization of IIR systems and explain how
conversion can be made from direct form-I structure to direct form-II structure.
5. Discuss the different methods of realization of FIR systems.
6. Compare FIR and IIR systems.
7. Compare cascade and parallel form realizations.
4. The number of multipliers required for the realization of FIR systems is reduced if
we choose
(a) direct form (b) cascade form
(c) parallel form (d) linear phase realization
PROBLEMS
1. Construct the block diagram and signal flow graph of a discrete-time system whose
input-output relations are described by the difference equation
(a) y( n) = 0.5x (n) + 0.5x ( n 1)
(b) y(n) = 0.25y( n 1) + 0.5x ( n) + 0.75x (n 1)
2. Find the digital network in direct and transposed form for the system described by
the difference equation
y( n) = x (n) 0.3x (n 1) 0.7x (n 2) + 0.6y(n 1) + 0.8y(n 2)
3. Determine the direct form-I and direct form-II realizations of the following LTI
systems.
(a) y(n) = 0.5y(n 1) + 0.25y(n 2) + 0.125y(n 3) + x( n) + 0.5x (n 1) + 0.75x (n 2)
3 3 1
(b) y(n) = y( n 1) + y( n 2) + y( n 3) + x ( n) + 3x (n 1) + 2x (n 2)
8 32 64
4. An LTI system is described by the difference equation
y(n) = a1 y( n 1) + x (n) + b1 x ( n 1)
Realize it in direct form-I structure and convert it to direct form-II structure.
5. Obtain the direct form-I, direct form-II, cascade and parallel realization of the
following LTI systems.
13 9 1
(a) y(n) = y( n 1) y(n 2) + y( n 3) + x (n) 4x ( n 1) + 3x ( n 2)
12 24 24
1 1 1 1
(b) y( n) = y( n 1) + y(n 2) + x ( n) + x (n 1) x ( n 2)
6 6 6 6
6. Realize the system in cascade and parallel forms
1 1
1+ z
(a) H (z) = 3
1 1 1
1 2z + z 2 1 z 1 + z 2
3 5
1 1
1+ z
(b) H ( z ) = 2
1 1 1
1 z + z 2 1 z 1 + z 2
4 2
348 h Digital Signal Processing
2z 2 + 3z + 4 z 3 + 3z 2 + 2z + 5
(a) H ( z) = (b) H ( z) =
z 2 + 5z + 7 2z2 + z + 4
10. Realize the second order IIR system using the transposed form structure
1 1 1 1
y ( n) + y(n 1) + y( n 2) = 2x ( n) + x (n 1) + x ( n 2)
2 4 3 5
11. Determine the lattice coefficients corresponding to the IIR filter described by
1 1 1
y( n)
y(n 1) + y( n 2) = x (n) + x ( n 1) and realize it.
2 7 5
12. Draw the direct form structure of the FIR system described by the transfer function
1 1 1 2 1 3 1 4 1 5
(a) H ( z) = 1 + z + z + z + z + z
3 2 4 5 7
1 1 1 2 1 3 1 4
(b) H ( z ) = 2 + z + z + z + z
2 4 3 6
1 1 3 2 1 3 1 4 1 5
(c) H ( z ) = 1 + z + z + z + z + z
2 4 4 2 8
13. Realize the following systems with minimum number of multipliers
(a) H (z) = 1 + 3z 1 + 2z 2 + 5z 3 + 2z 4 + 3z 5 + z 6
1 2 3 4 5 6 7 8
(b) H ( z) = 0.2 + 0.6z + 0.7z + 0.8z + 0.9z + 0.8z + 0.7z + 0.6z + 0.2z
(c) H (z) = 0.5 + 0.75z 1 + 0.8z 2 + 0.9z 3 + 2z 4 + 0.9z 5 + 0.8z 6 + 0.75z 7 + 0.5z 8
1 1 3 1 1
(d) H (z) = + z 1 + z 2 + z 3 + z 4
4 2 4 2 4
1 1
(e) H (z) = 1 + z 1 + z 2 1 + z 1 + z 2
2 4
System Realization h 349
1 1 1
(b) H (z) = 1 + z 1 + z 2 1 + z 1 + z 2
2 5 3
15. Realize the following second order FIR system using the transposed form structure
y(n) = 3x (n) + 5x (n 1) 2x (n 2)
16. Determine the lattice coefficients corresponding to the FIR system with the system
5 1 2 2
function H ( z) = 1 + z + z and realize it.
12 3
350 h Digital Signal Processing
MATLAB PROGRAMS
Program 4.1
% Parallel form realization of IIR filters
Output:
parallel form 1
residues are
0.5952 0.7561i
0.5952 + 0.7561i
0.5556 2.2785i
0.5556 + 2.2785i
0.8214 + 4.3920i
0.8214 4.3920i
System Realization h 351
poles are at
0.5000 + 0.2887i
0.5000 0.2887i
0.3333 + 0.4714i
0.3333 0.4714i
0.2500 + 0.4330i
0.2500 0.4330i
constant value
4
parallel form II
residues are
0.5159 + 0.2062i
0.5159 0.2062i
1.2593 + 0.4976i
1.2593 0.4976i
1.6964 1.4537i
1.6964 + 1.4537i
poles are at
0.5000 + 0.2887i
0.5000 0.2887i
0.3333 + 0.4714i
0.3333 0.4714i
0.2500 + 0.4330i
0.2500 0.4330i
constant value
0.0556
Program 4.2
% Direct form to cascade form conversion
clc; clear all; close all;
b=[4 5 6]; %numerator coefficients of direct form
a=[1 2 3]; %denominator coefficients of direct form
% compute gain coefficient
b0=b(1); a0=a(1);
b=b/b0; a=a/a0;
m=length(b);
n=length(a);
if n > m
b= [b zeros(1,nm)];
352 h Digital Signal Processing
elseif m > n
a=[a zeros(1,mn)];
end
k=floor(n/2);
B=zeros(k,3); A=zeros(k,3);
if k*2== n
b=[b 0];
a=[a 0];
end
broots=cplxpair(roots(b));
aroots=cplxpair(roots(a));
for i=1:2:2*k
brow=broots(i:1:i+1,:);
brow=real(poly(brow));
B(fix((i+1)/2),:)=brow;
arow=aroots(i:1:i+1,:);
arow=real(poly(arow));
A(fix((i+1)/2),:)=arow;
end
disp(numerator coefficients of cascade form)
disp(brow)
disp(denominator coefficients of cascade form)
disp(arow)
Output:
numerator coefficients of cascade form
1.0000 1.2500 1.5000
Program 4.3
% Cascade form realization of FIR & IIR filters
disp(y)
Output:
output of the final filter operation
16 20 24 128 48 44 336 212 140
Program 4.4
% Cascade form to direct form conversion
b=[1];
a=[1];
for i=1:1:k
b=conv(b,B(i,:));
a=conv(a,A(i,:));
end
b=b*b0;
disp(numerator coefficients of direct form)
disp(b)
disp(denominator coefficients of direct form)
disp(a)
Output:
numerator coeffcients of direct form
16 20 24
Program 4.5
%Direct form to parallel form conversion
for i=1:1:length(p1)
if(abs(p1(i)p2(j)) < 0.0001)
I=[I,i];
end
end
end
I=I;
r=r1(I);
K=floor(n/2);B=zeros(K,2); A=zeros(K,3);
if K*2 ==n
for i=1:2:n-2
Brow=r(i:1:i+1,:);
Arow=p(i:1:i+1,:);
[Brow Arow]=residuez(Brow,Arow,[]);
B(fix((i+1)/2),:)=real(Brow);
A(fix((i+1)/2),:)=real(Arow);
end
[Brow Arow]=residuez(r(n1),p(n1),[]);
B(K,:)=[real(Brow) 0]; A(K,:)=[real(Arow) 0];
else
for i=1:2:n1
Brow=r(i:1:i+1,:);
Arow=p(i:1:i+1,:);
[Brow Arow]=residuez(Brow,Arow,[]);
B(fix((i+1)/2),:)=real(Brow);
A(fix((i+1)/2),:)=real(Arow);
end
end
Output:
numerator coefficients of parallel form
2.0000 1.0000
Program 4.6
% Parallel form to direct form conversion
[K,L]=size(A);
R=[]; P=[];
for i=1:1:K
[r p k]=residuez(B(i,:),A(i,:));
R=[R;r];
P=[P;p];
end
[b a]=residuez(R,P,C);
b=b(:);
a=a(:);
Output:
numerator coefficients of direct form