Latest Post

Verilog: NOR gate Structural/Gate Level Modelling with Testbench

Verilog Code for NOR gate Structural/Gate Level Modelling

module NORgate(
    input a,
    input b,
    output c
    );
nor(c,a,b);
endmodule


//Testbench code for NOR gate Structural/Gate Level 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:






RTL Schematic:
NOR Gate Verilog

Other Verilog Programs:

Go to Index of Verilog Programming

Comments

Popular posts from this blog