From 741e088e3ac29c8eb38beeb747120862f83b4f2f Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Thu, 14 Aug 2025 21:26:05 +0200 Subject: [PATCH] bufnorm: fix priority when connecting new driver to existing inout wire --- kernel/rtlil.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index 6a0f20002..a62607fb2 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -4269,8 +4269,9 @@ void RTLIL::Cell::setPort(const RTLIL::IdString& portname, RTLIL::SigSpec signal if (pd == PD_OUTPUT) { pair other_key(w->driverCell_, w->driverPort_); module->bufNormQueue.insert(other_key); + } else { + break; } - break; } w->driverCell_ = this; w->driverPort_ = portname;