mirror of https://github.com/YosysHQ/yosys.git
Fix handling of Verilog ~& and ~| operators
This commit is contained in:
parent
0290b68a44
commit
129984e115
|
@ -1537,10 +1537,18 @@ basic_expr:
|
|||
$$ = new AstNode(AST_BIT_AND, $1, $4);
|
||||
append_attr($$, $3);
|
||||
} |
|
||||
basic_expr OP_NAND attr basic_expr {
|
||||
$$ = new AstNode(AST_BIT_NOT, new AstNode(AST_BIT_AND, $1, $4));
|
||||
append_attr($$, $3);
|
||||
} |
|
||||
basic_expr '|' attr basic_expr {
|
||||
$$ = new AstNode(AST_BIT_OR, $1, $4);
|
||||
append_attr($$, $3);
|
||||
} |
|
||||
basic_expr OP_NOR attr basic_expr {
|
||||
$$ = new AstNode(AST_BIT_NOT, new AstNode(AST_BIT_OR, $1, $4));
|
||||
append_attr($$, $3);
|
||||
} |
|
||||
basic_expr '^' attr basic_expr {
|
||||
$$ = new AstNode(AST_BIT_XOR, $1, $4);
|
||||
append_attr($$, $3);
|
||||
|
|
Loading…
Reference in New Issue