From f82e133c7c93b4589b2149631e6b72185148ada9 Mon Sep 17 00:00:00 2001 From: David Shah Date: Thu, 16 Jan 2020 11:35:24 +0000 Subject: router2: Fix case of undriven unsunk arcs Signed-off-by: David Shah --- common/router2.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/router2.cc b/common/router2.cc index 480b7a09..3dad4583 100644 --- a/common/router2.cc +++ b/common/router2.cc @@ -141,6 +141,8 @@ struct Router2 nets.at(i).src_wire = src_wire; if (ni->driver.cell == nullptr) src_wire = dst_wire; + if (ni->driver.cell == nullptr && dst_wire == WireId()) + continue; if (src_wire == WireId()) log_error("No wire found for port %s on source cell %s.\n", ctx->nameOf(ni->driver.port), ctx->nameOf(ni->driver.cell)); -- cgit v1.2.3