Skip to content

Commit 66f9a1a

Browse files
committed
vpr: router_lookahead_map: comment the overall strategy on min_opin_distance_cost_map
1 parent 3d80a84 commit 66f9a1a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

vpr/src/route/router_lookahead_map.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,13 @@ static void min_chann_global_cost_map(vtr::NdMatrix<util::Cost_Entry, 4>& distan
813813
}
814814

815815
static void min_opin_distance_cost_map(const util::t_src_opin_delays& src_opin_delays, vtr::NdMatrix<util::Cost_Entry, 5>& distance_min_cost) {
816+
/**
817+
* This function calculates and stores the minimum cost to reach a point on layer `n_sink`, which is `dx` and `dy` further from the current point
818+
* on layer `n_source` and is located on physical tile type `t`. To compute this cost, the function iterates over all output pins of tile `t`,
819+
* and for each pin, iterates over all segment types accessible by it. It then determines and stores the minimum cost to the destination point.
820+
* "src_opin_delays" stores the routing segments accessible by each OPIN of each physical type on each layer. After getting the accessible segment types,
821+
* "get_wire_cost_entry" is called to get the cost from that segment type to the destination point.
822+
*/
816823
int num_tile_types = g_vpr_ctx.device().physical_tile_types.size();
817824
int num_layers = g_vpr_ctx.device().grid.get_num_layers();
818825
int width = (int)g_vpr_ctx.device().grid.width();

0 commit comments

Comments
 (0)