Skip to content

Commit 4ef2932

Browse files
committed
add comment on get_tile_src_opin_max_ptc_from_rr_graph
1 parent b8b3995 commit 4ef2932

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vpr/src/route/router_lookahead_map_utils.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ static void dijkstra_flood_to_wires(int itile, RRNodeId inode, util::t_src_opin_
2121

2222
static void dijkstra_flood_to_ipins(RRNodeId node, util::t_chan_ipins_delays& chan_ipins_delays);
2323

24+
/**
25+
* @brief Return the maximum ptc number of the SOURCE/OPINs of a tile type
26+
* @param itile
27+
* @return
28+
*/
2429
static int get_tile_src_opin_max_ptc_from_rr_graph(int itile);
2530

2631
static t_physical_tile_loc pick_sample_tile(int layer_num, t_physical_tile_type_ptr tile_type, t_physical_tile_loc prev);
@@ -717,6 +722,7 @@ static int get_tile_src_opin_max_ptc_from_rr_graph(int itile) {
717722
const int num_layers = device_ctx.grid.get_num_layers();
718723
int max_ptc = OPEN;
719724

725+
// Find a layer that has instances of the tile type
720726
int tile_layer_num = OPEN;
721727
for (int layer_num = 0; layer_num < num_layers; layer_num++) {
722728
if (device_ctx.grid.num_instances(&physical_tile, layer_num) > 0) {

0 commit comments

Comments
 (0)