mirror of
https://github.com/verilator/verilator.git
synced 2026-09-06 08:57:23 +02:00
Fix tracing_{on,off} in the presence of non-inlined modules (#5346)
Previously "*.foo.*" failed to match non-inlined instances called 'foo'.
This commit is contained in:
+1
-1
@@ -173,7 +173,7 @@ class TraceDeclVisitor final : public VNVisitor {
|
||||
} else if (!nodep->isTrace()) {
|
||||
return "Verilator instance trace_off";
|
||||
} else {
|
||||
const string prettyName = varp->prettyName();
|
||||
const string prettyName = nodep->prettyName();
|
||||
if (!v3Global.opt.traceUnderscore()) {
|
||||
if (!prettyName.empty() && prettyName[0] == '_') return "Leading underscore";
|
||||
if (prettyName.find("._") != string::npos) return "Inlined leading underscore";
|
||||
|
||||
Reference in New Issue
Block a user