Latest Post
Verilog: OR gate Structural/Gate Level Modelling with Testbench
- Get link
- X
- Other Apps
Verilog Code for OR gate Structural/Gate Level Modelling
module ORgate(
input a,
input b,
output c
);
or(c,a,b);
endmodule
//Testbench code for OR 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
- Get link
- X
- Other Apps
Comments
Post a Comment