File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -260,15 +260,14 @@ static std::vector<size_t> count_rr_segment_types() {
260
260
static float get_delay_normalization_fac () {
261
261
/* Returns the average delay to go 1 CLB distance along a wire. */
262
262
263
- const int clb_dist = 3 ; /* Number of CLBs I think the average conn. goes. */
264
263
auto & device_ctx = g_vpr_ctx.device ();
265
264
auto & rr_indexed_data = device_ctx.rr_indexed_data ;
266
265
267
266
float Tdel_sum = 0.0 ;
268
267
int Tdel_num = 0 ;
269
268
for (size_t cost_index = CHANX_COST_INDEX_START; cost_index < rr_indexed_data.size (); cost_index++) {
270
- float frac_num_seg = device_ctx.rr_indexed_data [cost_index].inv_length * clb_dist ;
271
- float T_value = rr_indexed_data[cost_index].T_linear * frac_num_seg + rr_indexed_data[cost_index].T_quadratic * std::pow (frac_num_seg , 2 );
269
+ float inv_length = device_ctx.rr_indexed_data [cost_index].inv_length ;
270
+ float T_value = rr_indexed_data[cost_index].T_linear * inv_length + rr_indexed_data[cost_index].T_quadratic * std::pow (inv_length , 2 );
272
271
273
272
if (T_value == 0.0 ) continue ;
274
273
You can’t perform that action at this time.
0 commit comments