From 5de8452b570fe1423530459305811435a2947beb Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Tue, 21 Apr 2026 15:20:26 +0200 Subject: [PATCH] rtlil_bufnorm: fix setup_driven_wires constant handling on unknown port direction --- kernel/rtlil_bufnorm.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/rtlil_bufnorm.cc b/kernel/rtlil_bufnorm.cc index c02f0c365..8b3c59942 100644 --- a/kernel/rtlil_bufnorm.cc +++ b/kernel/rtlil_bufnorm.cc @@ -135,7 +135,8 @@ struct RTLIL::SigNormIndex wire->driverPort_ = port; xlog("therefore connect port %s %s %s\n", port, log_signal(sig), wire->name); - module->connect(sig, wire); + // This orientation bias is potentially dangerous elsewhere + module->connect(wire, sig); sig = wire; } }