GATE Computer ScienceHardGATE CS (PYQ pattern)

A full subtractor (A − B − Bin, giving difference D and borrow-out Bout) is to be built from one full adder (inputs x, y, z; outputs sum S and carry C) plus inverters only, with x = A', y = B, z = Bin. Which output connection is correct?

  1. A. D = S, Bout = C
  2. B. D = S', Bout = C
  3. C. D = S', Bout = C'
  4. D. D = S, Bout = C'

Correct answer: B. D = S', Bout = C

Bout = A'B + A'Bin + B·Bin = majority(A', B, Bin), which is exactly the adder's carry C with x = A'. The difference is A ⊕ B ⊕ Bin, while S = A' ⊕ B ⊕ Bin = (A ⊕ B ⊕ Bin)', so D = S' needs one inverter.

More Digital Logic questions

Exams that ask this topic