aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/route.cc7
1 files 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));