mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-13 01:16:16 +00:00
Use selection helpers
Catch more uses of selection constructor without assigning a design.
This commit is contained in:
parent
a67b57bd64
commit
dac2bb7d4d
23 changed files with 84 additions and 78 deletions
|
@ -246,7 +246,7 @@ struct SubmodWorker
|
|||
SubmodWorker(RTLIL::Design *design, RTLIL::Module *module, bool copy_mode = false, bool hidden_mode = false, std::string opt_name = std::string()) :
|
||||
design(design), module(module), sigmap(module), copy_mode(copy_mode), hidden_mode(hidden_mode), opt_name(opt_name)
|
||||
{
|
||||
if (!design->selected_whole_module(module->name) && opt_name.empty())
|
||||
if (!module->is_selected_whole() && opt_name.empty())
|
||||
return;
|
||||
|
||||
if (module->processes.size() > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue