Documente Academic
Documente Profesional
Documente Cultură
University of Toronto John G. Proakis and Dimitris G. Manolakis, Digital Signal Processing:
Principles, Algorithms, and Applications, 4th edition, 2007.
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 1 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 2 / 42
Chapter 11: Multirate Digital Signal Processing Chapter 11: Multirate Digital Signal Processing
Sampling:
I conversion from cts-time to dst-time by taking “samples” at
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 3 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 4 / 42
Chapter 11: Multirate Digital Signal Processing 11.1 Introduction Chapter 11: Multirate Digital Signal Processing 11.1 Introduction
original/bandlimited x(n)
interpolated signal x(t) 1 y(n) original/bandlimited
0 interpolatedn signal x(t) 1 x(n)
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 5 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 6 / 42
Chapter 11: Multirate Digital Signal Processing 11.1 Introduction Chapter 11: Multirate Digital Signal Processing 11.1 Introduction
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 7 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 8 / 42
Chapter 11: Multirate Digital Signal Processing 11.1 Introduction Chapter 11: Multirate Digital Signal Processing 11.1 Introduction
where
sin(πt/Tx ) F Tx |F | ≤ Fx < 2
g (t) = ←→ G (F ) =
πt/Tx 0 otherwise
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 9 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 10 / 42
Chapter 11: Multirate Digital Signal Processing 11.1 Introduction Chapter 11: Multirate Digital Signal Processing 11.1 Introduction
∞
X
y (t) = x(nTx )g (t − nTx )
n=−∞ mTy
∞ = km + ∆ m
X Tx |{z} |{z}
y (mTy ) = x(nTx )g (mTy − nTx ) integer remainder
n=−∞
mTy
∞ km =
X mTy Tx
= x(nTx )g Tx −n
Tx
n=−∞ mTy mTy
∆m = − ∈ [0, 1)
mTy Tx Tx
= km + ∆ m
Tx
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 11 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 12 / 42
Chapter 11: Multirate Digital Signal Processing 11.1 Introduction Chapter 11: Multirate Digital Signal Processing 11.1 Introduction
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 13 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 14 / 42
Chapter 11: Multirate Digital Signal Processing 11.1 Introduction Chapter 11: Multirate Digital Signal Processing 11.1 Introduction
∞
X I significant simplification possible for TTyx = Fx
Fy
= D
I
y (mTy ) = g ((k + ∆m )Tx )x((km − k)Tx ) where D, I ∈ Z+ and GCD(D, I ) = 1
k=−∞
X∞
= g ((k + ∆m )Tx )x((km − k)Tx )
mTy mTy mD mD
k=−∞ ∆m = − = −
Tx Tx I I
1 mD 1
I gm (nTx ) may have to be retrieved or computed = mD − I = (mD) mod I
I I I
I in general, there are as many weights/coefficients required as 1
input samples × output values to compute = (mD)I
I
I in general, no simplification is possible making computation of
y (mTy ) from x(nTx ) impractical
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 15 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 16 / 42
Chapter 11: Multirate Digital Signal Processing 11.1 Introduction Chapter 11: Multirate Digital Signal Processing 11.1 Introduction
Furthermore, for r ∈ Z:
Note: 1 1
∆m+rI =((m + rI )D)I = (mD + rlD)I
I I
(mD)I ∈ {0, 1, 2, . . . , I − 1} 1
1 = (mD)I = ∆m
∆m = (mD)I ∈ {0, 1/I , 2/I , . . . , (I − 1)/I } I
I ∴ gm+r I (nTx ) = gm (nTx ), r ∈ Z
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 17 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 18 / 42
Chapter 11: Multirate Digital Signal Processing 11.1 Introduction Chapter 11: Multirate Digital Signal Processing 11.1 Introduction
0
n
Ty
Ty = DTx =⇒ = D, D ∈ Z+
T
x
mTy
km = = bmDc = mD ∵ mD ∈ Z
Tx
mTy mTy
∆m = − = mD − bmDc = mD − mD = 0
Tx Tx
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 19 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 20 / 42
Chapter 11: Multirate Digital Signal Processing 11.1 Introduction Chapter 11: Multirate Digital Signal Processing 11.1 Introduction
original/bandlimited original/bandlimited
interpolated signal 1 interpolated signal 1
0
n 0
n
∞
X ∞
X
y (mTy ) = g ((n + ∆m )Tx )x((km − n)Tx ) y (mTy ) = g (nTx )x((mD − n)Tx )
n=−∞ n=−∞
∞ ∞
X X sin(πn)
= g ((n + 0)Tx )x((mD − n)Tx ) = x((mD − n)Tx )
n=−∞ n=−∞
πn
X∞ ∞
X
= g (nTx )x((mD − n)Tx ) = δ(n)x((mD − n)Tx ) = x(mDTx )
n=−∞ n=−∞
| {z }
dst-time convolution
See Figure 11.1.3 of text .
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 21 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 22 / 42
Chapter 11: Multirate Digital Signal Processing 11.1 Introduction Chapter 11: Multirate Digital Signal Processing 11.1 Introduction
Interpolation/Upsampling Interpolation/Upsampling
∞
X
y (mTy ) = x(nTx )g (mTy − nTx )
original/bandlimited n=−∞
interpolated signal 1 ∞
X Tx
= x(nTx )g (m − nTx )
0
n n=−∞
I
∞
X sin(π mI − πn)
Ty 1 = x(nTx )
Tx = ITy =⇒ = , I ∈ Z+ π mI − πn
T I n=−∞
xj k ∞
sin( πI (m − nI ))
mTy m X
km = = = x(nTx ) π
Tx I (m − nI )
n=−∞ | I {z
mTy mTy m jmk
}
sinc centered at n = m/I
∆m = − = −
Tx Tx I I
∈ {0, 1/I , 2/I , . . . , (I − 1)/I } See Figure 11.1.4 of text .
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 23 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 24 / 42
Chapter 11: Multirate Digital Signal Processing 11.2 Decimation by a Factor D Chapter 11: Multirate Digital Signal Processing 11.2 Decimation by a Factor D
Decimator
Downsampling with Anti-Alaising Filter LTI Filter Downsampler
Decimator
LTI Filter Downsampler
∞
X
v (n) = h(k)x(n − k)
I Downsampling alone may cause aliasing, therefore, it is desirable k=−∞
to introduce an anti-aliasing filter Hd (ωx ) ∞
Interpolator X Decimator
Upsamplery (m) = v (mD) = h(k)x(mD − k)
LTI Filter LTI Filter Downsampler
k=−∞
Interpolator Decimator | {z }
Upsampler LTI Filter LTI Filter Downsampler linear time-varying system
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 25 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 26 / 42
Chapter 11: Multirate Digital Signal Processing 11.2 Decimation by a Factor D Chapter 11: Multirate Digital Signal Processing 11.2 Decimation by a Factor D
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 27 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 28 / 42
Chapter 11: Multirate Digital Signal Processing 11.2 Decimation by a Factor D Chapter 11: Multirate Digital Signal Processing 11.2 Decimation by a Factor D
Decimator
Downsampling: Frequency Domain Perspective LTI Filter Downsampler
∞
X ∞
X
Y (z) = y (m)z −m = ṽ (mD)z −m
m=−∞ m=−∞
∞
X 0
= ṽ (m0 )z −m /D since ṽ (m) = 0 for m 6∈ {0, ±D, ±2D, . . .}
m0 =−∞
∞ ∞ D−1
X
−m/D
X 1 X j2πkm/D −m0 /D
= v (m)p(m)z = v (m) e z In the preceding analysis, we employed:
D
m0 =−∞ m=−∞ k=0 Z
D−1 ∞ v (n) ←→ V (z)
1 X X
= v (m)(e −j2πk/D z 1/D )−m hd (n) ←→
Z
Hd (z)
D m=−∞
k=0
| {z } Interpolator
x(n) ←→
Z
X (z) Decimator
≡V (e −j2πk/D z 1/D )=Hd (e −j2πk/D z 1/D )X (e −j2πk/D ) Upsampler LTI Filter X∞ LTI Filter Downsampler
D−1
1 X V (z) = v (m)z −m
= Hd (e −j2πk/D z 1/D )X (e −j2πk/D z 1/D ) m=−∞
D
k=0 V (z) = Hd (z) · X (z)
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 29 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 30 / 42
Chapter 11: Multirate Digital Signal Processing 11.2 Decimation by a Factor D Chapter 11: Multirate Digital Signal Processing 11.2 Decimation by a Factor D
jωy
Let z = e :
D−1
D−1 1 X ωy − 2πk ωy − 2πk
1 X Y (ωy ) = Hd X
Y (z) = Hd (e −j2πk/D z 1/D )X (e −j2πk/D z 1/D ) D
k=0
D D
D
k=0
D−1
For −π ≤ ωy ≤ π,
1 X
Y (e jωy ) = Hd (e −j2πk/D e jωy 1/D )X (e −j2πk/D e jωy 1/D ) − Dπ ≤
ωy −2πk
≤ Dπ for k = 0
D D
ωy −2πk
k=0
− 3π
D ≤ D ≤ − Dπ for k = 1
D−1 .. ..
1 X
= Hd (e j(ωy −2πk)/D )X (e j(ωy −2πk)/D ) . .
D π ωy −2πk 3π
k=0 −2π + D ≤ D ≤ −2π + D for k = D − 1
D−1
1 X ωy − 2πk ωy − 2πk
Y (ωy ) = Hd X
D D D
k=0
Decimator
LTI Filter Downsampler
Note: For −π ≤ ωy ≤ π,
ωy − 2πk 1 for k = 0
Hd =
D 0 for k = 1, 2, . . . , D − 1
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 31 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 32 / 42
Chapter 11: Multirate Digital Signal Processing 11.2 Decimation by a Factor D Chapter 11: Multirate Digital Signal Processing 11.3 Interpolation by a Factor I
Therefore, for −π ≤ ωy ≤ π,
Interpolation by a Factor I
D−1
Interpolator
1 X ωy − 2πk ωy − 2πk
Y (ωy ) = Hd X
D D D Upsampler LTI Filter
k=0
1 ω ω 1 D−1
ωy − 2πk
ωy − 2πk
y y
X
= Hd X + Hd X
D | {zD } D D D D
k=1 | {z }
=1 =0
1 ωy
Y (ωy ) = D
X D
Note: ωy =
Ty
ωx = Dωx .
I Interpolation only increases the visible resolution of the signal.
Tx
I No information gain is achieved. At best Hu (ωy ) maintains the
− Dπ ≤ ωx ≤ π
D of X (ωx ) is stretched into −π ≤ ωy ≤ π for Y (ωy ). same information in y (n) as exists in x(n).
See Figure 11.2.3 of text . Interpolator Decimator
LTI Filter LTI Filter Downsampler
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 33 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 34 / 42
Chapter 11: Multirate Digital Signal Processing 11.3 Interpolation by a Factor I Chapter 11: Multirate Digital Signal Processing 11.3 Interpolation by a Factor I
Consider an intermediate signal v (n) at rate Fy but with the equivalent V (ωy ) = X (ωy I )
information as x(m). See Figure 11.3.1 of text .
x(m/I ) m = 0, ±I , ±2I , . . .
v (m) = 0 ≤ |ωy | ≤ π/I
I
0 otherwise Hu (ωy ) =
0
otherwise
∞
X IX (ωy I ) 0 ≤ |ωy | ≤ π/I
V (z) = v (m)z −m = · · · + v (−I )z I + v (0)z 0 + v (I )z −I + · · · Y (ωy ) = Hu (ωy )V (ωy ) =
0 otherwise
m=−∞
∞ ∞
X X −m
= x(m)z −mI = x(m)(z I ) = X (z I )
m=−∞ m=−∞ I X (ωy I ) 0 ≤ |ωy | ≤ π/I
Y (ωy ) =
V (e jωy ) = X (e jωy I ) =⇒ V (ωy ) = X (ωy I ) 0 otherwise
Interpolator
Upsampler LTI Filter Ty ωx
Note: ωy = Tx = I .
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 35 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 36 / 42
Chapter 11: Multirate Digital Signal Processing 11.3 Interpolation by a Factor I Chapter 11: Multirate Digital Signal Processing 11.3 Interpolation by a Factor I
Interpolator
Upsampler LTI Filter
∞
X
y (m) = hu (m − k)v (k)
k=−∞
m = 0, ±I , ±2I , . . .
x(m/I )
∵ v (m) = ⇒ v (k) = 0 for (k)I 6= 0
Interpolator
0
otherwise Decimator
X∞ LTI Filter ∞
X LTI Filter Downsampler
∴ y (m) = hu (m − kI ) v (kI ) = hu (m − kI )x(k)
| {z }
k=−∞ k=−∞
=x(k) | {z }
linear time-varying system
Return
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 37 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 38 / 42
Chapter 11: Multirate Digital Signal Processing 11.3 Interpolation by a Factor I Chapter 11: Multirate Digital Signal Processing 11.3 Interpolation by a Factor I
Return
Return
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 39 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 40 / 42
Chapter 11: Multirate Digital Signal Processing 11.3 Interpolation by a Factor I Chapter 11: Multirate Digital Signal Processing 11.3 Interpolation by a Factor I
Return Return
Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 41 / 42 Dr. Deepa Kundur (University of Toronto) Multirate Digital Signal Processing: Part I 42 / 42