nand2tetris
This commit is contained in:
21
iverilog/nand2tetris/nands/or/orGateTB.v
Normal file
21
iverilog/nand2tetris/nands/or/orGateTB.v
Normal file
@ -0,0 +1,21 @@
|
||||
module orGateTB();
|
||||
reg A_i, B_i;
|
||||
wire F_o;
|
||||
|
||||
orGate uut(
|
||||
.A_i(A_i),
|
||||
.B_i(B_i),
|
||||
.F_o(F_o)
|
||||
);
|
||||
|
||||
initial begin
|
||||
$dumpfile("orGate.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
|
Reference in New Issue
Block a user