@@ -1174,10 +1174,10 @@ void power_pb_pins_uninit() {
1174
1174
}
1175
1175
1176
1176
void power_routing_init (const t_det_routing_arch* routing_arch) {
1177
- int max_fanin;
1178
- int max_IPIN_fanin;
1179
- int max_seg_to_IPIN_fanout;
1180
- int max_seg_to_seg_fanout;
1177
+ t_edge_size max_fanin;
1178
+ t_edge_size max_IPIN_fanin;
1179
+ t_edge_size max_seg_to_IPIN_fanout;
1180
+ t_edge_size max_seg_to_seg_fanout;
1181
1181
auto & power_ctx = g_vpr_ctx.mutable_power ();
1182
1182
auto & device_ctx = g_vpr_ctx.device ();
1183
1183
const auto & rr_graph = device_ctx.rr_graph ;
@@ -1206,17 +1206,16 @@ void power_routing_init(const t_det_routing_arch* routing_arch) {
1206
1206
max_seg_to_seg_fanout = 0 ;
1207
1207
max_seg_to_IPIN_fanout = 0 ;
1208
1208
for (size_t rr_node_idx = 0 ; rr_node_idx < device_ctx.rr_nodes .size (); rr_node_idx++) {
1209
- int fanout_to_IPIN = 0 ;
1210
- int fanout_to_seg = 0 ;
1209
+ t_edge_size fanout_to_IPIN = 0 ;
1210
+ t_edge_size fanout_to_seg = 0 ;
1211
1211
auto node = device_ctx.rr_nodes [rr_node_idx];
1212
1212
t_rr_node_power* node_power = &rr_node_power[rr_node_idx];
1213
1213
const t_edge_size node_fan_in = rr_graph.node_fan_in (RRNodeId (rr_node_idx));
1214
1214
1215
1215
switch (rr_graph.node_type (RRNodeId (rr_node_idx))) {
1216
1216
case IPIN:
1217
- max_IPIN_fanin = std::max (max_IPIN_fanin,
1218
- static_cast <int >(node_fan_in));
1219
- max_fanin = std::max (max_fanin, static_cast <int >(node_fan_in));
1217
+ max_IPIN_fanin = std::max (max_IPIN_fanin, node_fan_in);
1218
+ max_fanin = std::max (max_fanin, node_fan_in);
1220
1219
1221
1220
node_power->in_dens = (float *)vtr::calloc (node_fan_in,
1222
1221
sizeof (float ));
@@ -1235,7 +1234,7 @@ void power_routing_init(const t_det_routing_arch* routing_arch) {
1235
1234
max_seg_to_IPIN_fanout = std::max (max_seg_to_IPIN_fanout,
1236
1235
fanout_to_IPIN);
1237
1236
max_seg_to_seg_fanout = std::max (max_seg_to_seg_fanout, fanout_to_seg);
1238
- max_fanin = std::max (max_fanin, static_cast < int >( node_fan_in) );
1237
+ max_fanin = std::max (max_fanin, node_fan_in);
1239
1238
1240
1239
node_power->in_dens = (float *)vtr::calloc (node_fan_in,
1241
1240
sizeof (float ));
0 commit comments