Fix vpi scope naming (#2130)

Dedot and shorten the name so that public modules and interface cells
are accessible too via VPI.

Fixes #2109
This commit is contained in:
Stefan Wallentowitz
2020-01-21 17:03:21 +01:00
committed by GitHub
parent 22088c907f
commit 8e26bdd098
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -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) {