mirror of
https://github.com/verilator/verilator.git
synced 2026-09-06 08:57:23 +02:00
[Vpi] Fix missing scopes 2 (#4965)
This commit is contained in:
+2
-1
@@ -316,7 +316,7 @@ class EmitCSyms final : EmitCBaseVisitorConst {
|
||||
iterateChildrenConst(nodep);
|
||||
}
|
||||
}
|
||||
void visit(AstCellInline* nodep) override {
|
||||
void visit(AstCellInlineScope* nodep) override {
|
||||
if (v3Global.opt.vpi()) {
|
||||
const string type
|
||||
= (nodep->origModName() == "__BEGIN__") ? "SCOPE_OTHER" : "SCOPE_MODULE";
|
||||
@@ -342,6 +342,7 @@ class EmitCSyms final : EmitCBaseVisitorConst {
|
||||
scopeSymString(nodep->name()),
|
||||
ScopeData{nodep, scopeSymString(nodep->name()), name_pretty, timeunit, type});
|
||||
}
|
||||
iterateChildrenConst(nodep);
|
||||
}
|
||||
void visit(AstScopeName* nodep) override {
|
||||
const string name = nodep->scopeSymName();
|
||||
|
||||
Reference in New Issue
Block a user