openfpga/src/utils/pb_type_utils.cpp
/********************************************************************
 * This function will return all the interconnects defined under a mode
 * of pb_type
 *******************************************************************/
This function will return all the interconnects defined under a mode
of pb_type
This function will return all the interconnects defined under a mode of pb_type
std::vector<t_interconnect*> pb_mode_interconnects(t_mode* pb_mode) {
  std::vector<t_interconnect*> interc;
  for (int i = 0; i < pb_mode->num_interconnect; ++i) {
    interc.push_back(&(pb_mode->interconnect[i]));
  }
  return interc;
}
std :: vector < t_interconnect * > pb_mode_interconnects ( t_mode * pb_mode ) { std :: vector < t_interconnect * > interc ; for ( int i = 0 ; i < pb_mode -> num_interconnect ; ++ i ) { interc . push_back ( & ( pb_mode -> interconnect [ i ] ) ) ; } return interc ; }
This function will return all the interconnects defined under a mode
 of pb_type
This function will return all the interconnects defined under a mode of pb_type