mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-23 14:23:41 +00:00
Reinstate #4768
Revert the reversion so that we can fix the bugs that the PR missed.
This commit is contained in:
parent
bf386feba7
commit
cd3b914132
38 changed files with 700 additions and 263 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