rtlil: publish signorm fanout

This commit is contained in:
Emil J. Tywoniak
2026-09-17 15:43:55 +02:00
parent 406abc294c
commit aef0396485
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
@@ -500,6 +500,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())