openfpga/src/tile_direct/build_tile_direct.cpp
/***************************************************************************************
 * Parse the pin name and port MSB/LSB from the direct definition  
 * The definition string should be in the following format:
 *   <tile_type_name>.<pin_name>[<pin_lsb>:<pin_msb>]  
 ***************************************************************************************/
Parse the pin name and port MSB/LSB from the direct definition
The definition string should be in the following format:
.[:]
Parse the pin name and port MSB / LSB from the direct definition The definition string should be in the following format : . [ : ]
static 
std::string parse_direct_port(const std::string& direct_tile_inf) {
  StringToken tokenizer(direct_tile_inf);
  std::vector<std::string> tokens = tokenizer.split('.');
  if (2 != tokens.size()) {
    VTR_LOG_ERROR("Invalid definition on direct tile '%s'!\n\tExpect <tile_type_name>.<pin_name>[<pin_lsb>:<pin_msb>].\n",
                  direct_tile_inf.c_str());
  }
  return tokens[1];
}
static std :: string parse_direct_port ( const std :: string & direct_tile_inf ) { StringToken tokenizer ( direct_tile_inf ) ; std :: vector < std :: string > tokens = tokenizer . split ( ' ' ) ; if ( 2 != tokens . size ( ) ) { VTR_LOG_ERROR ( " \n \t \n " , direct_tile_inf . c_str ( ) ) ; } return tokens [ 1 ] ; }
Parse the pin name and port MSB/LSB from the direct definition
 The definition string should be in the following format:
   <tile_type_name>.<pin_name>[<pin_lsb>:<pin_msb>]
Parse the pin name and port MSB / LSB from the direct definition The definition string should be in the following format : <tile_type_name > . <pin_name > [ <pin_lsb > : <pin_msb > ]
/* We should have only 2 elements and the first is tile name */