From 90b9be48590762c8a1dfff1fab79351c71920af7 Mon Sep 17 00:00:00 2001 From: gatecat Date: Sat, 1 Aug 2026 15:43:10 +0200 Subject: [PATCH] router2: Fix ripup of constant nets Signed-off-by: gatecat --- common/route/router2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/route/router2.cc b/common/route/router2.cc index e3e3bb8b..ae73efa9 100644 --- a/common/route/router2.cc +++ b/common/route/router2.cc @@ -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);