diff --git a/Changes b/Changes index bb956d7ea..7293e0e09 100644 --- a/Changes +++ b/Changes @@ -21,6 +21,8 @@ The contributors that suggested a given feature are shown in []. Thanks! **** Add parameter to set maximum signal width. #2082. [Øyvind Harboe] +**** Fix VPI scope naming for public modules. [Nandu Raj] + * Verilator 4.026 2020-01-11 diff --git a/src/V3EmitCSyms.cpp b/src/V3EmitCSyms.cpp index 7ca26a7c4..2957695e9 100644 --- a/src/V3EmitCSyms.cpp +++ b/src/V3EmitCSyms.cpp @@ -293,9 +293,10 @@ class EmitCSyms : EmitCBaseVisitor { m_scopes.push_back(make_pair(nodep, m_modp)); if (v3Global.opt.vpi() && !nodep->isTop()) { + string name_dedot = AstNode::dedotName(nodep->shortName()); m_vpiScopeCandidates.insert(make_pair(nodep->name(), ScopeData(scopeSymString(nodep->name()), - nodep->name(), "SCOPE_MODULE"))); + name_dedot, "SCOPE_MODULE"))); } } virtual void visit(AstScopeName* nodep) {