Computer arithmetic: Integer addition and subtraction, ripple carry adder, carry look-ahead adder, etc. multiplication – shift-and-add, Booth multiplier, carry save multiplier, etc. Division restoring and non-restoring techniques, floating point arithmetic
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
COA Unit 2 chapter 2.pptx
1. Mala B M
Assistant Professor
School of Computer Science and Engineering
REVA University
2. UNIT-2
Chapter 2
Arithmetic Unit
Integer addition and subtraction, ripple carry adder, carry look-
ahead adder, etc. multiplication – shift-and-add, Booth
multiplier, carry save multiplier, etc. Division restoring and
non-restoring techniques, floating point arithmetic, IEEE 754
format
8. DESIGN OF FAST ADDERS
Carry-Look ahead Addition
The logic expressions for si (sum) and ci+1 (carry-out) of stage i are
The expressions Gi and Pi are called the generate and propagate
functions for stage i
9. Pi = xi ⊕ yi , which differs from Pi = xi + yi only when xi = yi = 1 But,
in this case Gi = 1, so it does not matter whether Pi is 0 or 1.
Using a cascade of two 2-input XOR gates to realize the 3-input XOR
function for si , the basic B cell in Figure can be used in each bit stage.
Expanding ci in terms of i − 1 subscripted variables and substituting
into the ci+1 expression, we obtain
10.
11. A 16-bit adder built from four 4-bit adder blocks. These blocks provide
new output functions defined as GI
k and PI
k, where k = 0 for the first 4-
bit block, k = 1 for the second 4-bit block, In the first block,
The first-level Gi and Pi functions determine whether bit stage i
generates or propagates a carry. The second-level Gi
k and Pi
k
functions determine whether block k generates or propagates a
carry.
12. With these new functions available, it is not necessary to wait for
carries to ripple through the 4-bit blocks. Carry c16 is formed by
one of the carry-look ahead circuits in Figure as
19. Booth recoding of a multiplier
Booth multiplication with a negative multiplier
20. Booth multiplier recoding table.
The Booth technique for recoding multipliers is summarized in Figure
The transformation 011 . . . 110⇒+1 0 0. . . 0 −1 0 is called
skipping over 1s.
21. A 16-bit worst-case multiplier, an ordinary multiplier, and a good
multiplier are shown in Figure
Booth recoded multipliers
22. Booth Multiplication Algorithm
A procedure for multiplying binary integers in signed-2's complement
representation.
Booth algorithm works for positive or negative multipliers in 2's
complement representation
22
23. Hardware for Booth algorithm
Qn designates the least significant bit of the multiplier in register QR.
An extra flip-flop Qn+1 is appended to QR to facilitate a double bit
inspection of the multiplier
23
27. Carry-Save Addition of Summands:
Multiplication requires the addition of several summands.
A technique called carry-save addition (CSA) can be used to speed
up the process
35. Addition and Subtraction
During addition or subtraction, the two floating-point operands
are in AC and BR .
The sum or difference is formed in the AC . The algorithm can be
divided into four consecutive parts:
1. Check for zeros.
2. Align the mantissas.
3. Add or subtract the mantissas.
4. Normalize the result.
37. Multiplication
The multiplication algorithm can be subdivided into four parts:
1. Check for zeros.
2. Add the exponents.
3. Multiply the mantissas.
4. Normalize the product
39. Division
The division algorithm can be subdivided into five parts:
1. Check for zeros.
2. Initialize registers and evaluate the sign.
3. Align the dividend.
4. Subtract the exponents.
5. Divide the mantissas