DSP-CIS Chapter-5: Filter Realization

Slides:



Advertisements
Similar presentations
SUNG JU KIM 1 i = j - i + 1 complex conjugates matrix.
Advertisements

DCSP-14 Jianfeng Feng Department of Computer Science Warwick Univ., UK
ALARI/DSP INTRODUCTION-2
1 ECE734 VLSI Arrays for Digital Signal Processing Chapter 3 Parallel and Pipelined Processing.
Hossein Sameti Department of Computer Engineering Sharif University of Technology.
Properties of State Variables
Digital Signal Processing – Chapter 11 Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah
AGC DSP AGC DSP Professor A G Constantinides©1 A Prediction Problem Problem: Given a sample set of a stationary processes to predict the value of the process.
Digital Kommunikationselektronik TNE027 Lecture 4 1 Finite Impulse Response (FIR) Digital Filters Digital filters are rapidly replacing classic analog.
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
Dept. E.E./ESAT-STADIUS, KU Leuven homes.esat.kuleuven.be/~moonen/
DSP-CIS Chapter-6: Filter Implementation Marc Moonen Dept. E.E./ESAT, KU Leuven
Lecture 9: Structure for Discrete-Time System XILIANG LUO 2014/11 1.
Unit III FIR Filter Design
DSP-CIS Chapter-5: Filter Realization Marc Moonen Dept. E.E./ESAT-STADIUS, KU Leuven
Chapter 6 Digital Filter Structures
Professor A G Constantinides 1 Signal Flow Graphs Linear Time Invariant Discrete Time Systems can be made up from the elements { Storage, Scaling, Summation.
DSP-CIS Chapter-8: Maximally Decimated PR-FBs Marc Moonen Dept. E.E./ESAT-STADIUS, KU Leuven
UNIT-5 Filter Designing. INTRODUCTION The Digital filters are discrete time systems used mainly for filtering of arrays. The array or sequence are obtained.
Digital Signal Processing FIR Filter Design
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.
Husheng Li, UTK-EECS, Fall  Study how to implement the LTI discrete-time systems.  We first present the block diagram and signal flow graph. 
CHAPTER 6 Digital Filter Structures
P. 1 DSP-II Digital Signal Processing II Lecture 3: Filter Realization Marc Moonen Dept. E.E./ESAT, K.U.Leuven homes.esat.kuleuven.ac.be/~moonen/
System Function of discrete-time systems
P. 1 DSP-II Digital Signal Processing II Lecture 7: Modulated Filter Banks Marc Moonen Dept. E.E./ESAT, K.U.Leuven homes.esat.kuleuven.be/~moonen/
Infinite Impulse Response Filters
Z TRANSFORM AND DFT Z Transform
Chapter 7 Finite Impulse Response(FIR) Filter Design
Digital Signal Processing
Digital Filter Realization
Dept. E.E./ESAT-STADIUS, KU Leuven
DSP-CIS Part-IV : Filter Banks & Subband Systems Chapter-12 : Frequency Domain Filtering Marc Moonen Dept. E.E./ESAT-STADIUS, KU Leuven
P. 1 DSP-II Digital Signal Processing II Lecture 4: Filter Implementation Marc Moonen Dept. E.E./ESAT, K.U.Leuven homes.kuleuven.be/sista/~moonen/
Transform Analysis of LTI Systems Quote of the Day Any sufficiently advanced technology is indistinguishable from magic. Arthur C. Clarke Content and Figures.
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Normal Equations The Orthogonality Principle Solution of the Normal Equations.
Structures for Discrete-Time Systems
Digital Filter Structures
P. 1 DSP-II Digital Signal Processing II Lecture 6: Maximally Decimated Filter Banks Marc Moonen Dept. E.E./ESAT, K.U.Leuven
Digital Signal Processing II Lecture 7: Maximally Decimated Filter Banks Marc Moonen Dept. E.E./ESAT, K.U.Leuven
DEPARTMENTT OF ECE TECHNICAL QUIZ-1 AY Sub Code/Name: EC6502/Principles of digital Signal Processing Topic: Unit 1 & Unit 3 Sem/year: V/III.
Structures for Discrete-Time Systems 主講人:虞台文. Content Introduction Block Diagram Representation Signal Flow Graph Basic Structure for IIR Systems Transposed.
Lecture 8: Transform Analysis of LTI System XILIANG LUO 2014/10 1.
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.
P. 1 DSP-II Digital Signal Processing II Lecture 3: Filter Realization Marc Moonen Dept. E.E./ESAT, K.U.Leuven homes.esat.kuleuven.ac.be/~moonen/
EENG 751 3/16/ EENG 751: Signal Processing I Class # 9 Outline Signal Flow Graph Implementation l Fundamentals l System Function l Graph Construction.
DSP-CIS Part-II / Chapter-6 : Filter Implementation Marc Moonen Dept. E.E./ESAT-STADIUS, KU Leuven
Chapter 5. Transform Analysis of LTI Systems Section
DSP-CIS Part-III : Optimal & Adaptive Filters Chapter-9 : Kalman Filters Marc Moonen Dept. E.E./ESAT-STADIUS, KU Leuven
Chapter 4 Structures for Discrete-Time System Introduction The block diagram representation of the difference equation Basic structures for IIR system.
Application of digital filter in engineering
Structures for Discrete-Time Systems
Digital Signal Processing
EEE4176 Applications of Digital Signal Processing
Discrete-time Systems
Lecture 12 Linearity & Time-Invariance Convolution
Infinite Impulse Response Filters
Quick Review of LTI Systems
لجنة الهندسة الكهربائية
Lect5 A framework for digital filter design
Z TRANSFORM AND DFT Z Transform
Chapter 6 Discrete-Time System
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Simple Filters Comb Filters (Optional reading) Allpass Transfer.
DSP-CIS Chapter 8: Modulated Filter Banks
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Ideal Filters Zero Phase Transfer Functions Linear Phase Transfer.
Zhongguo Liu Biomedical Engineering
Chapter 9 Advanced Topics in DSP
Lecture 22 IIR Filters: Feedback and H(z)
DSP-CIS Chapter 5: Filter Implementation
Digital Signal Processing II Lecture 3: Filter Realization
Presentation transcript:

DSP-CIS Chapter-5: Filter Realization Marc Moonen Dept. E.E./ESAT, KU Leuven marc.moonen@esat.kuleuven.be www.esat.kuleuven.be/scd/

Filter Design/Realization Step-1 : define filter specs (pass-band, stop-band, optimization criterion,…) Step-2 : derive optimal transfer function FIR or IIR design Step-3 : filter realization (block scheme/flow graph) direct form realizations, lattice realizations,… Step-4 : filter implementation (software/hardware) finite word-length issues, … question: implemented filter = designed filter ? ‘You can’t always get what you want’ -Jagger/Richards (?) Chapter-4 Chapter-5 Chapter-6

Chapter-5 : Filter Realizations Overview: FIR Filter Realizations IIR Filter Realizations PS: Will always assume real-valued filter coefficients Q: Why bother about many different realizations for one and the same filter? A: See Chapter-6

FIR Filter Realizations =Construct (realize) LTI system (with delay elements, adders and multipliers), such that I/O behavior is given by.. Several possibilities exist… 1. Direct form 2. Transposed direct form 3. Lattice (LPC lattice) 4. Lossless lattice PS: Frequency-domain realization: see Chapter-7

FIR Filter Realizations 1. Direct form u[k] u[k-4] u[k-3] u[k-2] u[k-1] x bo + b4 b3 b2 b1 y[k]

FIR Filter Realizations 2. Transposed direct form Starting point is direct form : `Retiming’ = select subgraph (shaded) remove one delay element on all inbound arrows add one delay element on all outbound arrows u[k] u[k-1] u[k-2] u[k-3] u[k-4] x bo + b1 b2 b3 b4 x x x x y[k] + + +

FIR Filter Realizations `Retiming’ : results in... u[k] u[k-1] u[k-3] u[k-4] x bo + b1 b2 b3 b4 x x x x y[k] + + + (=different software/hardware, same i/o-behavior)

FIR Filter Realizations `Retiming’ : repeated application results in... i.e. `transposed direct form’ u[k] x bo + y[k] b1 b2 b3 b4 (=different software/hardware (`pipeline delays’), same i/o-behavior)

FIR Filter Realizations 3. Lattice form Derived from combined realization of with `flipped’ version of H(z) Reversed (real-valued) coefficient vector results in... i.e. - same magnitude response - different phase response

FIR Filter Realizations Starting point is direct form realization… u[k] u[k-1] u[k-2] u[k-3] u[k-4] b4 b3 b2 b1 bo x x x x x b4 bo b1 b2 b3 x x x x x y[k] ~ + + + + y[k] + + + + Now 1 page of maths…

FIR Filter Realizations With this can be rewritten as order reduction PS: find fix for case bo=0 PS: if |ko|=1, then transformation matrix is rank-deficient

FIR Filter Realizations This is equivalent to... …Now repeat procedure for shaded graph (=same structure as the one we started from) u[k] u[k-2] u[k-2] u[k-3] b’3 b’2 b’1 b’o x x x x y[k] + x ko ~ b’o b’1 b’2 b’3 x x x x + + + + + +

FIR Filter Realizations Repeated application results in `lattice form’ explain u[k] bo x y[k] ~ + + + + x x x x ko k1 k2 k3 x x x x y[k] + + + + (= different software/hardware, same i/o-behavior)

FIR Filter Realizations Also known as `LPC Lattice’ (`linear predictive coding lattice’) Ki’s are so-called `reflection coefficients’ Every set of bi’s corresponds to a set of Ki’s, and vice versa. Procedure for computing Ki’s from bi’s corresponds to the well-known `Schur-Cohn’ stability test (from control theory): problem = for a given polynomial B(z), how do we find out if all the zeros of B(z) are stable (i.e. lie inside unit circle) ? solution = from bi’s, compute reflection coefficients Ki’s (following procedure on previous slides). Zeros are (proved to be) stable if and only if all reflection coefficients statisfy |Ki|<1 ! Procedure (page 11) breaks down if |Ki|=1 is encountered. Means at least one root of B(z) lies on or outside the unit circle (cfr Schur-Cohn). Then have to use other realization

FIR Filter Realizations 4. Lossless lattice : Derived from combined realization of H(z) with which is such that (*) PS : interpretation ?… (see next slide) PS : may have to scale H(z) to achieve this (why?) (scaling omitted here)

FIR Filter Realizations PS : Interpretation ? When evaluated on the unit circle, formula (*) is equivalent to (for filters with real-valued coefficients) i.e. and are `power complementary’ (= form a 1-input/2-output `lossless’ system, see also below) 1

FIR Filter Realizations PS : How is computed ? Note that if zi (and zi*) is a root of R(z), then 1/zi (and 1/zi*) is also a root of R(z). Hence can factorize R(z) as… Note that zi’s can be selected such that all roots of lie inside the unit circle, i.e. is a minimum-phase FIR filter. This is referred to as spectral factorization, =spectral factor.

FIR Filter Realizations Starting point is direct form realization… u[k] u[k-1] u[k-2] u[k-3] u[k-4] x x x x x x b1 b2 b3 bo b4 x x x x y[k] ~ + + + + y[k] + + + + Now 1 page of maths…

FIR Filter Realizations From (*) (page 15), it follows that (**) Hence there exists a rotation angle θo such that = orthogonal vectors order reduction

FIR Filter Realizations This is equivalent to... Now shaded graph can again be proven(***) to be power complementary system (intuition?). Hence can repeat procedure… u[k] u[k-3] u[k-2] x + b’o b’1 b’2 b’3 y[k] ~

FIR Filter Realizations Repeated application results in `lossless lattice’ explain u[k] y[k] ~ + x + x + x + x x x x x x x x y[k] + x + x + x x

FIR Filter Realizations Lossless lattice : also known as `paraunitary lattice‘ each 2-input/2-output section is based on an orthogonal transformation, which preserves norm/energy/power i.e. forms a 2-input/2-output `lossless’ system (=time-domain view). Overall system is realized as cascade of lossless sections (+delays), hence is itself also `lossless’ (see p.16, =freq-domain view)

FIR Filter Realizations PS : can be generalized to 1-input N-output lossless systems (will be used in Part III on filter banks) (compare to p.21 !) y[k] ~ u[k] + x x x N=3 y[k] ~ + x x + x x y[k] x explain/derive!

IIR Filter Realizations Construct LTI system such that I/O behavior is given by.. Several possibilities exist… 1. Direct form 2. Transposed direct form PS: Parallel and cascade realization 3. Lattice-ladder form 4. Lossless lattice

IIR Filter Realizations 1. Direct form Starting point is… + + + + u[k] -a1 -a2 -a3 -a4 x x x x x bo b4 b3 b2 b1 y[k] + + + +

IIR Filter Realizations which is equivalent to... PS : If all ai=0 (i.e. H(z) is FIR), then this reduces to a direct form FIR u[k] + + + + -a1 -a2 -a3 -a4 x x x x x bo b4 b3 b2 b1 direct form B(z) y[k] + + + +

IIR Filter Realizations 2. Transposed direct form Starting point is… u[k] x bo b4 b3 b2 b1 + + + + + + + + -a1 -a2 -a3 -a4 x x x x y[k]

IIR Filter Realizations which is equivalent to... u[k] x bo b4 b3 b2 b1 + + + + -a1 -a2 -a3 -a4 x x x x y[k]

IIR Filter Realizations Transposed direct form is obtained after retiming ... PS : If all ai=0 (i.e. H(z) is FIR), then this reduces to a transposed direct form FIR u[k] x bo b4 b3 b2 b1 transposed direct form B(z) + + + + -a1 -a2 -a3 -a4 x x x x y[k]

IIR Filter Realizations PS: Parallel & Cascade Realization Parallel real. obtained from partial fraction decomposition, e.g. for simple poles: similar for the case of multiple poles each term realized in, e.g., direct form transmission zeros are realized iff signals from different sections exactly cancel out. =Problem in finite word-length implementation u[k] y[k] +

IIR Filter Realizations PS: Parallel & Cascade Realization Cascade realization obtained from pole-zero factorization of H(z) e.g. for L even: similar for L odd each section realized in, e.g., direct form second-order sections are called `bi-quads‘ non-unique: multiple ways of pairing poles and zero & multiple ways of ordering sections in cascade u[k] y[k]

IIR Filter Realizations 3. Lattice-ladder form Derived from combined realization of with… - numerator polynomial is denominator polynomial with reversed coefficient vector (see also p.10) - hence is an `all-pass’ (=`SISO lossless’) filter :

IIR Filter Realizations Lattice-ladder form (v1) (no derivation) u[k] y[k] ~ x + ‘lattice part’ x x x x x ‘ladder part’ b4 b3’ b2’’ b1’’’ y[k] + + + +

IIR Filter Realizations Lattice-ladder form (v2) (no derivation) u[k] y[k] ~ x + ‘lattice part’ x x x x x ‘ladder part’ b0 b1’ b2’’ b3’’’ y[k] + + + +

IIR Filter Realizations Ki’s =sin(thetai) are `reflection coefficients’ Procedure for computing Ki’s from ai’s again corresponds to `Schur-Cohn’ stability test Orthogonal transformations correspond to 2-input/2-output `lossless’ sections (=time-domain view). Cascade of lossless sections (+delays) is also `lossless’, i.e. `all-pass‘

IIR Filter Realizations PS : Note that the all-pass part corresponds to A(z) (i.e. L angles θi correspond to L coeffs ai) while the ladder part corresponds to B(z). If all ai=0 (i.e. H(z) is FIR), then all θi=0, hence the all-pass part reduces to a delay line, and the lattice-ladder form reduces to a direct-form FIR. PS : `All-pass’ part (SISO u[k]->y[k]) is known as `Gray-Markel’ structure ~ u[k] y[k] ~ x +

IIR Filter Realizations 4. Lossless-lattice : Derived from combined realization of (possibly rescaled) with... such that… (**) i.e. and are `power complementary’ (p.16-17)

IIR Filter Realizations Lossless-lattice form (no derivation) u[k] y[k] ~ x + x x + x x x x x + x + x

IIR Filter Realizations Orthogonal transformations correspond to (3-input 3-output) `lossless sections‘ Overall system is realized as cascade of lossless sections (+delays), hence is itself also `lossless‘ PS : If all ai=0 (i.e. H(z) is FIR), then all θi=0 and then this reduces to FIR lossless lattice PS : If all φi=0, then this reduces to Gray-Markel structure ! !

IIR Filter Realizations PS : can be generalized to 1-input N-output lossless systems (=combine p.23 & p.38 !) u[k] x + y[k] ~ + x x x y[k] ~ x + x + x x y[k] x