Professional Documents
Culture Documents
C1. D S P: Igital Ignal Rocessors
C1. D S P: Igital Ignal Rocessors
1
Introduction
• Why process signals digitally?
• Definition of a real-time application.
• Why use Digital Signal processing processors?
• What are the typical DSp algorithms?
• Parameters to consider when choosing a DSP processor.
• Main Architectural Features of DSPs
• DSP market
• Texas Instruments’ TMS320 family.
2
Why use digital signal processing?
3
Why use digital signal processing?
DSP reduces:
• Noise susceptibility
• Chips number
• Development time
• Cost
• Power consumption
4
Why NOT use digital signal processing?
5
Real-time processing
6
Real-time processing
8
•The Sum of Products (SOP) is the key element in most DSP algorithms !!!
Hardware vs. Microcode multiplication
9
What is special for DSP?
• DSP = A class of microprocessors optimized for DSprocessing
• DSP have advantage in speed, cost and energy efficiency
12
What is special for DSP?
➢Fast Multipliers
➢Multiple Execution Units
➢Efficient Memory Access
➢Data Format
➢Efficient Zero-Overhead Looping
➢Streamlined I/O
➢Specialized Instruction Sets
13
➢ Fast Multipliers: Main operations: multiply & add
14
➢ Multiple Execution Units
15
➢ Efficient Memory Access
16
➢ Efficient Memory Access
Bus
OR
HARVARD
Early DSP processors
HARVARD modified
17
➢ High memory bandwidth requirement
✓ Support via dedicated hardware for calculating memory addresses:
→ Address Generation Units
✓ In DSP algorithms memory access is very predictable
E.g: FIR filter: coefficients accessed sequentially
✓ Use:
1. Register indirect addressing with post increment
➢ Increment address pointer where repetitive computations are
performed on a series of data.
2. Circular Addressing
➢ Allows processor to access data sequentially and then automatically
wrap around to the beginning address
18
➢ Data Format
✓ DSP algorithms generally use floating point formats
✓ Fixed point processors are:
➢ Cheaper and less power consuming
✓ Floating point formats require more complex hardware
✓ Use shortest data word width that will provide adequate accuracy
➢ Consider the cost & energy consumption
19
➢ Data Format:
• Most fixed point DSP processors use 16 bit data words.
– Sufficient for many applications
• Some use 20, 24 or 32 bit data word for better accuracy
• Most DSP processors include one or more accumulator regs
• Accumulator Registers:
– wider than other registers
– Provide extra guard bits to avoid overflow
20
➢ Efficient Zero Overhead Looping
• DSP algorithms have many loops:
– Use efficient looping
• Special loop: Zero Overhead Looping
– No loop counter
– No branching back to the top of the loop
21
➢ Streamlined (simplified) I/O:
• Specialized serial or parallel I/O interfaces
• Streamlined I/O handling mechanisms
• E.g.:
- Low overhead interrupts
- Direct memory access, DMA.
– Synchronous serial ports
– Parallel ports
– Timers
– On-chip A/D, D/A (AICs, CODECs)
– Host ports
– Bit I/O ports
– On-chip DMA controller
– Clock generators
– On-chip peripherals often designed for “background” operation, even
when core is powered down.
22
➢ Specialized Instruction Sets
• Two goals in instruction sets:
1. Make maximum use of hardware, increase efficiency
• Programmer can specify parallel operations in single instruction
2. Minimize memory space required to store DSP programs.
(Memory is a cost!)
• Keep inst.s short.
→ Use mode bits rather than encoding
→ Restrict operations to specific registers
→ Restrict operation combinations in the inst.
• This makes DSP instructions complicated!!
23
➢ Specialized Instruction Sets
• DSPs aren’t usually programmed in HLL: C,C++..etc
• Program optimization is essential
– Programmer should optimize code in assembly level
• More easier inst. Set is, more desirable it is for programmer.
24
Applications Development
25
Choosing a DSP Processor
’C6000
(’C62x, ’C67x)
38
39
40