diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 30ce3c28b..e365cbebc 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -2746,6 +2746,7 @@ inline RTLIL::SigBit::SigBit(const RTLIL::SigSpec &sig) { template void RTLIL::Module::rewrite_sigspecs(T &functor) { + log_assert(sig_norm_index == nullptr); for (auto &it : cells_) it.second->rewrite_sigspecs(functor); for (auto &it : processes) @@ -2759,6 +2760,7 @@ void RTLIL::Module::rewrite_sigspecs(T &functor) template void RTLIL::Module::rewrite_sigspecs2(T &functor) { + log_assert(sig_norm_index == nullptr); for (auto &it : cells_) it.second->rewrite_sigspecs2(functor); for (auto &it : processes)