From 58ba984498436ff9b41cc459ac29842fb53f5179 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Mon, 9 Mar 2026 23:38:10 +0100 Subject: [PATCH] ff: fixup initvals with signorm direct drive wire if it's created, not old driven wire --- kernel/ff.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/ff.cc b/kernel/ff.cc index a72e6a65c..c2a1bc6c7 100644 --- a/kernel/ff.cc +++ b/kernel/ff.cc @@ -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; }