nexus: Disconnect CCU2 CIN when it's a don't care

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2026-08-11 13:43:31 +02:00
parent 62e659ed67
commit a435792828
1 changed files with 6 additions and 0 deletions

View File

@ -1602,6 +1602,12 @@ struct NexusPacker
CellInfo *ci = cell.second.get();
if (ci->type != id_CCU2)
continue;
// For CCU2s with LUT value 0xFFFF, CIN is a don't-care
// disconnect it so it doesn't cause an error below or during chaining
if (str_or_default(ci->params, id_INIT0, "") == "0xFFFF")
ci->disconnectPort(id_CIN);
NetInfo *cin = ci->getPort(id_CIN);
if (cin) {
if (cin->driver.cell && cin->driver.cell->type != id_CCU2) {