3. What is Digital Signal Processing?
• Digital: operating by the use of discrete signals to represent data in the form
of numbers
• Signal: a parameter (electrical quantity or effect) that can be varied in such
a way as to convey information
• Processing: a series operations performed according to programmed
instructions
Changing or analyzing information
which is measured as discrete
sequences of numbers
Mr. HIMANSHU DIWAKAR JETGI 3
4. Realization of Discrete Systems
• We will study the following realization topologies:
• 1) Direct Form I (for FIR & IIR).
(named as transversal for FIR)
• 2) Direct Form II – Canonical Form. (for IIR).
• 3) Cascaded Realization (IIR).
• 4) Parallel Realization (IIR).
Mr. HIMANSHU DIWAKAR JETGI 4
9. Direct Form II
For a discrete-time system described by
ak y n k
k0
N
bk x n k
k0
M
the transfer function is of the form
H z
Y z
X z
b0 b1z1
L bN z N
a0 a1z1
L aN z N
b0zN
b1zN 1
L bN
a0zN
a1zN 1
L aN
Here the order of the numerator and denominator are both
indicated as N. If the order of the numerator is actually less
than N, some of the b’s will be zero. But a0 must not be zero.
Mr. HIMANSHU DIWAKAR JETGI 9
10. Direct Form II
H z H1 z H2 z
where
H1 z
Y1 z
X z
1
a0zN
a1zN1
L aN
H2 z
Y z
Y1 z
b0zN
b1zN 1
L bN
Rearranging H1 z ,
zN
Y1 z 1/ a0 X z a1zN1
Y1 z L aN Y1 z
Mr. HIMANSHU DIWAKAR JETGI 10
11. Direct Form II
zN
Y1 z 1/ a0 X z a1zN1
Y1 z L aN Y1 z
Mr. HIMANSHU DIWAKAR JETGI 11
13. Direct Form II
For the special case of FIR filters.
(The number of delays has been
changed to M - 1 to conform to
conventions in the DSP literature.)
h n bk n k
k0
M1
This type of filter has M - 1 finite
zeroes and M - 1 poles at z = 0.
Mr. HIMANSHU DIWAKAR JETGI 13
14. Direct Form II
One desirable characteristic of an FIR filter is that it can have linear phase
in its pass band.
The impulse response is
h n h 0 n h 1 n 1 L h M 1 n M 1
and its z transform is
H z h 0 h 1 z1
L h M 1 z M1
and its frequency response is
H ej
h 0 h 1 e j
L h M 1 e j M1
Mr. HIMANSHU DIWAKAR JETGI 14
15. Direct Form II
The response y n to an excitation x n is
y n b0 x n b1 x n 1 L bM1 x n M 1 .
Let M be even and let the filter coefficients be chosen such that
h 0 h M 1 , h 1 h M 2 , L , h M / 2 1 h M / 2
Mr. HIMANSHU DIWAKAR JETGI 15
16. Direct Form II
Then the frequency response is
H e j
h 0 h 0 e j M 1
h 1 e j
h 1 e j M 2
L
h M / 2 1 e j M /21
h M / 2 1 e j M /2
or
H e j
e
j
M 1
2
h 0 e
j M 1 /2
e
j M 1 /2
h 1 e
j M 3 /2
e
j M 3 /2
L
h M / 2 1 e j
e j
or
H e j
2e
j
M 1
2
h 0 cos
M 1
2
h 1 cos
M 3
2
L
h M / 2 1 cos
Mr. HIMANSHU DIWAKAR JETGI 16
17. Direct Form II
In the frequency response
H ej
2e
j
M1
2
h 0 cos
M 1
2
h 1 cos
M 3
2
L
h M / 21 cos
there is a factor e
j M1 /2
which has a linear phase and the rest of the
frequency response is purely real.
Mr. HIMANSHU DIWAKAR JETGI 17
18. Direct Form II
The recursion relation is
y n b0 x n x n M 1
b1 x n 1 x n M 2 L
bM /21 x n M / 2 1 x M / 2
which can be realized in this form
that reduces the number of multiplications
by half.
Mr. HIMANSHU DIWAKAR JETGI 18
19. Direct Form II
It can be shown that symmetric or anti-symmetric, even or odd impulse
responses yield linear phase shift in the frequency response.
Mr. HIMANSHU DIWAKAR JETGI 19
20. Cascade Realization
Direct Form II is no the only form of realization. There are several other
forms. Two other important forms are the cascade form and the parallel
form.
The cascade form is realized by first factoring the transfer function
H z A
z z1
z p1
z z2
z p2
L
z zM
z pM
1
z pM1
1
z pM2
L
1
z pN
Each individual factor is realized as a small Direct Form II subsystem
and the subsystems are then cascaded.
Mr. HIMANSHU DIWAKAR JETGI 20
21. Parallel Realization
The parallel form is realized by first
expressing the transfer function
in partial-fraction form
H z
K1
z p1
K2
z p2
L
KN
z pN
Each individual term is realized
as a small Direct Form II subsystem
and the subsystems are then
paralleled.
Mr. HIMANSHU DIWAKAR JETGI 21
22. Complex Poles and Zeroes
In either the cascade or parallel realization, the first-order subsystems may
have complex poles and/or zeroes. In such a case two first-order subsystems
should be combined into one second-order subsystem to avoid the problem of
complex coefficients in the first-order subsystems. Also, for reasons we will
soon see, it is common to do cascade and parallel realizations with second-
order subsystems even when the poles and/or zeroes are real.
Mr. HIMANSHU DIWAKAR JETGI 22
23. 1st Order vs 2nd Order
In the case of FIR filters the second-order subsystems take
this form.
Compare this two first-order cascaded stages.
2 delays
3 multiplications
2 additions
2 delays
4 multiplications
2 additions
Mr. HIMANSHU DIWAKAR JETGI 23
24. If the FIR filter has linear phase, a fourth-order structure reduces number of
multiplications even further compared with cascaded first-order or cascaded
second-order subsystems.
1st Order vs 2nd Order
Mr. HIMANSHU DIWAKAR JETGI 24
28. Lattice-Ladder IIR Structure
Modify the FIR lattice structure as illustrated below. Reverse the
arrows on all the "f" signals. Reverse the lattice and apply x(n) to the
previous output and take y from the previous input. Also reverse the
signs of the signals arriving from the bottom. This is now a recursive
or feedback structure which can implement an IIR filter.
Mr. HIMANSHU DIWAKAR JETGI 28