Skip to content

Commit afbadb3

Browse files
committed
don't assign open to coords if there is no sink on that layer
1 parent cce3bc6 commit afbadb3

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

vpr/src/place/place.cpp

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3229,17 +3229,10 @@ static void get_non_updateable_layer_bb(ClusterNetId net_id,
32293229
* is 0). See route_common.cpp for a channel diagram. */
32303230
for (int layer_num = 0; layer_num < num_layers; layer_num++) {
32313231
bb_coord_new[layer_num].layer_num = layer_num;
3232-
if (num_sink_layer[layer_num] == 0) {
3233-
bb_coord_new[layer_num].xmin = OPEN;
3234-
bb_coord_new[layer_num].ymin = OPEN;
3235-
bb_coord_new[layer_num].xmax = OPEN;
3236-
bb_coord_new[layer_num].ymax = OPEN;
3237-
} else {
3238-
bb_coord_new[layer_num].xmin = max(min<int>(xmin[layer_num], device_ctx.grid.width() - 2), 1); //-2 for no perim channels
3239-
bb_coord_new[layer_num].ymin = max(min<int>(ymin[layer_num], device_ctx.grid.height() - 2), 1); //-2 for no perim channels
3240-
bb_coord_new[layer_num].xmax = max(min<int>(xmax[layer_num], device_ctx.grid.width() - 2), 1); //-2 for no perim channels
3241-
bb_coord_new[layer_num].ymax = max(min<int>(ymax[layer_num], device_ctx.grid.height() - 2), 1); //-2 for no perim channels
3242-
}
3232+
bb_coord_new[layer_num].xmin = max(min<int>(xmin[layer_num], device_ctx.grid.width() - 2), 1); //-2 for no perim channels
3233+
bb_coord_new[layer_num].ymin = max(min<int>(ymin[layer_num], device_ctx.grid.height() - 2), 1); //-2 for no perim channels
3234+
bb_coord_new[layer_num].xmax = max(min<int>(xmax[layer_num], device_ctx.grid.width() - 2), 1); //-2 for no perim channels
3235+
bb_coord_new[layer_num].ymax = max(min<int>(ymax[layer_num], device_ctx.grid.height() - 2), 1); //-2 for no perim channels
32433236
}
32443237
}
32453238

0 commit comments

Comments
 (0)