aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/router1.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/router1.cc b/common/router1.cc
index 03a06072..f5132941 100644
--- a/common/router1.cc
+++ b/common/router1.cc
@@ -422,7 +422,9 @@ struct Router
NPNR_ASSERT(ripup);
NPNR_ASSERT(conflicting_pip_net != net_name);
- ctx->unbindPip(pip);
+ if (ctx->getBoundPipNet(pip) == conflicting_pip_net)
+ ctx->unbindPip(pip);
+
if (!ctx->checkPipAvail(pip))
ripup_net(ctx, conflicting_pip_net);