mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-31 16:33:19 +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
|
@ -216,8 +216,8 @@ struct DesignPass : public Pass {
|
|||
RTLIL::Selection sel;
|
||||
if (argidx != args.size()) {
|
||||
handle_extra_select_args(this, args, argidx, args.size(), copy_from_design);
|
||||
sel = copy_from_design->selection_stack.back();
|
||||
copy_from_design->selection_stack.pop_back();
|
||||
sel = copy_from_design->selection();
|
||||
copy_from_design->pop_selection();
|
||||
argidx = args.size();
|
||||
}
|
||||
|
||||
|
@ -368,7 +368,7 @@ struct DesignPass : public Pass {
|
|||
design->selection_vars.clear();
|
||||
design->selected_active_module.clear();
|
||||
|
||||
design->selection_stack.push_back(RTLIL::Selection());
|
||||
design->push_full_selection();
|
||||
}
|
||||
|
||||
if (reset_mode || reset_vlog_mode || !load_name.empty() || push_mode || pop_mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue