vpr/src/tileable_rr_graph/rr_graph_builder_utils.cpp
/************************************************************************
 * Find the average fan-in for a given class of nodes
 * in a routing resource graph
 ************************************************************************/
Find the average fan-in for a given class of nodes
in a routing resource graph
Find the average fan - in for a given class of nodes in a routing resource graph
short find_rr_graph_average_fan_in(const RRGraph& rr_graph,
                                   const std::vector<t_rr_type>& node_types) {
  size_t sum = 0;
  size_t counter = 0;
  for (const RRNodeId& node : rr_graph.nodes()) {
    if (node_types.end() == std::find(node_types.begin(), node_types.end(), rr_graph.node_type(node))) {
      continue;
    }
    sum += rr_graph.node_fan_in(node); 
    counter++;
  } 
  return sum / counter;
}
short find_rr_graph_average_fan_in ( const RRGraph & rr_graph , const std :: vector < t_rr_type > & node_types ) { size_t sum = 0 ; size_t counter = 0 ; for ( const RRNodeId & node : rr_graph . nodes ( ) ) { if ( node_types . end ( ) == std :: find ( node_types . begin ( ) , node_types . end ( ) , rr_graph . node_type ( node ) ) ) { continue ; } sum += rr_graph . node_fan_in ( node ) ; counter ++ ; } return sum / counter ; }
Find the average fan-in for a given class of nodes
 in a routing resource graph
Find the average fan - in for a given class of nodes in a routing resource graph
/* Get the maximum SB mux size */ /* Bypass the nodes not in the class */