From b9eae3f64bc50de29de53e333f797ad9f5008226 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Fri, 22 May 2026 13:04:12 +0200 Subject: [PATCH] rtlil: publish signorm fanout --- kernel/rtlil.h | 1 + kernel/rtlil_bufnorm.cc | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 0ef21529a..146a552e6 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -2138,6 +2138,7 @@ public: int next_timestamp(); std::vector dirty_cells(int starting_from); const pool &fanout(SigBit bit); + const dict> &signorm_fanout() const; template void rewrite_sigspecs(T &functor); template void rewrite_sigspecs2(T &functor); diff --git a/kernel/rtlil_bufnorm.cc b/kernel/rtlil_bufnorm.cc index b84f165e3..44b8bce05 100644 --- a/kernel/rtlil_bufnorm.cc +++ b/kernel/rtlil_bufnorm.cc @@ -498,6 +498,11 @@ const pool &RTLIL::Module::fanout(SigBit bit) { return found->second; } +const dict> &RTLIL::Module::signorm_fanout() const { + log_assert(sig_norm_index != nullptr); + return sig_norm_index->fanout; +} + void RTLIL::Module::remove(RTLIL::Cell *cell) { while (!cell->connections_.empty())