mirror of
https://github.com/verilator/verilator.git
synced 2026-09-04 16:40:12 +02:00
Fix VCD files showing internal flattened hierarchy, broke in 3.714.
This commit is contained in:
+4
-2
@@ -125,8 +125,10 @@ private:
|
||||
AstVar* varp = nodep->varp();
|
||||
AstScope* scopep = nodep->scopep();
|
||||
// Compute show name
|
||||
string showname = scopep->prettyName() + "." + varp->prettyName();
|
||||
if (showname.substr(0,4) == "TOP.") showname.replace(0,4,"");
|
||||
// This code assumes SPTRACEVCDC_VERSION >= 1330;
|
||||
// it uses spaces to separate hierarchy components.
|
||||
string showname = AstNode::vcdName(scopep->name() + " " + varp->name());
|
||||
if (showname.substr(0,4) == "TOP ") showname.replace(0,4,"");
|
||||
if (!m_initSubFuncp) nodep->v3fatalSrc("NULL");
|
||||
if (varIgnoreTrace(varp)) {
|
||||
m_statIgnSigs++;
|
||||
|
||||
Reference in New Issue
Block a user