Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 6 Digital Filter Structures

Similar presentations


Presentation on theme: "Chapter 6 Digital Filter Structures"— Presentation transcript:

1 Chapter 6 Digital Filter Structures
Content Introduction IIR Filter Structures FIR Filter Structures Copyright © Shi Ping CUC

2 Copyright © 2005. Shi Ping CUC
Introduction What is a digital filter A filter is a system that is designed to remove some component or modify some characteristic of a signal A digital filter is a discrete-time LTI system which can process the discrete-time signal. There are various structures for the implementation of digital filters The actual implementation of an LTI digital filter can be either in software or hardware form, depending on applications Copyright © Shi Ping CUC

3 Copyright © 2005. Shi Ping CUC
Introduction Basic elements of digital filter structures Adder has two inputs and one output. Multiplier (gain) has single-input, single-output. Delay element delays the signal passing through it by one sample. It is implemented by using a shift register. a Block diagram Signal-flow graph z-1 a z-1 Copyright © Shi Ping CUC

4 Copyright © 2005. Shi Ping CUC
a1 z-1 a2 b0 a1 a2 b0 z-1 1 2 5 3 4 Copyright © Shi Ping CUC

5 Copyright © 2005. Shi Ping CUC
Introduction The major factors that influence the choice of a specific structure Computational complexity refers to the number of arithmetic operations (multiplications, divisions, and additions) required to compute an output value y(n) for the system. Memory requirements refers to the number of memory locations required to store the system parameters, past inputs, past outputs, and any intermediate computed values. Finite-word-length effects in the computations refers to the quantization effects that are inherent in any digital implementation of the system, either in hardware or in software. return Copyright © Shi Ping CUC

6 IIR Filter Structures The characteristics of the IIR filter
IIR filters have Infinite-duration Impulse Responses The system function H(z) has poles in An IIR filter is a recursive system 可参考教材P75~76 The order of such an IIR filter is called N if aN≠0 Copyright © Shi Ping CUC

7 Copyright © 2005. Shi Ping CUC
IIR Filter Structures Direct form In this form the difference equation is implemented directly as given. There are two parts to this filter, namely the moving average part and the recursive part (or the numerator and denominator parts). Therefore this implementation leads to two versions: direct form I and direct form II structures Copyright © Shi Ping CUC

8 Copyright © 2005. Shi Ping CUC
Direct form I b1 b2 b0 z-1 bM-1 bM a1 a2 z-1 aN-1 aN Copyright © Shi Ping CUC

9 Copyright © 2005. Shi Ping CUC
Direct form II For an LTI cascade system, we can change the order of the systems without changing the overall system response b1 b2 b0 z-1 bM-1 bM a1 a2 aN-1 aN z-1 直接II型比直接I型节省存储单元(软件实现),或节省寄存器(硬件实现) 但不论是直接I型还是直接II型,其共同的缺点是系数对滤波器的性能控制作用不明显,这是因为它们与系统函数的零极点关系不明确因而调整困难。 另外,这两种结构极点对系数的变化过于敏感,从而使系统频率响应对系数的变化过于灵敏,也就是对有限精度(有限字长)运算过于灵敏,容易出现不稳定或产生较大误差。 Copyright © Shi Ping CUC

10 Copyright © 2005. Shi Ping CUC
IIR Filter Structures Cascade form In this form the system function H(z) is written as a product of second-order sections with real coefficients Copyright © Shi Ping CUC

11 Copyright © 2005. Shi Ping CUC
IIR Filter Structures Each second-order section (called biquads) is implemented in a direct form ,and the entire system function is implemented as a cascade of biquads. If N=M, there are totally biquads. If N>M, some of the biquads have numerator coefficients that are zero, that is, either b2k = 0 or b1k = 0 or both b2k = b1k = 0 for some k. 为了简化级联形式,特别是在时分多路复用时,采用相同形式的子网络结构就更有意义,因而将实系数的两个一阶因子组合成二阶因子 若实系数的一阶因子有奇数个,则可认为某一个二阶因子的二阶系数为0 可以不考虑N<M的情况,因为这种情况转换为一个横向结构(只有分子,没有分母)和一个递归结构。 if N>M and N is odd, one of the biquads must have ak2 = 0, so that this biquad become a first-order section. Copyright © Shi Ping CUC

12 Copyright © 2005. Shi Ping CUC
b1k b2k z-1 a1k a2k biquad First-order section b1k z-1 a1k b1k z-1 a1k a2k z-1 a1k a2k z-1 a1k Copyright © Shi Ping CUC

13 Copyright © 2005. Shi Ping CUC
Example 5.2644 z-1 -0.5 0.25 4 2 级联型的特点: 调整系数b1k和b2k就能单独调整滤波器的第k对零点,而不影响其它零点和极点。 同样,调整系数a1k和a2k就能单独调整滤波器 第k对极点,而不影响其它零点和极点。 这种结构便于准确实现滤波器零、极点,因而便于调整滤波器频率相应特性。 Copyright © Shi Ping CUC

14 Copyright © 2005. Shi Ping CUC
IIR Filter Structures Parallel form In this form the system function H(z) is written as a sum of sections using partial fraction expansion. Each section is implemented in a direct form. The entire system function is implemented as a parallel of every section. Suppose M=N 当M<N,但M不等于N时,见教材P207(式5-7) Copyright © Shi Ping CUC

15 Copyright © 2005. Shi Ping CUC
IIR Filter Structures if N is odd, the system has one first-order section and second-order sections. if N is even, the system has second-order sections. Copyright © Shi Ping CUC

16 Copyright © 2005. Shi Ping CUC
Example Copyright © Shi Ping CUC

17 Copyright © 2005. Shi Ping CUC
-12.9 z-1 7/8 -3/32 -14.75 26.82 1 -1/2 24. 5 并联型可以用调整a1k和a2k的方法来单独调整一对极点的位置,但是不能单独调整零点的位置。 此外,并联型结构中,各并联基本节的误差相互没有影响,所以比级联型的误差一般来说要稍小一些,因此在要求准确的传输零点的场合下,宜采用级联型结构。 Copyright © Shi Ping CUC

18 Copyright © 2005. Shi Ping CUC
IIR Filter Structures Transposition theorem If we reverse the directions of all branch transmittances and interchange the input and output in the flow graph, the system function remains unchanged. The resulting structure is called a transposed structure or a transposed form. return Copyright © Shi Ping CUC

19 FIR Filter Structures The characteristics of the FIR filter
FIR filters have Finite-duration Impulse Responses, thus they can be realized by means of DFT The system function H(z) has the ROC of , thus it is a causal system An FIR filter is a nonrecursive system FIR filters can be designed to have a linear-phase response It has N-1 order poles at and N-1 zeros in The order of such an FIR filter is N-1 Copyright © Shi Ping CUC

20 Copyright © 2005. Shi Ping CUC
FIR Filter Structures Direct form In this form the difference equation is implemented directly as given. z-1 h(1) h(2) h(0) h(N-2) h(N-1) It requires N multiplications Copyright © Shi Ping CUC

21 Copyright © 2005. Shi Ping CUC
FIR Filter Structures Cascade form In this form the system function H(z) is converted into products of second-order sections with real coefficients It requires (3N/2) multiplications z-1 b11 b21 b01 b12 b22 b02 b1x b2x b0x Copyright © Shi Ping CUC

22 Copyright © 2005. Shi Ping CUC
FIR Filter Structures Linear-phase form Linear phase: The phase response is a linear function of frequency Linear-phase condition Symmetric impulse response Antisymmetric impulse response When an FIR filter has a linear phase response, its impulse response exhibits the above symmetry conditions. In this form we exploit these symmetry relations to reduce multiplications by about half. Copyright © Shi Ping CUC

23 Copyright © 2005. Shi Ping CUC
If N is odd Copyright © Shi Ping CUC

24 Copyright © 2005. Shi Ping CUC
If N is odd z-1 ±1 1 for symmetric -1 for antisymmetric Copyright © Shi Ping CUC

25 Copyright © 2005. Shi Ping CUC
If N is even Copyright © Shi Ping CUC

26 Copyright © 2005. Shi Ping CUC
If N is even z-1 ±1 1 for symmetric -1 for antisymmetric The linear-phase filter structure requires 50% fewer multiplications than the direct form. Copyright © Shi Ping CUC

27 Copyright © 2005. Shi Ping CUC
FIR Filter Structures Frequency sampling form This structure is based on the DFT of the impulse response h(n) and leads to a parallel structure. It is also suitable for a design technique based on the sampling of frequency response H(z) Copyright © Shi Ping CUC

28 Copyright © 2005. Shi Ping CUC
It has N equally spaced zeros on the unit circle All-zero filter or comb filter 2 Copyright © Shi Ping CUC

29 Copyright © 2005. Shi Ping CUC
resonant filter It has N equally spaced poles on the unit circle The pole locations are identical to the zero locations and that both occur at , which are the frequencies at which the designed frequency response is specified. The gains of the filter at these frequencies are simply the complex-valued parameters Copyright © Shi Ping CUC

30 Copyright © 2005. Shi Ping CUC
z-1 Copyright © Shi Ping CUC

31 Copyright © 2005. Shi Ping CUC
FIR Filter Structures Problems It requires a complex arithmetic implementation It is possible to obtain an alternate realization in which only real arithmetic is used. This realization is derived using the symmetric properties of the DFT and the factor. It has poles on the unit circle, which makes this filter critically unstable We can avoid this problem by sampling H(z) on a circle |z|=r where the radius r is very close to one but is less than one. Copyright © Shi Ping CUC

32 Copyright © 2005. Shi Ping CUC
jIm[z] Re[z] unit circle Copyright © Shi Ping CUC

33 Copyright © 2005. Shi Ping CUC
By using the symmetric properties of the DFT and the factor, a pair of single-pole filters can be combined to form a single two-pole filter with real-valued parameters. For poles h(n) is a real-valued sequence, so Copyright © Shi Ping CUC

34 Copyright © 2005. Shi Ping CUC
So the kth and (N-k)th resonant filters can be combined to form a second-order section with real-valued coefficients Copyright © Shi Ping CUC

35 Copyright © 2005. Shi Ping CUC
jIm[z] Re[z] N is even |z|=r jIm[z] Re[z] N is odd |z|=r If N is even, the filter has a pair of real-valued poles If N is odd, the filter has a single real-valued pole Copyright © Shi Ping CUC

36 Copyright © 2005. Shi Ping CUC
second-order section b1k z-1 b0k first-order sections z-1 r z-1 r Copyright © Shi Ping CUC

37 Copyright © 2005. Shi Ping CUC
N is even N is odd Copyright © Shi Ping CUC

38 Copyright © 2005. Shi Ping CUC
FIR Filter Structures Fast convolution form x(n): N1-point sequence h(n): N2-point sequence L ≥ N1 + N2 - 1 L-point DFT IDFT return Copyright © Shi Ping CUC

39 Copyright © 2005. Shi Ping CUC
return (digital signal processing\chap5\linear_phase.m) Copyright © Shi Ping CUC return


Download ppt "Chapter 6 Digital Filter Structures"

Similar presentations


Ads by Google