File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1626,13 +1626,13 @@ void NetCostHandler::recompute_costs_from_scratch(const PlaceDelayModel* delay_m
1626
1626
}
1627
1627
1628
1628
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 ;
1631
1631
1632
1632
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]);
1636
1636
}
1637
1637
}
1638
1638
You can’t perform that action at this time.
0 commit comments