3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-02-06 09:16:19 +00:00
yosys/tests/various/equiv_nocells.ys
Natalia 6bf9fc1817 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.
2026-01-15 16:01:07 -08:00

13 lines
253 B
Text

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