mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-18 01:02:19 +00:00
Based on existing code for input cone and the `sat` handling of `-set-assumes`. Update `equiv_assume.ys` to use `-set-assumes` option.
28 lines
539 B
Text
28 lines
539 B
Text
read_verilog -sv <<EOT
|
|
module gold (input D, output Q);
|
|
assign Q = '0;
|
|
endmodule
|
|
|
|
module gate (input D, output Q);
|
|
assume property (D == '0);
|
|
assign Q = D;
|
|
endmodule
|
|
EOT
|
|
|
|
chformal -lower
|
|
async2sync
|
|
design -stash input
|
|
|
|
# using $assert cells in sat verifies
|
|
design -load input
|
|
equiv_make -make_assert gold gate equiv
|
|
prep -top equiv
|
|
sat -set-assumes -prove-asserts -verify
|
|
# this fails
|
|
# sat -prove-asserts -verify
|
|
|
|
# so should $equiv
|
|
design -load input
|
|
equiv_make gold gate equiv
|
|
equiv_simple -set-assumes equiv
|
|
equiv_status -assert equiv
|