libopenfpga/libarchopenfpga/src/openfpga_arch_linker.cpp
/********************************************************************
 * Link the circuit model inside configuration protocol
 * to these circuit models defined in circuit library
 *******************************************************************/
Link the circuit model inside configuration protocol
to these circuit models defined in circuit library
Link the circuit model inside configuration protocol to these circuit models defined in circuit library
void link_config_protocol_to_circuit_library(openfpga::Arch& openfpga_arch) {
  CircuitModelId config_memory_model = openfpga_arch.circuit_lib.model(openfpga_arch.config_protocol.memory_model_name());
  if (CircuitModelId::INVALID() == config_memory_model) {
    VTR_LOG("Invalid memory model name '%s' defined in <configuration_protocol>!",
            openfpga_arch.config_protocol.memory_model_name().c_str());
    exit(1);
  }
  openfpga_arch.config_protocol.set_memory_model(config_memory_model); 
}
void link_config_protocol_to_circuit_library ( openfpga :: Arch & openfpga_arch ) { CircuitModelId config_memory_model = openfpga_arch . circuit_lib . model ( openfpga_arch . config_protocol . memory_model_name ( ) ) ; if ( CircuitModelId :: INVALID ( ) == config_memory_model ) { VTR_LOG ( " " , openfpga_arch . config_protocol . memory_model_name ( ) . c_str ( ) ) ; exit ( 1 ) ; } openfpga_arch . config_protocol . set_memory_model ( config_memory_model ) ; }
Link the circuit model inside configuration protocol
 to these circuit models defined in circuit library
Link the circuit model inside configuration protocol to these circuit models defined in circuit library
/* Error out if the circuit model id is invalid */