mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-17 15:39:28 +00:00
Support positional assignment patterns for unpacked arrays
This commit is contained in:
parent
2dc69a7578
commit
390f09b89a
7 changed files with 286 additions and 32 deletions
|
|
@ -100,6 +100,7 @@ std::string AST::type2str(AstNodeType type)
|
|||
X(AST_CAST_SIZE)
|
||||
X(AST_CONCAT)
|
||||
X(AST_REPLICATE)
|
||||
X(AST_ASSIGN_PATTERN)
|
||||
X(AST_BIT_NOT)
|
||||
X(AST_BIT_AND)
|
||||
X(AST_BIT_OR)
|
||||
|
|
@ -696,6 +697,16 @@ void AstNode::dumpVlog(FILE *f, std::string indent) const
|
|||
fprintf(f, "}}");
|
||||
break;
|
||||
|
||||
case AST_ASSIGN_PATTERN:
|
||||
fprintf(f, "'{");
|
||||
for (int i = 0; i < GetSize(children); i++) {
|
||||
if (i != 0)
|
||||
fprintf(f, ", ");
|
||||
children[i]->dumpVlog(f, "");
|
||||
}
|
||||
fprintf(f, "}");
|
||||
break;
|
||||
|
||||
if (0) { case AST_BIT_NOT: txt = "~"; }
|
||||
if (0) { case AST_REDUCE_AND: txt = "&"; }
|
||||
if (0) { case AST_REDUCE_OR: txt = "|"; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue