diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/constids.inc | 1 | ||||
-rw-r--r-- | kernel/rtlil.cc | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/kernel/constids.inc b/kernel/constids.inc index 68a5782fd..c5f672d09 100644 --- a/kernel/constids.inc +++ b/kernel/constids.inc @@ -199,6 +199,7 @@ X(wand) X(whitebox) X(WIDTH) X(wildcard_port_conns) +X(wiretype) X(wor) X(WORDS) X(WR_ADDR) diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index 2aefe30b1..196e301b6 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -2619,16 +2619,15 @@ void RTLIL::Cell::setParam(RTLIL::IdString paramname, RTLIL::Const value) const RTLIL::Const &RTLIL::Cell::getParam(RTLIL::IdString paramname) const { - static const RTLIL::Const empty; const auto &it = parameters.find(paramname); if (it != parameters.end()) return it->second; if (module && module->design) { RTLIL::Module *m = module->design->module(type); if (m) - return m->parameter_default_values.at(paramname, empty); + return m->parameter_default_values.at(paramname); } - return empty; + throw std::out_of_range("Cell::getParam()"); } void RTLIL::Cell::sort() |