edited by
16,788 views
53 votes
53 votes

Consider the ALU shown below.

 

If the operands are in $2’s$ complement representation, which of the following operations can be performed by suitably setting the control lines $K$ and $C_0$ only (+ and – denote addition and subtraction respectively)?

  1. $A + B$, and $A – B$, but not $A + 1$
  2. $A + B$, and $A + 1$, but not $A – B$
  3. $A + B$, but not $A – B$ or $A + 1$
  4. $A + B$, and $A – B$, and $A + 1$
edited by

5 Answers

–3 votes
–3 votes

If k=0 and c0 = 0 then A+B

If k=1 and c0=1 then A-B

If k=0 and c0=1 and B =1 then A+1

So, Answer is D.

(If K is connected to c0, then manipulating k and c0 Simultaneously
 is not be possible, in that case answer is be A)
 

Answer:

Related questions

5 votes
5 votes
0 answers
1
Rishabh Gupta 2 asked Nov 3, 2017
1,184 views
Consider this GATE 2003 question: https://gateoverflow.in/937/gate2003-46Here, instead of XOR gates we had OR gates, then which of the following operations can we perform...
65 votes
65 votes
9 answers
4
Kathleen asked Sep 17, 2014
18,059 views
The following is a scheme for floating point number representation using $16$ bits.Let $s, e,$ and $m$ be the numbers represented in binary in the sign, exponent, and man...