vpr/src/tileable_rr_graph/rr_graph_builder_utils.cpp
/* Deteremine the side of a pin of a grid */
Deteremine the side of a pin of a grid
Deteremine the side of a pin of a grid
std::vector<e_side> find_grid_pin_sides(const t_grid_tile& grid, 
                                        const size_t& pin_id) {
  std::vector<e_side> pin_sides;
  for (const e_side& side : {TOP, RIGHT, BOTTOM, LEFT} ) {
    if (true == grid.type->pinloc[grid.width_offset][grid.height_offset][size_t(side)][pin_id]) {
      pin_sides.push_back(side);
    }
  }
  return pin_sides;
}
std :: vector < e_side > find_grid_pin_sides ( const t_grid_tile & grid , const size_t & pin_id ) { std :: vector < e_side > pin_sides ; for ( const e_side & side : { TOP , RIGHT , BOTTOM , LEFT } ) { if ( true == grid . type -> pinloc [ grid . width_offset ] [ grid . height_offset ] [ size_t ( side ) ] [ pin_id ] ) { pin_sides . push_back ( side ) ; } } return pin_sides ; }
Deteremine the side of a pin of a grid
Deteremine the side of a pin of a grid