IAE Academy

GATE 2018 IN Q.46: solution and answer

GATE 2018 · INQ.46 · 2 marks · MCQ

The Boolean function realized by the given circuit is

GATE 2018 IN question 46: Four 2-input NAND gates (every gate has an output bubble), inputs X and Y, output F.Tap to open full size
Figure from the GATE 2018 IN paper. It is part of the question.
Figure description

Four 2-input NAND gates (every gate has an output bubble), inputs X and Y, output F. Gate G1 (middle-left): inputs X and Y (X taps down from the X line, Y taps up from the Y line). Gate G2 (top): inputs X (the X line runs straight across) and the output of G1. Gate G3 (bottom): inputs the output of G1 and Y (the Y line runs straight across). Gate G4 (right): inputs the outputs of G2 and G3; its output is F.

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Answer and solution

ANSWER

The circuit realises (XOR), so the answer is option (A).

Official answer: ASource: Official answer key, GATE 2018 IN (IIT Guwahati)

  1. Complement is written with throughout. All four gates are 2-input NAND gates. Label them G1 (middle), G2 (top), G3 (bottom) and G4 (output).

  2. G1 takes X and Y: .

  3. G2 takes X and P: . G3 takes P and Y: .

  4. G4 NANDs A and B. Write with and with . By De Morgan, , so

  5. Apply De Morgan again, : since .

  6. Check with a truth table: gives , , , . gives , , , . gives , , , . gives , , , . The output is 1 exactly when the inputs differ, so the circuit is an XOR gate, , which is option (A).

KEY IDEA

This is the standard four-NAND XOR. The first NAND makes . Each input is then NANDed with it, and the last NAND turns the two terms into , which is .

WATCH OUT FOR

Treating the output NAND as an AND or an OR of the two middle outputs and dropping a complement. Another slip is treating the gates as AND gates because the bubbles are small, which gives or a wrong option such as (D). The quickest way to catch these is a four-row truth table with every gate treated as a NAND. It also separates XOR (A) from XNOR (B).

From the GATE 2018 IN paper. Every question of this paper · Download the full paper · All 22 Boolean logic questions, with notes

More Boolean logic questions