mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-29 17:38:46 +00:00
Iterative muxpack
This commit is contained in:
parent
5777bed8ed
commit
55782682de
1 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue