aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/carry_tests/counter.v
diff options
context:
space:
mode:
Diffstat (limited to 'ice40/carry_tests/counter.v')
-rw-r--r--ice40/carry_tests/counter.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/ice40/carry_tests/counter.v b/ice40/carry_tests/counter.v
index 8906ff45..1379a330 100644
--- a/ice40/carry_tests/counter.v
+++ b/ice40/carry_tests/counter.v
@@ -1,9 +1,9 @@
module top(input clk, cen, rst, ina, inb, output outa, outb, outc, outd);
- reg [3:0] ctr = 0;
+ reg [15:0] ctr = 0;
always @(posedge clk)
ctr <= ctr + 1'b1;
- assign {outa, outb, outc, outd} = ctr;
+ assign {outa, outb, outc, outd} = ctr[15:12];
endmodule