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:
parent
967b47d984
commit
6bf9fc1817
3 changed files with 31 additions and 1 deletions
13
tests/various/equiv_nocells.ys
Normal file
13
tests/various/equiv_nocells.ys
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue