3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-01-18 16:28:57 +00:00

Add -nocells flag to equiv_make and equiv_opt

The -nocells flag skips cell equivalence checking and only checks wire
equivalence. This is useful when optimizations preserve functionality but
rename or restructure cells, avoiding false negatives in equivalence checking.
This commit is contained in:
Natalia 2026-01-15 14:47:42 -08:00
parent 967b47d984
commit 6bf9fc1817
3 changed files with 31 additions and 1 deletions

View file

@ -0,0 +1,13 @@
read_verilog <<EOT
module gold(input a, input b, output y);
assign y = a & b;
endmodule
module gate(input a, input b, output y);
assign y = a & b;
endmodule
EOT
equiv_make -nocells gold gate equiv
equiv_simple equiv
equiv_status -assert equiv