3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-13 20:38:44 +00:00
yosys/tests/opt/opt_share_mux_tree.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

11 lines
154 B
Plaintext

read_verilog opt_share_mux_tree.v
prep -flatten
opt
pmuxtree
opt_share;
opt_share;
opt_clean
select -assert-count 1 t:$add
select -assert-count 0 t:$sub