Unit III FIR Filter Design

Slides:



Advertisements
Similar presentations
Chapter 8. FIR Filter Design
Advertisements

Digital Filter Banks The digital filter bank is set of bandpass filters with either a common input or a summed output An M-band analysis filter bank is.
Hossein Sameti Department of Computer Engineering Sharif University of Technology.
Filtering Filtering is one of the most widely used complex signal processing operations The system implementing this operation is called a filter A filter.
Digital Signal Processing – Chapter 11 Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah
AMI 4622 Digital Signal Processing
Ideal Filters One of the reasons why we design a filter is to remove disturbances Filter SIGNAL NOISE We discriminate between signal and noise in terms.
LINEAR-PHASE FIR FILTERS DESIGN
Chapter 8 FIR Filter Design
1 Copyright © 2001, S. K. Mitra Polyphase Decomposition The Decomposition Consider an arbitrary sequence {x[n]} with a z-transform X(z) given by We can.
AGC DSP AGC DSP Professor A G Constantinides 1 Digital Filter Specifications Only the magnitude approximation problem Four basic types of ideal filters.
Relationship between Magnitude and Phase (cf. Oppenheim, 1999)
Finite Impuse Response Filters. Filters A filter is a system that processes a signal in some desired fashion. –A continuous-time signal or continuous.
Digital Signals and Systems
Lecture 9: Structure for Discrete-Time System XILIANG LUO 2014/11 1.
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Discrete-Time and System (A Review)
DTFT And Fourier Transform
1 Chapter 8 The Discrete Fourier Transform 2 Introduction  In Chapters 2 and 3 we discussed the representation of sequences and LTI systems in terms.
1 Diagramas de bloco e grafos de fluxo de sinal Estruturas de filtros IIR Projeto de filtro FIR Filtros Digitais.
Filter Design Techniques
Chapter 7 LTI Discrete-Time Systems in the Transform domain.
Chapter 6 Digital Filter Structures
IIR Filter design (cf. Shenoi, 2006) The transfer function of the IIR filter is given by Its frequency responses are (where w is the normalized frequency.
Copyright © 2001, S. K. Mitra Tunable IIR Digital Filters We have described earlier two 1st-order and two 2nd-order IIR digital transfer functions with.
Copyright © 2001, S. K. Mitra Digital Filter Structures The convolution sum description of an LTI discrete-time system be used, can in principle, to implement.
CHAPTER 6 Digital Filter Structures
System Function of discrete-time systems
Professor A G Constantinides 1 Interpolation & Decimation Sampling period T, at the output Interpolation by m: Let the OUTPUT be [i.e. Samples exist at.
1 Lecture 1: February 20, 2007 Topic: 1. Discrete-Time Signals and Systems.
Fundamentals of Digital Signal Processing. Fourier Transform of continuous time signals with t in sec and F in Hz (1/sec). Examples:
Chapter 7 Finite Impulse Response(FIR) Filter Design
1 Introduction to Digital Filters Filter: A filter is essentially a system or network that selectively changes the wave shape, amplitude/frequency and/or.
ES97H Biomedical Signal Processing
1 Digital Signal Processing Digital Signal Processing  IIR digital filter structures  Filter design.
Professor A G Constantinides 1 Finite Wordlength Effects Finite register lengths and A/D converters cause errors in:- (i) Input quantisation. (ii)Coefficient.
Transform Analysis of LTI Systems Quote of the Day Any sufficiently advanced technology is indistinguishable from magic. Arthur C. Clarke Content and Figures.
Chapter 4 LTI Discrete-Time Systems in the Transform Domain
Structures for Discrete-Time Systems
Digital Filter Structures
Z Transform The z-transform of a digital signal x[n] is defined as:
Copyright ©2010, ©1999, ©1989 by Pearson Education, Inc. All rights reserved. Discrete-Time Signal Processing, Third Edition Alan V. Oppenheim Ronald W.
Structures for Discrete-Time Systems 主講人:虞台文. Content Introduction Block Diagram Representation Signal Flow Graph Basic Structure for IIR Systems Transposed.
Chapter 6 Discrete-Time System. 2/90  Operation of discrete time system 1. Discrete time system where and are multiplier D is delay element Fig. 6-1.
What is filter ? A filter is a circuit that passes certain frequencies and rejects all others. The passband is the range of frequencies allowed through.
Lecture 09b Finite Impulse Response (FIR) Filters
Chapter 6. Digital Filter Structures and Designs Section
Finite Impulse Response Filtering EMU-E&E Engineering Erhan A. Ince Dec 2015.
Analysis of Linear Time Invariant (LTI) Systems
Chapter 5. Transform Analysis of LTI Systems Section
Finite Impuse Response Filters. Filters A filter is a system that processes a signal in some desired fashion. –A continuous-time signal or continuous.
Math for CS Fourier Transforms
In summary If x[n] is a finite-length sequence (n  0 only when |n|
Professor A G Constantinides 1 Digital Filter Specifications We discuss in this course only the magnitude approximation problem There are four basic types.
Filter Design by Windowing
Quick Review of LTI Systems
لجنة الهندسة الكهربائية
Lect5 A framework for digital filter design
Ideal Filters One of the reasons why we design a filter is to remove disturbances Filter SIGNAL NOISE We discriminate between signal and noise in terms.
UNIT V Linear Time Invariant Discrete-Time Systems
Chapter 6 Discrete-Time System
Finite Wordlength Effects
DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 4
Quadrature-Mirror Filter Bank
Chapter 7 Finite Impulse Response(FIR) Filter Design
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Simple Filters Comb Filters (Optional reading) Allpass Transfer.
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Ideal Filters Zero Phase Transfer Functions Linear Phase Transfer.
Zhongguo Liu Biomedical Engineering
DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 4
Chapter 7 Finite Impulse Response(FIR) Filter Design
Presentation transcript:

Unit III FIR Filter Design

Syllabus Structures of FIR – Linear phase FIR filter – Fourier Series - Filter design using windowing techniques (Rectangular Window, Hamming Window, Hanning Window), Frequency sampling techniques – Finite word length effects in digital Filters: Errors, Limit Cycle, Noise Power Spectrum.

Ideal Filters One of the reasons why we design a filter is to remove disturbances Filter SIGNAL NOISE We discriminate between signal and noise in terms of the frequency spectrum

Conditions for Non-Distortion Problem: ideally we do not want the filter to distort the signal we want to recover. Same shape as s(t), just scaled and delayed. IDEAL FILTER Consequence on the Frequency Response: constant linear

For real time implementation we also want the filter to be causal, ie. since FACT (Bad News!): by the Paley-Wiener Theorem, if h(n) is causal and with finite energy, ie cannot be zero on an interval, therefore it cannot be ideal.

Characteristics of Non Ideal Digital Filters Positive freq. only NON IDEAL

Two Classes of Digital Filters: a) Finite Impulse Response (FIR), non recursive, of the form With N being the order of the filter. Advantages: always stable, the phase can be made exactly linear, we can approximate any filter we want; Disadvantages: we need a lot of coefficients (N large) for good performance; b) Infinite Impulse Response (IIR), recursive, of the form Advantages: very selective with a few coefficients; Disadvantages: non necessarily stable, non linear phase.

Digital Filter Structures The convolution sum description of an LTI discrete-time system be used , can in principle, to implement the system For an IIR finite-dimensional system this approach is not practical as here the impulse response is of infinite length However, a direct implementation of the IIR finite-dimensional system is practical

Digital Filter Structures Here the input-output relation involves a finite sum of products: On the other hand, an FIR system can be implemented using the convolution sum which is a finite sum of products:

Digital Filter Structures The actual implementation of an LTI digital filter can be either in software or hardware form, depending on applications. In either case, the signal variables and the filter coefficients cannot represented with finite precision

Block Diagram Representation In the time domain, the input-output relations of an LTI digital filter is given by the convolution sum or, by the linear constant coefficient difference equation

Block Diagram Representation For the implementation of an LTI digital filter, the input-output relationship must be described by a valid computational algorithm To illustrate what we mean by a computational algorithm, consider the causal first-order LTI digital filter shown below

Block Diagram Representation The filter is described by the difference equation Using the above equation we can compute y[n] for knowing the initial condition and the input x[n] for :

Block Diagram Representation We can continue this calculation for any value of the time index n we desire

Basic Building Blocks The computational algorithm of an LTI digital filter can be conveniently represented in block diagram form using the basic building blocks shown below x[n] y[n] w[n] A Adder Unit delay Multiplier Pick-off node

Basic Building Blocks Advantages of block diagram representation (1) Easy to write down the computational algorithm by inspection (2) Easy to analyze the block diagram to determine the explicit relation between the output and input

Basic Building Blocks (3) Easy to manipulate a block diagram to derive other “equivalent” block diagrams yielding different computational algorithms (4) Easy to determine the hardware requirements (5) Easier to develop block diagram representations from the transfer function directly

Analysis of Block Diagrams Example - Consider the single-loop feedback structure shown below The output E(z) of the adder is But from the figure

Analysis of Block Diagrams Eliminating E(z) from the previous two equations we arrive at which leads to

Analysis of Block Diagrams Example - Analyze the cascaded lattice structure shown below where the z-dependence of signal variables are not shown for brevity

Analysis of Block Diagrams The output signals of the four adders are given by From the figure we observe

Analysis of Block Diagrams Substituting the last two relations in the first four equations we get From the second equation we get and from the third equation we get

Analysis of Block Diagrams Combining the last two equations we get Substituting the above equation in we finally arrive at

The Delay-Free Loop Problem Analysis of this structure yields which when combined results in The determination of the current value of y[n] requires the knowledge of the same value

Canonic and Noncanonic Structures A digital filter structure is said to be canonic if the number of delays in the block diagram representation is equal to the order of the transfer function Otherwise, it is a noncanonic structure

Canonic and Noncanonic Structures The structure shown below is noncanonic as it employs two delays to realize a first-order difference equation

Equivalent Structures Two digital filter structures are defined to be equivalent if they have the same transfer function We describe next a number of methods for the generation of equivalent structures However, a fairly simple way to generate an equivalent structure from a given realization is via the transpose operation

Equivalent Structures Transpose Operation (1) Reverse all paths (2) Replace pick-off nodes by adders, and vice versa (3) Interchange the input and output nodes All other methods for developing equivalent structures are based on a specific algorithm for each structure

Basic FIR Digital Filter Structures A causal FIR filter of order N is characterized by a transfer function H(z) given by which is a polynomial in In the time-domain the input-output relation of the above FIR filter is given by

Direct Form FIR Digital Filter Structures An FIR filter of order N is characterized by N+1 coefficients and, in general, require N+1 multipliers and N two-input adders Structures in which the multiplier coefficients are precisely the coefficients of the transfer function are called direct form structures

Direct Form FIR Digital Filter Structures A direct form realization of an FIR filter can be readily developed from the convolution sum description as indicated below for N = 4

Direct Form FIR Digital Filter Structures An analysis of this structure yields 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 tapped delay line or a transversal filter

Direct Form FIR Digital Filter Structures The transpose of the direct form structure shown earlier is indicated below Both direct form structures are canonic with respect to delays

Cascade Form FIR Digital Filter Structures A higher-order FIR transfer function can also be realized as a cascade of second-order FIR sections and possibly a first-order section To this end we express H(z) as where if N is even, and if N is odd, with

Cascade Form FIR Digital Filter Structures A cascade realization for N = 6 is shown below Each second-order section in the above structure can also be realized in the transposed direct form

Polyphase FIR Structures The polyphase decomposition of H(z) leads to a parallel form structure To illustrate this approach, consider a causal FIR transfer function H(z) with N = 8:

Polyphase FIR Structures H(z) can be expressed as a sum of two terms, with one term containing the even-indexed coefficients and the other containing the odd-indexed coefficients:

Polyphase FIR Structures By using the notation we can express H(z) as

Polyphase FIR Structures In a similar manner, by grouping the terms in the original expression for H(z), we can reexpress it in the form where now

Polyphase FIR Structures The decomposition of H(z) in the form or is more commonly known as the polyphase decomposition

Polyphase FIR Structures In the general case, an L-branch polyphase decomposition of an FIR transfer function of order N is of the form where with h[n]=0 for n > N

Polyphase FIR Structures Figures below show the 4-branch, 3-branch, and 2-branch polyphase realization of a transfer function H(z) Note: The expression for the polyphase components are different in each case

Polyphase FIR Structures The subfilters in the polyphase realization of an FIR transfer function are also FIR filters and can be realized using any methods described so far However, to obtain a canonic realization of the overall structure, the delays in all subfilters must be shared

Polyphase FIR Structures Figure below shows a canonic realization of a length-9 FIR transfer function obtained using delay sharing

Linear-Phase FIR Structures The symmetry (or antisymmetry) property of a linear-phase FIR filter can be exploited to reduce the number of multipliers into almost half of that in the direct form implementations Consider a length-7 Type 1 FIR transfer function with a symmetric impulse response:

Linear-Phase FIR Structures Rewriting H(z) in the form we obtain the realization shown below

Linear-Phase FIR Structures A similar decomposition can be applied to a Type 2 FIR transfer function For example, a length-8 Type 2 FIR transfer function can be expressed as The corresponding realization is shown on the next slide

Linear-Phase FIR Structures Note: The Type 1 linear-phase structure for a length-7 FIR filter requires 4 multipliers, whereas a direct form realization requires 7 multipliers

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 Type 3 and Type 4 linear-phase FIR filters with antisymmetric impulse responses

Courtesy:Prof. Sanjit K. Mitra FIR Cascaded Lattice Structures Noor

Courtesy:Prof. Sanjit K. Mitra FIR Cascaded Lattice Structures Noor

Courtesy:Prof. Sanjit K. Mitra FIR Cascaded Lattice Structures Noor

Courtesy:Prof. Sanjit K. Mitra FIR Cascaded Lattice Structures Noor

Courtesy:Prof. Sanjit K. Mitra FIR Cascaded Lattice Structures Noor

Courtesy:Prof. Sanjit K. Mitra FIR Cascaded Lattice Structures Noor

Courtesy:Prof. Sanjit K. Mitra FIR Cascaded Lattice Structures Noor

Courtesy:Prof. Sanjit K. Mitra FIR Cascaded Lattice Structures Noor

Courtesy:Prof. Sanjit K. Mitra FIR Cascaded Lattice Structures Noor

Courtesy:Prof. Sanjit K. Mitra FIR Cascaded Lattice Structures Noor

Courtesy:Prof. Sanjit K. Mitra FIR Cascaded Lattice Structures Noor

Courtesy:Prof. Sanjit K. Mitra FIR Cascaded Lattice Structures Noor

Courtesy:Prof. Sanjit K. Mitra FIR Cascaded Lattice Structures Noor

Filter Specification

Filter Design by Windowing Simplest way of designing FIR filters Method is all discrete-time no continuous-time involved Start with ideal frequency response Choose ideal frequency response as desired response Most ideal impulse responses are of infinite length The easiest way to obtain a causal FIR filter from ideal is More generally

Windowing in Frequency Domain Windowed frequency response The windowed version is smeared version of desired response If w[n]=1 for all n, then W(ej) is pulse train with 2 period

Properties of Windows Prefer windows that concentrate around DC in frequency Less smearing, closer approximation Prefer window that has minimal span in time Less coefficient in designed filter, computationally efficient So we want concentration in time and in frequency Contradictory requirements Example: Rectangular window

Rectangular Window Narrowest main lob Large side lobs Sharpest transitions at discontinuities in frequency Large side lobs -13 dB Large oscillation around discontinuities Simplest window possible

Bartlett (Triangular) Window Medium main lob 8/M Side lobs -25 dB Hamming window performs better Simple equation

Hanning Window Medium main lob Side lobs -31 dB Hamming window performs better Same complexity as Hamming

Hamming Window Medium main lob Good side lobs Simpler than Blackman -41 dB Simpler than Blackman

Blackman Window Large main lob Very good side lobs Complex equation -57 dB Complex equation

Incorporation of Generalized Linear Phase Windows are designed with linear phase in mind Symmetric around M/2 So their Fourier transform are of the form Will keep symmetry properties of the desired impulse response Assume symmetric desired response With symmetric window Periodic convolution of real functions

Linear-Phase Lowpass filter Desired frequency response Corresponding impulse response Desired response is even symmetric, use symmetric window

Window Method First stage of this method is to calculate the coefficients of the ideal filter. This is calculated as follows:

Window Method Using the Hamming Window: Second stage of this method is to select a window function based on the passband or attenuation specifications, then determine the filter length based on the required width of the transition band. Using the Hamming Window:

Window Method The third stage is to calculate the set of truncated or windowed impulse response coefficients, h[n]: for Where: for

Frequency sampling Method The desired frequency response (11.23.1) can be specified by its frequency samples at equally spaced (discrete) frequencies: (11.23.2) Where (11.23.3)  = 0:  = 0.5: 2/M 2/M /M (11.23.4)

Finite Wordlength Effects   Quantization Q Output Input

Finite Word length Effects The pdf for e using rounding Noise power or

Limit-cycles; "Effective Pole" Model; Deadband Observe that for instability occurs when i.e. poles are (i) either on unit circle when complex (ii) or one real pole is outside unit circle. Instability under the "effective pole" model is considered as follows

Finite Word length Effects   In the time domain with With for instability we have indistinguishable from Where is quantisation

Finite Word length Effects   With rounding, therefore we have are indistinguishable (for integers) or Hence With both positive and negative numbers

Finite Word length Effects   The range of integers constitutes a set of integers that cannot be individually distinguished as separate or from the asymptotic system behaviour. The band of integers is known as the "deadband". In the second order system, under rounding, the output assumes a cyclic set of values of the deadband. This is a limit-cycle.