The XNOR gate is a digital logic gate whose function is the inverse of the exclusive OR (XOR) gate. A HIGH output (1) results if both of the inputs to the gate are the same. If one but not both inputs are HIGH (1), a LOW output (0) results.
1 2 3 4 5 6 7 8 9 10 | module xnor1(c,a,b); output c; input a,b; wire d,e,f,g; inv u1(d,a); inv u2(e,b); and1 u3(f,a,b); and1 u4(g,e,d); or1 u5(c,f,g); endmodule |