Skip to content

Commit a3d9784

Browse files
committed
[vpr][route] add comment for routing struggle metric
1 parent aba6197 commit a3d9784

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vpr/src/route/route.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,11 @@ bool route(const Netlist<>& net_list,
595595
}
596596
}
597597

598+
// Calculates the routing struggle ratio.
599+
// This ratio is defined as the number of iterations with high heap ops
600+
// (i.e., iterations having more heap operations than the maximum of the previous three iterations
601+
// divided by the total number of iterations.
602+
// For more details, see TODO: routing struggle paper is not published yet.
598603
float routing_struggle_ratio = 0.0;
599604
if (per_iter_heap_ops_count.size() > 4) {
600605
routing_struggle_ratio = static_cast<float>(num_high_heap_ops_iters) / static_cast<float>(per_iter_heap_ops_count.size() - 3);

0 commit comments

Comments
 (0)