mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix scope tree in traces in hierarchical mode (#7042)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user