Embedded Processors and Memory: Version 2 EE IIT, Kharagpur 1
Embedded Processors and Memory: Version 2 EE IIT, Kharagpur 1
Embedded Processors and Memory: Version 2 EE IIT, Kharagpur 1
2
Embedded Processors and
Memory
Version 2 EE IIT, Kharagpur 1
Lesson
7
Digital Signal Processors
Version 2 EE IIT, Kharagpur 2
Instructional Objectives
After going through this lesson the student would learn
o Architecture of a Real time Signal Processing Platform
o Different Errors introduced during A-D and D-A converter stage
o Digital Signal Processor Architecture
o Difference in the complexity of programs between a General Purpose Processor
and Digital Signal Processor
Pre-Requisite
Digital Electronics, Microprocessors
Introduction
Evolution of Digital Signal Processors
Comparative Performance with General Purpose Processor
7.1 Introduction
Digital Signal Processing deals with algorithms for handling large chunk of data. This branch
identified itself as a separate subject in 70s when engineers thought about processing the signals
arising from nature in the discrete form. Development of Sampling Theory followed and the
design of Analog-to-Digital converters gave an impetus in this direction. The contemporary
applications of digital signal processing was mainly in speech followed by Communication,
Seismology, Biomedical etc. Later on the field of Image processing emerged as another
important area in signal processing.
Signal Processing
Analog Processing
Analog Processing
Digital Processing
The above figure represents a Real Time digital signal processing system. The measurand can be
temperature, pressure or speech signal which is picked up by a sensor (may be a thermocouple,
microphone, a load cell etc). The conditioner is required to filter, demodulate and amplify the
signal. The analog processor is generally a low-pass filter used for anti-aliasing effect. The ADC
block converts the analog signals into digital form. The DSP block represents the signal
processor. The DAC is for Digital to Analog Converter which converts the digital signals into
ADC
x (t ) xs ( t ) xq ( t ) bbits
Sampler Quantizer Coder
x ( n) xq ( n ) ⎡⎣ xb ( n ) ⎤⎦
p(t )
DAC
bbits
Decoder Sample/hold
⎡⎣ xb ( n ) ⎤⎦ y ( n)
Similarly the DAC is represented by the number of bits and the settling time at the output.
A DSP tasks requires
Repetitive numeric computations
Attention to numeric fidelity
High memory bandwidth, mostly via array accesses
Real-time processing
And the DSP Design should minimize
Cost
Power
Memory use
Development time
Take an Example of FIR filtering both by a General Purpose Processor as well as DSP
Example
FIR Filtering
x (k ) y (k )
h(k )
An FIR (Finite Impulse Response filter) is represented as shown in the following figure. The
output of the filter is a linear combination of the present and past values of the input. It has
several advantages such as:
Linear Phase
Stability
Improved Computational Time
x (k)
1 h0
z-1 h1
y (k)
-1
Σ
z h2
z-1 hN -1
Fig. 7.3 Tapped Delay Line representation of an FIR filter
This program assumes that the finite window of input signal is stored at the memory location
starting from the address specified by r1 and the equal number filter coefficients are stored at the
memory location starting from the address specified by r0. The result will be stored at the
memory location starting from the address specified by r2. The program assumes the content of
the register b as 0 before the start of the loop.
lw x0, (r0)
lw y0, (r1)
These two instructions load x0 and y0 registers with values from the memory location specified
by the registers r0 and r1 with values x0 and y0
mul a, x0,y0
add b,a,b
This instruction adds a with b (which contains already accumulated result from the previous
operation) and stores the result in b.
inc r0
inc r1
dec ctr
tst ctr
jnz loop
The above portion of the program increment the registers to point to the next memory location,
decrement the counters, to see if the filter order has been reached and tests for 0. It jumps to the
start of the loop.
sw b,(r2)
inc r2
This stores the final result and increments the register r2 to point to the next location.
Instruction
Memory
Processor
Data
Memory
Datapath:
Mem
T-Register
Multiplier
P-Register
ALU
Accumulator
The program for the FIR filter (for a 3rd order) is given as follows
II. Questions
1. Discuss the different errors introduced in a typical real time signal processing systems.
Answers