3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-04 22:04:06 +00:00
sby/sbysrc/demo2.sby
2017-02-19 23:53:01 +01:00

22 lines
383 B
Plaintext

[options]
mode prove
wait on
[engines]
aiger suprove
aiger avy
[script]
read_verilog -formal demo.v
prep -top top
[file demo.v]
module top(input clk, input up, down);
reg [4:0] counter = 0;
always @(posedge clk) begin
if (up && counter != 10) counter <= counter + 1;
if (down && counter != 0) counter <= counter - 1;
end
assert property (counter != 15);
endmodule