router2: Fix ripup of constant nets

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2026-04-21 13:59:47 +02:00
parent ce08c3053c
commit 98c18d7f14
1 changed files with 2 additions and 1 deletions

View File

@ -527,7 +527,8 @@ struct Router2
}
cursor = ctx->getPipSrcWire(uh);
}
return (cursor == src_wire);
return (cursor == src_wire) ||
(net->constant_value != IdString() && ctx->getWireConstantValue(cursor) == net->constant_value);
}
void record_prerouted_net(NetInfo *net, store_index<PortRef> usr, size_t phys_pin)