3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-26 10:35:38 +00:00

Fixed handling of boolean attributes (kernel)

This commit is contained in:
Clifford Wolf 2013-10-24 10:59:27 +02:00
parent 77726fb5fe
commit eae43e2db4
3 changed files with 22 additions and 10 deletions

View file

@ -179,7 +179,7 @@ attr_assign:
hierarchical_id {
if (attr_list.count(*$1) != 0)
delete attr_list[*$1];
attr_list[*$1] = AstNode::mkconst_int(0, false, 0);
attr_list[*$1] = AstNode::mkconst_int(1, false);
delete $1;
} |
hierarchical_id '=' expr {