Skip to content

Commit a24e8ab

Browse files
bugfix: consider the last layer in region_with_subtile_count()
1 parent a446074 commit a24e8ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpr/src/place/grid_tile_lookup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ int GridTileLookup::region_with_subtile_count(const Region& reg, t_logical_block
132132

133133
for (int i = xmax; i >= xmin; i--) {
134134
for (int j = ymax; j >= ymin; j--) {
135-
for (int l = layer_low; l < layer_high; l++) {
135+
for (int l = layer_low; l <= layer_high; l++) {
136136
const t_physical_tile_type_ptr tile_type = device_ctx.grid.get_physical_type({i, j, l});
137137
if (is_sub_tile_compatible(tile_type, block_type, subtile)) {
138138
num_sub_tiles++;

0 commit comments

Comments
 (0)