Skip to content

Commit 6d70480

Browse files
committed
gpl: fix typo
Signed-off-by: Augusto Berndt <[email protected]>
1 parent 56e0135 commit 6d70480

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/gpl/src/graphicsImpl.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ bool GraphicsImpl::populateMap()
697697

698698
double value = std::max(0.0f,
699699
static_cast<float>(bin.getInstPlacedArea())
700-
+ static_cast<float>(bin.getNonPlaceAre())
700+
+ static_cast<float>(bin.getNonPlaceArea())
701701
- scaledBinArea);
702702
value = block->dbuAreaToMicrons(value);
703703

@@ -717,10 +717,10 @@ bool GraphicsImpl::populateMap()
717717
const float scaledBinArea
718718
= static_cast<float>(binArea * bin.getTargetDensity());
719719

720-
double raw_value = std::max(0.0f,
721-
static_cast<float>(bin.getInstPlacedArea())
722-
+ static_cast<float>(bin.getNonPlaceAre())
723-
- scaledBinArea);
720+
double raw_value = std::max(
721+
0.0f,
722+
static_cast<float>(bin.getInstPlacedArea())
723+
+ static_cast<float>(bin.getNonPlaceArea()) - scaledBinArea);
724724
raw_value = block->dbuAreaToMicrons(raw_value);
725725

726726
if (heatmap_type_ == OverflowMinMax && max_value > min_value) {

src/gpl/src/nesterovBase.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ void BinGrid::updateBinsGCellDensityArea(const std::vector<GCellHandle>& cells)
938938
const float overflowAreaUnscaled
939939
= std::max(0.0f,
940940
static_cast<float>(bin.getInstPlacedArea())
941-
+ static_cast<float>(bin.getNonPlaceAre())
941+
+ static_cast<float>(bin.getNonPlaceArea())
942942
- density_scaled_bin_area);
943943
sum_overflow_area_ += overflowAreaUnscaled;
944944

@@ -952,7 +952,7 @@ void BinGrid::updateBinsGCellDensityArea(const std::vector<GCellHandle>& cells)
952952
block->dbuAreaToMicrons(density_scaled_bin_area));
953953
log_->report("bin.getInstPlacedArea():{}, bin.getNonPlaceArea():{}",
954954
block->dbuAreaToMicrons(bin.getInstPlacedArea()),
955-
block->dbuAreaToMicrons(bin.getNonPlaceAre()));
955+
block->dbuAreaToMicrons(bin.getNonPlaceArea()));
956956
log_->report(
957957
"bin.getInstPlacedAreaBiNormal():{}, "
958958
"bin.getNonPlaceAreaBiNormal():{}",

src/gpl/src/nesterovBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ class Bin
564564
{
565565
return inst_placed_area_binormal_;
566566
}
567-
int64_t getNonPlaceAre() const { return non_place_area_; }
567+
int64_t getNonPlaceArea() const { return non_place_area_; }
568568
int64_t getInstPlacedArea() const { return inst_placed_area_; }
569569

570570
int64_t getFillerArea() const { return filler_area_; }

0 commit comments

Comments
 (0)