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)? $A + B$, and $A – B$, but not $A + 1$ $A + B$, and $A + 1$, but not $A – B$ $A + B$, but not $A – B$ or $A + 1$ $A + B$, and $A – B$, and $A + 1$ Digital Logic gatecse-2003 digital-logic normal adder + – Kathleen asked Sep 17, 2014 • edited Jun 27, 2018 by Sukanya Das Kathleen 16.8k views answer comment Share Follow See all 10 Comments See all 10 10 Comments reply Show 7 previous comments anirudhkumar18 commented Sep 2, 2023 reply Follow Share @Deepak Poonia sir, here operands are given in 2’s complement already . so for k=0 c0=0 it do A-B ?? 1 votes 1 votes Pratyush00101 commented Oct 7, 2023 reply Follow Share someone please reply to @anirudhkumar18’s query, i also think k=0 c0=0 must do A-B and A+B both as i/p already in 2’s compliment, but most answers here take k=1 for A-B 0 votes 0 votes Shreed commented Oct 14, 2023 reply Follow Share @anirudhkumar18 Not necessarily, if both A and B are positive it will add. If A and B both are negative, then it will again add. If A and B are of opposite signs then it will subtract. Hope this helps!! 0 votes 0 votes Please log in or register to add a comment.
–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) Ankish answered Aug 5, 2015 Ankish comment Share Follow See 1 comment See all 1 1 comment reply Sandeep Singh commented Dec 13, 2015 reply Follow Share In the question it is given that you can only change the K and C0 but setting B is not possible. To perform A+1 with given circuit, its necessary to make B side input to be 0 & C0 = 1. Since there is bit wise XOR is taking place before input to the full adder so we can only get B's 1's complement or B as it is. This the reason we can not perform A+1. 0 votes 0 votes Please log in or register to add a comment.