Lecture 15

23
Structures for Discrete-Time Systems Quote of the Day Today's scientists have substituted mathematics for experiments, and they wander off through equation after equation, and eventually build a structure which has no relation to reality. Nikola Tesla Content and Figures are from Discrete-Time Signal Processing, 2e by Oppenheim, Shafer, and Buck, ©1999-2000 Prentice Hall Inc.

description

m

Transcript of Lecture 15

Page 1: Lecture 15

Structures for Discrete-Time Systems

Quote of the DayToday's scientists have substituted mathematics for experiments, and they wander off through equation

after equation, and eventually build a structure which has no relation to reality.

Nikola Tesla

Content and Figures are from Discrete-Time Signal Processing, 2e by Oppenheim, Shafer, and Buck, ©1999-2000 Prentice Hall Inc.

Page 2: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 2

Example• Block diagram representation of

nxb2nya1nyany 021

Page 3: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 3

Block Diagram Representation• LTI systems with rational

system function can be represented as constant-coefficient difference equation

• The implementation of difference equations requires delayed values of the– input– output– intermediate results

• The requirement of delayed elements implies need for storage

• We also need means of – addition– multiplication

Page 4: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 4

Direct Form I• General form of difference equation

• Alternative equivalent form

M

0kk

N

0kk knxbknya

M

0kk

N

1kk knxbknyany

Page 5: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 5

Direct Form I• Transfer function can be written as

• Direct Form I Represents

N

1k

kk

M

0k

kk

za1

zbzH

zVza1

1zVzHzY

zXzbzXzHzV

zbza1

1zHzHzH

N

1k

kk

2

M

0k

kk1

M

0k

kkN

1k

kk

12

nvknyany

knxbnv

N

1kk

M

0kk

Page 6: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 6

Alternative Representation• Replace order of cascade LTI systems

zWzbzWzHzY

zXza1

1zXzHzW

za1

1zbzHzHzH

M

0k

kk1

N

1k

kk

2

N

1k

kk

M

0k

kk21

M

0kk

N

1kk

knwbny

nxknwanw

Page 7: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 7

Alternative Block Diagram• We can change the order of the cascade systems

M

0kk

N

1kk

knwbny

nxknwanw

Page 8: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 8

Direct Form II• No need to store the same

data twice in previous system

• So we can collapse the delay elements into one chain

• This is called Direct Form II or the Canonical Form

• Theoretically no difference between Direct Form I and II

• Implementation wise – Less memory in Direct II– Difference when using

finite-precision arithmetic

Page 9: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 9

Signal Flow Graph Representation• Similar to block diagram representation

– Notational differences

• A network of directed branches connected at nodes

• Example representation of a difference equation

Page 10: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 10

Example• Representation of Direct Form II with signal flow graphs

nwny

1nwnw

nwbnwbnw

nwnw

nxnawnw

3

24

41203

12

41

1nwbnwbny

nx1nawnw

1110

11

Page 11: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 11

Determination of System Function from Flow Graph

nwnwny

1nwnw

nxnwnw

nwnw

nxnwnw

42

34

23

12

41

zWzWzY

zzWzW

zXzWzW

zWzW

zXzWzW

42

134

23

12

41

zWzWzY z11zzX

zW

z11zzX

zW

42

1

1

4

1

1

2

nu1nunh

z1z

zXzY

zH

1n1n

1

1

Page 12: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 12

Basic Structures for IIR Systems: Direct Form I

Page 13: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 13

Basic Structures for IIR Systems: Direct Form II

Page 14: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 14

Basic Structures for IIR Systems: Cascade Form• General form for cascade implementation

• More practical form in 2nd order systems

21

21

N

1k

1k

1k

N

1k

1k

M

1k

1k

1k

M

1k

1k

zd1zd1zc1

zg1zg1zf1AzH

1M

1k2

k21

k1

2k2

1k1k0

zaza1zbzbb

zH

Page 15: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 15

Example

• Cascade of Direct Form I subsections

• Cascade of Direct Form II subsections

1

1

1

1

11

11

21

21

z25.01z1

z5.01z1

z25.01z5.01z1z1

z125.0z75.01zz21

zH

Page 16: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 16

Basic Structures for IIR Systems: Parallel Form• Represent system function using partial fraction expansion

• Or by pairing the real poles

P PP N

1k

N

1k1

k1

k

1kk

1k

kN

0k

kk zd1zd1

ze1Bzc1

AzCzH

SP N

1k2

k21

k1

1k1k0

N

0k

kk zaza1

zeezCzH

Page 17: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 17

Example• Partial Fraction Expansion

• Combine poles to get

1121

21

z25.0125

z5.0118

8z125.0z75.01

zz21zH

21

1

z125.0z75.01z87

8zH

Page 18: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 18

Transposed Forms• Linear signal flow graph property:

– Transposing doesn’t change the input-output relation

• Transposing:– Reverse directions of all branches– Interchange input and output nodes

• Example:

– Reverse directions of branches and interchange input and output

1az1

1zH

Page 19: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 19

Example

Transpose

• Both have the same system function or difference equation

2nxb1nxbnxb2nya1nyany 21021

Page 20: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 20

Basic Structures for FIR Systems: Direct Form• Special cases of IIR direct form structures

• Transpose of direct form I gives direct form II • Both forms are equal for FIR systems

• Tapped delay line

Page 21: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 21

Basic Structures for FIR Systems: Cascade Form• Obtained by factoring the polynomial system function

M

0n

M

1k

2k2

1k1k0

nS

zbzbbznhzH

Page 22: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 22

Structures for Linear-Phase FIR Systems• Causal FIR system with generalized linear phase are

symmetric:

• Symmetry means we can half the number of multiplications• Example: For even M and type I or type III systems:

IV)or II (type M0,1,...,n nhnMh

III)or I (type M0,1,...,n nhnMh

2/Mnx2/MhkMnxknxkh

kMnxkMh2/Mnx2/Mhknxkh

knxkh2/Mnx2/Mhknxkhknxkhny

12/M

0k

12/M

0k

12/M

0k

M

12/Mk

12/M

0k

M

0k

Page 23: Lecture 15

Copyright (C) 2005 Güner Arslan

351M Digital Signal Processing 23

Structures for Linear-Phase FIR Systems• Structure for even M

• Structure for odd M