openfpga/src/utils/fabric_global_port_info_utils.cpp
/********************************************************************
 * Identify global set ports for programming 
 *******************************************************************/
Identify global set ports for programming
Identify global set ports for programming
std::vector<FabricGlobalPortId> find_fabric_global_programming_set_ports(const FabricGlobalPortInfo& fabric_global_port_info) {
  std::vector<FabricGlobalPortId> global_prog_set_ports;
  for (const FabricGlobalPortId& global_port : fabric_global_port_info.global_ports()) {
    if (false == fabric_global_port_info.global_port_is_prog(global_port)) {
      continue;
    }
    VTR_ASSERT(true == fabric_global_port_info.global_port_is_prog(global_port));
    VTR_ASSERT( (false == fabric_global_port_info.global_port_is_reset(global_port))
               || (false == fabric_global_port_info.global_port_is_set(global_port)));
    if (true == fabric_global_port_info.global_port_is_set(global_port)) {
      global_prog_set_ports.push_back(global_port);
    }
  }
  return global_prog_set_ports;
}
std :: vector < FabricGlobalPortId > find_fabric_global_programming_set_ports ( const FabricGlobalPortInfo & fabric_global_port_info ) { std :: vector < FabricGlobalPortId > global_prog_set_ports ; for ( const FabricGlobalPortId & global_port : fabric_global_port_info . global_ports ( ) ) { if ( false == fabric_global_port_info . global_port_is_prog ( global_port ) ) { continue ; } VTR_ASSERT ( true == fabric_global_port_info . global_port_is_prog ( global_port ) ) ; VTR_ASSERT ( ( false == fabric_global_port_info . global_port_is_reset ( global_port ) ) || ( false == fabric_global_port_info . global_port_is_set ( global_port ) ) ) ; if ( true == fabric_global_port_info . global_port_is_set ( global_port ) ) { global_prog_set_ports . push_back ( global_port ) ; } } return global_prog_set_ports ; }
Identify global set ports for programming
Identify global set ports for programming
/* Try to find global set ports for programming */