retagged by
6,540 views
34 votes
34 votes

Fill in the blanks:

In the two bit full-adder/subtractor unit shown in below figure, when the switch is in position $2$ ___________ using _________ arithmetic.

 

retagged by

1 Answer

Best answer
40 votes
40 votes

When the switch is at position $2,$ it is connected to $V_{cc}$  thus, the value of control input $M = 1$ which is fed to XOR gates as well. So

  • $B_1 \oplus  1  = \overline{B_1}$ and
  • $B_0 \oplus 1  = \overline{B_0}$

And the basic hardware is of adder only.

Now $C_{in}$ is connected to $V_{cc}$  as well. Hence,  $C_{in}  =  1.$

Net operation can be denoted as :  $S_0  =  A_0 + \overline{B_0} + 1$  and similarly for $S_1$ as well.

This is nothing but an expression of subtraction using $2's$ complement. $($Had it been $A_0 + \overline{B_0},$ it would have been addition of $1's$ complement merely, but for subtraction we need to have $2's$ complement of other operand which is $B$ here$)$

Hence, the correct answer should be : subtraction, 2's complement

selected by

Related questions

12 votes
12 votes
4 answers
1
17 votes
17 votes
2 answers
2
makhdoom ghaya asked Nov 27, 2016
4,524 views
The condition for overflow in the addition of two $2's$ complement numbers in terms of the carry generated by the two most significant bits is ___________.
21 votes
21 votes
4 answers
3
makhdoom ghaya asked Nov 18, 2016
7,903 views
A $32$-bit floating-point number is represented by a $7$-bit signed exponent, and a $24$-bit fractional mantissa. The base of the scale factor is $16,$The range of the ex...
1 votes
1 votes
0 answers
4
makhdoom ghaya asked Nov 18, 2016
427 views
The solution to the following linear program$\max$ $X_{1}$such that $X_{1}+2X_{2} \leq 10$ $X_{1} \leq 8$ $X_{1} \leq 1$is ____________.