structure/implementation of discrete-time system · structure/implementation ... lattice and...

49
Structure/implementation of discrete-time system Prasanta Kumar Ghosh Sep 21, 2017

Upload: nguyenliem

Post on 07-May-2018

219 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Structure/implementation

of discrete-time system

Prasanta Kumar Ghosh

Sep 21, 2017

Page 2: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Consider the class of LTI DT systems characterized by the general

linear constant-coefficient difference equation

Page 3: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Special case

Infinite impulse response; not possible to implement it using discrete

convolution! But

Recursive computation (with initial rest condition)

Page 4: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Basic elements

Adder

Multiplier

Memory

Page 5: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Example

Page 6: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Example

Page 7: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Example

Direct Form I

Implementation

Page 8: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Example (contd.)

Page 9: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Example (contd.)

Page 10: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Example (contd.)

Less delay elements!!

Page 11: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Example (contd.)

Direct Form II

Implementation

Page 12: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Signal Flow Graph

Page 13: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Example

Direct Form II

Implementation

Direct Form I

Implementation

Page 14: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Cascade Form

Ns second-order system Ns! Pairings of poles with zeros & Ns! orderings of the

resulting second-order sections (Ns!)2 different pairings and orderings

Page 15: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Example

Page 16: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Parallel Form

Alternatively,

Page 17: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Parallel Form

Page 18: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Example

Using second-order system Using first-order system

Page 19: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Transposed Form

Reverse 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.

Page 20: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Repeating different forms for FIR case

Direct Form

Transposed Form

Page 21: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Cascade Form

Page 22: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

If FIR is linear-phase FIR phase?

M is even M is odd

I

II

III

IV

I

II

III

IV

Page 23: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Type-I linear-phase FIR phase?

Page 24: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Type-III linear-phase FIR phase?

Page 25: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Frequency-sampling structures

Specify desired frequency response at

Page 26: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Frequency-sampling structures

Page 27: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Frequency-sampling structures

With zeros

Parallel bank of

single pole filters

Page 28: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Frequency-sampling structures

For narrowband

filter it results in

efficient

implementation

With symmetry

the

implementation

can be even more

efficient

Page 29: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Lattice structures

Lets begin with

Page 30: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Lattice structures

Direct-form structures of the FIR filter

Page 31: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Lattice structures

Suppose

Single stage-lattice filter

Page 32: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Lattice structures

Page 33: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Lattice structures

Page 34: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Lattice structures

Page 35: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Lattice structures

In general

Page 36: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Lattice structures

In general

Forward

predictor

Backward

predictor

Page 37: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Lattice structures

Page 38: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

for IIR systems

Lattice and lattice-ladder structures (all-pole IIR order 1)

Lattice structures

Page 39: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Lattice and lattice-ladder structures (all-pole IIR order 2)

for IIR systems Lattice structures

Page 40: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Lattice and lattice-ladder structures (pole zero system)

Lattice structures

Page 41: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Lattice and lattice-ladder structures (pole zero system)

Lattice structures

Page 42: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Quantization of filter

coefficients

Page 43: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

With quantized coefficients

poles

Pole perturbation

Page 44: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Relate perturbation in poles to perturbation to coefficients

Page 45: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Relate perturbation in poles to perturbation to coefficients

Similar results can be derived for zeros

If poles are clustered, the length between poles are small leading to large perturbation

error

Error can be minimized by maximizing the length

One way can be to combine complex valued poles

Page 46: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Lets consider a two-pole filter section

With finite precision of the

coefficients, the pole

positions are finite

When b bits are used, there

are at most (2b-1)2 possible

pole positions for the poles in

each quadrant, excluding zero

coefficients case

Page 47: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Lets consider a two-pole filter section

For b = 4 there are 169 unique pole positions

Non-uniformity is due to

quantizing r2

Page 48: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Lets consider a two-pole filter section

For b = 4 there are 169 unique pole positions

Non-uniformity is due to

quantizing r2

Sparse poles near theta = 0,

unfavorable for low pass

filter; similarly for high pass

filter

Page 49: Structure/implementation of discrete-time system · Structure/implementation ... Lattice and lattice-ladder structures (all-pole IIR order 1) ... Given that a higher-order IIR filter

Since there are various ways in which one can realize a second-order filter

section, there are obviously many possibilities for different pole locations with

quantized coefficients.

Ideally, we should select a structure that provides us with a dense set of points in

the regions where the poles lie. Unfortunately, however, there is no simple

and systematic method for determining the filter realization that yields this

desired result.

Given that a higher-order IIR filter should be implemented as a combination of

second-order sections, we still must decide whether to employ a parallel

configuration or a cascade configuration.

direct control of both the poles and the zeros that result from the quantization process.

Direct control on poles only

Undesirable

Cascade is a preferred choice specially with fixed-point implementation