vpr/src/tileable_rr_graph/rr_graph_builder_utils.cpp
/************************************************************************
 * Print statistics of multiplexers in a routing resource graph  
 ************************************************************************/
Print statistics of multiplexers in a routing resource graph
Print statistics of multiplexers in a routing resource graph
void print_rr_graph_mux_stats(const RRGraph& rr_graph) {
  std::vector<t_rr_type> sb_node_types;
  sb_node_types.push_back(CHANX);
  sb_node_types.push_back(CHANY);
  VTR_LOG("------------------------------------------------\n");
  VTR_LOG("Total No. of Switch Block multiplexer size: %d\n",
          find_rr_graph_num_nodes(rr_graph, sb_node_types));
  VTR_LOG("Maximum Switch Block multiplexer size: %d\n",
          find_rr_graph_max_fan_in(rr_graph, sb_node_types));
  VTR_LOG("Minimum Switch Block multiplexer size: %d\n",
          find_rr_graph_min_fan_in(rr_graph, sb_node_types));
  VTR_LOG("Average Switch Block multiplexer size: %lu\n",
          find_rr_graph_average_fan_in(rr_graph, sb_node_types));
  VTR_LOG("------------------------------------------------\n");
  std::vector<t_rr_type> cb_node_types(1, IPIN);
  VTR_LOG("------------------------------------------------\n");
  VTR_LOG("Total No. of Connection Block Multiplexer size: %d\n",
          find_rr_graph_num_nodes(rr_graph, cb_node_types));
  VTR_LOG("Maximum Connection Block Multiplexer size: %d\n",
          find_rr_graph_max_fan_in(rr_graph, cb_node_types));
  VTR_LOG("Minimum Connection Block Multiplexer size: %d\n",
          find_rr_graph_min_fan_in(rr_graph, cb_node_types));
  VTR_LOG("Average Connection Block Multiplexer size: %lu\n",
          find_rr_graph_average_fan_in(rr_graph, cb_node_types));
  VTR_LOG("------------------------------------------------\n");
}
void print_rr_graph_mux_stats ( const RRGraph & rr_graph ) { std :: vector < t_rr_type > sb_node_types ; sb_node_types . push_back ( CHANX ) ; sb_node_types . push_back ( CHANY ) ; VTR_LOG ( " \n " ) ; VTR_LOG ( " \n " , find_rr_graph_num_nodes ( rr_graph , sb_node_types ) ) ; VTR_LOG ( " \n " , find_rr_graph_max_fan_in ( rr_graph , sb_node_types ) ) ; VTR_LOG ( " \n " , find_rr_graph_min_fan_in ( rr_graph , sb_node_types ) ) ; VTR_LOG ( " \n " , find_rr_graph_average_fan_in ( rr_graph , sb_node_types ) ) ; VTR_LOG ( " \n " ) ; std :: vector < t_rr_type > cb_node_types ( 1 , IPIN ) ; VTR_LOG ( " \n " ) ; VTR_LOG ( " \n " , find_rr_graph_num_nodes ( rr_graph , cb_node_types ) ) ; VTR_LOG ( " \n " , find_rr_graph_max_fan_in ( rr_graph , cb_node_types ) ) ; VTR_LOG ( " \n " , find_rr_graph_min_fan_in ( rr_graph , cb_node_types ) ) ; VTR_LOG ( " \n " , find_rr_graph_average_fan_in ( rr_graph , cb_node_types ) ) ; VTR_LOG ( " \n " ) ; }
Print statistics of multiplexers in a routing resource graph
Print statistics of multiplexers in a routing resource graph
/* Print MUX size distribution */ /* Print statistics */ /* Get the maximum CB mux size */