chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals &...

20
1 DSP-CIS Part-I: Introduction Chapter-2 : Signals & Systems Review Marc Moonen & Toon van Waterschoot Dept. E.E./ESAT-STADIUS, KU Leuven [email protected] www.esat.kuleuven.be/stadius/ DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 2 / 40 Chapter-2 : Signals & Systems Review Discrete-Time/Digital Signals (10 slides) Sampling, quantization, reconstruction Discrete-Time Systems (13 slides) LTI, impulse response, convolution, z-transform, frequency response, frequency spectrum, IIR/FIR Discrete Fourier Transform (4 slides) DFT-IDFT, FFT Multi-Rate Systems (11 slides)

Transcript of chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals &...

Page 1: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

1

DSP-CIS

Part-I: Introduction

Chapter-2 : Signals & Systems Review

Marc Moonen & Toon van Waterschoot Dept. E.E./ESAT-STADIUS, KU Leuven

[email protected] www.esat.kuleuven.be/stadius/

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 2 / 40

Chapter-2 : Signals & Systems Review

•  Discrete-Time/Digital Signals (10 slides)

Sampling, quantization, reconstruction

•  Discrete-Time Systems (13 slides) LTI, impulse response, convolution, z-transform, frequency response, frequency spectrum, IIR/FIR

•  Discrete Fourier Transform (4 slides) DFT-IDFT, FFT

•  Multi-Rate Systems (11 slides)

Page 2: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

2

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 3 / 40

Analog Signal

Processing Circuit

Analog domain (continuous-time domain)

Analog signal processing

Analog IN Analog OUT

)(tu

U( f ) = F{u(t)} = u(t).e− j2π . f .t dt−∞

+∞

(Fourier Transform / spectrum, where f = frequency)

)(ty

Y ( f ) = F{y(t)} = y(t).e− j2π . f .t dt−∞

+∞

Jean

-Bap

tiste

Jos

eph

Four

ier (

1768

-183

0)

Discrete-Time/Digital Signals 1/10

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 4 / 40

Analog-to- Digital

Conversion DSP

Digital-to- Analog

Conversion Analog IN Analog OUT Digital IN

Digital OUT

0110100101

1001100010

Analog domain

Digital domain

Analog domain

Discrete-Time/Digital Signals 2/10

sampling & quantization

reconstruction

Digital signal processing

Page 3: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

3

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40

∑+∞

−∞=

−=k

sD Tkttxtx ).().()( δ

1.  Sampling

).(][ sTkxkx =

It will turn out (p.24-25) that a spectrum can be computed from x[k] (=discrete-time), which (remarkably) will be equal to the spectrum (=Fourier transform) of the (continuous-time) sequence of impulses…...

amplitude amplitude

discrete-time [k] continuous-time (t)

impulse train

)(tx

sT

discrete-time signal

continuous-time signal

0 1 2 3 4

Discrete-Time/Digital Signals 3/10

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 6 / 40

So what does this spectrum of xD(t) look like…

•  Spectrum replication –  Time domain:

–  Frequency domain:

xD (t) = x(t). δ(t − k.Ts )k=−∞

+∞

XD ( f ) =1Ts. X( f − k

Ts)

k=−∞

+∞

magnitude

frequency (f)

magnitude

frequency (f)

X( f ) = F{x(t)} XD ( f ) = F{xD (t)}

Discrete-Time/Digital Signals 4/10

Page 4: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

4

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 7 / 40

•  Sampling theorem –  Analog signal spectrum X(f) runs up to fmax Hz –  Spectrum replicas are separated by fs =1/Ts Hz

–  No spectral overlap if and only if

magnitude

frequency

fs > 2.fmax

Discrete-Time/Digital Signals 5/10

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 8 / 40

•  Sampling theorem –  Analog signal spectrum X(f) runs up to fmax Hz –  Spectrum replicas are separated by fs =1/Ts Hz

–  Spectral overlap (=‘folding’, ‘aliasing’) if

magnitude

frequency

fs < 2.fmax

Discrete-Time/Digital Signals 6/10

Page 5: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

5

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 9 / 40

•  Sampling theorem –  Terminology:

•  sampling frequency/rate fs •  Nyquist frequency fs/2 •  sampling interval/period Ts

–  E.g. CD audio: fs = 44,1 kHz

•  Anti-aliasing prefilters –  If then frequencies above the Nyquist

frequency are ‘folded’ into lower frequencies (=aliasing) –  To avoid aliasing, sampling is usually preceded by

(analog-domain) low-pass (=anti-aliasing) filtering

Har

ry N

yqui

st (1

889

–197

6)

Discrete-Time/Digital Signals 7/10

(*) An equivalent formulation is fs > fmax-(-fmax) = fmax-fmin = ‘bandwidth’…will use this in p.36

(*)

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 10 / 40

2. B-bit quantization

Number of bits B = log2 ( range Rquantization step Q

+1)

quantized discrete-time signal =discrete-amplitude&time signal

=digital signal discrete-time signal

amplitude

discrete time [k]

0 Q

2Q 3Q

-Q -2Q -3Q

R

amplitude

discrete time [k]

][kx ][kxQ

Discrete-Time/Digital Signals 8/10

6dB per bit rule:

Signal-to-QuantizationNoise-Ratio = 20 log10 ( range Rquantization step Q

) = 6B dBEx: CD audio = 16bits ~ 96dB SNR (LP’s: 60dB SNR)

Page 6: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

6

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 11 / 40

3. Reconstruction –  Reconstruction = ‘fill the gaps’ between adjacent samples –  Example: staircase reconstructor

–  In a practical realization xD(t) is generated first as an intermediate signal by means of a D-to-A & sampler, which is then followed by (analog domain) filtering (details omitted)

amplitude

discrete time [k]

amplitude

continuous time (t)

reconstructed analog signal

discrete-time/digital signal

][kx )(txR

Discrete-Time/Digital Signals 9/10

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 12 / 40

•  Complete scheme is…

Discrete-Time/Digital Signals 10/10

Digital OUT

Analog IN

DSP Digital

IN

sampler quantizer

anti-aliasing prefilter

anti-image

postfilter

reconstructor

Analog OUT

No lon

ger in

teres

ted in

this

part…

No lon

ger in

teres

ted in

this

part…

Page 7: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

7

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 13 / 40

Discrete-Time Systems 1/13

Discrete-time system is `sampled data’ system Input signal u[k] is a sequence of samples (=numbers) ..,u[-2],u[-1] ,u[0], u[1],u[2],…

System then produces a sequence of output samples y[k] ..,y[-2],y[-1] ,y[0], y[1],y[2],…

Example: `DSP’ block in previous slide

u[k] y[k]

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 14 / 40

Discrete-Time Systems 2/13

Will consider linear time-invariant (LTI) systems Linear : input u1[k] -> output y1[k] input u2[k] -> output y2[k] hence a.u1[k]+b.u2[k]-> a.y1[k]+b.y2[k] Time-invariant (shift-invariant) input u[k] -> output y[k] hence input u[k-T] -> output y[k-T]

u[k] y[k]

Page 8: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

8

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 15 / 40

Will consider causal systems iff for all input signals with u[k]=0,k<0 -> output y[k]=0,k<0

Impulse response input …,0,0, 1 ,0,0,0,...-> output …,0,0, h[0] ,h[1],h[2],h[3],...

General input u[0],u[1],u[2],u[3] (cfr. linearity & shift-invariance!)

⎥⎥⎥⎥

⎢⎢⎢⎢

⎥⎥⎥⎥⎥⎥⎥⎥

⎢⎢⎢⎢⎢⎢⎢⎢

=

⎥⎥⎥⎥⎥⎥⎥⎥

⎢⎢⎢⎢⎢⎢⎢⎢

]3[]2[]1[]0[

.

]2[000]1[]2[00]0[]1[]2[00]0[]1[]2[00]0[]1[000]0[

]5[]4[]3[]2[]1[]0[

uuuu

hhhhhh

hhhhh

h

yyyyyy

this is called a `Toeplitz’ matrix

Otto

Toe

plitz

(188

1–19

40)

Discrete-Time Systems 3/13

K=0 K=0

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 16 / 40

Discrete-Time Systems 4/13

Convolution

⎥⎥⎥⎥

⎢⎢⎢⎢

⎥⎥⎥⎥⎥⎥⎥⎥

⎢⎢⎢⎢⎢⎢⎢⎢

=

⎥⎥⎥⎥⎥⎥⎥⎥

⎢⎢⎢⎢⎢⎢⎢⎢

]3[]2[]1[]0[

.

]2[000]1[]2[00]0[]1[]2[00]0[]1[]2[00]0[]1[000]0[

]5[]4[]3[]2[]1[]0[

uuuu

hhhhhh

hhhhh

h

yyyyyy

u[0],u[1],u[2],u[3] y[0],y[1],...

h[0],h[1],h[2],0,0,...

y[k]= h[k − k ]k∑ .u[k ]=

Δ

h[k]*u[k] = `convolution sum‘ (=more convenient than Toeplitz matrix notation

when considering (infinitely) long input and impulse response sequences

Page 9: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

9

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 17 / 40

Discrete-Time Systems 5/13

Z-Transform of system h[k] and signals u[k],y[k] Definition:

Input/output relation:

[ ] [ ]⎥⎥⎥⎥

⎢⎢⎢⎢

⎥⎥⎥⎥⎥⎥⎥⎥

⎢⎢⎢⎢⎢⎢⎢⎢

=

⎥⎥⎥⎥⎥⎥⎥⎥

⎢⎢⎢⎢⎢⎢⎢⎢

⎥⎥⎥⎥

⎢⎢⎢⎢

−−−−−−−−−−

−−−

]3[]2[]1[]0[

.

]2[000]1[]2[00]0[]1[]2[00]0[]1[]2[00]0[]1[000]0[

.1

]5[]4[]3[]2[]1[]0[

.1

3211).()(

5432154321

uuuu

hhhhhh

hhhhh

h

zzzzz

yyyyyy

zzzzz

zzzzHzY!!!!!!!!!! "!!!!!!!!!! #$!!!!!! "!!!!!! #$

H (z)=Δ

h[k].z−kk∑ Y (z)=

Δ

y[k].z−kk∑U(z)=

Δ

u[k].z−kk∑

)().()( zUzHzY =⇒ H(z) is `transfer function’

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 18 / 40

Discrete-Time Systems 6/13

Z-Transform •  Easy input-output relation: •  May be viewed as `shorthand’ notation (for convolution operation/Toeplitz-vector product) •  Stability =bounded input u[k] leads to bounded output y[k] --iff --iff all the poles of H(z) lie inside the unit circle (now z=complex variable) (for causal, rational systems, see below)

)().()( zUzHzY =

∞∑ ≺k

kh ][

Page 10: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

10

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 19 / 40

Discrete-Time Systems 7/13

Example-1 : `Delay operator’ Impulse response is …,0,0, 0 ,1,0,0,0,… Transfer function is Pole at z=0 Example-2 : Delay + feedback Impulse response is …,0,0, 0 ,1,a,a^2,a^3… Transfer function is Pole at z=a

H (z) = z−1 = 1z

u[k] Δ

y[k]=u[k-1]

x

+

a

u[k]

Δy[k]

azzazzH

zzHzazHzazazazzH

−=

−=⇒

=−⇒

++++=

−−

−−−−

1.1

)(

)(.)(......)(

1

1

11

433221

=simple rational function realized with a delay element,

a multiplier and an adder

K=0

K=0

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 20 / 40

Discrete-Time Systems 8/13

Will consider only rational transfer functions: •  L poles (zeros of A(z)) , L zeros (zeros of B(z)) •  Corresponds to difference equation

•  Hence rational H(z) can be realized with finite number of delay elements, multipliers and adders

•  In general, this is a `infinitely long impulse response’ (`IIR’) system (as in example-2)

H (z) = B(z)A(z)

=b0z

L + b1zL−1 +...+ bL

zL + a1zL−1 +...+ aL

=b0 + b1z

−1 +...+ bLz−L

1+ a1z−1 +...+ aLz

−L

y[k]= b0.u[k]+ b1.u[k −1]+...+ bL.u[k − L]− a1.y[k −1]−...− aL.y[k − L]...)().()().()().()( ⇒=⇒= zUzBzYzAzUzHzY

Page 11: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

11

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 21 / 40

Discrete-Time Systems 9/13

Special case is

•  L poles at the origin z=0 (hence guaranteed stability) •  L zeros (zeros of B(z)) = `all zero’ filter •  Corresponds to difference equation =`moving average’ (MA) filter •  Impulse response h[k] is

= `finite impulse response’ (`FIR’) filter

Y (z) = H (z).U(z)⇒ y[k]= b0.u[k]+ b1.u[k −1]+...+ bL.u[k − L]

0,0, 0,b0,b1,...,bL−1,bL, 0, 0, 0,...

H (z) = B(z)zL

= b0 + b1z−1 +...+ bLz

−L

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 22 / 40

H(z) & frequency response: •  Given a system H(z) •  Given an input signal = complex exponential

•  Output signal : = `frequency response’ = complex function of radial frequency ω = H(z) evaluated on the unit circle

)sin(.)cos( ][

kjkkeku kj

ωω

ω

+=

∞∞−= ≺≺

y[k]= h[k ].u[k−k ]k∑ = h[k ].e jω (k−k )=

k∑ e

jωkh[k ].e− jωk

k∑ = u[k].H (e jω )

)( ωjeH

Discrete-Time Systems 10/13

Re ω

u[0]=1

u[2] u[1]

Im

(where ω=radial frequency)

Page 12: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

12

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 23 / 40

Discrete-Time Systems 11/13

H(z) & frequency response: •  Periodic with period = •  For a real-valued impulse response h[k] - magnitude response is even function - phase response is odd function •  Example-1: Low-pass filter

•  Example-2: All-pass filter

)( ωjeH

)( ωjeH∠

π2

-4 -2 0 2 40

0.5

1

-4 -2 0 2 4-5

0

5ππ− ω

)( ωjeH

Nyquist frequency ,...1,1,1,1,1..., −−=kje π

(=2 samples/period)

1)( ≡ωjeH DC e j0k = ...,1,1,1,1,1,...

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 24 / 40

•  Z-Transform & Discrete-Time Fourier Transform

–  is frequency response of the LTI system

–  is frequency spectrum (‘Discrete-Time Fourier Transform’)

of input signal

(compare to Fourier Transform, see p.3)

–  is frequency spectrum of the output signal

U(e jω ) =U(z)z=e jω

= u[k].z−kk=−∞

+∞

∑z=e jω

= u[k].k=−∞

+∞

∑ e− jω.k

U(e jω )

)( ωjeH

Y (e jω )

Y (z) = H (z).U(z) )().()( ωωω jjj eUeHeY =

z = e jω

Discrete-Time Systems 12/13

Page 13: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

13

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 25 / 40

Discrete-Time Systems 13/13

•  Z-Transform & Fourier Transform It is proved that… –  The frequency response of an LTI system is equal to the

Fourier transform of the continuous-time impulse sequence (see p.5) constructed with h[k]

–  The frequency spectrum of a discrete-time signal is equal to the Fourier transform of the continuous-time impulse sequence constructed with u[k] or y[k]

–  corresponds to continuous-time iff are bandlimited (èno aliasing)

U(e jω ) or Y (e jω )

)( ωjeH

U(e jω ) = ... = F{uD (t)} = F{ u[k].δ(t − k.Ts )} , ω = 2π. ffsk

F{yD (t)} = F{hD (t)}.F{uD (t)}

H (e jω ) = ... = F{hD (t)} = F{ h[k].δ(t − k.Ts )} , ω = 2π. ffsk

e.g. f = fs2⇒ω = π

!

Y ( f ) = H ( f ).U( f ) U( f ),Y ( f ),H ( f )

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 26 / 40

Discrete/Fast Fourier Transform 1/4

•  DFT definition: –  The `Discrete-time Fourier Transform’ of a discrete-time

system/signal x[k] is a (periodic) continuous function of the radial frequency ω (see p.28)

–  The `Discrete Fourier Transform’ (DFT) is a discretized version of this, obtained by sampling ω at N uniformly spaced frequencies (n=0,1,..,N-1) and by truncating x[k] to N samples (k=0,1,..,N-1)

ω

ω

jez

k

k

j zkxeX=

−+∞

−∞=⎥⎦

⎤⎢⎣

⎡= ∑ ].[)(

ωn = 2π.n / N

X[ej2π .nN ]= x[k].

k=0

N−1

∑ e− j2π .n

Nk

Page 14: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

14

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 27 / 40

Discrete/Fast Fourier Transform 2/4

•  DFT & Inverse DFT (IDFT): –  An N-point DFT sequence can be calculated from an N-point time sequence:

–  Conversely, an N-point time sequence can be calculated from an N-point DFT sequence:

= IDFT

= DFT X[ej2π .nN ]= x[k].

k=0

N−1

∑ e− j2π .n

Nk

x[k]= 1N

X[ej2π .nN ].

n=0

N−1

∑ ej2π .nN

k

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 28 / 40

Discrete/Fast Fourier Transform 3/4

•  DFT/IDFT in matrix form –  Using shorthand notation.. –  ..the DFT can be rewritten as

–  ..the IDFT can be rewritten as

X = F.x

x = F−1.X

= 1NF*.X

Page 15: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

15

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 29 / 40

Discrete/Fast Fourier Transform 4/4

•  Fast Fourier Transform (FFT) (1805/1965)

–  Divide-and-conquer approach: •  Split up N-point DFT in two N/2-point DFT’s •  Split up two N/2-point DFT’s in four N/4-point DFT’s •  … •  Split up N/2 2-point DFT’s in N 1-point DFT’s •  Calculate N 1-point DFT’s •  Rebuild N/2 2-point DFT’s from N 1-point DFT’s •  … •  Rebuild two N/2-point DFT’s from four N/4-point DFT’s •  Rebuild N-point DFT from two N/2-point DFT’s

–  DFT complexity of N2 multiplications is reduced to

FFT complexity of O(N.log2(N)) multiplications

–  Similar IFFT

Jam

es W

. Coo

ley

Jo

hn W

.Tuk

ey

Car

l Frie

dric

h G

auss

(177

7-18

55)

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 30 / 40

Multi-Rate Systems 1/11

•  Decimation : decimator (=downsampler)

Example : u[k]: 1,2,3,4,5,6,7,8,9,… 2-fold downsampling: 1,3,5,7,9,...

•  Interpolation : expander (=upsampler) Example : u[k]: 1,2,3,4,5,6,7,8,9,… 2-fold upsampling: 1,0,2,0,3,0,4,0,5,0...

D u[0], u[D], u[2D]... u[0],u[1],u[2]...

D u[0],0,..0,u[1],0,…,0,u[2]... u[0], u[1], u[2],...

Page 16: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

16

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 31 / 40

Multi-Rate Systems 2/11

•  Z-transform & frequency domain analysis of expander

`Expansion in time domain ~ compression in frequency domain’

D u[0],0,..0,u[1],0,…,0,u[2]... u[0], u[1], u[2],...

D )(zU U(zD )

ωjez =

ππ−

3

xHz≈

ππ−

`images’

xHz≈

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 32 / 40

Multi-Rate Systems 3/11

•  Z-transform & frequency domain analysis of expander Expander mostly followed by `interpolation filter’ to remove images (and `interpolate the zeros’)

Interpolation filter can be low-/band-/high-pass (see p.35-36 and Chapter-10)

D u[0],0,..0,u[1],0,…,0,u[2]... u[0], u[1], u[2],...

ππ−

3

xHz≈

ππ−

`images’

xHz≈ππ−

xHz≈

LP

Page 17: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

17

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 33 / 40

Multi-Rate Systems 4/11

•  Z-transform & frequency domain analysis of decimator

`Compression in time domain ~ expansion in frequency domain’ PS: Note that is periodic with period while is periodic with period The summation with d=0…D-1 restores the periodicity with period !

D )(zU 1D. U(z1 D.e− j2πd D )d=0

D−1

D u[0], u[D], u[2D]... u[0],u[1],u[2]...

d=0 d=2 d=1

3

ππ−xHz≈

ππ−3π

xHz≈

)( ωjeU π2 U(e jω /D ) 2Dππ2

2π 3π−2π−3π

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 34 / 40

Multi-Rate Systems 5/11

•  Z-transform & frequency domain analysis of decimator

Decimation introduces ALIASING if input signal occupies frequency band larger than , hence mostly preceded by anti-aliasing (decimation) filter Anti-aliasing filter can be low-/band-/high-pass (see p.35-36 and Chapter-10)

2π D

D u[0], u[D], u[2D]... u[0],u[1],u[2]...

LP 3

ππ−3π

xHz≈

d=0 d=2 d=1

ππ−xHz≈

Page 18: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

18

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 35 / 40

Multi-Rate Systems 6/11

•  Example: LP anti-aliasing / down / up / LP interpolation

ππ−3π ππ−

LP

ππ−

3

3

π

LP

ππ−3π

Will be used in Part IV on ‘Filterbanks’

(*) Corresponds to Nyquist theorem: 3-fold reduction fmax è 3-fold reduction fs

fmax

(*)

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 36 / 40

Multi-Rate Systems 7/11

•  Example: HP anti-aliasing / down / up / HP interpolation

ππ−3π

HP

ππ−

3

3 HP

ππ−3π

Will be used in Part IV on ‘Filterbanks’

ππ−3π

π3π

(*) Corresponds to Nyquist theorem for ‘passband’ signals: fs > fmax-fmin (as in footnote p.9, now fmin ≠ -fmax )

fmin fmax

(*)

Page 19: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

19

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 37 / 40

Multi-Rate Systems 8/10

•  Interconnection of multi-rate building blocks

i.e. all filter operations can be performed at the lowest rate! Identities also hold if decimators are replaced by expanders

D x a

D x a

=

=

=

D + u2[k]

D x

u2[k]

u1[k]

u1[k]

D +

D u2[k]

u1[k]

D x

D u2[k]

u1[k]

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 38 / 40

Multi-Rate Systems 9/11

•  `Noble identities‘(only for rational functions)

= D D H (zD ) )(zHu[k] u[k] y[k] y[k]

= D D H (zD ))(zHu[k] u[k] y[k] y[k]

Page 20: chapter2-Review-pp40 with audio · 2020. 9. 24. · 3 DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 5 / 40 ∑ +∞ =−∞ = − k x D (t) x(t). δ(t k.T s) 1. Sampling

20

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 39 / 40

Application of `noble identities : efficient multi-rate realizations of FIR filters through…

•  Polyphase decomposition: Example : (2-fold decomposition) Example : (3-fold decomposition) General: (D-fold decomposition)

!!!! "!!!! #$!!!!!! "!!!!!! #$)(

421

)(

642

654321

21

20

)].5[].3[]1[(.)].6[].4[].2[]0[( ].6[].5[].4[].3[].2[].1[]0[)(

zEzE

zhzhhzzhzhzhhzhzhzhzhzhzhhzH

−−−−−−

−−−−−−

++++++=

++++++=

!! "!! #$!! "!! #$!!!! "!!!! #$)(

32

)(

31

)(

63

654321

32

31

30

)].5[]2[(.)].4[]1[(.)].6[].3[]0[( ].6[].5[].4[].3[].2[].1[]0[)(

zEzEzE

zhhzzhhzzhzhhzhzhzhzhzhzhhzH

−−−−−−

−−−−−−

++++++=

++++++=

H (z) = h[k].z−kk=−∞

∑ = z−d.Ed (zD )d=0

D−1

∑ , Ed (z) = h[D.k + d].z−kk=−∞

Multi-Rate Systems 10/10

DSP-CIS 2020-2021 / Chapter-2: Signals & Systems Review 40 / 40

Multi-Rate Systems 11/11

•  Polyphase decomposition: Example : efficient realization of FIR decimation/interpolation filter

i.e. all filter operations can be performed at the lowest rate!

u[k] Δ

2

)( 20 zE

)( 21 zE

1−z+

H(z) u[k] Δ

21−z

)(0 zE

)(1 zE + = 2

u[k] Δ

2

)( 20 zE

)( 21 zE

1−z+

H(z) =

u[k] Δ

21−z

+ )(0 zE

)(1 zE

2