Minimum NOR realization of XNOR
Boolean Algebra & Logic Gates

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.
![Question 21, GATE 2017: A four-variable K-map has columns ba=00,01,11,10 and rows dc=00,01,11,10, both in Gray order. Row entries respectively are [0,X,X,0], [1,0,0,X], [1,0,0,1], [0,X,X,0], where X means don’t care. All inputs a,b,c,d and their complements are available. Using only 2-input NOR gates, find the minimum number of gates.](../../../assets/questions/CS-2017-S1-Q31-1.webp)






