3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-12 20:18:20 +00:00
yosys/tests/opt/opt_share_cat.ys
Bogdan Vukobratovic 07c4a7d438 Implement opt_share
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
2019-07-26 11:36:48 +02:00

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