Skip to content

Commit 1cfc5f4

Browse files
committed
gpl: rename varaibles for clarity,
renamings are related to the scalings gpl uses (based on target density, cell smoothing, and binormal distribution for macros) remove the "unscaled" suffix from varaibles, the unscaled variables versions now have no post-fix and scaling versions relate to the type os scaling performed" Signed-off-by: Augusto Berndt <[email protected]>
1 parent 167078a commit 1cfc5f4

File tree

7 files changed

+201
-205
lines changed

7 files changed

+201
-205
lines changed

src/gpl/src/graphicsImpl.cpp

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -695,11 +695,10 @@ bool GraphicsImpl::populateMap()
695695
const float scaledBinArea
696696
= static_cast<float>(binArea * bin.getTargetDensity());
697697

698-
double value
699-
= std::max(0.0f,
700-
static_cast<float>(bin.getInstPlacedAreaUnscaled())
701-
+ static_cast<float>(bin.getNonPlaceAreaUnscaled())
702-
- scaledBinArea);
698+
double value = std::max(0.0f,
699+
static_cast<float>(bin.getInstPlacedArea())
700+
+ static_cast<float>(bin.getNonPlaceAre())
701+
- scaledBinArea);
703702
value = block->dbuAreaToMicrons(value);
704703

705704
min_value = std::min(min_value, value);
@@ -718,11 +717,10 @@ bool GraphicsImpl::populateMap()
718717
const float scaledBinArea
719718
= static_cast<float>(binArea * bin.getTargetDensity());
720719

721-
double raw_value
722-
= std::max(0.0f,
723-
static_cast<float>(bin.getInstPlacedAreaUnscaled())
724-
+ static_cast<float>(bin.getNonPlaceAreaUnscaled())
725-
- scaledBinArea);
720+
double raw_value = std::max(0.0f,
721+
static_cast<float>(bin.getInstPlacedArea())
722+
+ static_cast<float>(bin.getNonPlaceAre())
723+
- scaledBinArea);
726724
raw_value = block->dbuAreaToMicrons(raw_value);
727725

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

0 commit comments

Comments
 (0)