Verilog HDL Program for EXCLUSIVE NOR Logic Gate

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
Simulated waveform for Ex-nor Gate
Simulated waveform for Ex-nor Gate
Ansten Lobo

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest updates on your inbox

Be the first to receive the latest updates from Codesdoc by signing up to our email subscription.

    StudentProjects.in