mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
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
This commit is contained in:
parent
3931b3a03f
commit
6b7267b849
4 changed files with 110 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue