diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-06-07 11:41:54 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2019-06-07 11:41:54 +0200 |
commit | b637b3109d61ff2d120978975a7b8cdc2ca3f418 (patch) | |
tree | 68c54d800e9907f0c3a2daf43183bac73a187dbe /frontends | |
parent | b894187cf66dfa346eddeccf42c38c0635db9524 (diff) | |
parent | 88f59770932720cfc1e987c98e53faedd7388ed8 (diff) | |
download | yosys-b637b3109d61ff2d120978975a7b8cdc2ca3f418.tar.gz yosys-b637b3109d61ff2d120978975a7b8cdc2ca3f418.tar.bz2 yosys-b637b3109d61ff2d120978975a7b8cdc2ca3f418.zip |
Merge branch 'implicit_named_connection' of https://github.com/tux3/yosys into tux3-implicit_named_connection
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/verilog/verilog_parser.y | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/frontends/verilog/verilog_parser.y b/frontends/verilog/verilog_parser.y index ccdab987f..2fffc7536 100644 --- a/frontends/verilog/verilog_parser.y +++ b/frontends/verilog/verilog_parser.y @@ -154,7 +154,7 @@ struct specify_rise_fall { %token TOK_INCREMENT TOK_DECREMENT TOK_UNIQUE TOK_PRIORITY %type <ast> range range_or_multirange non_opt_range non_opt_multirange range_or_signed_int -%type <ast> wire_type expr basic_expr concat_list rvalue lvalue lvalue_concat_list +%type <ast> wire_type expr basic_expr concat_list rvalue lvalue lvalue_concat_list named_port %type <string> opt_label opt_sva_label tok_prim_wrapper hierarchical_id %type <boolean> opt_signed opt_property unique_case_attr %type <al> attr case_attr @@ -1557,6 +1557,15 @@ cell_port: astbuf2->children.push_back(node); delete $3; free_attr($1); + } | + attr '.' TOK_ID { + AstNode *node = new AstNode(AST_ARGUMENT); + node->str = *$3; + astbuf2->children.push_back(node); + node->children.push_back(new AstNode(AST_IDENTIFIER)); + node->children.back()->str = *$3; + delete $3; + free_attr($1); }; always_stmt: |