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:
parent
8903740147
commit
176faae7c9
2 changed files with 13 additions and 1 deletions
13
tests/opt/opt_merge_basic.ys
Normal file
13
tests/opt/opt_merge_basic.ys
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue