mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-12 09:02:05 +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
|
|
@ -42,7 +42,7 @@ struct NlutmapWorker
|
|||
|
||||
RTLIL::Selection get_selection()
|
||||
{
|
||||
RTLIL::Selection sel(false, false, module->design);
|
||||
auto sel = RTLIL::Selection::EmptySelection(module->design);
|
||||
for (auto cell : module->cells())
|
||||
if (!mapped_cells.count(cell))
|
||||
sel.select(module, cell);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue