mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-30 16:03:17 +00:00
Proc: Use selections consistently
All `proc_*` passes now use the same module and process for loops, using `design->all_selected_modules()` and `mod->selected_processes()` respectively. This simplifies the code, and makes the couple `proc_*` passes that were ignoring boxed modules stop doing that (which seems to have been erroneous rather than intentional).
This commit is contained in:
parent
545753cc5a
commit
ab0e3cc05f
10 changed files with 69 additions and 98 deletions
|
@ -463,11 +463,10 @@ struct ProcDlatchPass : public Pass {
|
|||
|
||||
extra_args(args, 1, design);
|
||||
|
||||
for (auto module : design->selected_modules()) {
|
||||
proc_dlatch_db_t db(module);
|
||||
for (auto &proc_it : module->processes)
|
||||
if (design->selected(module, proc_it.second))
|
||||
proc_dlatch(db, proc_it.second);
|
||||
for (auto mod : design->all_selected_modules()) {
|
||||
proc_dlatch_db_t db(mod);
|
||||
for (auto proc : mod->selected_processes())
|
||||
proc_dlatch(db, proc);
|
||||
db.fixup_muxes();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue