Skip to content

Commit 736d826

Browse files
committed
[vpr][place][net_cost] call get_chanz_cost_factor instead of chanz_place_cost_fac_
1 parent af5659d commit 736d826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpr/src/place/net_cost_handler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ double NetCostHandler::get_net_cube_bb_cost_(ClusterNetId net_id, bool use_ts) {
15011501
ncost = (bb.xmax - bb.xmin + 1) * crossing * chanx_place_cost_fac_[bb.ymax][bb.ymin - 1];
15021502
ncost += (bb.ymax - bb.ymin + 1) * crossing * chany_place_cost_fac_[bb.xmax][bb.xmin - 1];
15031503
if (is_multi_layer) {
1504-
ncost += (bb.layer_max - bb.layer_min) * crossing * chanz_place_cost_fac_[bb.xmax][bb.ymax][bb.xmin][bb.ymin];
1504+
ncost += (bb.layer_max - bb.layer_min) * crossing * get_chanz_cost_factor(bb);
15051505
}
15061506

15071507
return ncost;

0 commit comments

Comments
 (0)