mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-18 06:39:03 +00:00
Add warning statements around the getParam issue
This commit is contained in:
parent
6fc727139b
commit
1e9adbe4b0
|
@ -4088,6 +4088,10 @@ const RTLIL::Const &RTLIL::Cell::getParam(const RTLIL::IdString& paramname) cons
|
|||
if (m)
|
||||
return m->parameter_default_values.at(paramname);
|
||||
}
|
||||
log_warning("Parameter `%s' not found in cell `%s' of type `%s'.\n", paramname.c_str(), name.c_str(), type.c_str());
|
||||
if (module)
|
||||
log_warning("Module `%s' contains that cell.\n", module->name.c_str());
|
||||
log_flush();
|
||||
throw std::out_of_range("Cell::getParam()");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue