Skip to content

Commit dfbb236

Browse files
committed
Add comments
1 parent 91d39f5 commit dfbb236

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vpr/src/route/rr_graph.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2962,7 +2962,11 @@ static int get_opin_direct_connections(RRGraphBuilder& rr_graph_builder,
29622962
}
29632963
}
29642964

2965+
//directs[i].sub_tile_offset is added to from_capacity(z) to get the
2966+
// target_capacity
29652967
int target_cap = z + directs[i].sub_tile_offset;
2968+
2969+
// Iterate over all sub_tiles to get the sub_tile which the target_cap belongs to.
29662970
const t_sub_tile* target_sub_tile = nullptr;
29672971
for (const auto& sub_tile : target_type->sub_tiles) {
29682972
if (sub_tile.capacity.is_in_range(target_cap)) {

0 commit comments

Comments
 (0)