GATE / CS ARCHIVE

GATE CSE 1994 / QUESTION 1.8

Simplifying a NAND network

Digital Logic · Boolean Algebra & Logic Gates · Full GATE CSE 1994 paper

GATE 1994, Q1.8 MCQ
Report issue

Boolean Algebra & Logic Gates

Question 1.8, GATE 1994: The circuit forms t=NAND(A,B), u=NAND(t,C), v=NAND(C,D), then f=NAND(u,v). Find its Boolean expression.
Tap to enlarge
Your answer
Answer & solution

Answer: A: ¬A·C+¬B·C+CD (no official key was published)

Write t=¬(AB), u=¬(tC), and v=¬(CD). The final NAND gives f=¬(uv)=¬u+¬v=tC+CD by De Morgan’s law. Substituting t=¬A+¬B yields f=¬A·C+¬B·C+CD. Following the intermediate nets prevents accidentally treating the first NAND as AND or distributing a complement across a sum without changing the operator. This algebra uses the input fan-out of C to both middle gates as shown in the figure.

Original paper, page 1