debug print if route found with wrong polarity

This commit is contained in:
Lofty 2025-01-13 16:20:06 +00:00
parent fdb2dd4c42
commit 7d84aefb7f

View File

@ -734,6 +734,9 @@ struct Router2
midpoint_inversion = curr.inverted;
break;
}
if (was_visited_bwd(curr.wire, std::numeric_limits<float>::max(), !curr.inverted)) {
ROUTE_LOG_DBG("fwd: met bwd with wrong polarity\n");
}
auto &curr_data = flat_wires.at(curr.wire);
for (PipId dh : ctx->getPipsDownhill(curr_data.w)) {
// Skip pips outside of box in bounding-box mode
@ -781,6 +784,9 @@ struct Router2
midpoint_inversion = curr.inverted;
break;
}
if (was_visited_fwd(curr.wire, std::numeric_limits<float>::max(), !curr.inverted)) {
ROUTE_LOG_DBG("bwd: met fwd with wrong polarity\n");
}
// Don't allow the same wire to be bound to the same net with a different driving pip
PipId bound_pip;
auto fnd_wire = nd.wires.find(curr_data.w);