Add total visit counts to router log output
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
2c98231f88
commit
9b98a7175b
@ -408,6 +408,7 @@ NEXTPNR_NAMESPACE_BEGIN
|
|||||||
bool route_design(Context *ctx)
|
bool route_design(Context *ctx)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
int totalVisitCnt = 0, totalRevisitCnt = 0, totalOvertimeRevisitCnt = 0;
|
||||||
delay_t ripup_penalty = ctx->getRipupDelayPenalty();
|
delay_t ripup_penalty = ctx->getRipupDelayPenalty();
|
||||||
RipupScoreboard scores;
|
RipupScoreboard scores;
|
||||||
|
|
||||||
@ -637,12 +638,22 @@ bool route_design(Context *ctx)
|
|||||||
"nets with ripup.\n",
|
"nets with ripup.\n",
|
||||||
iterCnt, normalRouteCnt, int(ripupQueue.size()));
|
iterCnt, normalRouteCnt, int(ripupQueue.size()));
|
||||||
|
|
||||||
|
totalVisitCnt += visitCnt;
|
||||||
|
totalRevisitCnt += revisitCnt;
|
||||||
|
totalOvertimeRevisitCnt += overtimeRevisitCnt;
|
||||||
|
|
||||||
if (iterCnt == 8 || iterCnt == 16 || iterCnt == 32 ||
|
if (iterCnt == 8 || iterCnt == 16 || iterCnt == 32 ||
|
||||||
iterCnt == 64 || iterCnt == 128)
|
iterCnt == 64 || iterCnt == 128)
|
||||||
ripup_penalty += ctx->getRipupDelayPenalty();
|
ripup_penalty += ctx->getRipupDelayPenalty();
|
||||||
}
|
}
|
||||||
|
|
||||||
log_info("routing complete after %d iterations.\n", iterCnt);
|
log_info("routing complete after %d iterations.\n", iterCnt);
|
||||||
|
|
||||||
|
log_info("visited %d PIPs (%.2f%% revisits, %.2f%% "
|
||||||
|
"overtime revisits).\n",
|
||||||
|
totalVisitCnt, (100.0 * totalRevisitCnt) / totalVisitCnt,
|
||||||
|
(100.0 * totalOvertimeRevisitCnt) / totalVisitCnt);
|
||||||
|
|
||||||
log_info("Checksum: 0x%08x\n", ctx->checksum());
|
log_info("Checksum: 0x%08x\n", ctx->checksum());
|
||||||
return true;
|
return true;
|
||||||
} catch (log_execution_error_exception) {
|
} catch (log_execution_error_exception) {
|
||||||
|
Loading…
Reference in New Issue
Block a user