mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-03 12:51:23 +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
1 changed files with 3 additions and 0 deletions
|
@ -2366,6 +2366,9 @@ void RTLIL::Module::check()
|
||||||
}
|
}
|
||||||
auto cell_mod = design->module(it.first);
|
auto cell_mod = design->module(it.first);
|
||||||
if (cell_mod != nullptr) {
|
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());
|
log_assert(!it.second->get_blackbox_attribute());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue