Sign in
foss-fpga-tools
/
third_party
/
vtr-verilog-to-routing
/
8ef7e7d8c05b3a1de4d7768c6d85d15322753ba6
/
.
/
abc_with_bb_support
/
accum.v
blob: b71bc4c870ee7f92321080381efb07e941035e95 [
file
] [
log
] [
blame
]
module
accum
(
clock
,
reset_n
,
D
,
Q
);
input clock
,
reset_n
;
input
[
3
:
0
]
D
;
output
[
3
:
0
]
Q
;
reg
[
3
:
0
]
tmp
;
always
@(
posedge clock
)
begin
if
(
reset_n
)
tmp
<=
4
'b0000;
else
tmp <= tmp + D;
end
assign Q = tmp;
endmodule