Skip to content

Commit 080e533

Browse files
committed
[vpr][place] apply comments
1 parent b5255b4 commit 080e533

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

vpr/src/place/net_cost_handler.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,13 +1626,13 @@ void NetCostHandler::recompute_costs_from_scratch(const PlaceDelayModel* delay_m
16261626
}
16271627

16281628
double NetCostHandler::get_total_wirelength_estimate() const {
1629-
const auto& cluster_ctx = g_vpr_ctx.clustering();
1630-
const auto& place_move_ctx = placer_state_.move();
1629+
const auto& clb_nlist = g_vpr_ctx.clustering().clb_nlist;
1630+
const auto& bb_coords = placer_state_.move().bb_coords;
16311631

16321632
double estimated_wirelength = 0.0;
1633-
for (ClusterNetId net_id : cluster_ctx.clb_nlist.nets()) { /* for each net ... */
1634-
if (!cluster_ctx.clb_nlist.net_is_ignored(net_id)) { /* Do only if not ignored. */
1635-
estimated_wirelength += get_net_wirelength_estimate(net_id, place_move_ctx.bb_coords[net_id]);
1633+
for (ClusterNetId net_id : clb_nlist.nets()) { /* for each net ... */
1634+
if (!clb_nlist.net_is_ignored(net_id)) { /* Do only if not ignored. */
1635+
estimated_wirelength += get_net_wirelength_estimate(net_id, bb_coords[net_id]);
16361636
}
16371637
}
16381638

0 commit comments

Comments
 (0)