GATE Computer ScienceVery hardGATE CS
An 8-bit ALU adds the two's complement numbers A = 10110110 and B = 11001101. What are the carry-out C and the signed-overflow flag V of this addition?
- A. C = 0, V = 1
- B. C = 1, V = 1
- C. C = 1, V = 0
- D. C = 0, V = 0
Correct answer: C. C = 1, V = 0
A = −74 and B = −51, the true sum −125 fits in 8 bits (result 10000011), so V = 0 (carry into MSB equals carry out of MSB). Treated as unsigned, 182 + 205 = 387 > 255, so a carry-out C = 1 is produced; carry-out alone does not mean overflow.
More Digital Logic questions
- A 4:1 multiplexer has A as the MSB select and B as the LSB select. To realise f(A,B,C) = Σm(0, 3, 5, 6, 7), the data inputs (I0, I1, I2…
- A 4-bit shift register Q3 Q2 Q1 Q0 shifts left on every clock: Q3 ← Q2, Q2 ← Q1, Q1 ← Q0 and Q0 ← Q3 ⊕ Q1 (the feedback taps correspond to…
- A 4-bit left-shifting register uses XNOR feedback: Q0 ← XNOR(Q3, Q2), with Q3 ← Q2, Q2 ← Q1, Q1 ← Q0. Starting at 0000, after how many…
- A 4-bit shift-right register Q3 Q2 Q1 Q0 has Q2 ← Q3, Q1 ← Q2, Q0 ← Q1 and Q3 ← NOR(Q3, Q2, Q1). Its state diagram has the single 4-state…
- A 5-bit Johnson (twisted-ring) counter shifts right with Q4 ← NOT Q0 (and Q3 ← Q4, Q2 ← Q3, Q1 ← Q2, Q0 ← Q1) and has no self-correction…
- F(A,B,C,D) = Σm(0, 1, 5, 7, 8, 10, 14, 15). Let P be the number of prime implicants of F and M the number of different minimal…