From 9f36d9dea9845ac8bafb7ad6e2f9759675b3f504 Mon Sep 17 00:00:00 2001 From: Alain Dargelas Date: Tue, 4 Mar 2025 15:52:10 -0800 Subject: [PATCH] comments --- passes/silimate/annotate_cell_fanout.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/passes/silimate/annotate_cell_fanout.cc b/passes/silimate/annotate_cell_fanout.cc index 18864d973..180d041ec 100644 --- a/passes/silimate/annotate_cell_fanout.cc +++ b/passes/silimate/annotate_cell_fanout.cc @@ -16,7 +16,7 @@ std::string substringuntil(const std::string &str, char delimiter) } } -// Generate a human readable name for a sigspec, uniquify if necessary +// Generate a meaningful name for a sigspec, uniquify if necessary RTLIL::IdString generateSigSpecName(Module *module, const RTLIL::SigSpec &sigspec, bool makeUnique = false, std::string postfix = "", bool cellName = false) { @@ -227,6 +227,7 @@ void removeBuffer(Module *module, SigMap &sigmap, std::set &fanoutcells, module->remove({bufferOutSig.as_wire()}); } +// Returns the first output (sigmaped sigspec) of a cell RTLIL::SigSpec getCellOutputSigSpec(Cell *cell, SigMap &sigmap) { RTLIL::SigSpec cellOutSig; @@ -435,6 +436,7 @@ void fixfanout(RTLIL::Module *module, SigMap &sigmap, dict> &sig2CellsInFanout, dict &cellFanout, dict &sigFanout) { @@ -509,6 +511,7 @@ void calculateFanout(RTLIL::Module *module, SigMap &sigmap, dict &netsToSplitS, std::vector &sigsToSplit, bool formalFriendly, bool debug, bool inputPort = false) {