router2: Fix case of undriven unsunk arcs

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2020-01-16 11:35:24 +00:00
parent d2c77fd9ae
commit f82e133c7c

View File

@ -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));