From 8aaf8456708a1d508b607f3fe1f06953ab14911b Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 4 Aug 2018 17:23:46 +0200 Subject: [PATCH] Quick fix for router bug in unrouting a conflicting pip Signed-off-by: Clifford Wolf --- common/router1.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);