for (auto i1 : design->selection_vars.at(str).selected_members)
for (auto i2 : i1.second)
limits.insert(i2);
- }
+ } else
+ log_cmd_error("Selection %s is not defined!\n", RTLIL::id2cstr(str));
} else
limits.insert(RTLIL::escape_id(str));
}
if (design->selection_vars.count(set_name) > 0)
work_stack.push_back(design->selection_vars[set_name]);
else
- work_stack.push_back(RTLIL::Selection(false));
+ log_cmd_error("Selection @%s is not defined!\n", RTLIL::id2cstr(set_name));
select_filter_active_mod(design, work_stack.back());
return;
}
if (!set_name.empty())
{
if (work_stack.size() == 0)
- design->selection_vars.erase(set_name);
+ design->selection_vars[set_name] = RTLIL::Selection(false);
else
design->selection_vars[set_name] = work_stack.back();
return;