Sign in
foss-fpga-tools
/
third_party
/
Surelog
/
356a4bf2123fc606ca19fbed9b9c535f149fdec5
/
.
/
SVIncCompil
/
Testcases
/
YosysTests
/
simple
/
extract_counter_down
/
top.v
blob: 1045fd48b80de0c7f6f923dc62478ad8846e1461 [
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
'b11111111;
end else
`ifndef BUG
out <= out - 1;
`else
out <= out + 1'
bZ
;
`endif
endmodule