Sign in
foss-fpga-tools
/
third_party
/
nextpnr
/
refs/heads/xc7
/
.
/
ice40
/
carry_tests
/
counter.v
blob: 1379a33075b119cbfaef4d807c61eed7b7398f58 [
file
] [
log
] [
blame
] [
edit
]
module
top
(
input clk
,
cen
,
rst
,
ina
,
inb
,
output outa
,
outb
,
outc
,
outd
);
reg
[
15
:
0
]
ctr
=
0
;
always
@(
posedge clk
)
ctr
<=
ctr
+
1
'b1;
assign {outa, outb, outc, outd} = ctr[15:12];
endmodule