The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+16 votes
670 views
When two $4-bit$ numbers $A = a_3a_2a_1a_0$ and $B=b_3b_2b_1b_0$ are multiplied, the bit $c_1$ of the product $C$ is given by ________
asked in Digital Logic by Veteran (59.5k points)
edited by | 670 views

1 Answer

+24 votes
Best answer
$\begin{matrix}
& & & &a_3 & a_2 & a_1&a_0 \\
 & & &\times & b_3 &b_2 &b_1 &b_0 \\
\hline
& & & & a_3b_0 &a_2b_0 &a_1b_0 & a_0b_0&\\
& & &a_3b_1 &a_2b_1 &a_1b_1 & a_0b_1 &- &\\
& &a_3b_2 &a_2b_2 &a_1b_2 &a_0b_2 &- &- &\\
& a_3b_3 &a_2b_3 &a_1b_3 &a_0b_3 &- &- &- \\
\hline
c_7&c_6&c_5 &c_4 &c_3 &c_2 &c_1 &c_0 \\ \hline
\end{matrix}$

$c_1=b_1 a_0 \oplus a_1 b_0$
answered by Boss (31.6k points)
edited by
+2
how?
0
corrected...
0
Yes. It must be symmetric :)
+1
it must be a1b0 and b1a0.
0
PLEASE GIVE SOLUTION?
0
i m not able to understand why xor is applied here
+18
When we consider 2 bits, ADD and XOR works the same except when both inputs are 1. In this case, ADD gives 10, while XOR gives 0. Since, we are asked only about the bit c1, our answer should be 0 which is given by XOR.
0
What would be the answer if instead of c1  they are asking for  c2  ?  Plz explain ?
0
why xor , not getting :(
0
@ashwina

I think ans would be same.
+1

sid1221  We need to add these two bits,so we can use same expression of sum of half adder which is exor

0
oh yes got it thanks :)
+1
I don't think expression for C1 and C2 will be same. For C2 we will need a full adder.
0
yes for C2 we would be needing a full adder


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

39,776 questions
46,780 answers
140,747 comments
58,657 users