Skip to content

Commit f64e81e

Browse files
committed
pad: correct name of direction->edge
Signed-off-by: Peter Gadfort <[email protected]>
1 parent f22f811 commit f64e81e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/pad/src/PadPlacer.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void PadPlacer::populateInstWidths()
4545
master->getPlacementBoundary(inst_bbox);
4646
xform.apply(inst_bbox);
4747

48-
switch (getRowDirection()) {
48+
switch (getRowEdge()) {
4949
case odb::Direction2D::North:
5050
case odb::Direction2D::South:
5151
inst_widths_[inst] = inst_bbox.dx();
@@ -63,7 +63,7 @@ int PadPlacer::getRowStart() const
6363
const odb::Rect row_bbox = getRow()->getBBox();
6464

6565
int row_start = 0;
66-
switch (getRowDirection()) {
66+
switch (getRowEdge()) {
6767
case odb::Direction2D::North:
6868
case odb::Direction2D::South:
6969
row_start = row_bbox.xMin();
@@ -82,7 +82,7 @@ int PadPlacer::getRowEnd() const
8282
const odb::Rect row_bbox = getRow()->getBBox();
8383

8484
int row_end = 0;
85-
switch (getRowDirection()) {
85+
switch (getRowEdge()) {
8686
case odb::Direction2D::North:
8787
case odb::Direction2D::South:
8888
row_end = row_bbox.xMax();
@@ -101,7 +101,7 @@ int PadPlacer::getRowWidth() const
101101
const odb::Rect row_bbox = getRow()->getBBox();
102102

103103
int row_width = 0;
104-
switch (getRowDirection()) {
104+
switch (getRowEdge()) {
105105
case odb::Direction2D::North:
106106
case odb::Direction2D::South:
107107
row_width = row_bbox.dx();
@@ -518,7 +518,7 @@ void BumpAlignedPadPlacer::place()
518518
std::map<odb::dbInst*, int> inst_pos;
519519
if (!min_terms.empty()) {
520520
int group_center = 0;
521-
switch (getRowDirection()) {
521+
switch (getRowEdge()) {
522522
case odb::Direction2D::North:
523523
case odb::Direction2D::South:
524524
group_center = min_terms.at(inst)->getBBox().xCenter();
@@ -592,7 +592,7 @@ int64_t BumpAlignedPadPlacer::computePadBumpDistance(odb::dbInst* inst,
592592
const odb::Point row_center = getRow()->getBBox().center();
593593
const odb::Point center = bump->getBBox().center();
594594

595-
switch (getRowDirection()) {
595+
switch (getRowEdge()) {
596596
case odb::Direction2D::North:
597597
case odb::Direction2D::South:
598598
return odb::Point::squaredDistance(
@@ -639,7 +639,7 @@ BumpAlignedPadPlacer::getBumpAlignmentGroup(
639639
// no longer the first pad in group, check if bumps are in same
640640
// column/row
641641
bool keep = true;
642-
switch (getRowDirection()) {
642+
switch (getRowEdge()) {
643643
case odb::Direction2D::North:
644644
case odb::Direction2D::South:
645645
keep = min_terms[inst]->getBBox().xCenter()
@@ -713,7 +713,7 @@ void BumpAlignedPadPlacer::performPadFlip(odb::dbInst* inst) const
713713

714714
// try flipping pad
715715
inst->setPlacementStatus(odb::dbPlacementStatus::PLACED);
716-
switch (getRowDirection()) {
716+
switch (getRowEdge()) {
717717
case odb::Direction2D::North:
718718
case odb::Direction2D::South:
719719
inst->setLocationOrient(start_orient.flipY());

src/pad/src/PadPlacer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class PadPlacer
4444
utl::Logger* getLogger() const { return logger_; }
4545
odb::dbBlock* getBlock() const { return block_; }
4646
odb::dbRow* getRow() const { return row_; }
47-
const odb::Direction2D::Value& getRowDirection() const { return edge_; }
47+
const odb::Direction2D::Value& getRowEdge() const { return edge_; }
4848
const std::vector<odb::dbInst*>& getInsts() const { return insts_; }
4949

5050
int getRowStart() const;

0 commit comments

Comments
 (0)