Skip to content

Commit b83dd94

Browse files
committed
[vpr][tileable] use is_io in t_physcial_tile
1 parent 6137fb2 commit b83dd94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/tileable_rr_graph/tileable_rr_graph_node_builder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static size_t estimate_num_grid_rr_nodes_by_type(const DeviceGrid& grids,
4848
std::vector<e_side> io_side = {TOP, RIGHT, BOTTOM, LEFT};
4949

5050
/* If this is the block on borders, we consider IO side */
51-
if (true == is_io_type(grids.get_physical_type(tile_loc))) {
51+
if (grids.get_physical_type(tile_loc)->is_io()) {
5252
vtr::Point<size_t> io_device_size(grids.width() - 1, grids.height() - 1);
5353
vtr::Point<size_t> grid_coordinate(ix, iy);
5454
io_side = determine_io_grid_pin_side(io_device_size, grid_coordinate, perimeter_cb);
@@ -745,7 +745,7 @@ static void load_grid_nodes_basic_info(RRGraphBuilder& rr_graph_builder,
745745
std::vector<e_side> wanted_sides{TOP, RIGHT, BOTTOM, LEFT};
746746

747747
/* If this is the block on borders, we consider IO side */
748-
if (true == is_io_type(grids.get_physical_type(tile_loc))) {
748+
if (grids.get_physical_type(tile_loc)->is_io()) {
749749
vtr::Point<size_t> io_device_size(grids.width() - 1, grids.height() - 1);
750750
wanted_sides = determine_io_grid_pin_side(io_device_size, grid_coordinate, perimeter_cb);
751751
}

0 commit comments

Comments
 (0)