mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-11 03:33:36 +00:00
rtlil.cc: Add comment to log_assert
Because the use of `RTLIL::AttrObject::get_blackbox_attribute()` is deprecated, but the assert is needed in case users are doing weird things.
This commit is contained in:
parent
a3968d43f0
commit
68adac691d
|
@ -2366,6 +2366,9 @@ void RTLIL::Module::check()
|
|||
}
|
||||
auto cell_mod = design->module(it.first);
|
||||
if (cell_mod != nullptr) {
|
||||
// assertion check below to make sure that there are no
|
||||
// cases where a cell has a blackbox attribute since
|
||||
// that is deprecated
|
||||
log_assert(!it.second->get_blackbox_attribute());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue