3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-14 01:08:43 +00:00
sby/docs/examples/demos/up_down_counter.sby
Yuheng Su daf4e4cb39 Support rIC3 as backend
Signed-off-by: Yuheng Su <gipsyh.icu@gmail.com>
2024-12-16 11:02:45 +00:00

27 lines
432 B
Plaintext

[tasks]
suprove
avy
rIC3
[options]
mode prove
[engines]
suprove: aiger suprove
avy: aiger avy
rIC3: aiger rIC3
[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