0% found this document useful (0 votes)
79 views25 pages

S&DSP Module5 sk25

Uploaded by

raju.h152627
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views25 pages

S&DSP Module5 sk25

Uploaded by

raju.h152627
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

Signals & Digital Signal Processing

21EE63
2023-24

Dr. J P Sridhar Associate Professor

Department of EEE, SJBIT


Signals & Digital Signal Processing 21EE63 2023-24

B. E. ELECTRICAL AND ELECTRONICS ENGINEERING

Choice Based Credit System (CBCS) and Outcome Based Education (OBE)

SEMESTER - VI

Signals & Digital Signal Processing

Course Code: 21EE63 CIE Marks 50


Number of Lecture Hours/Week
2:2:0 SEE Marks 50
(L:T:P)
Credits 03 Exam Hours 03

Course Learning Objectives:

1. To explain basic signals, their classification, basic operations on signals, and the properties of the
systems.
2. To explain the convolution of signals in continuous and discrete time domain and the properties of
impulse response representation.
3. To explain the computation of Discrete Fourier Transform of a sequence by direct method, Linear
transformation Method and using Fast Fourier Transformation Algorithms.
4. To explain design of IIR all pole analog filters and transform them into digital filter using Impulse
Invariant and Bilinear transformation Techniques and to obtain their Realization.
5. To explain design of FIR filters using Window Method and Frequency Sampling Method and to
obtain their Realization.

Module -1

Introduction: Definitions of a Signal and a System, Classification of Signals, Basic Operations on


Signals, Basic Elementary Signals, properties of systems.
Time-domain representations for LTI systems: Convolution, impulse response representation,
Convolution Sum and Convolution Integral. Properties of impulse response representation.

Department of EEE, SJBIT 1


Signals & Digital Signal Processing 21EE63 2023-24

Blooms Taxonomy LEVEL: L1 – Remembering L2- Understanding, L3 – Applying, L4 – Analysing,


L5-Evaluating.

Module – 2: Discrete Fourier Transforms (DFT):


Discrete Fourier Transforms: Definitions, properties-linearity, shift, symmetry Properties- circular
convolution – periodic convolution, use of tabular arrays, circular arrays, Stock ham’s method, linear
convolution – two finite duration sequence, one finite & one infinite duration, overlap add and save methods.

Blooms Taxonomy LEVEL: L1 – Remembering L2- Understanding, L3 – Applying, L4 – Analysing,


L5-Evaluating.

Module – 3 : Fast-Fourier-Transform (FFT) algorithms


Fast Fourier Transforms Algorithms: Introduction, decimation in time algorithm, first decomposition,
number of computations, continuation of decomposition, number of multiplications, computational
efficiency, decimation in frequency algorithms, Inverse radix – 2 algorithms.

Blooms Taxonomy LEVEL: L1 – Remembering L2- Understanding, L3 – Applying,


L4 – Analysing, L5-Evaluating.

Module– 4 IIR filter design


IIR filter design: Characteristics of commonly used analog filters – Butterworth and Chebyshev Type - I f ilters,
analog to analog frequency transformations. Design of Digital IIR filters from analog filters (Butterworth and
Chebyshev) - impulse invariance method. Mapping of transfer functions: Bilinear transform ation method.
Implementation of discrete-time systems

Blooms Taxonomy LEVEL: L1 – Remembering L2- Understanding, L3 – Applying,


L4 – Analysing, L5-Evaluating.

Module– 5: FIR filter design:


FIR filter design: Introduction to FIR filters, design of FIR filters using - Rectangular, Hamming, Hanning
and Kaiser windows, FIR filter design using frequency sampling Technique. Implementation of discrete-time
systems: Structures for Filters: IIR Filters - direct form I and direct form II, cascade and parallel structures.
FIR filters-direct form, cascade and Linear Phase Form.

Blooms Taxonomy LEVEL: L1 – Remembering L2- Understanding, L3 – Applying, L4 – Analysing,


L5-Evaluating.

Department of EEE, SJBIT 2


Signals & Digital Signal Processing 21EE63 2023-24

Course Outcomes: At the end of the course the student will be able to:

1. Apply DFT and IDFT to perform linear filtering techniques on given sequences to determine the
output.

2. Apply fast and efficient algorithms for computing DFT and inverse DFT of a given sequence

3. Design and realize infinite impulse response Butterworth and Chebyshev digital filters using impulse
invariant and bilinear transformation techniques.

4. Develop a digital IIR filter by direct, cascade, parallel, ladder and FIR filter by direct, cascade and
linear phase methods of realization.

5. Design and realize FIR filters by use of window function and frequency sampling method.

CO-PO Mapping Table PSO Mapping


PO 1 2 3 4 5 6 7 8 9 10 11 12 PSO1 PSO2 PSO3
CO1 3 2 2
CO2 3 2 2
CO3 3 2 2 3
CO4 3 2 2 3
CO5 3 2 2
PO - Weight and Attainment PSO Weightage
Average 3 2 2 2.5

Question paper pattern:

• The question paper will have ten questions.

• Each full question is for 20 marks.

• There will be 2 full questions (with a maximum of three sub questions in one full

question)from each module.

• Each full question with sub questions will cover the contents under a module.

• Students will have to answer 5 full questions, selecting one full question from each module.

Department of EEE, SJBIT 3


Signals & Digital Signal Processing 21EE63 2023-24

Contents sheet

SL.No. Table of Contents Page No.

1 Introduction 5-6

2 Frequency Response of Linear Phase FIR Filters 6-7

3 Design techniques of FIR Filters 8-13

4 Problems 14-16

5 Realization of FIR Systems 17-24

Department of EEE, SJBIT 4


Signals & Digital Signal Processing 21EE63 2023-24

MODULE 5
DESIGN OF FIR DIGITAL FILTERS

Contents / Syllabus:
Design of FIR Digital Filters: Introduction, windowing, rectangular, modified rectangular. Hamming,

Hanning, Blackman window, design of FIR digital filters by use of windows, Design of FIR digital filters-

frequency sampling techniques.

Realization of FIR systems: direct form, cascade form, linear phase form

INTRODUCTION

A filter is a frequency selective system. Digital filters are classified as finite duration unit impulse response
(FIR) filters or infinite duration unit impulse response (IIR) filters, depending on the form of the unit impulse
response of the system. In the FIR system, the impulse response sequence is of finite duration, i.e., it has a
finite number of non-zero terms.
The IIR system has an infinite number of non-zero terms, i.e., its impulse response sequence is of infinite
duration. IIR filters are usually implemented using recursive structures (feedback-poles and zeros) and FIR
filters are usually implemented using non-recursive structures (no feedback-only zeros). The response of the
FIR filter depends only on the present and past input samples, whereas for the IIR filter, the present response
is a function of the present and past values of the excitation as well as past values of the response.

The following are the main advantages of FIR filters over IIR filters:

1. FIR filters are always stable.

2. FIR filters with exactly linear phase can easily be designed.

3. FIR filters can be realized in both recursive and non-recursive structures.

4. FIR filters are free of limit cycle oscillations, when implemented on a finite word length digital system.

5. Excellent design methods are available for various kinds of FIR filters.

The disadvantages of FIR filters are as follows:

Department of EEE, SJBIT 5


Signals & Digital Signal Processing 21EE63 2023-24

1. The implementation of narrow transition band FIR filters is very costly, as it requires considerably more
arithmetic operations and hardware components such as multipliers, adders and delay elements.
2. Memory requirement and execution time are very high.

FIR filters are employed in filtering problems where linear phase characteristics within the pass band of the
filter is required. If this is not required, either an FIR or an IIR filter may be employed. An IIR filter has lesser
number of side lobes in the stop band than an FIR filter with the same number of parameters. For this reason if
some phase distortion is tolerable, an IIR filter is preferable. Also, the implementation of an IIR filter involves
fewer parameters, less memory requirements and lower computational complexity.

Frequency Response of Linear Phase FIR Filters


The frequency response of the filter is the Fourier transform of its impulse response. If h(n) is the impulse
response of the system, then the frequency response of the system is denoted by H(ejω) or H(ω). H(ω) is a
complex function of frequency _ and so it can be expressed as magnitude function H(ω) and phase function
∟H(ω).
Depending on the value of N (odd or even) and the type of symmetry of the filter impulse response sequence
(symmetric or anti symmetric), there are following four possible types of impulse response for linear phase
FIR filters.

1. Symmetrical impulse response when N is odd.


2. Symmetrical impulse response when N is even.
3. Antisymmetric impulse response when N is odd.
4. Antisymmetric impulse response when N is even.

Frequency Response of Linear Phase FIR Filters when Impulse Response is Symmetrical and N is Odd.

Department of EEE, SJBIT 6


Signals & Digital Signal Processing 21EE63 2023-24

The above equation for H(ω) is the frequency response of linear phase FIR filter when impulse response is
symmetrical and N is odd. The magnitude function of H(ω) is given by

The phase function of H(ω) is given by

Frequency Response of Linear Phase FIR Filters when Impulse Response is Symmetrical and N is Even.
The Frequency response of FIR filter, with impulse response h(n) of length N is:

This is the expression for frequency response of linear phase FIR filter when impulse response is symmetrical
and N is even. The magnitude function of H(ω) is given by

The phase function of H(ω) is given by

Department of EEE, SJBIT 7


Signals & Digital Signal Processing 21EE63 2023-24

DESIGN TECHNIQUES OF FIR FILTERS

The well-known methods of designing FIR filters are as follows:


1. Fourier series method
2. Window method
3. Frequency sampling method
4. Optimum filter design

In Fourier series method, the desired frequency response Hd (ω) is converted to a Fourier series
representation by replacing ω by 2πfT, where T is the sampling time. Then using this expression, the Fourier
coefficients are evaluated by taking inverse Fourier transform of Hd(ω), which is the desired impulse response
of the filter hd(n). The Z-transform of hd(n) gives Hd(z) which is the transfer function of the desired filter.
The Hd(z) obtained from Hd(n) will be a transfer function of unrealizable non-causal digital filter of infinite
duration. A finite duration impulse response h(n) can be obtained by truncating the infinite duration impulse
response hd(n) to N-samples. Now, take Z-transform of h(n) to get H(z). This H(z) corresponds to a non-causal
filter. So multiply this H(z) by z–(N–1)/2 to get the transfer function of realizable causal filter of finite duration.

In window method, we begin with the desired frequency response specification Hd(ω) and determine
the corresponding unit sample response hd(n). The hd(n) is given by the inverse Fourier transform of Hd(ω).
The unit sample response hd(n) will be an infinite sequence and must be truncated at some point, say, at n = N
– 1 to yield an FIR filter of length N. The truncation is achieved by multiplying hd(n) by a window sequence
w(n). The resultant sequence will be of length N and can be denoted by h(n). The Z-transform of h(n) will give
the filter transfer function H(z). There have been many windows proposed like Rectangular window,
Triangular window, Hanning window, Hamming window, Blackman wndow and Kaiser window that
approximate the desired characteristics.

In frequency sampling method of filter design, we begin with the desired frequency response specification
Hd(ω), and it is sampled at N-points to generate a sequence vector H(k) which corresponds to the DFT
coefficients. The N-point IDFT of the sequence H(k) gives the impulse response of the filter h(n). The Z-
transform of h(n) gives the transfer function H(z) of the filter.

Department of EEE, SJBIT 8


Signals & Digital Signal Processing 21EE63 2023-24

In optimum filter design method, the weighted approximation error between the desired frequency response
and the actual frequency response is spread evenly across the pass band and evenly across the stop band of the
filter. This results in the reduction of maximum error. The resulting filter have ripples in both the pass band
and the stop band. This concept of design is called optimum equiripple design criterion.

The various steps in designing FIR filters are as follows:

1. Choose an ideal (desired) frequency response, H d (ω).

2. Take inverse Fourier transform of H d (ω) to get hd (n) or sample Hd (ω) at finite number of points (N-points)

to get vector H (k).

3. If hd (n) is determined, then convert the infinite duration hd(n) to a finite duration h(n) (usually h(n) is an N-

point sequence) or if H_ (k) is determined, then take N-point inverse DFT to get h(n).

4. Take Z-transform of h(n) to get H(z), where H(z) is the transfer function of the digital filter.

5. Choose a suitable structure and realize the filter.

DESIGN OF FIR FILTERS USING WINDOWS

The procedure for designing FIR filter using windows is:


1. Choose the desired frequency response of the filter Hd(ω).
2. Take inverse Fourier transform of Hd(ω) to obtain the desired impulse response hd(n).
3. Choose a window sequence w(n) and multiply hd(n) by w(n) to convert the infinite duration impulse
response to a finite duration impulse response h(n).
4. The transfer function H(z) of the filter is obtained by taking Z-transform of h(n).

RECTANGULAR WINDOW
The weighting function (window function) for an N-point rectangular window is given by

Department of EEE, SJBIT 9


Signals & Digital Signal Processing 21EE63 2023-24

The spectrum (frequency response) of rectangular window WR(ω) is given by the Fourier transform of wR(n).

Triangular window or Bartlett Window

The triangular window has been chosen such that it has tapered sequences from the middle on either side. The
window function WT (n) is defined as

Department of EEE, SJBIT 10


Signals & Digital Signal Processing 21EE63 2023-24

In magnitude response of triangular window, the side lobe level is smaller than that of the rectangular window

being reduced from –13 dB to –25 dB. However, the main lobe width is now 8π/N or twice that of the

rectangular window.

The triangular window produces a smooth magnitude response in both pass band and stop band, but it has the

following disadvantages when compared to magnitude response obtained by using rectangular window:

1. The transition region is more.

2. The attenuation in stop band is less.

Because of these characteristics, the triangular window is not usually a good choice.

Hamming window or Raised Cosine Window

The raised cosine window multiplies the central Fourier coefficients by approximately unity and smoothly

truncates the Fourier coefficients toward the ends of the filter. The smoother ends and broader middle section

produces less distortion of hd (n) around n = 0. It is also called generalized Hamming window.

The window sequence is of the form:

Hanning window
The Hanning window function is given by

Department of EEE, SJBIT 11


Signals & Digital Signal Processing 21EE63 2023-24

The width of main lobe is 8π/N, i.e., twice that of rectangular window which results in doubling of the

transition region of the filter. The peak of the first side lobe is –32 dB relative to the maximum value. This

results in smaller ripples in both pass band and stop band of the low-pass filter designed using Hanning

window. The minimum stop band attenuation of the filter is 44 dB. At higher frequencies the stop band

attenuation is even greater. When compared to triangular window, the main lobe width is same, but the

magnitude of the side lobe is reduced, hence the Hanning window is preferable to triangular window.

Hamming window

The Hamming window function is given by

In the magnitude response for N = 31, the magnitude of the first side lobe is down about 41 dB from the main

lobe peak, an improvement of 10 dB relative to the Hanning window. But this improvement is achieved at the

expense of the side lobe magnitudes at higher frequencies, which are almost constant with frequency. The

width of the main lobe is 8π/N.

Department of EEE, SJBIT 12


Signals & Digital Signal Processing 21EE63 2023-24

In the magnitude response of low-pass filter designed using Hamming window, the first side lobe peak is –51
dB, which is –7 dB lesser with respect to the Hanning window filter.
However, at higher frequencies, the stop band attenuation is low when compared to that of Hanning window.
Because the Hamming window generates lesser oscillations in the side lobes than the Hanning window for the
same main lobe width, the Hamming window is generally preferred.
Blackman window

The Blackman window function is another type of cosine window and given by the equation

In the magnitude response, the width of the main lobe is 12π/N, which is highest among windows. The peak
of the first side lobe is at –58 dB and the side lobe magnitude decreases with frequency. This desirable feature
is achieved at the expense of increased main lobe width. However, the main lobe width can be reduced by
increasing the value of N. The side lobe attenuation of a low-pass filter using Blackman window is –78 dB.
Table 9.2 gives the important frequency domain characteristics of some window functions.

Department of EEE, SJBIT 13


Signals & Digital Signal Processing 21EE63 2023-24

EXAMPLE 1. Design a given FIR filter by using Hamming window with N = 7.

Solution: For the given filter with

The filter coefficients are given by

For n = 3, the filter coefficient can be obtained by applying L’Hospital’s rule to the above expression. Thus,

Department of EEE, SJBIT 14


Signals & Digital Signal Processing 21EE63 2023-24

Department of EEE, SJBIT 15


Signals & Digital Signal Processing 21EE63 2023-24

Department of EEE, SJBIT 16


Signals & Digital Signal Processing 21EE63 2023-24

Realization of FIR Systems


Structures of FIR Systems

FIR Systems are represented in four different ways


1. Direct Form Structures
2. Cascade Form Structure
3. Frequency-Sampling Structures
4. Lattice structures.

1. DIRECT FORM STRUCTURE OF FIR SYSTEM

The convolution of h(n) and x(n) for FIR systems can be written as
M-1
y(n) =∑ h(k) x(n–k) (1)
k=0

The above equation can be expanded as,


Y(n)= h(0) x(n) + h(1) x(n-1) + h(2) x(n-2) + …………… + h(M-1) x(n-M+1) (2)
Implementation of direct form structure of FIR filter is based upon the above equation.

1) There are M-1 unit delay blocks. One unit delay block requires one memory location. Hence
Direct form structure requires M-1 memory locations.

2) The multiplication of h(k) and x(n-k) is performed for 0 to M-1 terms. Hence M
Multiplications and M-1 additions are required.

3) Direct form structure is often called as transversal or tapped delay line filter.

Department of EEE, SJBIT 17


Signals & Digital Signal Processing 21EE63 2023-24

2. CASCADE FORM STRUCTURE OF FIR SYSTEM

In cascade form, stages are cascaded (connected) in series. The output of one system is input to another.
Thus, total K number of stages are cascaded. The total system function 'H' is given by

H= H 1 (z) . H 2 (z)……………………. H k (z) (1)


H= Y 1 (z)/X 1 (z). Y 2 (z)/X 2 (z). ……………Y k (z) / Xk (z) (2)
k
H(z) = π H k (z) (3)
k=1

Each H1(z), H2(z)… etc.is a second order section and it is realized by the direct form as shown in below
figure.

System function for FIR systems

M-1
H(z) = ∑ b k z-k (1)
k=0
Expanding the above terms we have

H(z) = H1 (z) . H2 (z)……………………. Hk (z)


Where H K(z) = bk0 + bk1 z-1 + bk2 z-2 (2)
Thus direct form of second order system is shown as

Department of EEE, SJBIT 18


Signals & Digital Signal Processing 21EE63 2023-24

STRUCTURES FOR IIR SYSTEMS

IIR Systems are represented in four different ways


1. Direct Form Structures Form I and Form II
2. Cascade Form Structure
3. Parallel Form Structure
4. Lattice and Lattice-Ladder structure.

DIRECT FORM STRUCTURE FOR IIR SYSTEMS

IIR systems can be described by a generalized equation as


N M
y(n)=-∑ ak y(n–k)+∑ bk x(n–k) (1)
k=1 k=0

Z transform is given as
M N
H(z) = ∑ bk z / 1+ ∑ ak z–k
–k (2)
K=0 k=1

M N
Here H1(z) = ∑ bk z–k And H2(z) = 1+ ∑ ak z–k
K=0 k=0

Overall IIR system can be realized as cascade of two function H1(z) and H2(z). Here H1(z) represents zeros
of H(z) and H2(z) represents all poles of H(z).

Department of EEE, SJBIT 19


Signals & Digital Signal Processing 21EE63 2023-24

1. Direct form I realization of H(z) can be obtained by cascading the realization of H1(z)
which is all zero system first and then H2(z) which is all pole system.

2. There are M+N-1 unit delay blocks. One unit delay block requires one memory location. Hence
direct form structure requires M+N-1 memory locations.

3. Direct Form I realization requires M+N+1 number of multiplications and M+N number of additions
and M+N+1 number of memory locations.

DIRECT FORM – II REALIZATION

1. Direct form realization of H(z) can be obtained by cascading the realization of H1(z)
which is all pole system and H2(z) which is all zero system.

2. Two delay elements of all pole and all zero system can be merged into single delay
element.

3. Direct Form II structure has reduced memory requirement compared to Direct form -I
structure. Hence it is called canonic form.

4. The direct form -II requires same number of multiplications (M+N+1) and additions (M+N) as
that of direct form I.

Department of EEE, SJBIT 20


Signals & Digital Signal Processing 21EE63 2023-24

CASCADE FORM STRUCTURE FOR IIR SYSTEMS

In cascade form, stages are cascaded (connected) in series. The output of one system is input to another. Thus
total K number of stages are cascaded. The total system function 'H' is given by

H= H 1 (z) . H 2 (z)……………………. H k (z) (1)


H= Y 1 (z)/X 1 (z). Y 2 (z)/X 2 (z). ……………Y k (z)/X k (z) (2)
k
H(z) = π H k (z) (3)
k=1

Each H1(z), H2(z)… etc. is a second order section and it is realized by the direct form as shown in below
figure.

Department of EEE, SJBIT 21


Signals & Digital Signal Processing 21EE63 2023-24

System function for IIR systems


M N
H(z) = ∑ bk z–k / 1+ ∑ ak z–k (1)
K=0 k=1

Expanding the above terms we have

H(z)= H 1 (z) . H 2 (z)……………………. H k (z)


where H K(z) = bk0 + bk1 z-1 + bk2 z-2 / 1 + ak1 z-1 + ak2 z-2 (2)

Thus Direct form of second order IIR system is shown as

PARALLEL FORM STRUCTURE FOR IIR SYSTEMS

System function for IIR systems is given as


M N
H(z) = ∑ bk z / 1+ ∑ ak z–k
–k (1)
K=0 k=1

= b0 + b1 z-1 + b2 z-2 + ……..+ bM z-M / 1 + a1 z-1 + a2 z-2 +……+ aN z-N (2)

The above system function can be expanded in partial fraction as follows

H(z) = C + H 1 (z) + H 2 (z)…………………….+ H k (z) (3)


Where C is constant and Hk(z) is given as

Hk(z) = bk0 + bk1 z-1 / 1 + ak1 z-1 + ak2 z-2 (4)

Department of EEE, SJBIT 22


Signals & Digital Signal Processing 21EE63 2023-24

Department of EEE, SJBIT 23


Signals & Digital Signal Processing 21EE63 2023-24

Text Book:

1 Introduction to Digital Signal Processing Jhonny R. Jhonson Pearson 1st Edition, 2016.

Reference Books:

1. Digital Signal Processing – Principles, Algorithms, and Applications

Jhon G. Proakis Dimitris G. Manolakis Pearson 4th Edition, 2007.

2. Digital Signal Processing A.Nagoor Kani McGraw Hill 2nd Edition, 2012

3 Digital Signal Processing Shaila D. Apte Wiley 2nd Edition, 2009

4 Digital Signal Processing Ashok Amberdar Cengage 1st Edition, 2007

5 Digital Signal Processing Tarun Kumar Rawat Oxford 1st Edition, 2015

Department of EEE, SJBIT 24

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy