3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 17:15:33 +00:00

opt_merge: fix trivial binary regression

This commit is contained in:
Emil J. Tywoniak 2025-03-10 11:43:13 +01:00
parent 8903740147
commit 176faae7c9
2 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1,13 @@
read_verilog -icells <<EOT
module top(A, B, X, Y);
input [8:0] A, B;
output [8:0] X, Y;
assign X = A + B;
assign Y = A + B;
endmodule
EOT
select -assert-count 2 t:$add
equiv_opt -assert opt_merge
design -load postopt
select -assert-count 1 t:$add