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