rtlil_bufnorm: fix setup_driven_wires constant handling on unknown port direction

This commit is contained in:
Emil J. Tywoniak 2026-04-21 15:20:26 +02:00
parent a52b8d2f91
commit 54ef1275bd
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
}