Improve router error messages

Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
Clifford Wolf 2018-06-13 18:10:09 +02:00
parent 794fc6df60
commit 3d5954f997

View File

@ -86,8 +86,11 @@ void route_design(Design *design, bool verbose)
auto src_wire = chip.getWireBelPin(src_bel, portPinFromId(driver_port)); auto src_wire = chip.getWireBelPin(src_bel, portPinFromId(driver_port));
if (src_wire == WireId()) if (src_wire == WireId())
log_error("No wire found for port %s on source bel.\n", log_error("No wire found for port %s (pin %s) on source cell %s "
net_info->driver.port.c_str()); "(bel %s).\n",
net_info->driver.port.c_str(), driver_port.c_str(),
net_info->driver.cell->name.c_str(),
chip.getBelName(src_bel).c_str());
if (verbose) if (verbose)
log(" Source wire: %s\n", chip.getWireName(src_wire).c_str()); log(" Source wire: %s\n", chip.getWireName(src_wire).c_str());
@ -106,7 +109,9 @@ void route_design(Design *design, bool verbose)
auto dst_pos = chip.getBelPosition(dst_bel); auto dst_pos = chip.getBelPosition(dst_bel);
if (dst_bel == BelId()) if (dst_bel == BelId())
log_error("Destination cell is not mapped to a bel.\n"); log_error("Destination cell %s (%s) is not mapped to a bel.\n",
user_it.cell->name.c_str(),
user_it.cell->type.c_str());
if (verbose) { if (verbose) {
log(" Destination bel: %s\n", log(" Destination bel: %s\n",
@ -126,8 +131,11 @@ void route_design(Design *design, bool verbose)
chip.getWireBelPin(dst_bel, portPinFromId(user_port)); chip.getWireBelPin(dst_bel, portPinFromId(user_port));
if (dst_wire == WireId()) if (dst_wire == WireId())
log_error("No wire found for port %s on destination bel.\n", log_error("No wire found for port %s (pin %s) on destination "
user_it.port.c_str()); "cell %s (bel %s).\n",
user_it.port.c_str(), user_port.c_str(),
user_it.cell->name.c_str(),
chip.getBelName(dst_bel).c_str());
if (verbose) if (verbose)
log(" Destination wire: %s\n", log(" Destination wire: %s\n",