The Gateway to Computer Science Excellence
+24 votes

When multiplicand $Y$ is multiplied by multiplier $X = x_{n - 1}x_{n-2} \dots x_0$ using bit-pair recoding in Booth's algorithm, partial products are generated according to the following table.

\textbf{Row}&  \bf{  x_{i+1}}&\bf { x_i}&\bf{ x_{i-1}}&  \textbf{Partial Product} \\\hline
1&0&0&0&0 \\ 2&0&0&1& \text{Y} \\     3&0&1&0& \text{Y} \\   4&0&1&1& \text{2Y} \\    5&1&0&0& \text{?} \\    6&1&0&1& \text{-Y}  \\    7&1&1&0& \text{-Y} \\    8&1&1&1& \text{?} \\ \hline   

The partial products for rows $5$ and $8$ are

  1. $2Y$ and $Y$
  2. $-2Y$ and $2Y$
  3. $-2Y$ and $0$
  4. $0$ and $Y$
in Digital Logic by Boss (16.3k points)
edited by | 3.2k views
Somebody answer this question please !!

Why have here been given three columns X(i+1), X(i) and X(i-1) .we recode using just two bits in Booth's algo !!
correct ans is c....

Memorize the following table, 

(or) understand the logic from the following link:

Answer is (C).


no need to remember the table...

here's the logic simplified==>

just 1 example is enough..

lets take 101

check pairs consecutively

we have 10 and 01. 

do (right bit - left bit) for each pair

meaning (0-1) and (1-0) i.e.  -1 and 1

now interpret -1,1 as a weighted binary number

i.e.   -1*2^1 + 1*2^0 = -2+1 = -1

check table 101 is -1

now multiply Y ..๐Ÿ‘๐Ÿป๐Ÿ‘๐Ÿป




1 bit recording for 1010 is (0-1)(1-0)(0-1) i.e.  -11-1

2 bit recording for 1010 is  -11

3 bit recording for 1010 is  -3



How did you get 2-bit Booth code and 3-bit Booth code for this? Please can you elaborate this.



as far as i know there is no such use of 3 bit code...but you can generalize this..

for 1010  1 bit code is -11-1

for 2 bit we take 3 bit at a time ...i.e. 101 and 010

101 means -11 and using weighted power its

-1*2^1 + 1*2^0= -1 

similarly 010 is 1-1 i.e. 1

so 2 bit recording is -11

for 3 bit we take 4 bit at a time .. 1010

-11-1 now again weighted power..

-1*4+1*2+(-1)*1 = -4+2-1 = -3




3 Answers

+6 votes
Best answer
We can have 1 bit or 2 bit Booth codes. This question is about 2 bit Booth codes. In Booth's algorithm, we get partial products by multiplying specific codes with the multiplicand. These partial products are used to get the actual product. We initially calculate 2 bit booth code of the multiplier in this question. Then each bit of the code is multiplied with the multiplicand to get the partial product as shown in the last column of the given table.
Here, multiplicand is Y. So, notice that each row of partial product column is multiplied with Y.

Now, the question is how to get these codes i.e., how to represent a multiplier with 2 bit booth code. For that we need to look at the pair of 3 bits as shown in the table below. To get code Ci, look for 3 bits as shown.

\bf{x_{i+1}}&    \bf{x_i}&  \bf{x_{i+1}}&\bf{ Booth code (C_i)}\\\hline
0&0&0&0 \\ 0&0&1&1 \\    0&1&0&1 \\   0&1&1&2\\    1&0&0&-2\\    1&0&1&-1  \\    1&1&0&- 1 \\   1&1&1&0\\   

Now, multiply ith code to get partial product.
Therefore, Option C is correct.
by Loyal (9.5k points)
edited by

I found a logical coherence between the values in table

if value is 000, partial product is 0

if value is 001 partial product is Y

if value is 010 partial product is Y

So similarly if value is 101, value is -Y, we can think of leftmost bit as sign bit and when it's 1, we complement rest of bits and check their partial product

like for 101, MSB is 1, so I do complement I get 010 and its PP is Y, so for value 101 PP is -Y.

and similarly for 111, on complementing we get 000, for which PP is 0, so for 111 PP is 0.


thank you @ Puja Mishra

same logic @Ayush sir
+11 votes

Partial product is calculated by using bit pair recording in booths algorithm, which is improvement technique used in booths algorithm. Here we consider 3 bits at a time for getting the partial product. This eliminates the worst case behaviour of normal Booth's algorithm. Partial Product calculation can be seen in the below link:
"100" corresponds to -2M and "111" corresponds to 0
-2 X(i+1) + x (i) + X(i-1)


by Active (3.5k points)
Can u suggest reference link for this topic?
i read from Computer organisation by carl hamechar text book.

it may help you.
what is Y here?

@Aspi R Osa  Read the question yaar

0 votes

Please refer to this, it will help you.

In the given question they just want to know how you are decoding a three-bit number. In each row from the right-hand side, you take three bits and decode it in booth multiplier form(2's complement number) and simply find the weighted decimal equivalent of booth multiplier.

by (457 points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,324 answers
105,169 users