3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-05-16 20:24:46 +00:00

Revert "Add fanoutlimit"

This reverts commit be9a4f338d.
This commit is contained in:
Akash Levy 2024-08-27 17:22:31 -07:00
parent be9a4f338d
commit 9470dbe806
3 changed files with 9 additions and 32 deletions

View file

@ -314,13 +314,9 @@ struct OptBalanceTreePass : public Pass {
log(" -splitfanout\n");
log(" run splitfanout pass first\n");
log("\n");
log(" -fanoutlimit\n");
log(" fanout limit for splitfanout, beyond which no split (default: 10)\n");
log("\n");
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override {
bool splitfanout = false;
int fanoutlimit = 10;
log_header(design, "Executing OPT_BALANCE_TREE pass (cell cascades to trees).\n");
@ -331,17 +327,13 @@ struct OptBalanceTreePass : public Pass {
splitfanout = true;
continue;
}
if ((args[argidx] == "-fanoutlimit") && ((argidx + 1) < args.size())) {
fanoutlimit = std::stoi(args[++argidx]);
continue;
}
break;
}
extra_args(args, argidx, design);
// Run splitfanout pass first
if (splitfanout)
Pass::call(design, stringf("splitfanout -fanoutlimit %d t:$and t:$or t:$xor t:$add t:$mul", fanoutlimit));
Pass::call(design, "splitfanout t:$and t:$or t:$xor t:$add t:$mul");
// Count of all cells that were packed
dict<IdString, int> cell_count;