Datapath Design - 2
Datapath Design - 2
Chapter Three
Book of David A. Patteron
P. Hayes
page-239-240
General Concept of Multiplication
10002 × 10012
✔ If multiplicand = n bits and
multiplier = m bits then product
Multiplicand = n + m bits.
Multiplier ✔ Two rules:
1. Place a copy of multiplicand in
the proper place if multiplier
bit=1.
2. Place 0 in the proper place if
multiplier bit = 0.
✔ Like addition, overflow can
occur.
Product
Sequential Version of the Multiplication
Algorithm and Hardware (Unsigned Number)
Works for negative number. Consider sign extension during shift operation.
Refined Version of Multiplication
Algorithm
• Execution time can be reduced through parallelism.
• Hardware cost can be reduced by using non-utilized portion of
product register.
Example
Booth’s Multiplication
✔ Used for both positive and negative number (2’s complement
number).
✔ It uses both add and sub to compute the product.
✔ Instead of 1 bit of a multiplier it considers 2 bits.
✔ It provides faster execution.
Concepts of Booth’s Algorithm
210× 610 = 1210
✔ 610 = -210 + 810
» 610 × 210 = - 210× 210 + 810 × 210
» 1210 = -410+1610
✔ Condition:
1. subtract when first see a 1. (10).
2. add when see the bit after the last
1. (01)
Validity of Booth’s Algorithm