aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast/ast.cc
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-04-16 13:48:20 +0100
committerGitHub <noreply@github.com>2020-04-16 13:48:20 +0100
commit2b57c06360fd453840aa1e3b76a410ad300ae197 (patch)
tree3f6432e5c18281c405d3ead0b12d0ff054634389 /frontends/ast/ast.cc
parent2f8541a92eb6a733c90170709c4c597452036ab6 (diff)
parent4d025058208f3b3096192b09371c9320610a44b8 (diff)
downloadyosys-2b57c06360fd453840aa1e3b76a410ad300ae197.tar.gz
yosys-2b57c06360fd453840aa1e3b76a410ad300ae197.tar.bz2
yosys-2b57c06360fd453840aa1e3b76a410ad300ae197.zip
Merge pull request #1943 from YosysHQ/dave/fix-1919
ast: Fix handling of identifiers in the global scope
Diffstat (limited to 'frontends/ast/ast.cc')
-rw-r--r--frontends/ast/ast.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc
index 2b6002548..245a53611 100644
--- a/frontends/ast/ast.cc
+++ b/frontends/ast/ast.cc
@@ -1153,6 +1153,7 @@ void AST::process(RTLIL::Design *design, AstNode *ast, bool dump_ast1, bool dump
bool nolatches, bool nomeminit, bool nomem2reg, bool mem2reg, bool noblackbox, bool lib, bool nowb, bool noopt, bool icells, bool pwires, bool nooverwrite, bool overwrite, bool defer, bool autowire)
{
current_ast = ast;
+ current_ast_mod = nullptr;
flag_dump_ast1 = dump_ast1;
flag_dump_ast2 = dump_ast2;
flag_no_dump_ptr = no_dump_ptr;
@@ -1219,6 +1220,7 @@ void AST::process(RTLIL::Design *design, AstNode *ast, bool dump_ast1, bool dump
}
design->add(process_module(*it, defer));
+ current_ast_mod = nullptr;
}
else if ((*it)->type == AST_PACKAGE) {
// process enum/other declarations