Files
nand2tetris_verilog/nor_tb.v
2024-06-13 13:03:38 -07:00

24 lines
352 B
Verilog

`include "nor.v"
module Nor_test;
reg a=0;
reg b=0;
wire out;
integer i;
initial begin
$dumpfile("nor_tb.vcd");
$dumpvars;
for (i=0; i<4; i=i+1)
begin
b=(i&2)>>1;
a=i&1;
#1;
end
$finish();
end
Nor u1(.a(a), .b(b), .out(out));
endmodule