Title: Digital Signal Processing
1Digital Signal Processing
PALESTINE TECHNICAL COLLEGE
Eng. Akram Abu Garad
2Digital Signal Processing
Chapter 6 Implementation of Discrete-Time
Systems
- Introduction.
- Structures for FIR Systems.
- Structures for IIR Systems.
3Implementation of Discrete-Time Systems
Digital Signal Processing
6.1. Introduction
- In earlier chapters we studied the theory of
discrete systems in both the time and frequency
domains. - We will now use this theory for the processing of
digital signals. - To process signals, we have to design and
implement systems called filters. - The filter design issue is influenced by such
factors as - The type of the filter IIR or FIR
- The form of its implementation structures
- Different filter structures dictate different
design strategies.
4Implementation of Discrete-Time Systems
Digital Signal Processing
6.1. Introduction
- Since our filters are LTI systems, we need the
following three elements to describe digital
filter structures. - Adder
- Multiplier (Gain)
- Delay element (shift or memory)
5Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
The system function of an IIR filter is given by
The difference equation representation of an IIR
filter is expressed as
6Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
Three different structures can be used to
implement an IIR filter
- Direct Form
- In this form, there are two parts to this filter,
the moving average part and the recursive part
(or the numerator and denominator parts) - Two version direct form I and direct form II
- Cascade Form
- The system function H(z) is factored into smaller
second-order sections, called biquads. H(z) is
then represented as a product of these biquads. - Each biquad is implemented in a direct form, and
the entire system function is implemented as a
cascade of biquad sections. - Parallel Form
- H(z) is represented as a sum of smaller
second-order sections. - Each section is again implemented in a direct
form. - The entire system function is implemented as a
parallel network of sections.
7Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
Consists of the zeros of H(z)
Consists of the poles of H(z)
8Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
Direct Form I Structure
9Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
- As the name suggests, the difference equation is
implemented as given using delays, multipliers,
and adders. - For the purpose of illustration, Let M N 2,
Direct Form I structure
10Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
Given a LTI system with a rational transfer
function H(z)
LCCDE
Direct Form I structure
11Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
We can implement the system with the following
pair of coupled difference equations
The commutative law of the convolution
12Implementation of Discrete-Time Systems
Digital Signal Processing
6.3. Structures for IIR Systems
Direct Form II Structure (M N)
13Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
The commutative law of the convolution
Direct Form II structure
14Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
- In this form the system function H(z) is written
as a product of second-order section with real
coefficients. - This is done by factoring the numerator and
denominator polynomials into their respective
roots and then combining either a complex
conjugate root pair or any two real roots into
second-order polynomials.
15Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
- We assume that N is an even integer. Then
Where, K is equal to N/2, and Bk,1, Bk,2, Ak,1,
Ak,2 are real numbers representing the
coefficients of second-order section.
16Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
Biquad Section
Is called the k-th biquad section. The input to
the k-th biquad section is the output from the
(k-1)-th section, while the output from the k-th
biquad is the input to the (k1)-th biquad. Each
biquad section can be implemented in direct form
II.
17Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
Example
Cascade form structure for N4
18Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
Example
Determine the cascade structure the following
transfer function
19Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
Example
Determine the cascade structure the following
transfer function
Cascade of Direct Form I
Cascade of Direct Form II
20Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
- In this form the system function H(z) is written
as a sum of second-order section using partial
fraction expansion.
KN/2, and B,A are real numbers
21Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
The second-order Section
Is the k-th proper rational biquad section. The
filter input is available to all biquad section
as well as to the polynomial section if MgtN
(which is an FIR part) The output from these
sections is summed to form the filter
output. Each biquad section can be implemented in
direct form II.
22Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
Parallel form structure for N4 (MN4)
23Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
Example
Determine the parallel structure the following
transfer function
H(z) must be expanded in partial fractions
24Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
Example (Cont.)
25Implementation of Discrete-Time Systems
Digital Signal Processing
6.2. Structures for IIR Systems
Example
Determine the parallel structure the following
transfer function
26Implementation of Discrete-Time Systems
Digital Signal Processing
6.3. Structures for FIR Systems
A finite-duration impulse response (FIR) filter
has a Transfer Function of the form
Or, equivalently by the Difference Equation
Which is a linear convolution of finite support.
Furthermore, the Impulse Response of the FIR
system is identical to the coefficients bk,
that is,
The order of the filter is M-1, while the length
of the filter is M.
27Implementation of Discrete-Time Systems
Digital Signal Processing
6.3. Structures for FIR Systems
Three different structures can be used to
implement an FIR filter
- Direct Form.
- Cascade Form.
- Linear Phase Form.
- Frequency Sampling Form.
- Lattice Form.
28Implementation of Discrete-Time Systems
Digital Signal Processing
6.3. Structures for FIR Systems
- The difference equation is implemented as a
tapped delay line since there are no feedback
paths. - Note that since the denominator is equal to
unity, there is only one direct form structure.
29Implementation of Discrete-Time Systems
Digital Signal Processing
6.3. Structures for FIR Systems
Example
Determine the Direct form structure for the
following FIR Filter
30Implementation of Discrete-Time Systems
Digital Signal Processing
6.3. Structures for FIR Systems
Cascade form FIR structure for 6-order FIR filter
31Implementation of Discrete-Time Systems
Digital Signal Processing
6.3. Structures for FIR Systems
Linear Phase System
A LTI system is said to have Linear Phase if the
frequency response has the form
where a real is a real number
A system is said to have Generalized Linear Phase
if the frequency response has the form
where A(ejw) is a real-valued function of ?, and
ß is a constant
Often the term linear phase is used to denote a
system that has either linear or generalized
linear phase.
32Implementation of Discrete-Time Systems
Digital Signal Processing
6.3. Structures for FIR Systems
Linear Phase System
For a causal FIR filter with M Length and impulse
over 0,M-1 interval, the linear-phase conditions
For an FIR filter with a real-valued impulse
response of length M, a sufficient condition for
this filter to have generalized linear phase is
that the h(n) be whether symmetric or anti
symmetric.
The length of the impulse response of the FIR
filter (M) can be even or odd.
33Implementation of Discrete-Time Systems
Digital Signal Processing
6.3. Structures for FIR Systems
Linear Phase System
Linear phase filters may be classified into 4
types, depending upon whether h(n) is symmetric
or anti symmetric and whether M is even or odd.
- Type I Linear Phase Symmetrical and M even
- Type II Linear Phase Symmetrical and M odd
- Type III Linear Phase Anti-symmetrical and M
even
- Type IV Linear Phase Anti-symmetrical and M odd
34Implementation of Discrete-Time Systems
Digital Signal Processing
6.3. Structures for FIR Systems
Type I Linear Phase
Symmetric and M even
Symmetrical Impulse Response, M Even
35Implementation of Discrete-Time Systems
Digital Signal Processing
6.3. Structures for FIR Systems
Type II Linear Phase
H(ejw)
Symmetric and M odd
36Implementation of Discrete-Time Systems
Digital Signal Processing
6.3. Structures for FIR Systems
Type III Linear Phase
H(ejw)
Anti Symmetric and M even
37Implementation of Discrete-Time Systems
Digital Signal Processing
6.3. Structures for FIR Systems
Type IV Linear Phase
H(ejw)
Anti Symmetric and M odd
38(No Transcript)
39Implementation of Discrete-Time Systems
Digital Signal Processing
6.3. Structures for FIR Systems
Consider the difference equation with a symmetric
impulse response.
The linear-phase structure is essentially a
direct form draw differently to save on
multiplications.
For M odd
40Implementation of Discrete-Time Systems
Digital Signal Processing
6.3. Structures for FIR Systems
Example
Determine the Linear phase structure for the
following FIR Filter
The length of the filter is 7
41Implementation of Discrete-Time Systems
Digital Signal Processing
6.3. Structures for FIR Systems
Example
Determine the Linear phase structure for the
following FIR Filter
The length of the filter is 8
42Implementation of Discrete-Time Systems
Digital Signal Processing
6.4. Signal Flow Graph Representation
A network of directed branches connected at nodes.
Example representation of a difference equation
43Implementation of Discrete-Time Systems
Digital Signal Processing
6.4. Signal Flow Graph Representation
Example
Representation of Direct Form II with signal flow
graphs
44Implementation of Discrete-Time Systems
Digital Signal Processing
6.4. Signal Flow Graph Representation
Example
Find impulse response from the following flow
graph