From 68adac691d0a5fcb257169b5b6ff4171e2292d24 Mon Sep 17 00:00:00 2001 From: Krystine Sherwin <93062060+KrystalDelusion@users.noreply.github.com> Date: Fri, 14 Mar 2025 14:40:06 +1300 Subject: [PATCH] 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. --- kernel/rtlil.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index 6a29c42e7..c9d2f6760 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -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()); } }