3
0
Fork 0
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:
Clifford Wolf 2017-02-04 17:02:13 +01:00
parent 3928482a3c
commit 6abf79eb28
3 changed files with 16 additions and 8 deletions

View file

@ -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;