nand2tetris

This commit is contained in:
2024-12-10 01:25:05 +03:00
parent 2acbfd9d8d
commit c1d75786ef
31 changed files with 1058 additions and 24 deletions

View File

@ -0,0 +1,29 @@
module andGateTB ();
reg A_i, B_i;
wire Y_o;
andGate uut (
.A_i(A_i),
.B_i(B_i),
.Y_o(Y_o)
);
initial begin
$dumpfile("andGate.vcd");
$dumpvars;
A_i = 1'b0;
B_i = 1'b0;
#10;
A_i = 1'b0;
B_i = 1'b1;
#10;
A_i = 1'b1;
B_i = 1'b0;
#10;
A_i = 1'b1;
B_i = 1'b1;
#10;
$finish;
end
endmodule