From 98c18d7f14434f0a72f982631da5124e3b3a2e83 Mon Sep 17 00:00:00 2001 From: gatecat Date: Tue, 21 Apr 2026 13:59:47 +0200 Subject: [PATCH] router2: Fix ripup of constant nets Signed-off-by: gatecat --- common/route/router2.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/route/router2.cc b/common/route/router2.cc index 5650549f..e3e3bb8b 100644 --- a/common/route/router2.cc +++ b/common/route/router2.cc @@ -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 usr, size_t phys_pin)