diff options
-rw-r--r-- | ice40/blinky.v | 2 | ||||
-rw-r--r-- | ice40/blinky_tb.v | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/ice40/blinky.v b/ice40/blinky.v index a45021d2..36eaee86 100644 --- a/ice40/blinky.v +++ b/ice40/blinky.v @@ -13,7 +13,7 @@ module blinky ( ); localparam BITS = 5; - localparam LOG2DELAY = 22; + localparam LOG2DELAY = 21; reg [BITS+LOG2DELAY-1:0] counter = 0; reg [BITS-1:0] outcnt; diff --git a/ice40/blinky_tb.v b/ice40/blinky_tb.v index d5c40982..f80b5e64 100644 --- a/ice40/blinky_tb.v +++ b/ice40/blinky_tb.v @@ -14,9 +14,12 @@ module blinky_tb; ); initial begin - $dumpfile("blinky_tb.vcd"); - $dumpvars(0, blinky_tb); - repeat (9000000) @(posedge clk); + // $dumpfile("blinky_tb.vcd"); + // $dumpvars(0, blinky_tb); + repeat (10) begin + repeat (900000) @(posedge clk); + $display(led1, led2, led3, led4, led5); + end $finish; end endmodule |