openfpga/src/utils/circuit_library_utils.cpp
/************************************************************************
 * Try to find the output ports for a LUT circuit model (EXCLUDE the global ports)
 * which can optionally include those ports drives or is driven by hard logic 
 ***********************************************************************/
Try to find the output ports for a LUT circuit model (EXCLUDE the global ports)
which can optionally include those ports drives or is driven by hard logic
Try to find the output ports for a LUT circuit model ( EXCLUDE the global ports ) which can optionally include those ports drives or is driven by hard logic
std::vector<CircuitPortId> find_lut_circuit_model_output_port(const CircuitLibrary& circuit_lib,
                                                              const CircuitModelId& circuit_model,
                                                              const bool& include_harden_port,
                                                              const bool& include_global_port) {
  VTR_ASSERT(CIRCUIT_MODEL_LUT == circuit_lib.model_type(circuit_model));
  std::vector<CircuitPortId> output_ports;
  for (const auto& port : circuit_lib.model_ports_by_type(circuit_model, CIRCUIT_MODEL_PORT_OUTPUT, !include_global_port)) {
    if ( (true == circuit_lib.port_is_harden_lut_port(port))
      && (false == include_harden_port)) {
      continue;
    }
    output_ports.push_back(port);
  }
  return output_ports;
}
std :: vector < CircuitPortId > find_lut_circuit_model_output_port ( const CircuitLibrary & circuit_lib , const CircuitModelId & circuit_model , const bool & include_harden_port , const bool & include_global_port ) { VTR_ASSERT ( CIRCUIT_MODEL_LUT == circuit_lib . model_type ( circuit_model ) ) ; std :: vector < CircuitPortId > output_ports ; for ( const auto & port : circuit_lib . model_ports_by_type ( circuit_model , CIRCUIT_MODEL_PORT_OUTPUT , ! include_global_port ) ) { if ( ( true == circuit_lib . port_is_harden_lut_port ( port ) ) && ( false == include_harden_port ) ) { continue ; } output_ports . push_back ( port ) ; } return output_ports ; }
Try to find the output ports for a LUT circuit model (EXCLUDE the global ports)
 which can optionally include those ports drives or is driven by hard logic
Try to find the output ports for a LUT circuit model ( EXCLUDE the global ports ) which can optionally include those ports drives or is driven by hard logic
/* Find all the non-global input ports */ /* Skip harden ports if specified */