3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

Update opt_balance_tree to separate the splitfanout

This commit is contained in:
Akash Levy 2024-10-31 16:36:17 -07:00
parent 55acb4acca
commit 4eb820a7ec

View file

@ -308,9 +308,6 @@ struct OptBalanceTreePass : public Pass {
log("This pass converts cascaded chains of $and/$or/$xor/$xnor/$add/$mul cells into\n");
log("trees of cells to improve timing.\n");
log("\n");
log(" -splitfanout\n");
log(" run splitfanout pass first\n");
log("\n");
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override {
bool splitfanout = false;
@ -328,12 +325,6 @@ struct OptBalanceTreePass : public Pass {
}
extra_args(args, argidx, design);
// Run splitfanout pass first
if (splitfanout) {
// Pass::call(design, "splitfanout -limit 512 t:$and t:$or t:$xor t:$xnor t:$add t:$mul");
Pass::call(design, "splitfanout -limit 512 t:$add t:$mul");
}
// Count of all cells that were packed
dict<IdString, int> cell_count;
const vector<IdString> cell_types = {ID($and), ID($or), ID($xor), ID($xnor), ID($add), ID($mul)};