Digital Signal Processors and Architectures (DSPA) Unit-2
Digital Signal Processors and Architectures (DSPA) Unit-2
4 x4 Binary Multiplication
Parallel Multiplier
• Unsigned numbers:
m 1
A = Ai 2i
i= 0
n 1
B = Bj 2 j
j= 0
m 1
n 1
i+ j
P = AB = Ai B j 2
j= 0 i= 0
Multiplier for Signed Numbers
m2
A Am1 2 m 1
Ai 2 i
i 0
n2
B Bn1 2 n 1
Bj 2 j
j 0
Parallel Multiplier
31/12/20
Shifter
Shifter
Barrel Shifter
Shifter
• Barrel Shifter:
Barrel Shifter
Barrel Shifter
Barrel Shifter
Multiplier and Accumulate (MAC)
Unit
Multiplier and Accumulate (MAC)
Unit
MAC Unit
MAC Unit
MAC Unit
MAC Unit Overflow and Underflow
Saturation logic: Overflow
Arithmetic Logic Unit
Arithmetic Logic Unit
Bus Architecture and Memory
On-Chip Memory
Bus Architecture and Memory
On-Chip Memory
Bus Architecture and Memory
a. Program Counter
31/12/20
Speed Issues
1. Hardware Architecture:
• Parallel multipliers
• Hardwired control
• Harvard architecture
• On-chip memories
31/12/20
Hardware Architecture
31/12/20
Parallelism
31/12/20
Speed Issues
2. Parallelism:
• Provision of functional units
• Multiple memories and multiple buses
• Eg: MAC operation
31/12/20
Pipelining
31/12/20
Pipelining
31/12/20
Speed Issues
3. Pipelining:
2 Issues:
• Dividing each instruction into steps
• Pipeline latency
• In case of branch or loop, pipeline needs to
be cleared.
31/12/20
System Level Parallelism and Pipelining
31/12/20
System Level Parallelism and Pipelining
31/12/20
System Level Parallelism and Pipelining
31/12/20
System Level Parallelism and Pipelining
31/12/20
Implementation Using a Single MAC Unit
31/12/20
31/12/20
31/12/20
31/12/20
31/12/20
31/12/20
31/12/20
31/12/20
31/12/20
31/12/20
Pipelined Implementation: 8 Multipliers and 8
Accumulators
31/12/20
Parallel Implementation: Two MAC Units
31/12/20
Features of External Interfacing
• Interface for interrupts
• Direct memory access
• Serial I/O
• Parallel I/O
• ADC
• DAC
• Timer
31/12/20