Skip to content

Commit aeb4612

Browse files
bugfix: consider the last layer in exhaustive initial placement of a block
1 parent 32e6900 commit aeb4612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpr/src/place/initial_placement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ bool try_place_macro_exhaustively(const t_pl_macro& pl_macro,
682682
const vtr::Rect<int> reg_rect = regions[reg].get_region_bounds().get_rect();
683683
const auto [layer_low, layer_high] = regions[reg].get_region_bounds().get_layer_range();
684684

685-
for (int layer_num = layer_low; layer_num < layer_high; layer_num++) {
685+
for (int layer_num = layer_low; layer_num <= layer_high; layer_num++) {
686686
int min_cx = compressed_block_grid.grid_loc_to_compressed_loc_approx({reg_rect.xmin(), OPEN, layer_num}).x;
687687
int max_cx = compressed_block_grid.grid_loc_to_compressed_loc_approx({reg_rect.xmax(), OPEN, layer_num}).x;
688688

0 commit comments

Comments
 (0)