SlidePub
Home
Categories
Login
Register
Home
Technology
Booth and bit pair encoding
Booth and bit pair encoding
BasitAli44
2,195 views
35 slides
Sep 16, 2019
Slide
1
of 35
Previous
Next
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
About This Presentation
CS502
Size:
134.06 KB
Language:
en
Added:
Sep 16, 2019
Slides:
35 pages
Slide Content
Slide 1
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
1
Chapter 03: Computer ArithmeticComputer Arithmetic
Lesson 05:
Arithmetic Multiplication Circuits
Slide 2
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
2
Objective
Learn Booth encoding
Learn fast multiplication by bit pairing
Slide 3
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
3
Multiplication Process By Booth’s
Encoding Algorithm
Slide 4
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
4
Multiplication
Multiplication of two's-complement
numbers more complicated
Because performing a straightforward
unsigned multiplication of the two's-
complement representations of the inputs
does not give the correct result
Slide 5
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
5
Multiplication
Multipliers could be designed to convert both
of their inputs to positive quantities and use the
sign bits of the original inputs to determine the
sign of the result
Increases the time required to perform a
multiplication
Slide 6
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
6
Booth’s Algorithm
A technique called Boothencoding
To quickly convert two's-complement numbers
into a format that is easily multiplied
Slide 7
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
7
Booth encoding
Apply encoding to the multiplier bits before
the bits are used for getting partial products
1. If i
th
bit b
i
is 0 and (i –1)
th
bit b
i-1
is 1, then
take b
i
as +1
2. If ith
bit b
i
is 1 and (i –1)
th
bit b
i-1
is 0, then
take b
i
as –1
Slide 8
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
8
3. If i
th
bit b
i
is 0 and (i –1)
th
bit b
i-1
is 0,
then take b
i
as 0
4. If i
th
bit b
i
is 1 and (i –1)
th
bit b
i-1
is 1,
then take b
i
as 0
When lsb b
0
= 1, assume that it had b
-1
as 0,
thus take b
0
= –1
Booth encoding
Slide 9
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
9
Example
Multiplier After Booth’s conversion
0 1 1 1 0 0 0 0 +1 0 0 –1 0 0 0 0
0 1 1 1 0 1 1 0 +1 0 0 –1 +1 0 –1 0
0 0 0 0 0 1 1 1 0 0 0 0 +1 0 0 –1
0 1 0 1 0 1 0 1 +1–1+1–1+1–1+1–1
Slide 10
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
10
Multiplication by Booth’s Encoding
Booth’s algorithm permits skipping over 1s and
when there are blocks of 1s
It improves performance significantly
Slide 11
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
11
Multiplication using Booth’s algorithm
11101100
b
Two’s complement 0000000000010100
×00000l01
b
Two’s complement ×1111111111111 0 11
00000000 0000 –1+1 0 –1
×–1 11111111 11101100
000000000 0000000
×+1 00000000 00010100
×–1 11111111 11101100
000000000 0000000
= –100 11111111 10011100
Slide 12
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
12
Present CasePresent Case
Observe─the addition of 00000000 00010100
or its two’s complement is done only thrice, in
contrast to the addition of 00000000 00010100
done 15 times in earlier described procedures
without using Booth’s algorithm
The adder circuit takes longer period to
implement than finding –1 and +1 and 0’s for
multiplier
Slide 13
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
13
Worst Case
The worst case of an implementation using
Booth’s algorithm is when pairs of 01s or 10s
occur very frequently in the multiplier
Slide 14
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
14Fast Multiplication Process
Slide 15
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
15
Fast Multiplication
Fast multiplication by a combination of
methods
1. Bit Pair Recording of Multipliers and
2. Carry Save Addition of the Sums
Slide 16
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
16
Carry Save Addition in the Sums of partial
products
Slide 17
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
17
Two-dimensional arrays of full adders to get
partial products
The carry of each FA connects the neighboring
left side cell in each row
Each FA in a cell gives the carry out as input to
the next row left column FA
The carry addition method, which reduces the
time taken for additions
Slide 18
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
18
Carry Save method for faster multiplication
Slide 19
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
19
Two-dimensional arrays of full adders to get
partial products
Downward diagonal full arrows as an example
An FA, instead of getting the ripple carry input
from the previous input column of a row is given
carry-input from previous column’s previous
row output
Refer upward dashed arrows as an example
Slide 20
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
20
Two-dimensional arrays of full adders to get
partial products
For example, carry out from first row’s right-
most column full adder FA is given as input to
the second row’s right-most FA, carry out from
the second row’s right-most FA is given as
input to the third row’s right-most FA, and so on
Each FA in a cell gives the carry out as input to
next row’s left column FA
Delay through carry save adder is less than carry
ripple through adder
Slide 21
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
21
Bit Pair Recording of Multipliers
Slide 22
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
22
Bit Pair Recording of Multipliers
When Booth?s algorithm is applied to the
multiplier bits before the bits are used for
getting partial products─Get fast
multiplication by pairing
1. If pair i
th
bit and (i –1)
th
Booth multiplier bit
(B
i
, B
i–1
) is (+1, −1), then take B
i–1
= +1 and
B
i
= 0 and pair (0, +1)
Slide 23
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
23
Bit Pair Recording of Multipliers
2. If pair i
th
bit and (i –1)
th
Booth multiplier bit (B
i
, B
i–1
) is (−1, +1), then take B
i–1
= −1 and B
i
= 0
and make pair (0, −1)
3. If pair i
th
bit and (i –1)
th
Booth multiplier bit (B
i
, B
i–1
) is (+1, 0), then take B
i–1
= 2 and B
i
= 0
and make pair (0, +2)
4. If pair i
th
bit and (i –1)
th
Booth multiplier bit (B
i
, B
i–1
) is (−1, 0), then take B
i–1
= −2 and B
i
= 0
and make pair (0, −2)
Slide 24
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
24
Example
Multiplier
0 1 1 1 0 0 0 0
After Booth’s conversion
+10 0 –1 0 0 0 0
After pairing
0+2 0 –1 0 0 0 0
Slide 25
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
25
Example
Multiplier
0 1 1 1 0 1 1 0
After Booth’s conversion
+1 0 0 –1 +1 0 –1 0
After pairing
0 + 2 0 0 –1 0 –1 0
Slide 26
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
26
Example
Multiplier
0 0 0 0 0 1 1 1
After Booth’s conversion
0 0 0 0 +1 0 0 –1
After pairing
0 0 0 0 0 +2 0 –1
Slide 27
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
27
Example
Multiplier
0 1 0 1 0 1 0 1
After Booth’s conversion
+1–1+1–1+1–1+1–1
After pairing
0 +1 0 +1 0 +1 0 +1
Slide 28
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
28
Worst case─0 1 0 1 0 1 0 1
In the worst case also, the number of additions in
an 8-bit multiplier has reduced to 4
Slide 29
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
29
Use of triplets
b
i+1
1
b
i
1 Bi = 0
b
i–1
1
b
i+1
1
b
i
1 Bi = –1
b
i–1
0
Slide 30
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
30
Use of triplets
b
i+1
1
b
i
0 Bi = –2
b
i–1
0
b
i+1
1
b
i
0 Bi = –1
b
i–1
1
Slide 31
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
31
Use of triplets
b
i+1
0
b
i
0 Bi = 0
b
i–1
0
b
i+1
0
b
i
0 Bi = + 1
b
i–1
1
Slide 32
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
32
Use of triplets
b
i+1
0
b
i
1 Bi = +1
b
i–1
0
b
i+1
0
b
i
1 Bi = + 2
b
i–1
1
Slide 33
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
33
Summary
Slide 34
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
34
Multiplication circuit becomes fast by
Booth’s algorithm
Faster by Bit pair encoding
Faster by tripletsWe learnt
Slide 35
Schaum’s Outline of Theory and Problems of Computer Architecture
Copyright © The McGraw-Hill Companies Inc. Indian Special Edition 2009
35
End of Lesson 5 on
Arithmetic Multiplication Circuits
Tags
Categories
Technology
Download
Download Slideshow
Get the original presentation file
Quick Actions
Embed
Share
Save
Print
Full
Report
Statistics
Views
2,195
Slides
35
Age
2270 days
Related Slideshows
11
8-top-ai-courses-for-customer-support-representatives-in-2025.pptx
JeroenErne2
48 views
10
7-essential-ai-courses-for-call-center-supervisors-in-2025.pptx
JeroenErne2
47 views
13
25-essential-ai-courses-for-user-support-specialists-in-2025.pptx
JeroenErne2
37 views
11
8-essential-ai-courses-for-insurance-customer-service-representatives-in-2025.pptx
JeroenErne2
35 views
21
Know for Certain
DaveSinNM
23 views
17
PPT OPD LES 3ertt4t4tqqqe23e3e3rq2qq232.pptx
novasedanayoga46
26 views
View More in This Category
Embed Slideshow
Dimensions
Width (px)
Height (px)
Start Page
Which slide to start from (1-35)
Options
Auto-play slides
Show controls
Embed Code
Copy Code
Share Slideshow
Share on Social Media
Share on Facebook
Share on Twitter
Share on LinkedIn
Share via Email
Or copy link
Copy
Report Content
Reason for reporting
*
Select a reason...
Inappropriate content
Copyright violation
Spam or misleading
Offensive or hateful
Privacy violation
Other
Slide number
Leave blank if it applies to the entire slideshow
Additional details
*
Help us understand the problem better