Skip to content

Commit a0e4de9

Browse files
committed
fix a typo
1 parent a94742a commit a0e4de9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libs/librrgraph/src/utils/alloc_and_load_rr_indexed_data.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,8 @@ static void load_rr_indexed_data_T_values(const RRGraphView& rr_graph,
546546
if (rr_type == e_rr_type::IPIN) {
547547
for (const RREdgeId edge : fan_in_list[rr_id]) {
548548
RRSwitchId rr_switch_id = RRSwitchId(rr_graph.edge_switch(edge));
549-
ipin_switch_T_total += rr_graph.rr_switch_inf(rr_switch_id).Tdel;
549+
float switch_T_del = rr_graph.rr_switch_inf(rr_switch_id).Tdel;
550+
ipin_switch_T_total += switch_T_del;
550551
ipin_switch_count++;
551552
}
552553
}
@@ -619,7 +620,8 @@ static void load_rr_indexed_data_T_values(const RRGraphView& rr_graph,
619620
float default_ipin_switch_T_del = rr_graph.rr_switch_inf(RRSwitchId(wire_to_ipin_switch)).Tdel;
620621
rr_indexed_data[RRIndexedDataId(IPIN_COST_INDEX)].T_linear = default_ipin_switch_T_del;
621622
} else {
622-
rr_indexed_data[RRIndexedDataId(IPIN_COST_INDEX)].T_linear = ipin_switch_T_total / ipin_switch_count;
623+
float average_ipin_switch_T_del = ipin_switch_T_total / ipin_switch_count;
624+
rr_indexed_data[RRIndexedDataId(IPIN_COST_INDEX)].T_linear = average_ipin_switch_T_del;
623625
}
624626
}
625627

0 commit comments

Comments
 (0)