libopenfpga/libarchopenfpga/src/check_circuit_library.cpp
/************************************************************************
 *  A generic function to find the default circuit model with a given type
 *  If not found, we give an error
 ***********************************************************************/
A generic function to find the default circuit model with a given type
If not found, we give an error
A generic function to find the default circuit model with a given type If not found we give an error
static 
size_t check_required_default_circuit_model(const CircuitLibrary& circuit_lib,
                                            const enum e_circuit_model_type& circuit_model_type) {
  size_t num_err = 0;
  if (CircuitModelId::INVALID() == circuit_lib.default_model(circuit_model_type)) {
    VTR_LOG_ERROR("Miss a default circuit model for the type %s! Try to define it in your architecture file!\n",
                  CIRCUIT_MODEL_TYPE_STRING[size_t(circuit_model_type)]);
    num_err++;
  }
  return num_err;
}
static size_t check_required_default_circuit_model ( const CircuitLibrary & circuit_lib , const enum e_circuit_model_type & circuit_model_type ) { size_t num_err = 0 ; if ( CircuitModelId :: INVALID ( ) == circuit_lib . default_model ( circuit_model_type ) ) { VTR_LOG_ERROR ( " \n " , CIRCUIT_MODEL_TYPE_STRING [ size_t ( circuit_model_type ) ] ) ; num_err ++ ; } return num_err ; }
A generic function to find the default circuit model with a given type
  If not found, we give an error
A generic function to find the default circuit model with a given type If not found we give an error