Latest Post

VLSI: XOR Gate Dataflow Modelling with Testbench

Verilog Code for XOR gate Dataflow Modelling

module XORgate(

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

//Testbench code for XOR 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, xor, vlsi

Comments

Popular posts from this blog