mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-12 20:18:20 +00:00
This pass identifies arithmetic operators that share an operand and whose results are used in mutually exclusive cases controlled by a multiplexer, and merges them together by multiplexing the other operands
10 lines
137 B
Plaintext
10 lines
137 B
Plaintext
read_verilog opt_share_cat.v
|
|
prep -flatten
|
|
opt
|
|
pmuxtree
|
|
opt_share
|
|
opt_clean
|
|
|
|
select -assert-count 2 t:$sub
|
|
select -assert-count 0 t:$add
|