mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-25 01:55:33 +00:00
write_verilog: emit initial $display
correctly.
This commit is contained in:
parent
0486f61a35
commit
1159e48721
3 changed files with 18 additions and 12 deletions
|
@ -718,7 +718,7 @@ struct AST_INTERNAL::ProcessGenerator
|
|||
}
|
||||
}
|
||||
cell->parameters[ID::TRG_WIDTH] = triggers.size();
|
||||
cell->parameters[ID::TRG_ENABLE] = !triggers.empty();
|
||||
cell->parameters[ID::TRG_ENABLE] = (always->type == AST_INITIAL) || !triggers.empty();
|
||||
cell->parameters[ID::TRG_POLARITY] = polarity;
|
||||
cell->parameters[ID::PRIORITY] = --last_print_priority;
|
||||
cell->setPort(ID::TRG, triggers);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue