Digital Filter Structures 1.Block Diagram Representation Chapter 8 Input-output relation of an LTI system can be Block Diagram Representation realized using different computational ●●● algorithms Equivalent Structures .Basic realization forms of FIR and IIR digital Digital Filter Structures Basic FIR Digital Filter Structures filters are considered Basic IIR Digital Filter Structures Mitra's book covers also various more sophisticated realizations of digital filters,e.g. lattice structures,allpass sections,and state space structures,not discussed in this course 1.Block Diagram Representation 1.Block Diagram Representation 1.Block Diagram Representation The convolution sum description of an LTI In the time domain,the input-output relations To illustrate what we mean by a discrete-time system can,in principle,be used of an LTI digital filter is given by the computational algorithm,consider the causal to implement the system. convolution sum or,by the linear constant first-order LTI digital filter shown below For an IIR finite-dimensional system,this coefficient difference equation approach is not practical as here the impulse For the implementation of an LTI digital filter, response is of infinite length. the input-output relationship must be However,a direct implementation of the IIR described by a valid computational algorithm. finite-dimensional system is practical w(n)=-dv(n-1)+px(n)+px(n-1)
Chapter 8 Digital Filter Structures Digital Filter Structures Block Diagram Representation Equivalent Structures Equivalent Structures Basic FIR Digital Filter Structures Basic FIR Digital Filter Structures Basic IIR Digital Filter Structures Basic IIR Digital Filter Structures 1. Block Diagram Representation Input-output relation of an LTI system can be realized using different computational algorithms Basic realization forms of FIR and IIR digital filters are considered Mitra’s book covers also various more sophisticated realizations of digital filters, e.g. lattice structures, allpass sections, and state space structures, not discussed in this course 1. Block Diagram Representation The convolution sum description of an LTI discrete-time system can, in principle, be used to implement the system. For an IIR finite-dimensional system, this approach is not practical as here the impulse impulse response is of infinite length. However, a direct implementation of the IIR finite-dimensional system is practical 1. 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 linear constant coefficient difference equation For the implementation of an LTI digital filter, the input-output relationship must be described by a valid computational algorithm. 1. Block Diagram Representation To illustrate what we mean by a computational algorithm, consider the causal first-order LTI digital filter order LTI digital filter shown below 1 z 1 z 0 p 1 p 1 d x( ) n y( ) n 1 pxn( 1) 0 pxn( ) 1 dyn( 1) 1 01 yn dyn pxn pxn ( ) ( 1) ( ) ( 1)
1.Block Diagram Representation 1.1 Basic Building Blocks 1.1 Basic Building Blocks Using the above equation we can compute y(n) The computational algorithm of an LTI digital filter can be conveniently represented in block The corresponding signal flow charts are for n0 knowing the initial condition -1) diagram form using the basic building blocks shown on the right-hand side and the inputx(n)for n-1 shown below →☒+一0 y(O)=-dy-1)+Pwx(0)+Ax(-1) )=-d(O)+Px()+P,x(0) 一甲一ww一一m sH() -a(n) y(2)=-4)+Px(2)+Px1) Multiplior We can continue this calculation for any value of n we desire (by iterative computation) 网一回一 Uait dday PicLoff nade(Bruncling (n) 1.1 Basic Building Blocks 1.1 Basic Building Blocks 1.2 Analysis of Block Diagrams Steps of Analyzing Block Diagrams Advantages of block diagram/signal flow 3 Easy to manipulate a block diagram to derive Carried out by writing down the expressions chart representation other"equivalent"block diagrams yielding for the output signals of each adder as a sum 1 Easy to write down the computational different computational algorithms. of its input signals,and developing a set of algorithm by inspection. 4Easy to determine the hardware requirements. equations relating the filter input and output 2 Easy to analyze the block diagram to 5 Easier to develop block diagram signals in terms of all internal signals determine the explicit relation between the representations from the transfer function Eliminating the unwanted internal variables output and input. directly. then results in the expression for the output signal as a function of the input signal and the filter parameters that are the multiplier coefficients
1. Block Diagram Representation Using the above equation we can compute y(n) for nı0 knowing the initial condition y(ˉ1) and the input x(n) for nıˉ1 We can continue this calculation for any value of n we desire (by iterative computation) 1 01 y dy px px (0) ( 1) (0) ( 1) 1 01 y(1) (0) (1) (0) d y px px 10 1 y(2) (1) (2) (1) d y px px 1.1 Basic Building Blocks The computational algorithm of an LTI digital filter can be conveniently represented in block diagram form using the basic building blocks basic building blocks shown below 1 z x n( ) y n( ) x n( ) y n( ) x n( ) y n( ) x n( ) x n( ) x n( ) w n( ) The corresponding signal flow charts signal flow charts are shown on the right-hand side z 1 1 z a x(n) x(n1) x(n) ax(n) a x1(n) x2(n) x1(n)+x2(n) x(n) x(n1) x(n) ax(n) x1(n) x1(n)+x2(n) x2(n) 1.1 Basic Building Blocks Advantages of block diagram/signal flow Advantages of block diagram/signal flow chart representation ķ Easy to write down the computational algorithm by inspection. ĸ Easy to analyze the block diagram to determine the explicit relation between the output and input. 1.1 Basic Building Blocks 1.1 Basic Building Blocks Ĺ Easy to manipulate a block diagram to derive other “equivalent equivalent” block diagrams yielding different computational algorithms. ĺ Easy to determine the hardware requirements. Ļ Easier to develop block diagram representations from the transfer function directly. 1.2 Analysis of Block Diagrams Steps of Analyzing Block Diagrams Steps of Analyzing Block Diagrams Carried out by writing down the expressions for the output signals of each adder as a sum of its input signals, and developing a set of equations relating the filter input and output signals in terms of all internal signals Eliminating the unwanted internal variables then results in the expression for the output signal as a function of the input signal and the filter parameters that are the multiplier coefficients
1.2 Analysis of Block Diagrams 1.2 Analysis of Block Diagrams 1.3 Canonic and Noncanonic Structures Example Eliminating E(z)from the previous two A digital filter structure is said to be canonic Consider the single-loop feedback structure equations we arrive at if the number of delays in the block diagram shown below [1-G,(z)G2(e)]Y(z)=G(2)X(2) representation is equal to the order of the transfer function which leads to Otherwise,it is a noncanonic structure G国 Y(2) H(2)= G() The structure shown in the next slide is The output E(z)of the adder is X(2)1-G(2)G(2) noncanonic as it employs two delays to E(z)=X(2)+G,(2)Y(z) realize a first-order difference equation But from the figure Y(2)=G(z)E(z) 1.3 Canonic and Noncanonic Structures 2.Equivalent Structures 2.Equivalent Structures .Two digital filter structures are defined to be Transpose Operation y(n)=-d(n-1)+px(n)+px(n-1) equivalent if they have the same transfer (1)Reverse all paths function (2)Replace pick-off nodes by adders,and vice We describe next a number of methods for the versa generation of equivalent structures (3)Interchange the input and output nodes However,a fairly simple way to generate an .All other methods for developing equivalent equivalent structure from a given realization structures are based on a specific algorithm is via the transpose operation for each structure
1.2 Analysis of Block Diagrams Example Example Consider the single-loop feedback structure shown below The output E(z) of the adder is But from the figure 1 G z( ) 2 G z( ) X ( )z Y z( ) E z( ) 2 Ez X z G zY z () () () () 1 Yz G zEz () () () 1.2 Analysis of Block Diagrams Eliminating E(z) from the previous two equations we arrive at which leads to 12 1 1 () () () () () G zG z Y z G zX z 1 1 2 ( ) ( ) ( ) () 1 () () Y z G z H z X z G zG z 1.3 Canonic and Noncanonic Structures A digital filter structure is said to be canonic 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 noncanonic structure The structure shown in the next slide is noncanonic as it employs two delays to realize a first-order difference equation 1.3 Canonic and Noncanonic Structures 1 z 0 p 1 p 1 d x( ) n y( ) n 1 z 1 01 yn dyn pxn pxn ( ) ( 1) ( ) ( 1) 2. Equivalent Structures Two digital filter structures are defined to be equivalent 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 2. 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
2.Equivalent Structures 2.Equivalent Structures 2.Equivalent Structures There are literally an infinite number of Under infinite precision arithmetic any given Hence,it is important to choose a structure equivalent structures realizing the same realization of a digital filter behaves that has the least quantization effects when transfer function identically to any other equivalent structure implemented using finite precision arithmetic It is thus impossible to develop all equivalent However,in practice,due to the finite One way to arrive at such a structure is to realizations wordlength limitations,a specific realization determine a large number of equivalent In this course we restrict our attention to a behaves totally differently from its other structures,analyze the finite wordlength discussion of some commonly used structures equivalent realizations effects in each case,and select the one showing the least effects 2.Equivalent Structures 3.FIR Digital Filter Structures 3.FIR Digital Filter Structures .In certain cases,it is possible to develop a ◆Direct Form .A causal FIR filter of order N-I is structure that by construction has the least characterized by a transfer function A(z) quantization effects ◆Cascade Form given by We defer the review of these structures after a Linear-phase Structure H(2)=∑hk)z discussion of the analysis of quantization which is a polynomial in effects (not included in Kuo's revised book) In the time-domain the input-output relation Here,we review some simple realizations that of the above FIR filter is given by in many applications are quite adequate m=2Aka-k利 -0
2. Equivalent Structures There are literally an infinite number of equivalent structures realizing the same transfer function It is thus impossible to develop all equivalent realizations In this course we restrict our attention to a discussion of some commonly used structures 2. Equivalent Structures Under infinite infinite precision arithmetic any given realization of a digital filter behaves identically to any other equivalent structure However, in practice, due to the finite wordlength limitations limitations, a specific realization behaves totally differently from its other equivalent realizations 2. Equivalent Structures Hence, it is important to choose a structure that has the least quantization effects least quantization effects when implemented using finite precision arithmetic finite precision arithmetic One way to arrive at such a structure is to determine a large number of equivalent structures, analyze the finite wordlength effects effects in each case, and select the one showing the least effects 2. Equivalent Structures In certain cases, it is possible to develop a structure that by construction has the least quantization effects We defer the review of these structures after a discussion of the analysis of quantization effects (not included in Kuo’s revised book) Here, we review some simple realizations that in many applications are quite adequate 3. FIR Digital Filter Structures Direct Form Cascade Form Linear-phase Structure phase Structure 3. FIR Digital Filter Structures A causal FIR filter of order Nˉ1 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 1 0 () () N k k H z hkz 1 z 1 0 () ()( ) N k y n hkxn k
3.1 Direct Form FIR Digital Filter 3.1 Direct Form FIR Digital Filter 3.1 Direct Form FIR Digital Filter Structures Structures Structures .An FIR filter of order N-lis characterized by A direct form realization of an FIR filter can An analysis of this structure yields N coefficients and,in general,require N be readily developed from the convolution yn)=h0)x(n))+hI)x(n-1)+h(2)x(n-2) multipliers and N-1 two-input adders sum description as indicated below for N=5 +h(3)x(n-3)+h4)x(n-4) Structures in which the multiplier coefficients which is precisely of the form of the are precisely the coefficients of the transfer convolution sum description function are called direct form structures The direct form structure shown on the previous slide is also known as a tapped delay line or a transversal filter. 3.1 Direct Form FIR Digital Filter 3.2 Cascade Form FIR Digital Filter 3.2 Cascade Form FIR Digital Filter Structures Structures Structures .A cascade realization for N=6 is shown below A higher-order FIR transfer function can also be realized as a cascade of second order FIR 2 M4 sections and possibly a first-order section To this end we express H(z)as General Form xdaH He)=ho1+A2+B2) -2 where k=N/2 if N is even,andk=(N+1)/2 if Nis odd,with =0
3.1 Direct Form FIR Digital Filter Structures An FIR filter of order Nˉ1is characterized by N coefficients and, in general, require N multipliers and Nˉ1 two-input adders Structures in which the multiplier coefficients are precisely the coefficients of the transfer function are called direct form structures 3.1 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 =5 1 x n( ) z x n( 1) x n( 2) x n( 3) x n( 4) h(0) h(1) h(2) h(3) h(4) y n( ) 1 z 1 z 1 z 3.1 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 tapped delay line or a transversal transversal filter. ( ) (0) ( ) (1) ( 1) (2) ( 2) (3) ( 3) (4) ( 4) yn h xn h xn h xn h xn h xn 3.1 Direct Form FIR Digital Filter Structures x n 1 z h 0 h 2 1 z h 3 1 z h 4 1 z h 1 y n x n 1 x n 2 x n 3 x n 4 x n 1 z h 0 h 2 1 z h N 2 h N 1 1 z h 1 y n General Form 3.2 Cascade Form FIR Digital Filter Structures A higher-order FIR transfer function can also be realized as a cascade of second order FIR cascade of second order FIR sections 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 1 2 1 2 1 ( ) (0) 1 K k k k Hz h z z k N / 2 k N 1 /2 2 0 k 3.2 Cascade Form FIR Digital Filter Structures A cascade realization for N = 6 is shown below 11 21 1 z 12 22 13 23 h(0) 1 z 1 z 1 z 1 z 1 z h(0) 11 x n 21 12 22 13 23 y n