openfpga/src/utils/openfpga_physical_tile_utils.cpp
/********************************************************************
 * Find the Fc of a pin in physical tile 
 *******************************************************************/
Find the Fc of a pin in physical tile
Find the Fc of a pin in physical tile
float find_physical_tile_pin_Fc(t_physical_tile_type_ptr type,
                                const int& pin) {
  for (const t_fc_specification& fc_spec : type->fc_specs) {
    if (fc_spec.pins.end() != std::find(fc_spec.pins.begin(), fc_spec.pins.end(), pin)) {
      return fc_spec.fc_value; 
    }
  }
  VTR_LOGF_ERROR(__FILE__, __LINE__,
                "Fail to find the Fc for %s.pin[%lu]\n",
                type->name, pin);
  exit(1);
}
float find_physical_tile_pin_Fc ( t_physical_tile_type_ptr type , const int & pin ) { for ( const t_fc_specification & fc_spec : type -> fc_specs ) { if ( fc_spec . pins . end ( ) != std :: find ( fc_spec . pins . begin ( ) , fc_spec . pins . end ( ) , pin ) ) { return fc_spec . fc_value ; } } VTR_LOGF_ERROR ( __FILE__ , __LINE__ , " \n " , type -> name , pin ) ; exit ( 1 ) ; }
Find the Fc of a pin in physical tile
Find the Fc of a pin in physical tile
/* Every pin should have a Fc, give a wrong value */