ch11 DSP
ch11 DSP
DSP Algorithm
Implementations
清大電機系林嘉文
[email protected]
03-5731152 11-1
Original PowerPoint slides prepared by S. K. Mitra
© The McGraw-Hill Companies, Inc., 2007
Matrix Representation of Digital
Filter Structures
• Consider
Co s de
is shown below
• Since the final node set {N4} has only incoming branches
branches,
the structure is computable
• Where
• Here
h[0] = 2, h[1] = 4, h[2] = −5, h[3] = −3, h[4] =13
• Hence
FT DTFT; T0
f(k) F(ejωT0)
ntinuous in
t k ω
2π
frequency
T0
Con
1 ∞ T π
∫ ∫π F ( e jωT0 )e jkωT0 dω
jω t
f (t ) = F ( jω ) e dω f (k ) = 0 T0
2π −∞ 2π −
T0
∞
∫
∞
F (ω ) = f ( t ) e − j ω t dt
−∞ F (e jωT0
)= ∑ f ( k )e
k = −∞
− jkωT0
f(t) F(n)
F(k)
ete in frequency – period
t nω0 k n
2π
ω0 DFT:N
FSiω0
∞ N −1 2π
1
∑ ∑ F ( n )e
j kn
jnω 0 t
f (t ) = F ( n ) e f (k ) = N
n = −∞ N n =0
ω π N −1 2π
Discre
−j
∫ F ( n ) = ∑ f ( k )e
ω0 − jn ω 0 t kn
F (n ) = 0 f (t )e dt N
time
2π −π
ω0 k =0
• Observe
Ob X[k] = yk[n]|
[ ]|n=N
• z-transform of yields
• C
Corresponding
di flflow-graph
h off th
the 2-point
2 i t DFT is
i shown
h
below obtained using the identity
• Th
Thus, if (b2b1b0) representst the
th index
i d n off x[n],
[ ] then
th the
th
sample x[b2b1b0] appears at the location m = b0b1b2 as
Ψ1[b0b1b2] before the DFT computation is started
• i.e., the location of Ψ1[m] is in bit-reversed order from that
of x[n]
• Alternative forms can be obtained by reordering the
p
computations such as input
p in normal order and outputp in bit-
reversed order, and both input and output in normal order 11-44
Original PowerPoint slides prepared by S. K. Mitra
© The McGraw-Hill Companies, Inc., 2007
Decimation in Time FFT Algorithm
Decimation-in-Time
• The fast algorithm described assumes that the length of x[n]
i a power off 2
is
• If it is not, the length can be extended by zero-padding and
make the length a po powerer of 2
• Even after zero-padding, the DFT computation based on the
fast algorithm may be computationally more efficient than a
direct DFT computation of the original shorter sequence
• The fast DFT computation schemes described are called
decimation-in-time (DIT) fast Fourier transform (FFT)
algorithms as input x[n] is first decimated to form a set of
subsequences before the DFT is computed
16 256 32
/ ) ⋅ log2N
Complex multiplications : ((N/2)
C
32 1,024 80
Complex additions : N ⋅ log2N
64 4,096 192
• For k odd
• We can write
where
as
where 0 ≤ k1 ≤ N1 −1 and 0 ≤ k2 ≤ N2 −1
• The effect of the index mapping is to map the 1-D sequence
x[n] into a 2-D sequence that can be represented as a 2-D
array with n1 specifying the rows and n2 specifying the
columns of the array
• Inner parentheses of the last equation is seen to be the set
of N1-point DFTs of the N2-columns:
• Finally,
y, the outer sum is the set of N2-point
p DFTs of the
columns of the array:
for 0 ≤ k1 ≤ 1 and 0 ≤ k2 ≤ 3
• 2-D array representation of the input is
• Now
N
where
and 0 ≤ k1 ≤ N1 −1 and 0 ≤ k2 ≤ N2 −1
or with
or, ith W defined as
W = e−jΔω
T evaluate
To l t
• Using
U i ththe id
identity
tit nkk = ½ [n
[ 2 + k2 − (k−n)
(k )2] we can write
it
• Letting
• We arrive at
Original PowerPoint slides prepared by S. K. Mitra 11-70
© The McGraw-Hill Companies, Inc., 2007
Chirp z-Transform
z Transform Algorithm
• Interchanging k and n we get
• Th
Thus,
s X(e−jωn) corresponds to the con
convolution
ol tion of the
sequence g[n] with the sequence W−n2/2 followed by
multiplication by the sequence Wn2/2 as indicated below
• We arrive at
• Let
as shown below