UNITIII STRUCTURES FOR THE REALIZATION OF DISCRETE TIME

  • Slides: 43
Download presentation
UNIT-III STRUCTURES FOR THE REALIZATION OF DISCRETE TIME SYSTEMS

UNIT-III STRUCTURES FOR THE REALIZATION OF DISCRETE TIME SYSTEMS

Structures for Discrete-Time Systems • Block Diagram Representation of Linear Constant-Coefficient Difference Equations •

Structures for Discrete-Time Systems • Block Diagram Representation of Linear Constant-Coefficient Difference Equations • Signal Flow Graph Representation of Linear Constant-Coefficient Difference Equations • Basic Structures for IIR Systems • Transposed Forms • Basic Network Structures for FIR Systems • Lattice Structures 2

Introduction • Example: The system function of a discrete-time system is |z| > |a|

Introduction • Example: The system function of a discrete-time system is |z| > |a| • Its impulse response will be h[n] = b 0 anu[n] + b 1 an-1 u[n-1] • Its difference equation will be y[n] –ay[n-1] = b 0 x[n] + b 1 x[n-1] Since this system has an infinite-duration impulse response, it is not possible to implement the system by discrete convolution. However, it can be rewritten in a form that provides the basis for an algorithm for recursive computation. y[n] = ay[n-1] + b 0 x[n] + b 1 x[n-1] 3

Block Diagram Representation of Linear Constant-coefficient Difference Equations x[n] a z-1 x[n] x 1[n]

Block Diagram Representation of Linear Constant-coefficient Difference Equations x[n] a z-1 x[n] x 1[n] + ax[n] x[n-1] Multiplication of a sequence by a constant Unit delay Addition of two sequences x 1[n] + x 2[n] 4

Block Diagram Representation of Linear Constant-coefficient Difference Equations 1 2 5

Block Diagram Representation of Linear Constant-coefficient Difference Equations 1 2 5

Block diagram representation for a general Nth-order difference equation: Direct Form I x[n] b

Block diagram representation for a general Nth-order difference equation: Direct Form I x[n] b 0 z-1 x[n-1] b 1 + + v[n] y[n] + + a 1 z-1 y[n-2] b. M-1 x[n-M] y[n-1] z-1 x[n-2] z-1 b. M + + a. N-1 a. N z-1 y[n-N] 6

Block diagram representation for a general Nth-order difference equation: Direct Form II x[n] w[n]

Block diagram representation for a general Nth-order difference equation: Direct Form II x[n] w[n] + + a 1 z-1 w[n-1] z-1 w[n-2] + a. N w[n-N] + b 1 + b. M-1 + y[n] z-1 w[n-2] a. N-1 z-1 b 0 z-1 w[n-M] b. M 7

Combination of delay units (in case N = M) x[n] w[n] b 0 +

Combination of delay units (in case N = M) x[n] w[n] b 0 + + a 1 z-1 + b. N-1 + y[n] z-1 + a. N-1 a. N z-1 b. N 8

Block Diagram Representation of Linear Constant-coefficient Difference Equations 2 • An implementation with the

Block Diagram Representation of Linear Constant-coefficient Difference Equations 2 • An implementation with the minimum number of delay elements is commonly referred to as a canonic form implementation. • The direct form I is a direct realization of the difference equation satisfied by the input x[n] and the output y[n], which in turn can be written directly from the system function by inspection. • The direct form II or canonic direct form is an rearrangement of the direct form I in order to combine the delay units together. 9

Signal Flow Graph Representation of Linear Constant-coefficient Difference Equations a Attenuator x[n] d e

Signal Flow Graph Representation of Linear Constant-coefficient Difference Equations a Attenuator x[n] d e a z-1 Delay Unit y[n] z-1 c b z-1 Node: Adder, Separator, Source, or Sink 10

Basic Structures for IIR Systems • • Direct Forms Cascade Form Parallel Form Feedback

Basic Structures for IIR Systems • • Direct Forms Cascade Form Parallel Form Feedback in IIR Systems 11

Basic Structures for IIR Systems • Direct Forms 12

Basic Structures for IIR Systems • Direct Forms 12

Direct Form I (M = N) 13

Direct Form I (M = N) 13

Direct Form II (M = N) 14

Direct Form II (M = N) 14

Direct Form II 15

Direct Form II 15

x[n] + z-1 2 y[n] + + + 0. 75 z-1 z-1 -0. 125

x[n] + z-1 2 y[n] + + + 0. 75 z-1 z-1 -0. 125 x[n] + + + 0. 75 z-1 2 y[n] + z-1 -0. 125 16

x[n] y[n] z-1 2 0. 75 z-1 -0. 125 z-1 y[n] x[n] z-1 0.

x[n] y[n] z-1 2 0. 75 z-1 -0. 125 z-1 y[n] x[n] z-1 0. 75 2 z-1 -0. 125 17

Basic Structures for IIR Systems 2 • Cascade Form where M = M 1+2

Basic Structures for IIR Systems 2 • Cascade Form where M = M 1+2 M 2 and N = N 1+2 N 2. • A modular structure that is advantageous for many types of implementations is obtained by combining pairs of real factors and complex conjugate pairs into second-order factors. where Ns is the largest integer contained in (N+1)/2. 18

w 1[n] y 1[n] b 01 x[n] a 11 a 21 w 2[n] y

w 1[n] y 1[n] b 01 x[n] a 11 a 21 w 2[n] y 2[n] b 02 z-1 b 11 a 12 z-1 b 21 a 22 z-1 b 12 w 3[n] y 3[n] b 03 a 13 z-1 b 22 a 23 y[n] z-1 b 13 z-1 b 23 x[n] y[n] z-1 0. 5 z-1 0. 25 x[n] z-1 y[n] 0. 5 z-1 0. 25 z-1 19

Basic Structures for IIR Systems 3 • Parallel Form where N = N 1+2

Basic Structures for IIR Systems 3 • Parallel Form where N = N 1+2 N 2. If M �N, then NP = M - N; otherwise, the first summation in right hand side of equation above is not included. • Alternatively, the real poles of H(z) can be grouped in pairs : where NS is the largest integer contained in (N+1)/2, and if NP = M - N is negative, the first sum is not present. 20

C 0 w 1[n] b 01 a 11 z-1 b 11 a 21 z-1

C 0 w 1[n] b 01 a 11 z-1 b 11 a 21 z-1 x[n] w 2[n] b 02 a 12 z-1 b 12 a 22 z-1 w 3[n] b 03 a 13 z-1 b 13 a 23 z-1 y 1[n] y 2[n] y 3[n] Parallel form structure for sixth order system (M=N=6). 21

8 y[n] x[n] -7 0. 75 -0. 125 z-1 8 8 x[n] 18 0.

8 y[n] x[n] -7 0. 75 -0. 125 z-1 8 8 x[n] 18 0. 5 y[n] z-1 -25 0. 25 z-1 22

Transposed Forms • Transposition (or flow graph reversal) of a flow graph is accomplished

Transposed Forms • Transposition (or flow graph reversal) of a flow graph is accomplished by reversing the directions of all branches in the network while keeping the branch transmittances as they were and reversing the roles of the input and output so that source nodes become sink nodes and vice versa. y[n] x[n] z-1 a a x[n] z-1 y[n] z-1 a 23

x[n] y[n] b 0 z-1 z-1 b 1 a 1 b 2 a 2

x[n] y[n] b 0 z-1 z-1 b 1 a 1 b 2 a 2 b. N-1 a. N-1 b. N a. N z-1 z-1 x[n] y[n] b 0 z-1 z-1 a 1 b 1 a 2 b 2 a. N-1 b. N-1 a. N b. N z-1 z-1 24

x[n] b 0 a 1 a 2 z-1 a. N-1 a. N y[n] b

x[n] b 0 a 1 a 2 z-1 a. N-1 a. N y[n] b 1 b 2 b. N-1 z-1 b. N x[n] y[n] b 0 b 1 b 2 z-1 b. N-1 b. N a 1 a 2 a. N-1 z-1 a. N 25

Basic Network Structures for FIR Systems • Direct Form – It is also referred

Basic Network Structures for FIR Systems • Direct Form – It is also referred to as a tapped delay line structure or a transversal filter structure. • Transposed Form • Cascade Form where MS is the largest integer contained in (M + 1)/2. If M is odd, one of coefficients b 2 k will be zero. 26

Direct Form • For causal FIR system, the system function has only zeros (except

Direct Form • For causal FIR system, the system function has only zeros (except for poles at z = 0) with the difference equation: y[n] = SMk=0 bkx[n-k] • It can be interpreted as the discrete convolution of x[n] with the impulse response h[n] = bn , n = 0, 1, …, M, 0 , otherwise. 27

Direct Form (Tapped Delay Line or Transversal Filter) x[n] b 0 z-1 y[n] b

Direct Form (Tapped Delay Line or Transversal Filter) x[n] b 0 z-1 y[n] b 1 b 2 b. N-1 z-1 b. N x[n] z-1 h[0] h[1] z-1 h[2] h[M-1] h[M] y[n] 28

Transposed Form of FIR Network z-1 h[M] z-1 h[M-1] h[M-2] z-1 h[2] h[1] y[n]

Transposed Form of FIR Network z-1 h[M] z-1 h[M-1] h[M-2] z-1 h[2] h[1] y[n] h[0] x[n] 29

Cascade Form Structure of a FIR System x[n] b 01 z-1 b 11 b

Cascade Form Structure of a FIR System x[n] b 01 z-1 b 11 b 21 b 02 z-1 b 12 b 22 b 0 Ms z-1 y[n] b 1 Ms b 2 Ms 30

Structures for Linear-Phase FIR Systems • Structures for Linear Phase FIR Systems : –

Structures for Linear-Phase FIR Systems • Structures for Linear Phase FIR Systems : – h[M-n] = h[n] for n = 0, 1, . . . , M • For M is an even integer : Type I y[n] = Sk=0(M/2)-1 h[k](x[n-k] + x[n-M+k]) + h[M/2]x[n-M/2] • For M is an odd integer : Type II y[n] = Sk=0(M-1)/2 h[k](x[n-k] + x[n-M+k]) – h[M-n] = -h[n] for n = 0, 1, . . . , M • For M is an even integer : Type III y[n] = Sk=0(M/2)-1 h[k](x[n-k] - x[n-M+k]) • For M is an odd integer : Type IV y[n] = Sk=0(M-1)/2 h[k](x[n-k] - x[n-M+k]) 31

Direct form structure for an FIR linear-phase when M is even. x[n] z-1 z-1

Direct form structure for an FIR linear-phase when M is even. x[n] z-1 z-1 h[0] y[n] z-1 h[1] z-1 h[2] h[(M/2)-1] h[M/2] Direct form structure for an FIR linear-phase when M is odd. x[n] z-1 z-1 z-1 y[n] h[0] z-1 h[1] z-1 h[2] h[(M-3)/2] h[(M-1)/2] 32

Lattice Structures • Theory of autoregressive signal modeling : – Lattice Structure • Development

Lattice Structures • Theory of autoregressive signal modeling : – Lattice Structure • Development of digital filter structures that are analogous to analog filter structures : – Wave Digital Filters • Another structure development approach is based on state-variable representations and linear transformations. 33

Lattice Structures 2 • FIR Lattice The coefficients {ki} in the lattice structures are

Lattice Structures 2 • FIR Lattice The coefficients {ki} in the lattice structures are referred to as the k-parameters, which are called reflection coefficients or PARCOR coefficients. – When used in signal modeling, the k-parameters are estimated from a data signal. – Given a set of k-parameters, the system function can be found and therefore the impulse response : by recurrence formula for computing A(z) in terms of the intermediate system functions 34

Reflection coefficients or PARCOR coefficients structure x[n] e 0[n] e 1[n] z-1 e~0[n] -k

Reflection coefficients or PARCOR coefficients structure x[n] e 0[n] e 1[n] z-1 e~0[n] -k 1 e 2[n] e. N-1[n] z-1 -k 2 e~1[n] e. N[n] z-1 e~2[n] e~N-1[n] y[n] -k. N e~N[n] Signal flow graph of an FIR lattice system e 0[n] = e~0[n] = x[n] ei[n] = ei-1[n] – kie~i-1[n-1], e~i[n] = -kiei-1[n] + e~i-1[n-1] y[n] = e. N[n] i = 1, 2, …, N, 35

A recurrence formula for computing A(z) = H(z) = Y(z)/X(z) can be obtained in

A recurrence formula for computing A(z) = H(z) = Y(z)/X(z) can be obtained in terms of intermediate system functions: By recursive technique: ai(i) = ki , am(i) = am(i-1) - ki ai-m(i-1) , m = 1, 2, . . . , (i-1) Or by reverse recursive technique: ki = ai(i) am(i-1) = [am(i) + kiai-m(i)]/[1 – ki 2], m = 1, 2, …, (i – 1) 36

Example: A(z) = (1 -0. 8 jz-1)(1+0. 8 jz-1)(1 -0. 9 z-1) = 1

Example: A(z) = (1 -0. 8 jz-1)(1+0. 8 jz-1)(1 -0. 9 z-1) = 1 – 0. 9 z-1 + 0. 64 z-2 – 0. 576 z-3. Then, a 1(3) = 0. 9, a 2(3) = -0. 64, and a 3(3) = 0. 576 The k-parameter can be computed as follow: k 3 = a 3(3) = 0. 576 a 1(2) = [a 1(3) + k 3 a 2(3)]/[1 – k 32] = 0. 79518245 a 2(2) = [a 2(3) + k 3 a 1(3)]/[1 – k 32] = - 0. 18197491 k 2 = a 2(2) = - 0. 18197491 a 1(1) = [a 1(2) + k 2 a 1(2)]/[1 – k 22] = 0. 67275747 k 1 = a 1(1) = 0. 67275747 37

x[n] y[n] -0. 6728 +0. 182 -0. 576 z-1 z-1 x[n] z– 1 z-1

x[n] y[n] -0. 6728 +0. 182 -0. 576 z-1 z-1 x[n] z– 1 z-1 -0. 9 0. 64 -0. 576 y[n] 38

All-Pole Lattice • A lattice system with an all-pole system function H(z) = 1/A(z)

All-Pole Lattice • A lattice system with an all-pole system function H(z) = 1/A(z) can be developed from the FIR lattice. – all roots of A(z) must be inside the unit circle: |ki| < 1, i = 1, . . . , N ei[n] ei-1[n] e. N[n] = x[n] Ei-1[n] = ei[n] + kie~i-1[n-1], e~i[n] = -kiei-1[n] + i = N, (N-1), … 1, z-1 e~i-1[n-1] y[n] = e 0[n] = e~0[n] x[n] e 0[n] e 1[n] k. N -k. N-2 -k -1 N-2 z e~N[n] e~N-1[n] e 2[n] e. N-1[n] z-1 ki -ki z-1 e~i[n] e~i-1[n] e. N[n] k 1 -k 1 e~1[n] y[n] z-1 e~0[n] 39

Basic all-pole lattice structures • • Three-multiplier form Four-multiplier, normalized form • Four-multiplier, Kelly-Lochbaum

Basic all-pole lattice structures • • Three-multiplier form Four-multiplier, normalized form • Four-multiplier, Kelly-Lochbaum form : was first derived as an acoustic tube model for speech synthesis. 40

ei[n] ei-1[n] -ki ki Three-multiplier form e’i[n] (1 - ki 2) ei[n] cos qi

ei[n] ei-1[n] -ki ki Three-multiplier form e’i[n] (1 - ki 2) ei[n] cos qi -sin qi e’i-1[n] ei-1[n] sin qi e’i[n] cos qi e’i-1[n] ei[n] (1 + ki) ei-1[n] -ki e’i[n] ki (1 - ki) Four-multiplier, normalized form Four-multiplier, Kelly. Lochbaum form e’i-1[n] 41

Lattice Systems with Poles and Zeros x[n] = e. N[n] e. N-1[n] Section e’N[n]

Lattice Systems with Poles and Zeros x[n] = e. N[n] e. N-1[n] Section e’N[n] e’N-1[n] N c. N-1 e. N-2[n] Section N - 1 e’N-2[n] c. N-2 e 1[n] e 0[n] e’ 1[n] Section e’ 01[n] c 1 c 0 y[n] 42

Example of lattice IIR filter with poles and zeros x[n] y[n] z-1 0. 9

Example of lattice IIR filter with poles and zeros x[n] y[n] z-1 0. 9 z-1 -0. 64 3 3 z-1 0. 576 x[n] 0. 576 -0. 182 z-1 0. 6728 -0. 6728 3. 9 z-1 5. 4612 z-1 4. 5404 y[n] 43