Fix dpiGetContext in dotted scopes, bug740.

This commit is contained in:
Wilson Snyder
2014-07-21 20:55:52 -04:00
parent 5559ec903b
commit fe5bf01b25
8 changed files with 55 additions and 1 deletions
+3 -1
View File
@@ -226,7 +226,9 @@ public:
virtual void visit(AstScopeName* nodep, AstNUser*) {
// For use under AstCCalls for dpiImports. ScopeNames under displays are handled in AstDisplay
if (!nodep->dpiExport()) {
putbs("(&(vlSymsp->__Vscope_"+nodep->scopeSymName()+"))");
// this is where the DPI import context scope is set
string scope = nodep->scopeDpiName();
putbs("(&(vlSymsp->__Vscope_"+scope+"))");
}
}
virtual void visit(AstSFormat* nodep, AstNUser*) {