Skip to content

Commit 56691b5

Browse files
default layer range when the layer is not specified
1 parent e32f037 commit 56691b5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

vpr/src/base/region.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void RegionRectCoord::set_rect(const vtr::Rect<int>& rect) {
2929
Region::Region()
3030
: region_bounds_({std::numeric_limits<int>::max(), std::numeric_limits<int>::max(),
3131
std::numeric_limits<int>::min(), std::numeric_limits<int>::min()},
32-
-1, -1) //these values indicate an empty rectangle
32+
0, 0) //these values indicate an empty rectangle
3333
, sub_tile_(NO_SUBTILE) {}
3434

3535
const RegionRectCoord& Region::get_region_bounds() const {

vpr/src/pack/constraints_report.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ bool floorplan_constraints_regions_overfull() {
4444
const auto [layer_low, layer_high] = region.get_region_bounds().get_layer_range();
4545
for (const auto & block_type : block_types) {
4646
int num_assigned_blocks = block_type_counts[block_type.index];
47-
int num_tiles = 0;
48-
num_tiles = grid_tiles.region_tile_count(region, &block_type);
47+
int num_tiles = grid_tiles.region_tile_count(region, &block_type);
4948
if (num_assigned_blocks > num_tiles) {
5049
floorplan_regions_overfull = true;
5150
floorplanning_ctx.overfull_regions.push_back(region);

0 commit comments

Comments
 (0)