mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-25 10:05:33 +00:00
Further improve cover() support
This commit is contained in:
parent
3928482a3c
commit
6abf79eb28
3 changed files with 16 additions and 8 deletions
|
@ -1003,6 +1003,12 @@ assert:
|
|||
TOK_COVER '(' expr ')' ';' {
|
||||
ast_stack.back()->children.push_back(new AstNode(AST_COVER, $3));
|
||||
} |
|
||||
TOK_COVER '(' ')' ';' {
|
||||
ast_stack.back()->children.push_back(new AstNode(AST_COVER, AstNode::mkconst_int(1, false)));
|
||||
} |
|
||||
TOK_COVER ';' {
|
||||
ast_stack.back()->children.push_back(new AstNode(AST_COVER, AstNode::mkconst_int(1, false)));
|
||||
} |
|
||||
TOK_RESTRICT '(' expr ')' ';' {
|
||||
if (norestrict_mode)
|
||||
delete $3;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue