Professional Documents
Culture Documents
Lecture 16
Parallel Adders
Barrel Shifters
Parallel Adders
Barrel Shifters
C and D. The shifter can cycle the order of the bits ABCD as
DABC, CDAB, or BCDA; in this case, no bits are lost. That is, it
can shift all of the outputs up to three positions to the right
(and thus make any cyclic combination of A, B, C and D). The
barrel shifter has a variety of applications, including being a
useful component in microprocessors(alongside the ALU).
Parallel Adders
Barrel Shifters
Uses
A common usage of a barrel shifter is in the hardware
implementation of floating-point arithmetic. For a floatingpoint add or subtract operation, the significands of the two
numbers must be aligned, which requires shifting the smaller
number to the right, increasing its exponent, until it matches
the exponent of the larger number. This is done by
subtracting the exponents, and using the barrel shifter to shift
the smaller number to the right by the difference, in one
cycle. If a simple shifter were used, shifting by n bit positions
would require n clock cycles.
4
Parallel Adders
Barrel Shifters
A single cycle N bit logic shifter implementing x>>s ,where s is a
Parallel Adders
Parallel Adders
Parallel Adders
Parallel Adders
Parallel Adders
10
Parallel Adders
11
Parallel Adders
12
Parallel Adders
13
Parallel Adders
14
Parallel Adders
15
Parallel Adders
16
Parallel Adders
Read :
Section 5.6, 5.7,5.8 Digital Design of Signal Processing
17
Parallel Adders
18
Parallel Adders