diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-30 08:00:51 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-30 08:00:51 +0200 |
commit | 172ceef3775d60388f4ce151d0fbda60fd9c9a42 (patch) | |
tree | c9d06046820397ed42ae426c749aa91383f7581e /ice40 | |
parent | 25f07549a132703079369c0ff387837bd84e9790 (diff) | |
download | nextpnr-172ceef3775d60388f4ce151d0fbda60fd9c9a42.tar.gz nextpnr-172ceef3775d60388f4ce151d0fbda60fd9c9a42.tar.bz2 nextpnr-172ceef3775d60388f4ce151d0fbda60fd9c9a42.zip |
Improve blinky testbench, double blink frequency
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40')
-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 |