libopenfpga/libarchopenfpga/src/check_circuit_library.cpp
/************************************************************************
 * A generic function to check the port list of a circuit model in a given type
 *  If not found, we give an error
 ***********************************************************************/
A generic function to check the port list of a circuit model in a given type
If not found, we give an error
A generic function to check the port list of a circuit model in a given type If not found we give an error
static 
size_t check_circuit_model_required(const CircuitLibrary& circuit_lib,
                                    const enum e_circuit_model_type& circuit_model_type_to_check) {
  size_t num_err = 0;
  if ( 0 == circuit_lib.models_by_type(circuit_model_type_to_check).size()) {
    VTR_LOG_ERROR("At least one %s circuit model is required!\n",
                  CIRCUIT_MODEL_TYPE_STRING[size_t(circuit_model_type_to_check)]);
    num_err++;
  }
  return num_err;
}
static size_t check_circuit_model_required ( const CircuitLibrary & circuit_lib , const enum e_circuit_model_type & circuit_model_type_to_check ) { size_t num_err = 0 ; if ( 0 == circuit_lib . models_by_type ( circuit_model_type_to_check ) . size ( ) ) { VTR_LOG_ERROR ( " \n " , CIRCUIT_MODEL_TYPE_STRING [ size_t ( circuit_model_type_to_check ) ] ) ; num_err ++ ; } return num_err ; }
A generic function to check the port list of a circuit model in a given type
  If not found, we give an error
A generic function to check the port list of a circuit model in a given type If not found we give an error
/* We must have an IOPAD*/ /* Incremental the counter for errors */