From 9eb4943bd500dc32bbfa16a7cab018e01f5fb22b Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 13 Jun 2018 17:26:03 +0200 Subject: Fix router error handling for unplaced cells Signed-off-by: Clifford Wolf --- common/route.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/route.cc b/common/route.cc index 4af5f60f..e9fe2204 100644 --- a/common/route.cc +++ b/common/route.cc @@ -66,14 +66,17 @@ void route_design(Design *design, bool verbose) net_info->driver.port.c_str()); auto src_bel = net_info->driver.cell->bel; - auto src_pos = chip.getBelPosition(src_bel); if (src_bel == BelId()) - log_error("Source cell is not mapped to a bel.\n"); + log_error("Source cell %s (%s) is not mapped to a bel.\n", + net_info->driver.cell->name.c_str(), + net_info->driver.cell->type.c_str()); if (verbose) log(" Source bel: %s\n", chip.getBelName(src_bel).c_str()); + auto src_pos = chip.getBelPosition(src_bel); + auto src_wire = chip.getWireBelPin( src_bel, portPinFromId(net_info->driver.port)); -- cgit v1.2.3