Fix router error handling for unplaced cells

Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
Clifford Wolf 2018-06-13 17:26:03 +02:00
parent 33863fee2d
commit 9eb4943bd5

View File

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