openfpga/src/tile_direct/build_tile_direct.cpp
/***************************************************************************************
 * Check if a pin is located on a given side of physical tile
 * If the given side is NUM_SIDES, we will search all the sides 
 ***************************************************************************************/
Check if a pin is located on a given side of physical tile
If the given side is NUM_SIDES, we will search all the sides
Check if a pin is located on a given side of physical tile If the given side is NUM_SIDES we will search all the sides
static 
bool is_pin_locate_at_physical_tile_side(t_physical_tile_type_ptr physical_tile,
                                         const size_t& pin_width_offset,
                                         const size_t& pin_height_offset,
                                         const size_t& pin_id,
                                         const e_side& pin_side) {
  if (NUM_SIDES == pin_side) {
    for (size_t side = 0; side < NUM_SIDES; ++side) {
      if (true == physical_tile->pinloc[pin_width_offset][pin_height_offset][side][pin_id]) {
        return true;
      }
    }
  }
  return physical_tile->pinloc[pin_width_offset][pin_height_offset][size_t(pin_side)][pin_id];
}
static bool is_pin_locate_at_physical_tile_side ( t_physical_tile_type_ptr physical_tile , const size_t & pin_width_offset , const size_t & pin_height_offset , const size_t & pin_id , const e_side & pin_side ) { if ( NUM_SIDES == pin_side ) { for ( size_t side = 0 ; side < NUM_SIDES ; ++ side ) { if ( true == physical_tile -> pinloc [ pin_width_offset ] [ pin_height_offset ] [ side ] [ pin_id ] ) { return true ; } } } return physical_tile -> pinloc [ pin_width_offset ] [ pin_height_offset ] [ size_t ( pin_side ) ] [ pin_id ] ; }
Check if a pin is located on a given side of physical tile
 If the given side is NUM_SIDES, we will search all the sides
Check if a pin is located on a given side of physical tile If the given side is NUM_SIDES we will search all the sides