mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
Added AST_INITIAL (before verilog "initial" was mapped to AST_ALWAYS)
This commit is contained in:
parent
5640b7d607
commit
161565be10
5 changed files with 15 additions and 3 deletions
|
@ -122,6 +122,7 @@ std::string AST::type2str(AstNodeType type)
|
|||
X(AST_CELL)
|
||||
X(AST_PRIMITIVE)
|
||||
X(AST_ALWAYS)
|
||||
X(AST_INITIAL)
|
||||
X(AST_BLOCK)
|
||||
X(AST_ASSIGN_EQ)
|
||||
X(AST_ASSIGN_LE)
|
||||
|
@ -417,6 +418,14 @@ void AstNode::dumpVlog(FILE *f, std::string indent)
|
|||
}
|
||||
break;
|
||||
|
||||
case AST_INITIAL:
|
||||
fprintf(f, "%s" "initial\n", indent.c_str());
|
||||
for (auto child : children) {
|
||||
if (child->type != AST_POSEDGE && child->type != AST_NEGEDGE && child->type != AST_EDGE)
|
||||
child->dumpVlog(f, indent + " ");
|
||||
}
|
||||
break;
|
||||
|
||||
case AST_POSEDGE:
|
||||
case AST_NEGEDGE:
|
||||
case AST_EDGE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue