Skip to content

Commit 4debcf6

Browse files
committed
rr_graph: add comment on indexed data generation
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 40f8a4e commit 4debcf6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

vpr/src/route/rr_graph_indexed_data.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,13 @@ static void load_rr_indexed_data_T_values() {
321321
std::vector<std::vector<float>> switch_Cinternal_total(rr_indexed_data.size());
322322
std::vector<short> switches_buffered(rr_indexed_data.size(), UNDEFINED);
323323

324-
/* Get average C and R values for all the segments of this type in one *
325-
* channel segment, near the middle of the fpga. */
326-
324+
/*
325+
* Walk through the RR graph and collect all R and C values of all the nodes,
326+
* as well as their fan-in switches R, T_del, and Cinternal values.
327+
*
328+
* The median of R and C values for each cost index is assigned to the indexed
329+
* data.
330+
*/
327331
for (size_t inode = 0; inode < rr_nodes.size(); inode++) {
328332
t_rr_type rr_type = rr_nodes[inode].type();
329333

0 commit comments

Comments
 (0)