router2: Fix ripup of constant nets

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2026-08-01 15:43:10 +02:00
parent 68c1acd80a
commit 90b9be4859
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ struct Router2
WireId src = nets.at(net->udata).src_wire;
WireId cursor = ad.sink_wire;
while (cursor != src &&
(net->constant_value == IdString() || ctx->getWireConstantValue(cursor) == net->constant_value)) {
(net->constant_value == IdString() || ctx->getWireConstantValue(cursor) != net->constant_value)) {
PipId pip = nd.wires.at(cursor).first;
unbind_pip_internal(nd, user, cursor);
cursor = ctx->getPipSrcWire(pip);