Fix scope tree in traces in hierarchical mode (#7042)

This commit is contained in:
Geza Lore
2026-02-12 20:54:03 -05:00
committed by GitHub
parent b84466ec10
commit 3dd2b762e7
35 changed files with 39586 additions and 46566 deletions
+6
View File
@@ -122,6 +122,12 @@ class InlineMarkVisitor final : public VNVisitor {
if (m_modp->modPublic() && (m_modp->isTop() || !v3Global.opt.flatten())) {
cantInline("modPublic", false);
}
// If the instance is a --lib-create library stub instance, and need tracing,
// then don't inline as we need to know its a lib stub for sepecial handling
// in V3TraceDecl. See #7001.
if (m_modp->verilatorLib() && v3Global.opt.trace()) {
cantInline("verilatorLib with --trace", false);
}
iterateChildren(nodep);
}