mirror of
https://github.com/YosysHQ/sby.git
synced 2025-11-03 06:17:52 +00:00
Add aiger engine
This commit is contained in:
parent
404f8de16d
commit
b5be4a5759
9 changed files with 153 additions and 15 deletions
21
sbysrc/demo2.sby
Normal file
21
sbysrc/demo2.sby
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
[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
|
||||
Loading…
Add table
Add a link
Reference in a new issue