rtlil: publish signorm fanout

This commit is contained in:
Emil J. Tywoniak
2026-07-17 23:38:01 +02:00
parent c9fb05efd6
commit f2e5bcb86a
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -2144,6 +2144,7 @@ public:
int next_timestamp();
std::vector<Cell *> dirty_cells(int starting_from);
const pool<PortBit> &fanout(SigBit bit);
const dict<SigBit, pool<PortBit>> &signorm_fanout() const;
template<typename T> void rewrite_sigspecs(T &functor);
template<typename T> void rewrite_sigspecs2(T &functor);
+5
View File
@@ -498,6 +498,11 @@ const pool<RTLIL::PortBit> &RTLIL::Module::fanout(SigBit bit) {
return found->second;
}
const dict<RTLIL::SigBit, pool<RTLIL::PortBit>> &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())