@@ -114,7 +114,6 @@ static std::string describe_lb_type_rr_node(int inode,
114
114
115
115
static std::vector<int > find_congested_rr_nodes (const std::vector<t_lb_type_rr_node>& lb_type_graph,
116
116
const t_lb_rr_node_stats* lb_rr_node_stats);
117
- static std::string describe_pb_graph_pin (const t_pb_graph_pin* pb_graph_pin);
118
117
static std::vector<int > find_incoming_rr_nodes (int dst_node, const t_lb_router_data* router_data);
119
118
static std::string describe_congested_rr_nodes (const std::vector<int >& congested_rr_nodes,
120
119
const t_lb_router_data* router_data);
@@ -1373,7 +1372,7 @@ static std::string describe_lb_type_rr_node(int inode,
1373
1372
const t_pb_graph_pin* pb_graph_pin = rr_node.pb_graph_pin ;
1374
1373
1375
1374
if (pb_graph_pin) {
1376
- description += " '" + describe_pb_graph_pin ( pb_graph_pin) + " '" ;
1375
+ description += " '" + pb_graph_pin-> to_string ( false ) + " '" ;
1377
1376
} else if (inode == get_lb_type_rr_graph_ext_source_index (lb_type)) {
1378
1377
VTR_ASSERT (rr_node.type == LB_SOURCE);
1379
1378
description = " cluster-external source (LB_SOURCE)" ;
@@ -1390,7 +1389,7 @@ static std::string describe_lb_type_rr_node(int inode,
1390
1389
std::vector<int > pin_rrs = find_incoming_rr_nodes (inode, router_data);
1391
1390
for (int pin_rr_idx : pin_rrs) {
1392
1391
const t_pb_graph_pin* pin_pb_gpin = (*router_data->lb_type_graph )[pin_rr_idx].pb_graph_pin ;
1393
- pin_descriptions.push_back (describe_pb_graph_pin ( pin_pb_gpin));
1392
+ pin_descriptions.push_back (pin_pb_gpin-> to_string ( ));
1394
1393
}
1395
1394
1396
1395
description += vtr::join (pin_descriptions, " , " );
@@ -1426,18 +1425,6 @@ static std::vector<int> find_incoming_rr_nodes(int dst_node, const t_lb_router_d
1426
1425
return incoming_rr_nodes;
1427
1426
}
1428
1427
1429
- // TODO: move this function to be a member function of class pb_graph_pin
1430
- static std::string describe_pb_graph_pin (const t_pb_graph_pin* pb_graph_pin) {
1431
- VTR_ASSERT (pb_graph_pin);
1432
- std::string description;
1433
- description += pb_graph_pin->parent_node ->pb_type ->name ;
1434
- description += " [" + std::to_string (pb_graph_pin->parent_node ->placement_index ) + " ]" ;
1435
- description += ' .' ;
1436
- description += pb_graph_pin->port ->name ;
1437
- description += " [" + std::to_string (pb_graph_pin->pin_number ) + " ]" ;
1438
- return description;
1439
- }
1440
-
1441
1428
static std::string describe_congested_rr_nodes (const std::vector<int >& congested_rr_nodes,
1442
1429
const t_lb_router_data* router_data) {
1443
1430
std::string description;
0 commit comments