Fix multitop cross references (#6699).

This commit is contained in:
Wilson Snyder
2025-11-26 06:09:29 -05:00
parent 9155e2529b
commit 8293a8d035
23 changed files with 133 additions and 74 deletions
+1 -2
View File
@@ -280,8 +280,7 @@ class CoverageVisitor final : public VNVisitor {
VL_RESTORER(m_funcTemps);
createHandle(nodep);
m_modp = nodep;
m_state.m_inModOff
= nodep->isTop(); // Ignore coverage on top module; it's a shell we created
m_state.m_inModOff = false; // Haven't made top shell, so tops are real tops
if (!origModp) {
// No blocks cross (non-nested) modules, so save some memory
m_varnames.clear();