mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-08 20:21:25 +00:00
Add Selection::complete_selection
Used to select all modules including boxes, set when both `full` and `boxes` are true in the constructor, pulling down `full_selection`. Add `Selection::selects_all()` method as short hand for `full_selection || complete_selection`. Update selection operations to account for complete selections. Add static methods to `Selection` for creating a new empty/full/complete selection to make it clearer to users when doing so. Use said static methods to replace most instances of the `Selection` constructor. Update `Selection::optimize` to use
This commit is contained in:
parent
9a9cd05f6c
commit
a30bacfcb1
6 changed files with 86 additions and 53 deletions
|
@ -340,7 +340,7 @@ struct SccPass : public Pass {
|
|||
int origSelectPos = design->selection_stack.size() - 1;
|
||||
extra_args(args, argidx, design);
|
||||
|
||||
RTLIL::Selection newSelection(false, false, design);
|
||||
auto newSelection = RTLIL::Selection::EmptySelection(design);
|
||||
int scc_counter = 0;
|
||||
|
||||
for (auto mod : design->selected_modules())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue