diff options
author | Zachary Snow <zach@zachjs.com> | 2021-08-02 18:42:34 -0600 |
---|---|---|
committer | Zachary Snow <zachary.j.snow@gmail.com> | 2021-09-21 12:10:59 -0400 |
commit | 6b7267b849abf7688938e5e53ae7017e8588ff18 (patch) | |
tree | 8a357899c2f0f2d00930f34fc83bbab63ab35528 /frontends/verilog/verilog_parser.y | |
parent | 3931b3a03f65965daca20b1228d8882192e74650 (diff) | |
download | yosys-6b7267b849abf7688938e5e53ae7017e8588ff18.tar.gz yosys-6b7267b849abf7688938e5e53ae7017e8588ff18.tar.bz2 yosys-6b7267b849abf7688938e5e53ae7017e8588ff18.zip |
verilog: fix multiple AST_PREFIX scope resolution issues
- Root AST_PREFIX nodes are now subject to genblk expansion to allow
them to refer to a locally-visible generate block
- Part selects on AST_PREFIX member leafs can now refer to generate
block items (previously would not resolve and raise an error)
- Add source location information to AST_PREFIX nodes
Diffstat (limited to 'frontends/verilog/verilog_parser.y')
-rw-r--r-- | frontends/verilog/verilog_parser.y | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/frontends/verilog/verilog_parser.y b/frontends/verilog/verilog_parser.y index 8d0ba4cf6..91b1140e9 100644 --- a/frontends/verilog/verilog_parser.y +++ b/frontends/verilog/verilog_parser.y @@ -2973,6 +2973,7 @@ rvalue: hierarchical_id '[' expr ']' '.' rvalue { $$ = new AstNode(AST_PREFIX, $3, $6); $$->str = *$1; + SET_AST_NODE_LOC($$, @1, @6); delete $1; } | hierarchical_id range { |