mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-30 07:53:16 +00:00
Drop deprecation on Design::selected_modules()
Instead, change the default `Design::selected_modules()` to match the behaviour (i.e. `selected_unboxed_modules_warn()`) because it's a lot of files to touch and they don't really _need_ to be updated. Also change `Design::selected_whole_modules()` users over to `Design::selected_unboxed_whole_modules()`, except `attrmap` because I'm not convinced it should be ignoring boxes. So instead, leave the deprecation warning for that one use and come back to the pass another time.
This commit is contained in:
parent
46a311acb2
commit
a3968d43f0
4 changed files with 5 additions and 7 deletions
|
@ -2887,7 +2887,7 @@ struct SimPass : public Pass {
|
|||
if (!top_mod)
|
||||
log_cmd_error("Design has no top module, use the 'hierarchy' command to specify one.\n");
|
||||
} else {
|
||||
auto mods = design->selected_whole_modules();
|
||||
auto mods = design->selected_unboxed_whole_modules();
|
||||
if (GetSize(mods) != 1)
|
||||
log_cmd_error("Only one top module must be selected.\n");
|
||||
top_mod = mods.front();
|
||||
|
@ -3016,7 +3016,7 @@ struct Fst2TbPass : public Pass {
|
|||
if (!top_mod)
|
||||
log_cmd_error("Design has no top module, use the 'hierarchy' command to specify one.\n");
|
||||
} else {
|
||||
auto mods = design->selected_whole_modules();
|
||||
auto mods = design->selected_unboxed_whole_modules();
|
||||
if (GetSize(mods) != 1)
|
||||
log_cmd_error("Only one top module must be selected.\n");
|
||||
top_mod = mods.front();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue