3
0
Fork 0
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:
Krystine Sherwin 2025-03-14 14:40:06 +13:00
parent a3968d43f0
commit 68adac691d
No known key found for this signature in database

View file

@ -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());
}
}