3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-29 17:38:46 +00:00

Iterative muxpack

This commit is contained in:
Akash Levy 2024-08-14 05:27:50 -07:00
parent 5777bed8ed
commit 55782682de

View file

@ -375,9 +375,13 @@ struct MuxpackPass : public Pass {
int pmux_count = 0; int pmux_count = 0;
for (auto module : design->selected_modules()) { for (auto module : design->selected_modules()) {
bool done = false;
while (!done) {
MuxpackWorker worker(module, ignore_excl); MuxpackWorker worker(module, ignore_excl);
mux_count += worker.mux_count; mux_count += worker.mux_count;
pmux_count += worker.pmux_count; pmux_count += worker.pmux_count;
done = worker.pmux_count == 0;
}
} }
log("Converted %d (p)mux cells into %d pmux cells.\n", mux_count, pmux_count); log("Converted %d (p)mux cells into %d pmux cells.\n", mux_count, pmux_count);