13-Fixed Point Arithmetic Operations - Booths Algorithm-18-01-2024
13-Fixed Point Arithmetic Operations - Booths Algorithm-18-01-2024
Organization
• Course Code: BCSE205L
• Course Type: Theory (ETH)
• Slot: D2+TD2
• Timings:
Monday 16:00-16:50
Wednesday 17:00-17:50
Thursday 14:00-14:50
• The sum of 1 and 1 is the 2-bit vector 10, which represents the value 2. We say that the sum
is 0 and the carry-out is 1.
• In order to add multiple-bit numbers, We add bit pairs starting from the low-order (right) end
of the bit vectors, propagating carries toward the high-order (left) end.
a 0011
+b +0 0 0 1
------------------
sum 0 1 0 0
• The carry-out from a bit pair becomes the carry-in to the next bit pair to the left.
• The carry-in must be added to a bit pair in generating the sum and carry-out at that position.
Dr. Venkata Phanikrishna B, SCOPE, VIT-Vellore
Unsigned vs. Signed Addition
• Overflows for Unsigned Addition
• Hardware is identical for result bits all between unsigned and signed adder.
• Difference in the is only detection of overflows, that is of results which cannot be represented in
the given format
• Two’s complement addition is extremely Two s similar to unsigned addition
Example of adding +7 to −3
+7 0111 and
−3 2’s-complement representation for these numbers is 1101
If we perform this addition by adding bit pairs from right to left, we obtain
If we ignore the carry-out from the fourth bit position in this addition, we
obtain the correct answer.
Dr. Venkata Phanikrishna B, SCOPE, VIT-Vellore
2’s Complement Addition: Positive Addition Example
1010 + 210 = 1210
000010102 1010
+000000102 + 210
000011002 1210
111101002 -1210
+111111002 + -410
111100002 -1610
000100002
+111111002
000011002
carry and
carry generated, but no
overflow
overflow
01102 610
+00112 +310
10012 -710 not good!
10112 -510
+10112 +-510
01102 610 not good!