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