GATE / CS ARCHIVE

GATE CSE 1995 / QUESTION 15(a)

Implement complemented inputs with NAND

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

GATE 1995, Q15(a) Descriptive
Report issue

Boolean Algebra & Logic Gates

Question 15(a), GATE 1995: Implement Z=¬A+¬B+C using an inverter and a NAND gate. Here + means OR; both A and B carry complement bars.
Tap to enlarge
Answer & solution

Answer: Invert C; feed A,B,¬C to a three-input NAND. (no official key was published)

De Morgan’s law gives ¬(A·B·¬C)=¬A+¬B+¬¬C=¬A+¬B+C. Therefore make the intermediate wire N=NOT(C) with the inverter, and connect A, B and N to a three-input NAND whose output is Z.

An exact circuit netlist is N := NOT C; Z := NAND3(A,B,N). The inverter is on C, even though the displayed formula has bars on A and B: the NAND’s output inversion supplies those two complements and changes the complement of its third input back into C.

As a truth-table check, the required OR expression is zero only when A=1, B=1 and C=0. Then N=1, all three NAND inputs are 1, and the output is 0. For every other assignment at least one NAND input is 0 and the output is 1. This uses a three-input NAND; restricting the available NAND to two inputs would require a different multi-gate implementation, which the statement does not specify.

Original paper, page 7