Skip to content

Commit b11be13

Browse files
doxygen comment for alloc_and_load_rr_node_indices
1 parent d453bce commit b11be13

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

vpr/src/route/rr_graph2.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,17 +1439,13 @@ static void add_classes_spatial_lookup(RRGraphBuilder& rr_graph_builder,
14391439
}
14401440
}
14411441

1442-
/* As the rr_indices builders modify a local copy of indices, use the local copy in the builder */
14431442
void alloc_and_load_rr_node_indices(RRGraphBuilder& rr_graph_builder,
14441443
const t_chan_width& nodes_per_chan,
14451444
const DeviceGrid& grid,
14461445
int* index,
14471446
const t_chan_details& chan_details_x,
14481447
const t_chan_details& chan_details_y,
14491448
bool is_flat) {
1450-
/* Allocates and loads all the structures needed for fast lookups of the
1451-
* index of an rr_node. rr_node_indices is a matrix containing the index
1452-
* of the *first* rr_node at a given (i,j) location. */
14531449

14541450
/* Alloc the lookup table */
14551451
for (e_rr_type rr_type : RR_TYPES) {

vpr/src/route/rr_graph2.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414

1515
/******************* Subroutines exported by rr_graph2.c *********************/
1616

17+
/**
18+
* @brief Allocates and populates data structures for efficient rr_node index lookups.
19+
*
20+
* This function sets up the `rr_node_indices` structure, which maps a physical location
21+
* and type to the index of the first corresponding rr_node.
22+
*/
1723
void alloc_and_load_rr_node_indices(RRGraphBuilder& rr_graph_builder,
1824
const t_chan_width& nodes_per_chan,
1925
const DeviceGrid& grid,
@@ -22,6 +28,7 @@ void alloc_and_load_rr_node_indices(RRGraphBuilder& rr_graph_builder,
2228
const t_chan_details& chan_details_y,
2329
bool is_flat);
2430

31+
2532
/**
2633
* @brief allocates extra nodes within the RR graph to support 3D custom switch blocks for multi-die FPGAs
2734
*

0 commit comments

Comments
 (0)