This commit is contained in:
2024-07-08 05:13:47 +03:00
parent 339ae1f428
commit 60e4f65988
5 changed files with 344 additions and 0 deletions

27
labs/lab5/timerTB.v Normal file
View File

@ -0,0 +1,27 @@
module timerTB ();
reg clock;
reg reset;
reg gate;
reg [2:0] counter;
reg way;
wire [5:0] count;
timer uut (clock,reset,gate,counter,way,count);
initial begin
clock = 0;
forever begin
#5 clock = ~clock;
end
end
initial begin
$dumpfile("lab5t.vcd");
$dumpvars;
reset = 1'b0; gate = 1'b1; counter = 3'b010; way = 1'b1;
#200;
$finish;
end
endmodule