[Tool] Minor bug fix

This commit is contained in:
tangxifan 2020-12-04 17:18:02 -07:00
parent 1c3f625e41
commit 7206cafc0e
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ size_t get_grid_num_pins(const t_grid_tile& cur_grid,
for (const e_side& side : {TOP, RIGHT, BOTTOM, LEFT}) { for (const e_side& side : {TOP, RIGHT, BOTTOM, LEFT}) {
/* skip unwanted sides */ /* skip unwanted sides */
if ( (true == is_io_type(cur_grid.type)) if ( (true == is_io_type(cur_grid.type))
&& (side != io_side) ) { && (side != io_side) && (NUM_SIDES != io_side)) {
continue; continue;
} }
/* Get pin list */ /* Get pin list */