Skip to content

Commit 3d89417

Browse files
remove distance factor when computing congestion cost for each net
1 parent ef70be3 commit 3d89417

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vpr/src/place/net_cost_handler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,8 @@ double NetCostHandler::get_net_cube_cong_cost_(ClusterNetId net_id, bool use_ts)
14351435
float x_chan_cong = (x_chan_util < threshold) ? 0.0f : x_chan_util - threshold;
14361436
float y_chan_cong = (y_chan_util < threshold) ? 0.0f : y_chan_util - threshold;
14371437

1438-
return (distance_x * x_chan_cong) + (distance_y * y_chan_cong);
1438+
// return (distance_x * x_chan_cong) + (distance_y * y_chan_cong);
1439+
return x_chan_cong + y_chan_cong;
14391440
}
14401441

14411442
double NetCostHandler::get_net_per_layer_bb_cost_(ClusterNetId net_id, bool use_ts) {

0 commit comments

Comments
 (0)