3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-04-15 00:35:12 +00:00

ff: fixup initvals with signorm direct drive wire if it's created, not old driven wire

This commit is contained in:
Emil J. Tywoniak 2026-03-09 23:38:10 +01:00
parent 25edde1c3c
commit 58ba984498

View file

@ -564,8 +564,6 @@ Cell *FfData::emit() {
return nullptr;
}
}
if (initvals && !is_anyinit)
initvals->set_init(sig_q, val_init);
if (!is_fine) {
if (has_gclk) {
log_assert(!has_clk);
@ -676,6 +674,8 @@ Cell *FfData::emit() {
}
}
cell->attributes = attributes;
if (initvals && !is_anyinit)
initvals->set_init(cell->getPort(ID::Q), val_init);
return cell;
}