DSP unit6 ppt about multirate digital signal processing

Sathisha41 18 views 93 slides Feb 27, 2025
Slide 1
Slide 1 of 93
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50
Slide 51
51
Slide 52
52
Slide 53
53
Slide 54
54
Slide 55
55
Slide 56
56
Slide 57
57
Slide 58
58
Slide 59
59
Slide 60
60
Slide 61
61
Slide 62
62
Slide 63
63
Slide 64
64
Slide 65
65
Slide 66
66
Slide 67
67
Slide 68
68
Slide 69
69
Slide 70
70
Slide 71
71
Slide 72
72
Slide 73
73
Slide 74
74
Slide 75
75
Slide 76
76
Slide 77
77
Slide 78
78
Slide 79
79
Slide 80
80
Slide 81
81
Slide 82
82
Slide 83
83
Slide 84
84
Slide 85
85
Slide 86
86
Slide 87
87
Slide 88
88
Slide 89
89
Slide 90
90
Slide 91
91
Slide 92
92
Slide 93
93

About This Presentation

DSP


Slide Content

1
Digital Signal Processing
Prof. V. N. Bhonge
Dept. of Electronics & Telecomm.
Shri Sant Gajanan Maharaj College of Engg,
Shegaon – 444203
[email protected]
UNIT-VI

2
Multirate Digital Signal Multirate Digital Signal
ProcessingProcessing
UNIT-VI
Multirate Digital Signal Processing: Sampling,
Sampling rate conversion, signal flow graph, filter
structure, polyphase decomposition, digital filter
design, multilevel filter bank. Overview and
architecture of DSP processor TMS320C54XX.
Prof. V. N. Bhonge Dept. of E & T

3
What does
 
multirate 
mean?
•Multirate simply
means “multiple sampling rates”.
• A
multirate DSP system uses multiple sampling rates within
the
system.
•Whenever
a signal at one rate has to be used by a system that
expects
a different rate, the rate has to be increased or decreased,
and
some processing is required to do so.
•Therefore
“Multirate DSP” really refers to the art or science
of changing sampling
rates.
The
process of converting a signal from a given rate to
a
different rate is called sampling rate conversion.
System that employ multiple sampling rates in the
processing of digital signals are called multirate
digital signal processing systems.

4
Why should I do multirate DSP?
The
most immediate reason is when you need to pass
data
between two systems which use incompatible
sampling
rates.
For
example,
Professional
audio systems use 48 kHz rate, but consumer CD
players
use 44.1 kHz , for broadcasting 32 KHz; when audio
professionals
transfer their recorded music to CDs, they need to
do
a rate conversion.
But
the most common reason is that multirate DSP can greatly
increase
processing efficiency which reduces DSP system cost
.
Examples
of multirate DSP
Signal
Compression ,Image coding , Speech coding, A/D and
D/A
Converter , Communication Systems

5
i)Computational
requirements are less
ii)Storage
for filter coefficents are less
iii)Finite
arithmetic effects are less
iv)Filter
order required in multirate application
are
low
v)Sensitivity
to filter coefficient lengths are less
Various advantages of Multirate DSP


While
designing multirate systems, effect of
aliasing
for decimation and pseudoimages for
interpolation
should be avoided.

6
What are the categories of multirate?
Multirate consists of:
1)Decimation: To
decrease the sampling rate.
2) Interpolation: To
increase the sampling rate.
3) Resampling:To
combine decimation and interpolation in


order
to change the sampling rate by a fractional


value
that can be expressed as a ratio. 
For
example, to resample by a factor of 1.5, just interpolate
by
a factor of 3 then decimate by a factor of 2 (to change
the
sampling rate by a factor of 3/2=1.5.)

7
Multirate Digital Signal ProcessingMultirate Digital Signal Processing
Basic Sampling Rate Alteration DevicesBasic Sampling Rate Alteration Devices
•Up-samplerUp-sampler
-
Used
to increase the sampling


rate
by an integer factor
•Down-samplerDown-sampler
-
Used
to decrease the sampling


rate
by an integer factor

8
Up-SamplerUp-Sampler
Time-Domain CharacterizationTime-Domain Characterization
•An
up-sampler with an
up-sampling factorup-sampling factor L,

where

L
is a positive integer, develops an
output
sequence with a sampling rate that
is

L
times larger than that of the input
sequence x[n]
, digital anti-aliasing filter
h
1(k)

•Block-diagram
representation
][nx
u
Lx[n] ][nx
uh
1
(k)

9
Up-SamplerUp-Sampler
•Up-sampling
operation is implemented by
inserting
equidistant zero-valued
samples
between two consecutive samples
of x[n]

•Input-output
relation
1L


 

otherwise,0
,2,,0],/[
][
LLnLnx
nx
u

10
Up-SamplerUp-Sampler
Figure
below shows the up-sampling by a factor of
3
of a
sinusoidal
sequence with a frequency of
0.12
Hz obtained.

11
Up-SamplerUp-Sampler
•In
practice, the zero-valued samples inserted by
the
up-sampler are replaced with appropriate
nonzero
values using some type of filtering
process
•Process
is called
interpolationinterpolation
and will be
discussed
later

12
Down-SamplerDown-Sampler
Time-Domain CharacterizationTime-Domain Characterization
•An
down-sampler with a
down-sampling down-sampling
factorfactor M,
where
M
is a positive integer,
develops
an output sequence
y[n]
with a
sampling
rate that is
(1/M)-th
of that of the
input
sequence
x[n]
•Block-diagram
representation
Mx[n] y[n]

13
Down-SamplerDown-Sampler
•Down-sampling
operation is implemented
by
keeping every
M-th
sample of
x[n]
and
removing
in-between samples to
generate y[n]
•Input-output
relation


y[n]
=
x[nM]
1M

14
Down-SamplerDown-Sampler
•Figure
below shows the down-sampling by
a
factor of
3
of a sinusoidal sequence of
frequency

0.042
Hz.

15
Basic Sampling Rate Alteration Basic Sampling Rate Alteration
DevicesDevices
•Sampling
periods have not been explicitly
shown
in the block-diagram representations
of
the up-sampler and the down-sampler

•This
is for simplicity and the fact that the
mathematical theory of multirate systemsmathematical theory of multirate systems
can
be understood without bringing the
sampling
period
T
or the sampling
frequency
into the picture
TF

16
Down-SamplerDown-Sampler
•Figure
below shows explicitly the time-
dimensions
for the down-sampler
M )(][ nMTxny
a
)(][ nTxnx
a

Input
sampling frequency
T
F
T
1

Output
sampling frequency
'
1
'
TM
F
F
T
T


17
Up-SamplerUp-Sampler
•Figure
below shows explicitly the time-
dimensions
for the up-sampler
Input
sampling frequency
T
F
T
1



 

otherwise0
,2,,0),/( LLnLnTx
a
L)(][ nTxnx
a
 y[n]
Output
sampling frequency
'
1
'
T
LFF
TT


18
Basic Sampling Rate Basic Sampling Rate
Alteration DevicesAlteration Devices
•The

up-samplerup-sampler
and the
down-samplerdown-sampler
are
linearlinear
but
time-varying discrete-time time-varying discrete-time
systemssystems
•We
illustrate the time-varying property of a
down-sampler
•The
time-varying property of an up-sampler
can
be proved in a similar manner

19
Basic Sampling Rate Alteration Basic Sampling Rate Alteration
DevicesDevices
•Consider
a factor-of-
M
down-sampler
defined
by
•Its
output for an input
is
then given by
•From
the input-output relation of the down-
sampler
we obtain
y[n]
=
x[nM]
][
1ny ][][
01
nnxnx 
][][][
011
nMnxMnxny 
)]([][
00
nnMxnny 
][][
10
nyMnMnx 

20
Up-SamplerUp-Sampler
Frequency-Domain CharacterizationFrequency-Domain Characterization
•Consider
first a factor-of-
2
up-sampler
whose
input-output relation in the time-
domain
is given by


 

otherwise,
,,,],/[
][
0
4202 nnx
nx
u

21
Spectrum of the Up-SamplerSpectrum of the Up-Sampler
•In
terms of the
z-transform,
the input-output
relation
is then given by








even
]/[][)(
n
n
n
n
n
uu znxznxzX 2
2 2
[ ] ( )
m
m
xm z X z



 

22
Cont…Cont…
•In
a similar manner, we can show that for a
factor-of-factor-of-LL up-sampler up-sampler
•On
the unit circle, for , the input-
output
relation is given by
)()(
L
u
zXzX 
j
ez
)()(
Ljj
u eXeX


23
Cont…Cont…
•Figure
below shows the relation between



and for
L
= 2

in the case of a
typical
sequence
x[n]
)(
j
eX )(
j
u
eX

24
Up-SamplerUp-Sampler
•As
can be seen, a factor-of-
2
sampling rate
expansion
leads to a compression of
by
a factor of
2
and a
2-fold
repetition in
the
baseband

[0, 2
]
•This
process is called
imagingimaging
as we get an
additional

image”
of the input spectrum)(
j
eX

25
Up-SamplerUp-Sampler
•Similarly
in the case of a factor-of-
L
sampling
rate expansion, there will be
additional
images of the input spectrum in
the
baseband
•Lowpass
filtering of removes the
images
and in effect “fills in” the zero-
valued
samples in with interpolated
sample
values

1L
1L][nx
u
][nx
u

26
Up-SamplerUp-Sampler
•Illustrate
the frequency-domain properties
of
the up-sampler shown below for
L
= 4
0 0.20.40.60.8 1
0
0.2
0.4
0.6
0.8
1
w/p
M
a
g
n
i
tu
d
e
Output spectrum
0 0.20.40.60.8 1
0
0.2
0.4
0.6
0.8
1
w/p
M
a
g
n
itu
d
e
Input spectrum

27
Spectrum of the Down-SamplerSpectrum of the Down-Sampler
Frequency-Domain CharacterizationFrequency-Domain Characterization
•Applying
the
z-transform
to the input-output
relation
of a factor-of-
M
down-sampler
we
get
•The
expression on the right-hand side cannot be
directly
expressed in terms of
X(z)





n
n
zMnxzY ][)(
][][ Mnxny

28
Cont…Cont…
•To
get around this problem, define a new
sequence
:
•Then


 

otherwise,
,,,],[
][
int
0
20 MMnnx
nx
][
int
nx








n
n
n
n
zMnxzMnxzY ][][)(
int
)(][
/
int
/
int
M
k
Mk
zXzkx
1




29
Cont…Cont…
•Now,
can be formally related to
x[n]
through

where
•A
convenient representation of
c[n]
is given
by
where
][
int
nx
][][][
int
nxncnx 


 

otherwise,
,,,,
][
0
201 MMn
nc




1
0
1
M
k
kn
M
W
M
nc][
Mj
M
eW
/2

30
Cont…Cont…
•Taking
the
z-transform
of
and
making use of
we
arrive at

][][][
int
nxncnx 




1
0
1
M
k
kn
M
W
M
nc][
n
n
M
k
kn
M
n
n
znxW
M
znxnczX








 







 ][][][)(
int
1
0
1
 


















1
0
1
0
11
M
k
k
M
M
kn
nkn
M WzX
M
zWnx
M
][

31
Spectrum of the Down-SamplerSpectrum of the Down-Sampler
•Consider
a factor-of-
2
down-sampler with
an
input
x[n]
whose spectrum is as shown
below
•The
DTFTs of the output and the input
sequences
of this down-sampler are then
related
as
)}()({
2
1
)(
2/2/ 

jjj
eXeXeY

32
Aliasing Effect in Down-SamplerAliasing Effect in Down-Sampler
•Now
implying
that
the second term in the
previous
equation is simply obtained by
shifting
the first term to the right
by
an amount
2
as shown below
)()(
2/)2(2/ 

jj
eXeX
)(
2/

j
eX
)(
2/j
eX

33
Cont…Cont…
•The
plots of the two terms have an overlap,
and
hence, in general, the original “
shape”

of


is lost when
x[n]
is down-sampled
as
indicated below
)(
j
eX
Mx[n] y[n]h(n)

34
Cont…Cont…
•This
overlap causes the
aliasingaliasing
that takes
place
due to under-sampling
•There
is no overlap, i.e., no aliasing, only if

•Note:

is
indeed periodic with a
period
2
,
even though the stretched version
of
is periodic with a period
4
2/0)( 

for
j
eX
)(
j
eX
)(
j
eY

35
Down-SamplerDown-Sampler
•For
the general case, the relation between the
DTFTs
of the output and the input of a factor-
of-M
down-sampler is given by


is
a sum of
M
uniformly shifted
and
stretched versions of and scaled
by
a factor of

1/
M





1
0
/)2(
)(
1
)(
M
k
Mkjj
eX
M
eY
)(
j
eY
)(
j
eX

36
Original and Downsampled SpectrumOriginal and Downsampled Spectrum
•Aliasing
is absent if and only if
as
shown below for
M
= 2
2/for0)( 
j
eX
MforeX
j
/0)( 

37
Down-SamplerDown-Sampler
•Illustrate
the frequency-domain properties
of
the up-sampler shown below for
M
= 2

38
Down-SamplerDown-Sampler
•The
input and output spectra of a down-sampler
with M
= 3

are shown below
•Effect
of aliasing can be clearly seen

39
Cascade EquivalencesCascade Equivalences
•A
complex
multirate systemmultirate system
is formed by an
interconnection
of the up-sampler, the
down-sampler,
and the components of an
LTI
digital filter
•In
many applications these devices appear
in
a cascade form
•An
interchange of the positions of the
branches
in a cascade often can lead to a
computationally
efficient realization
Fractional Sampling Rate AlterationFractional Sampling Rate Alteration

40
Cascade EquivalencesCascade Equivalences
•To
implement a
fractional changefractional change
in the
sampling ratesampling rate
we need to employ a cascade
of
an up-sampler and a down-sampler
•Consider
the two cascade connections
shown
below
M L][nx ][
1
ny
ML][nx ][
2
ny

41
Cascade EquivalencesCascade Equivalences
•A
cascade of a factor-of-
M
down-sampler
and
a factor-of-
L
up-sampler is
interchangeable
with no change in the
input-output
relation:
if and only if if and only if MM and and LL are relatively prime are relatively prime,

i.e.,

M
and
L
do not have any common
factor
that is an integer


k
> 1
][][
21 nyny

42
Cascade EquivalencesCascade Equivalences
•Two
other cascade equivalences are shown
below
L][nx ][
2
ny)(
L
zH
L][nx ][
2
ny)(zH
M][nx ][
1
ny)(zH
M][nx )(
M
zH ][
1
ny
Cascade equivalence #1Cascade equivalence #1
Cascade equivalence #2Cascade equivalence #2

43
Filters in Sampling Rate Alteration Filters in Sampling Rate Alteration
SystemsSystems
•From
the
sampling theoremsampling theorem
it is known that a
the
sampling rate of a critically sampled
discrete-time
signal with a spectrum
occupying
the full Nyquist range cannot be
reduced
any further since such a reduction will
introduce
aliasing
•Hence,
the bandwidth of a critically sampled
signal
must be reduced by
lowpass filteringlowpass filtering
before
its sampling rate is reduced by a down-
sampler

44
Signal
Flow Graph
A
collection of nodes and directed edges
–Node:
computation or task
–Directed
edge (j,k)
•a
linear transformation from node j to node k
•Usually
as constant gain multiplier or delay elements
–Widely
used in digital filter structures
Basic blocks :

45
Block
Diagram

46

47

48
Filters in Sampling Rate Alteration Filters in Sampling Rate Alteration
SystemsSystems
•Likewise,
the zero-valued samples introduced
by
an up-sampler must be interpolated to
more
appropriate values for an effective
sampling
rate increase
•We
shall show next that this interpolation can
be
achieved simply by digital lowpass
filtering
•We
now develop the frequency response
specifications
of these lowpass filters

49
Filter SpecificationsFilter Specifications
•Since
up-sampling causes periodic
repetition
of the basic spectrum, the
unwanted
images in the spectra of the up-
sampled
signal must be removed by
using
a lowpass filter
H(z),
called the
interpolation filterinterpolation filter,
as indicated below
•The
above system is called an
interpolatorinterpolator
][nx
u
L][nx ][ny)(zH
][nx
u

50
Filter SpecificationsFilter Specifications
Overall
filter requirement for decimation, to avoid aliasing after
rate
reduction are
Passband

Stopband

Passband
deviation
Stopband
deviation
Where


F
s
is the original sampling frequency


/2 /2
s s
F M f F 
0
p
f f 
p

s

/2
p s
f F M

51
Filter SpecificationsFilter Specifications
Overall
filter requirement for interpolation, to
avoid
aliasing after rate reduction are
Passband

Stopband

Passband
deviation
Stopband
deviation
Where



/2 /2
s s
F M f F 
0
p
f f 
p

s

/2
p s
f F

52
Filter SpecificationsFilter Specifications
•On
the other hand, prior to down-sampling,
the
signal
v[n]
should be bandlimited to



by means of a
lowpass
filter, called the
decimation filterdecimation filter,

as
indicated below to avoid aliasing caused
by
down-sampling
•The
above system is called a
decimatordecimator
M/
M][nx )(zH ][ny

53
Interpolation Filter SpecificationsInterpolation Filter Specifications
•Assume

x[n]
has been obtained by sampling
a
continuous-time signal at the Nyquist
rate
•If
and denote the Fourier
transforms
of and
x[n],
respectively,
then
it can be shown
•where
is the sampling period
)(tx
a
)(tx
a
)(jX
a
)(
j
eX








 oo
)(
T
kjj
X
T
eX
k
a
j  21
o
T

54
Interpolation Filter SpecificationsInterpolation Filter Specifications
•Since
the sampling is being performed at the
Nyquist rateNyquist rate,
there is no overlap between the
shifted
spectras of
•If
we instead sample at a much higher
rate
yielding
y[n],
its Fourier
transform
is related to
through
)/(
o
TjX
)(tx
a
o
TLT
)(
j
eY )(jX
a


















k
a
k
a
j
LT
kjj
X
T
L
T
kjj
X
T
eY
/
)(
oo
 221

55
Interpolation Filter SpecificationsInterpolation Filter Specifications
•On
the other hand, if we pass
x[n]
through a
factor-of-L
up-sampler generating ,
the
relation between the Fourier transforms
of

x[n]
and are given by
•It
therefore follows that if is passed
through
an ideal lowpass filter
H(z)
with a
cutoff
at
/L
and a gain of
L,
the output of
the
filter will be precisely
y[n]

][nx
u
][nx
u
)()(
Ljj
u
eXeX


][nx
u

56
Interpolation Filter SpecificationsInterpolation Filter Specifications
•In
practice, a transition band is provided to
ensure
the realizability and stability of the
lowpass
interpolation filter
H(z)
•Hence,
the desired lowpass filter should
have
a stopband edge at and a
passband
edge close to to reduce the
distortion
of the spectrum of
x[n]
L
s
/
s
p

57
Interpolation Filter SpecificationsInterpolation Filter Specifications
•If
is the highest frequency that needs to
be
preserved in
x[n],
then
•Summarizing
the specifications of the
lowpass
interpolation filter are thus given
by
c

L
cp
/








L
LL
eH
cj
/,
/,
)(
0

58
Decimation Filter SpecificationsDecimation Filter Specifications
•In
a similar manner, we can develop the
specifications
for the lowpass decimation
filter
that are given by








M
M
eH
cj
/,
/,
)(
0
1

59
Filter Design MethodsFilter Design Methods
•The
design of the filter
H(z)

is
a standard
IIR or FIR lowpass filter designIIR or FIR lowpass filter design
problem
•Any
one of the techniques outlined in
Chapter
7
can
be applied for the design of
these
lowpass filters

60
Filters for Fractional Sampling Filters for Fractional Sampling
Rate AlterationRate Alteration
•A
fractional change in the sampling rate can
be
achieved by cascading a factor-of-
M
decimator
with a factor-of-
L
interpolator,
where

M
and
L
are positive integers
•Such
a cascade is equivalent to a decimator
with
a decimation factor of
M/L
or an
interpolator
with an interpolation factor of

L/M

61
Filters for Fractional Sampling Filters for Fractional Sampling
Rate AlterationRate Alteration
•There
are two possible such cascade
connections
as indicated below
•The
second scheme is more computationally
efficient
since only one of the filters,
or
, is adequate to serve as both the
interpolation
and the decimation filter
L )(zH
uM)(zH
d
L )(zH
u M)(zH
d
)(zH
u
)(zH
d

62
Filters for Fractional Sampling Filters for Fractional Sampling
Rate AlterationRate Alteration
•Hence,
the desired configuration for the
fractional
sampling rate alteration is as
indicated
below where the lowpass filter

H(z)

has
a stopband edge frequency given
by
L )(zH M







ML
s

 ,min

63
Computational RequirementsComputational Requirements
•The
lowpass decimation or interpolation
filter
can be designed either as an FIR or an
IIR
digital filter
•In
the case of single-rate digital signal
processing,

IIR digital filtersIIR digital filters
are, in general,
computationally
more efficient than
equivalent
FIR digital filters, and are
therefore
preferred where computational
cost
needs to be minimized

64
Computational RequirementsComputational Requirements
•This
issue is not quite the same in the case
of
multirate digital signal processing
•To
illustrate this point further, consider the
factor-of-M
decimator shown below
•If
the decimation filter
H(z)
is an FIR filter
of
length
N
implemented in a direct form,
then
M][nx )(zH ][ny
][nv




1
0
N
m
mnxmhnv ][][][

65
Computational RequirementsComputational Requirements
•Now,
the down-sampler keeps only every
M-
th
sample of
v[n]
at its output
•Hence,
it is sufficient to compute
v[n]
only
for
values of
n
that are multiples of
M
and
skip
the computations of in-between
samples
•This
leads to a factor of
M
savings in the
computational
complexity

66
Computational RequirementsComputational Requirements
•Now
assume
H(z)
to be an IIR filter of
order

K
with a transfer function
where
)(
)(
)(
)(
)(
zD
zP
zH
zX
zV

n
K
n
n
zpzP



0
)(
n
K
n
nzdzD



1
1)(

67
Computational RequirementsComputational Requirements
•Its
direct form implementation is given by
•Since

v[n]
is being down-sampled, it is
sufficient
to compute
v[n]
only for values of
n
that are integer multiples of
M
 ][][][ 21
21 nwdnwdnw
][][ nxKnwd
K 
][][][][ Knwpnwpnwpnv
K
 1
10

68
Computational RequirementsComputational Requirements
•However,
the intermediate signal
w[n]
must
be
computed for all values of
n
•For
example, in the computation of
K+1

successive
values of
w[n]

are
still
required
•As
a result, the savings in the computation
in
this case is going to be less than a factor
of M
][][][][ KMwpMwpMwpMv
K
 1
10

69
Computational RequirementsComputational Requirements
•For
the case of interpolator design, very
similar
arguments hold
•If

H(z)
is an FIR interpolation filter, then the
computational
savings is by a factor of
L
(since

v[n]
has zeros between its
consecutive
nonzero samples)
•On
the other hand, computational savings is
significantly
less with IIR filters
1L

70
Filter BankFilter Bank
For
multirate processing it is required to separate
a
signal into a set of sub- bands signals.
In
some application where these kind of sub-band have to
be
combined .
For
this Filter Banks are used.
1)Analysis
Filter Bank
2)Synthesis
Filter Bank
3)Sub-Band
Coding Filter Bank
4)Quadrature-Mirror
Filter Bank

71
1)
Analysis Filter Bank
•It
consist of M-sub filter.
•The
individual H
k
(z)
is known as analysis filter.
•All
the sub filter are equally spaced in frequancy


and
each have the same frequancy.

72
2)
Synthesis Filter Bank
•It
is dual of M-channel analysis bank K.
•Each
Um(z) is fed to upsampler.
•The
upsampling process produced the signal
U
m(z
m
)

73
3)
Sub-Band Coding Filter Bank
•It
is obtained by combining analysis and synthesis filter bank.
•Analysis
filter bank splits the broadband input signal x(n).
•Synthesis
filter bank is used to reconstruct output signal x(n)

74
4)
Quadrature Mirror Filter Bank
•It
is a two channel sub-band coding filter bank with complementary
frequency
response.
•It
consist of two sections
•1)
Analysis section ,


Ho(z)
–lowpass filter , H1(z) –highpass filter
•2)
Synthesis Section


Go(z)
–lowpass filter , G1(z) –highpass filter

75
Application
of Multirate DSP
1)High
Quality Analog to Digital Conversion for Digital Audio.
2)Efficient
Digital to Analog Conversion in Compact Hi-Fi
Systems.
3)Applicationin
the Acquisition of High Quality Data.
4)Multirate
Narrowband Filtering.


(Sharp
transition between passband and stopbands)

76
DSP
Processor
TMS320C54x

77
Texas
Instruments TMS320 Family Multiple DSP
P

Generations
First
Sample
Bit Size Clock
speed
(MHz)
Instruction
Throughput
MAC
execution
(ns)
MOPS Device density (#
of transistors)
Uniprocessor
Based
(Harvard
Architecture)
TMS32010 1982 16 integer 20 5 MIPS 400 5 58,000 (3)
TMS320C25 1985 16 integer 40 10 MIPS 100 20 160,000 (2)
TMS320C30 1988 32 flt.pt. 33 17 MIPS 60 33 695,000 (1)
TMS320C50 1991 16 integer 57 29 MIPS 35 60 1,000,000 (0.5)
TMS320C2XXX 1995 16 integer 40 MIPS 25 80
Multiprocessor
Based
TMS320C80 1996 32 integer/flt. 2 GOPS
120 MFLOP
MIMD
TMS320C62XX 1997 16 integer 1600 MIPS 5 20 GOPS VLIW
TMS310C67XX 1997 32 flt. pt. 5 1 GFLOP VLIW

78
Features of TMS320C54x

Features
provided by the ’54x DSPs include:
•High-performance,
low-power ’C54x CPU
• Advanced
multibus architecture with three separate 16-bit
data
memory buses and one program memory bus
• 40-bit
arithmetic logic unit (ALU), including a 40-bit barrel
shifter
and two independent 40-bit accumulators
•17-
× 17-bit parallel multiplier coupled to a 40-bit dedicated
adder
for nonpipelined single-cycle multiply/accumulate
(MAC)
operation
• Compare,
select, and store unit (CSSU) for the add/compare
selection
of the Viterbi operator
• Exponent
encoder to compute an exponent value of a 40-bit
accumulator
value in a single cycle

79
Cont…
•Two
address generators with eight auxiliary registers and two
auxiliary
register arithmetic units (ARAUs)
• Data
buses with a bus holder feature
• Extended
addressing mode for up to 8M × 16-bit maximum
addressable
external program space
• Single-instruction
repeat and block-repeat operations for program
Code
•Block-memory-move
instructions for better program and data
management
• Instructions
with a 32-bit-long word operand
• Instructions
with two- or three-operand reads
• Arithmetic
instructions with parallel store and parallel load
• Conditional
store instructions
• Fast
return from interrupt

80
On-chip peripherals :
•Software-programmable
wait-state generator and programmable
bank-switching
• Phase-locked
loop (PLL) clock generator with internal crystal
oscillator
or external clock source
• Full-duplex
standard serial port
•Time-division
multiplexed (TDM) serial port
• Buffered
serial port (BSP)
• Multichannel
buffered serial port (McBSP)
• Direct
memory access (DMA) controller
• 8-bit
parallel host-port interface (HPI)
• Enhanced
8-bit parallel host-port interface (HPI8)
• 16-bit
parallel host-port interface (HPI16)
• 16-bit
timer with 4-bit prescaler
• Interprocessor
first-in first-out (FIFO) unit (on multiple CPU


devices)

81
Architecture
The
’54x DSPs use an advanced, modified Harvard
architecture
that maximizes processing power by
maintaining
one program memory bus and three data
memory
buses. These processors also provide an
arithmetic
logic unit (ALU) that has a high degree of
parallelism,
application-specific hardware logic, on-chip
memory,
and additional on-chip peripherals. These DSP
families
also provide a highly specialized instruction set,
which
is the basis of the operational flexibility and speed
of
these DSPs.

82
Cont….
Separate
program and data spaces allow
simultaneous

access
to program instructions and data, providing the
high
degree of parallelism.
Two
reads and one write
operation
can be performed in a single cycle
.

Instructions
with parallel store and application-specific
instructions
can fully utilize this architecture. In
addition,
data can be transferred between data and
program
spaces. Such
parallelism
supports a powerful
set
of arithmetic, logic, and bit-manipulation operations
that
can all be performed in a single machine cycle.
Also
included are the control mechanisms to manage
interrupts,
repeated operations, and function calls.

83
TMS320C54x Internal Block Diagram

84
Central Processing Unit (CPU)
The
CPU of the ’54x devices contains:
A
40-bit arithmetic logic unit (ALU)
Two
40-bit accumulators
A
barrel shifter
A
17 × 17-bit multiplier/adder
A
compare, select, and store unit (CSSU)
Arithmetic Logic Unit (ALU)
•The
’54x devices perform 2s-complement arithmetic using a
40-bit
ALU and two 40-bit accumulators (ACCA and ACCB).
The
ALU also can perform Boolean operations.
•The
ALU can function as two 16-bit ALUs and perform two
16-bit
operations simultaneously when the C16 bit in status
register
1 (ST1) is set.

85
Accumulators
The
accumulators, ACCA and ACCB, store the output from the
ALU
or the multiplier / adder block; the accumulators can also
provide
a second input to the ALU or the multiplier / adder. The
bits
in each accumulator is grouped as follows:
• Guard
bits (bits 32–39)
• A
high-order word (bits 16–31)
• A
low-order word (bits 0–15)
Instructions
are provided for storing the guard bits, the high-order
and
the low-order accumulator words in data memory, and for
manipulating
32-bit accumulator words in or out of data memory.
Also,
any of the accumulators can be used as temporary storage
for
the other.

86
Barrel Shifter
The
’54x’s barrel shifter has a 40-bit input connected to the
accumulator
or data memory (CB, DB) and a 40-bit output connected
to
the ALU or data memory (EB).
The
barrel shifter produces a left
shift
of 0 to 31 bits and a right shift of 0 to 16 bits on the input data.
Multiplier/Adder
The
multiplier / adder performs 17 × 17-bit 2s-complement multiplication with a
40-bit
accumulation in a single instruction cycle. The multiplier / adder block
consists
of several elements: a multiplier, adder, signed/unsigned input control,
fractional
control, a zero detector, a rounder (2s-complement),
overflow/saturation
logic, and TREG. The multiplier has two inputs: one input is
selected
from the TREG, a data-memory operand, or an accumulator; the other is
selected
from the program memory, the data memory, an accumulator, or an
immediate
value. The fast on-chip multiplier allows the ’54x to perform
operations
such as convolution, correlation, and filtering efficiently.

87
Compare, Select, and Store Unit (CSSU)
The
compare, select, and store unit (CSSU) performs maximum
comparisons
between the accumulator’s high and low words,
allows
the test/control (TC) flag bit of status register 0 (ST0)
and
the transition (TRN) register to keep their transition
histories,
and selects the larger word in the accumulator to be
stored
in data memory. The CSSU also accelerates Viterbi-type
butterfly
computation with optimized on-chip hardware.
Program Control
Program
control is provided by several hardware and software
mechanisms:
•Some
of the hardware elements included in the program
controller
are the program counter, the status and control
register,
the stack, and the address-generation logic.
•Some
of the software mechanisms used for program control
include
branches, calls, conditional instructions, a repeat
instruction,
reset, and interrupts.

88
Status Registers (ST0, ST1)
The
status registers, ST0 and ST1, contain the status of the various
conditions
and modes for the ’54x devices. ST0 contains the
flags
(OV,
C, and TC) produced by arithmetic operations and bit
manipulations
in addition to the data page pointer (DP) and the
auxiliary
register pointer (ARP) fields. ST1 contains the various
modes
and instructions that the processor operates on and
executes.
Auxiliary Registers (AR0–AR7)
The
eight 16-bit auxiliary registers (AR0–AR7) can be accessed by
the
central airthmetic logic unit (CALU) and modified by the
auxiliary
register arithmetic units (ARAUs).
The
primary function
of
the auxiliary registers is generating 16-bit addresses for data
space.
However, these registers also can act as general-purpose
registers
or counters.

89
Temporary Register (TREG)
The
TREG is
used
to hold one of the multiplicands for multiply
and
multiply/accumulate instructions.

It can hold a dynamic
(execution-time
programmable) shift count for instructions with a
shift
operation such as ADD, LD, and SUB. It also can hold a
dynamic
bit address for the BITT instruction.
Transition Register (TRN)
The
TRN is a 16-bit register that
is
used to hold the transition
decision
for the path to new metrics to perform the Viterbi
algorithm.
The CMPS (compare, select, max, and store) instruction
updates
the contents of the TRN based on the comparison between
the
accumulator high word and the accumulator low word.

90
Stack-Pointer Register (SP)
The
SP is a 16-bit register that
contains
the address at the top of
the
system stack.
The
SP always points to the last element pushed
onto
the stack. The stack is manipulated by interrupts, traps, calls,
returns,
and the PUSHD, PSHM, POPD, and POPM instructions.
Pushes
and pops of the stack predecrement and postincrement,
respectively,
all 16 bits of the SP.
Circular-Buffer-Size Register (BK)
The
16-bit BK is used by the ARAUs in circular addressing to
specify
the data block size.

91
Block-Repeat Registers (BRC, RSA, REA)
The
block-repeat counter (BRC) is a 16-bit register used to
specify
the number of times a block of code is to be repeated
when
performing a block repeat. The block-repeat start address
(RSA)
is a 16-bit register containing the starting address of the
block
of program memory to be repeated when operating in the
repeat
mode. The 16-bit block-repeat end address (REA)
contains
the ending address if the block of program memory is
to
be repeated when operating in the repeat mode.
Interrupt Registers (IMR, IFR)
The
interrupt-mask register (IMR) is used to mask off specific
interrupts
individually at required times. The interrupt-flag
register
(IFR) indicates the current status of the interrupts.

92
Processor-Mode Status Register (PMST)
The
processor-mode status register (PMST) controls memory
configurations
of the ’54x devices.
Power-Down Modes
There
are three power-down modes, activated by the IDLE1,
IDLE2,
and IDLE3 instructions. In these modes, the ’54x devices
enter
a dormant state and dissipate considerably less power than in
normal
operation.
The
IDLE1 instruction is used to shut down the CPU.
The
IDLE2 instruction is used to shut down the CPU and on-chip
peripherals.

The
IDLE3 instruction is used to shut down the ’54x processor
completely.
This instruction stops the PLL circuitry as well as the
CPU
and peripherals.

93
Thank
You
Tags