mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-07 06:33:24 +00:00
verilog: attributes before task enable (but 13 s/r conflicts)
This commit is contained in:
parent
e7fd8912f0
commit
7101ef550b
1 changed files with 8 additions and 10 deletions
|
@ -2217,23 +2217,23 @@ behavioral_stmt:
|
||||||
defattr | assert | wire_decl | param_decl | localparam_decl | typedef_decl |
|
defattr | assert | wire_decl | param_decl | localparam_decl | typedef_decl |
|
||||||
non_opt_delay behavioral_stmt |
|
non_opt_delay behavioral_stmt |
|
||||||
simple_behavioral_stmt ';' | ';' |
|
simple_behavioral_stmt ';' | ';' |
|
||||||
hierarchical_id attr {
|
attr hierarchical_id {
|
||||||
AstNode *node = new AstNode(AST_TCALL);
|
AstNode *node = new AstNode(AST_TCALL);
|
||||||
node->str = *$1;
|
node->str = *$2;
|
||||||
delete $1;
|
delete $2;
|
||||||
ast_stack.back()->children.push_back(node);
|
ast_stack.back()->children.push_back(node);
|
||||||
ast_stack.push_back(node);
|
ast_stack.push_back(node);
|
||||||
append_attr(node, $2);
|
append_attr(node, $1);
|
||||||
} opt_arg_list ';'{
|
} opt_arg_list ';'{
|
||||||
ast_stack.pop_back();
|
ast_stack.pop_back();
|
||||||
} |
|
} |
|
||||||
TOK_MSG_TASKS attr {
|
attr TOK_MSG_TASKS {
|
||||||
AstNode *node = new AstNode(AST_TCALL);
|
AstNode *node = new AstNode(AST_TCALL);
|
||||||
node->str = *$1;
|
node->str = *$2;
|
||||||
delete $1;
|
delete $2;
|
||||||
ast_stack.back()->children.push_back(node);
|
ast_stack.back()->children.push_back(node);
|
||||||
ast_stack.push_back(node);
|
ast_stack.push_back(node);
|
||||||
append_attr(node, $2);
|
append_attr(node, $1);
|
||||||
} opt_arg_list ';'{
|
} opt_arg_list ';'{
|
||||||
ast_stack.pop_back();
|
ast_stack.pop_back();
|
||||||
} |
|
} |
|
||||||
|
@ -2330,8 +2330,6 @@ behavioral_stmt:
|
||||||
ast_stack.pop_back();
|
ast_stack.pop_back();
|
||||||
};
|
};
|
||||||
|
|
||||||
;
|
|
||||||
|
|
||||||
unique_case_attr:
|
unique_case_attr:
|
||||||
/* empty */ {
|
/* empty */ {
|
||||||
$$ = false;
|
$$ = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue