GATE / CS ARCHIVE

GATE CSE 2019 / QUESTION 50

Minimum NOR realization of XNOR

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

GATE 2019, Q50 2 marks · NAT
Report issue

Boolean Algebra & Logic Gates

Question 50, GATE 2019: For variable order a,b,c,d, implement f=Σ(0,2,5,7,8,10,13,15) using the fewest two-input NOR gates. All variables and their complements are already available. Find that gate count.
Tap to enlarge
Answer & solution

Official answer: 3

1. Write minterm indices in binary abcd. The four indices 0,2,8,10 all have b=d=0; 5,7,13,15 all have b=d=1. In each group a and c take every combination. Hence f depends only on b,d and equals b XNOR d.
2. Build the two mismatch terms using NOR: u=NOR(b,¬d)=¬b·d and v=NOR(¬b,d)=b·¬d. Each is one gate because complemented inputs are available free.
3. Feed these to a third NOR: NOR(u,v)=¬(¬b·d+b·¬d)=b XNOR d=f. This proves three gates are sufficient.
4. For minimality, consider any circuit with at most two gates. If a raw input literal feeds the final NOR, setting that literal true forces the output to zero regardless of all other variables. The target XNOR has no such literal: for either setting of b or d it can still be 1, and it does not depend on a or c.
5. Without a raw literal at the final gate, both final inputs must be the output of the only earlier NOR. This merely inverts that NOR and gives the OR of its two input literals. No OR of literals realizes XNOR, whose 1-values are the two separated equal-bit cases.
6. Thus one or two gates cannot suffice, while the explicit circuit uses three. The minimum is 3. Complement availability is essential to this count; generating inversions separately would change the implementation cost.

Original paper, page 15 · Answer key