File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -256,21 +256,18 @@ static float get_delay_normalization_fac() {
256
256
auto & device_ctx = g_vpr_ctx.device ();
257
257
auto & rr_indexed_data = device_ctx.rr_indexed_data ;
258
258
259
- std::vector<float > Tdel_vector (0.0 );
259
+ float Tdel_sum = 0.0 ;
260
+ int Tdel_num = 0 ;
260
261
for (size_t cost_index = CHANX_COST_INDEX_START; cost_index < rr_indexed_data.size (); cost_index++) {
261
262
float T_value = rr_indexed_data[cost_index].T_linear + rr_indexed_data[cost_index].T_quadratic ;
262
263
263
- if (rr_indexed_data[cost_index]. number_of_nodes == 0 || T_value == 0.0 ) continue ;
264
+ if (T_value == 0.0 ) continue ;
264
265
265
- Tdel_vector.push_back (T_value * 1e10 );
266
+ Tdel_sum += T_value;
267
+ Tdel_num += 1 ;
266
268
}
267
269
268
- double mult = 1 .0f ;
269
- for (auto Tdel : Tdel_vector) {
270
- mult *= Tdel;
271
- }
272
-
273
- return std::pow (mult, 1.0 / Tdel_vector.size ()) / 1e10 ;
270
+ return Tdel_sum / Tdel_num;
274
271
}
275
272
276
273
static void load_rr_indexed_data_T_values () {
@@ -362,8 +359,6 @@ static void load_rr_indexed_data_T_values() {
362
359
rr_indexed_data[cost_index].T_quadratic = 0.0 ;
363
360
rr_indexed_data[cost_index].C_load = 0.0 ;
364
361
} else {
365
- rr_indexed_data[cost_index].number_of_nodes = num_nodes_of_index[cost_index];
366
-
367
362
float Rnode = R_total[cost_index] / num_nodes_of_index[cost_index];
368
363
float Cnode = C_total[cost_index] / num_nodes_of_index[cost_index];
369
364
float Rsw = (float )switch_R_total[cost_index] / num_nodes_of_index[cost_index];
Original file line number Diff line number Diff line change @@ -185,7 +185,6 @@ struct t_rr_indexed_data {
185
185
float T_linear = std::numeric_limits<float >::quiet_NaN();
186
186
float T_quadratic = std::numeric_limits<float >::quiet_NaN();
187
187
float C_load = std::numeric_limits<float >::quiet_NaN();
188
- int number_of_nodes = 0 ;
189
188
};
190
189
191
190
#include " rr_node_impl.h"
You can’t perform that action at this time.
0 commit comments