We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d439ff8 commit 7ffc4a2Copy full SHA for 7ffc4a2
vpr/src/place/place.cpp
@@ -4161,8 +4161,11 @@ static void alloc_and_load_for_fast_vertical_cost_update (float place_cost_exp)
4161
}
4162
4163
4164
+ int num_seen_tiles = (x_high - x_low + 1) * (y_high - y_low + 1);
4165
+ float avg_num_seen_inter_die_conn = static_cast<float>(num_inter_die_conn) / num_seen_tiles;
4166
chanz_place_cost_fac[layer_high_num][x_high][y_high][layer_low_num][x_low][y_low] =
- (avg_num_inter_die_conn_per_tile / num_inter_die_conn);
4167
+ (layer_high_num - layer_low_num + 1)
4168
+ / (avg_num_seen_inter_die_conn);
4169
4170
chanz_place_cost_fac[layer_high_num][x_high][y_high][layer_low_num][x_low][y_low] = pow(
4171
(double)chanz_place_cost_fac[layer_high_num][x_high][y_high][layer_low_num][x_low][y_low],
0 commit comments