2024-12-01 13:42:54 +03:00

30 lines
343 B
Verilog

module andGateTB ();
reg A, B;
wire Y;
andGate uut (
.A(A),
.B(B),
.Y(Y)
);
initial begin
$dumpfile("andGate.vcd");
$dumpvars;
A = 1'b0;
B = 1'b0;
#10;
A = 1'b0;
B = 1'b1;
#10;
A = 1'b1;
B = 1'b0;
#10;
A = 1'b1;
B = 1'b1;
#10;
$finish;
end
endmodule