diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-05-14 16:10:11 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2020-05-14 16:10:11 -0700 |
commit | 7101ef550ba4b215d41fc82e52e3aa714afcbdbe (patch) | |
tree | 8b944106d4f9f69929fddd053f9535f1efe7ec2e /frontends/verilog | |
parent | e7fd8912f041462bf044b6c93aa4b4db786d01c7 (diff) | |
download | yosys-7101ef550ba4b215d41fc82e52e3aa714afcbdbe.tar.gz yosys-7101ef550ba4b215d41fc82e52e3aa714afcbdbe.tar.bz2 yosys-7101ef550ba4b215d41fc82e52e3aa714afcbdbe.zip |
verilog: attributes before task enable (but 13 s/r conflicts)
Diffstat (limited to 'frontends/verilog')
-rw-r--r-- | frontends/verilog/verilog_parser.y | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/frontends/verilog/verilog_parser.y b/frontends/verilog/verilog_parser.y index db9a130cf..fd4ff68a9 100644 --- a/frontends/verilog/verilog_parser.y +++ b/frontends/verilog/verilog_parser.y @@ -2217,23 +2217,23 @@ behavioral_stmt: defattr | assert | wire_decl | param_decl | localparam_decl | typedef_decl | non_opt_delay behavioral_stmt | simple_behavioral_stmt ';' | ';' | - hierarchical_id attr { + attr hierarchical_id { AstNode *node = new AstNode(AST_TCALL); - node->str = *$1; - delete $1; + node->str = *$2; + delete $2; ast_stack.back()->children.push_back(node); ast_stack.push_back(node); - append_attr(node, $2); + append_attr(node, $1); } opt_arg_list ';'{ ast_stack.pop_back(); } | - TOK_MSG_TASKS attr { + attr TOK_MSG_TASKS { AstNode *node = new AstNode(AST_TCALL); - node->str = *$1; - delete $1; + node->str = *$2; + delete $2; ast_stack.back()->children.push_back(node); ast_stack.push_back(node); - append_attr(node, $2); + append_attr(node, $1); } opt_arg_list ';'{ ast_stack.pop_back(); } | @@ -2330,8 +2330,6 @@ behavioral_stmt: ast_stack.pop_back(); }; - ; - unique_case_attr: /* empty */ { $$ = false; |