mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-29 23:43:16 +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
|
@ -310,6 +310,7 @@ struct AST_INTERNAL::ProcessGenerator
|
|||
|
||||
case AST_COND:
|
||||
case AST_ALWAYS:
|
||||
case AST_INITIAL:
|
||||
for (auto child : ast->children)
|
||||
if (child->type == AST_BLOCK)
|
||||
collect_lvalues(reg, child, type_eq, type_le, false);
|
||||
|
@ -1013,7 +1014,8 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint)
|
|||
break;
|
||||
|
||||
// use ProcessGenerator for always blocks
|
||||
case AST_ALWAYS: {
|
||||
case AST_ALWAYS:
|
||||
case AST_INITIAL: {
|
||||
AstNode *always = this->clone();
|
||||
ProcessGenerator generator(always);
|
||||
delete always;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue