From 9e05fb7606d3f7f2f4b164704ef693fbb9f4926e Mon Sep 17 00:00:00 2001 From: Stan Lee Date: Mon, 20 Apr 2026 09:40:40 -0700 Subject: [PATCH] comments --- passes/silimate/reg_rename.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/passes/silimate/reg_rename.cc b/passes/silimate/reg_rename.cc index 3e2a13b58..f6e226040 100644 --- a/passes/silimate/reg_rename.cc +++ b/passes/silimate/reg_rename.cc @@ -25,6 +25,7 @@ USING_YOSYS_NAMESPACE PRIVATE_NAMESPACE_BEGIN +// Struct stores the width and index offset of a register in VCD file. struct RegInfo { int width = 0; int offset = 0; @@ -169,7 +170,6 @@ struct RegRenameInstance { if (targetWire == oldWire) continue; - // Record the mapping for each bit of the old wire to the target wire. int normalizedIndex = bitIndex - wireOffset; // Check for conflicts with other cells (multiple drivers guard) @@ -186,10 +186,12 @@ struct RegRenameInstance { continue; } - // Record the mapping for each bit of the old wire to the target wire. + // Create the new connection. if (debug) log("Connecting %s to %s[%d]\n", log_id(oldWire), wireName.c_str(), bitIndex); + + // Record the mapping for each bit of the old wire to the target wire. for (int i = 0; i < GetSize(oldWire); i++) { SigBit target(targetWire, normalizedIndex + i); bit_map[SigBit(oldWire, i)] = target;