Latest Post

Ads

VLSI: XNOR Gate Dataflow Modelling with Testbench

Verilog Code for XNOR gate Dataflow Modelling

module XNORgate(

    input a,
    input b,
    output c
    );
assign c = ~ (a ^ b);
endmodule

//Testbench code for XNOR gate Dataflow Modelling

initial begin
              // Initialize Inputs
              a = 0;b = 0;

              // Wait 100 ns for global reset to finish
              #100 a = 0; b = 1;
              #100 a = 1; b = 0;
              #100 a = 1; b = 1;
 end


Output:
verilog, xnor, vlsi


Comments

Ads

Popular posts from this blog

VLSI: BCD to Excess 3 and Excess 3 to BCD Dataflow Modelling

Full Subtractor Verilog Code in Structural/Gate Level Modelling with Testbench

VLSI: 4-1 MUX Dataflow Modelling with Testbench

VLSI: Half Subtractor and Full Subtractor Gate Level Modelling

1 to 4 DEMUX (Demultiplexer) Verilog CodeStructural/Gate Level Modelling with Testbench