Fix generate function(s) inside of generate blocks (#1011) (#6789)

This commit is contained in:
em2machine
2025-12-10 20:53:19 -05:00
committed by GitHub
parent f9f16b438f
commit afc4bed0f8
3 changed files with 74 additions and 0 deletions
+8
View File
@@ -292,6 +292,14 @@ class BeginVisitor final : public VNVisitor {
UINFO(9, " rescope to " << nodep);
}
}
void visit(AstNodeFTaskRef* nodep) override {
UINFO(9, " FTASKREF " << nodep);
if (m_namedScope != "" && nodep->inlinedDots() == "" && !m_ftaskp) {
nodep->inlinedDots(m_namedScope);
UINFO(9, " rescope to " << nodep);
}
iterateChildren(nodep);
}
void visit(AstScopeName* nodep) override {
// If there's a %m in the display text, we add a special node that will contain the name()
// Similar code in V3Inline