Skip to content

Commit aa4f26a

Browse files
committed
mpl: renaming
Signed-off-by: Arthur Koucher <[email protected]>
1 parent f57b779 commit aa4f26a

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/mpl/src/hier_rtlmp.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3200,33 +3200,33 @@ bool Pusher::designHasSingleCentralizedMacroArray()
32003200
return true;
32013201
}
32023202

3203-
int Pusher::computeDistanceToBoundary(const odb::Rect& cluster_box,
3204-
Boundary edge)
3203+
int Pusher::computeDistanceToCoreBoundary(const odb::Rect& cluster_box,
3204+
Boundary edge)
32053205
{
3206-
int dist_to_edge = 0;
3206+
int dist_to_boundary = 0;
32073207
switch (edge) {
32083208
case NONE: {
32093209
// Make compiler happy.
32103210
break;
32113211
}
32123212
case L: {
3213-
dist_to_edge = cluster_box.xMin() - core_.xMin();
3213+
dist_to_boundary = cluster_box.xMin() - core_.xMin();
32143214
break;
32153215
}
32163216
case R: {
3217-
dist_to_edge = cluster_box.xMax() - core_.xMax();
3217+
dist_to_boundary = cluster_box.xMax() - core_.xMax();
32183218
break;
32193219
}
32203220
case T: {
3221-
dist_to_edge = cluster_box.yMax() - core_.yMax();
3221+
dist_to_boundary = cluster_box.yMax() - core_.yMax();
32223222
break;
32233223
}
32243224
case B: {
3225-
dist_to_edge = cluster_box.yMin() - core_.yMin();
3225+
dist_to_boundary = cluster_box.yMin() - core_.yMin();
32263226
break;
32273227
}
32283228
}
3229-
return std::abs(dist_to_edge);
3229+
return std::abs(dist_to_boundary);
32303230
}
32313231

32323232
void Pusher::findDistanceToClosestBoundary(const odb::Rect& cluster_box,
@@ -3248,7 +3248,7 @@ void Pusher::findDistanceToClosestBoundary(const odb::Rect& cluster_box,
32483248
continue;
32493249
}
32503250

3251-
int dist_to_boundary = computeDistanceToBoundary(cluster_box, boundary);
3251+
int dist_to_boundary = computeDistanceToCoreBoundary(cluster_box, boundary);
32523252

32533253
if (dist_to_boundary < min_dist_to_push) {
32543254
if (other_boundary == NONE) {

src/mpl/src/hier_rtlmp.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ class Pusher
362362
void fetchMacroClusters(Cluster* parent,
363363
std::vector<Cluster*>& macro_clusters);
364364
void findDistanceToClosestBoundaries(Cluster* macro_cluster);
365-
int computeDistanceToBoundary(const odb::Rect& cluster_box, Boundary edge);
365+
int computeDistanceToCoreBoundary(const odb::Rect& cluster_box,
366+
Boundary edge);
366367
void findDistanceToClosestBoundary(const odb::Rect& cluster_box,
367368
const HardMacro* hard_macro,
368369
bool horizontal);

0 commit comments

Comments
 (0)