3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-07 14:45:18 +00:00
sby/docs/examples/quickstart/demo.sv
Clifford Wolf 59f4f29fdc Fix quickstart demo to work with verific
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-06-18 10:30:04 +02:00

20 lines
294 B
Systemverilog

module demo (
input clk,
output reg [5:0] counter
);
initial counter = 0;
always @(posedge clk) begin
if (counter == 15)
counter <= 0;
else
counter <= counter + 1;
end
`ifdef FORMAL
always @(posedge clk) begin
assert (counter < 32);
end
`endif
endmodule