Sign in
foss-fpga-tools
/
third_party
/
Surelog
/
356a4bf2123fc606ca19fbed9b9c535f149fdec5
/
.
/
SVIncCompil
/
Testcases
/
YosysTests
/
simple
/
extract_counter
/
top.v
blob: 4f015ecab7a7ae40e5a343267267eaaa14c22a83 [
file
] [
log
] [
blame
]
module
top
(
out
,
clk
,
reset
);
output
[
7
:
0
]
out
;
input clk
,
reset
;
reg
[
7
:
0
]
out
;
always
@(
posedge clk
,
posedge reset
)
if
(
reset
)
begin
out
<=
8
'b0 ;
end else
`ifndef BUG
out <= out + 1;
`else
out <= out - 1'
bZ
;
`endif
endmodule