The XNOR (Exclusive-NOR) gate is the complement of the XOR gate.
It outputs HIGH (1) when the inputs are the same.
It outputs LOW (0) when the inputs are different.
That’s why it is also called the Equivalence Gate
BLOCK DIAGRAM:
Y=(A⊕B)'=AB+A'B'
module XNOR(y,A,B);
input A,B;
output Y;
assign Y = (A^B);
endmodule
module tb_XOR();
reg A,B;
wire Y;
XOR DUX(Y,A,B);
initial
begin
A=1'b0 ; B=1'b0;
#10 A=1'b0 ; B=1'b1;
#10 A=1'b1 ; B=1'b0;
#10 A=1'b1 ; B=1'b1;
#20 $finish();
end
endmodule
OUTPUT:
Pin Assignment:
Input A = J15
Input B = L16
Output Y = H17