openfpga/src/utils/circuit_library_utils.cpp
/********************************************************************
 * Find regular (not mode select) sram ports of a circuit model
 *******************************************************************/
Find regular (not mode select) sram ports of a circuit model
Find regular ( not mode select ) sram ports of a circuit model
std::vector<CircuitPortId> find_circuit_regular_sram_ports(const CircuitLibrary& circuit_lib,
                                                           const CircuitModelId& circuit_model) {
  std::vector<CircuitPortId> sram_ports = circuit_lib.model_ports_by_type(circuit_model, CIRCUIT_MODEL_PORT_SRAM, true);
  std::vector<CircuitPortId> regular_sram_ports;
  for (const auto& port : sram_ports) {
    if (true == circuit_lib.port_is_mode_select(port)) {
      continue;
    }
    regular_sram_ports.push_back(port);
  }
  return regular_sram_ports;
}
std :: vector < CircuitPortId > find_circuit_regular_sram_ports ( const CircuitLibrary & circuit_lib , const CircuitModelId & circuit_model ) { std :: vector < CircuitPortId > sram_ports = circuit_lib . model_ports_by_type ( circuit_model , CIRCUIT_MODEL_PORT_SRAM , true ) ; std :: vector < CircuitPortId > regular_sram_ports ; for ( const auto & port : sram_ports ) { if ( true == circuit_lib . port_is_mode_select ( port ) ) { continue ; } regular_sram_ports . push_back ( port ) ; } return regular_sram_ports ; }
Find regular (not mode select) sram ports of a circuit model
Find regular ( not mode select ) sram ports of a circuit model