GATE 2014 EC (EC3) – Question 52
With inputs X,Y, difference D = X − Y and borrow B, which diagram implements a half-subtractor?

Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) Diagram A
Explanation
A half-subtractor for X−Y requires difference D=X XOR Y and borrow B=X̄Y. In **A**, selecting Y or Ȳ with X produces the XOR difference, while selecting Y or0with X produces X̄Y. Both outputs therefore match the required truth table.