Skip to content

Commit 701ca9e

Browse files
committed
mpl:
1. Remove unused argument 2. Improve comments 3. Adpt function name 4. TO DOs clean up Signed-off-by: Arthur Koucher <[email protected]>
1 parent 7ee63d0 commit 701ca9e

File tree

6 files changed

+8
-10
lines changed

6 files changed

+8
-10
lines changed

src/mpl/src/SimulatedAnnealingCore.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ void SimulatedAnnealingCore<T>::calWirelength()
291291
T& target = macros_[net.terminals.second];
292292

293293
if (target.isClusterOfUnconstrainedIOPins()) {
294-
addClosestAvailableRegionDistToWL(source, target, net.weight);
294+
addClosestAvailableRegionDistToWL(source, net.weight);
295295
continue;
296296
}
297297

@@ -317,7 +317,6 @@ void SimulatedAnnealingCore<T>::calWirelength()
317317
template <class T>
318318
void SimulatedAnnealingCore<T>::addClosestAvailableRegionDistToWL(
319319
const T& macro,
320-
const T& io,
321320
const float net_weight)
322321
{
323322
if (isOutsideTheOutline(macro)) {

src/mpl/src/SimulatedAnnealingCore.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ class SimulatedAnnealingCore
135135
void calOutlinePenalty();
136136
void calWirelength();
137137
void addClosestAvailableRegionDistToWL(const T& macro,
138-
const T& io,
139138
float net_weight);
140139
bool isOutsideTheOutline(const T& macro) const;
141140
float computeDistance(const Point& a, const Point& b) const;

src/mpl/src/clusterEngine.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ struct PhysicalHierarchy
114114
PhysicalHierarchyMaps maps;
115115

116116
std::vector<Rect> available_regions_for_pins;
117-
std::set<Boundary> unblocked_boundaries; // TODO: remove
118117

119118
float halo_width{0.0f};
120119
float halo_height{0.0f};

src/mpl/src/graphics.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ void Graphics::drawObjects(gui::Painter& painter)
519519
}
520520
}
521521

522-
drawBlockedBoundariesIndication(painter);
522+
drawBlockedRegionsIndication(painter);
523523

524524
painter.setBrush(gui::Painter::transparent);
525525
if (only_final_result_) {
@@ -565,7 +565,7 @@ void Graphics::drawGuides(gui::Painter& painter)
565565
}
566566
}
567567

568-
void Graphics::drawBlockedBoundariesIndication(gui::Painter& painter)
568+
void Graphics::drawBlockedRegionsIndication(gui::Painter& painter)
569569
{
570570
painter.setPen(gui::Painter::red, true);
571571
painter.setBrush(gui::Painter::transparent);

src/mpl/src/graphics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class Graphics : public gui::Renderer, public MplObserver
101101
void setXMarksSize();
102102
void resetPenalties();
103103
void drawCluster(Cluster* cluster, gui::Painter& painter);
104-
void drawBlockedBoundariesIndication(gui::Painter& painter);
104+
void drawBlockedRegionsIndication(gui::Painter& painter);
105105
void drawAllBlockages(gui::Painter& painter);
106106
void drawOffsetRect(const Rect& rect,
107107
const std::string& center_text,

src/mpl/src/hier_rtlmp.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -896,9 +896,10 @@ void HierRTLMP::createPinAccessBlockages()
896896

897897
if (blocked_regions_for_pins.empty()) {
898898
// If there are no constraints at all, we give freedom to SA so it
899-
// doesn't have to deal with pin access blockages in all boundaries.
900-
// This will help SA not relying on extreme utilizations to
901-
// converge for designs such as sky130hd/uW.
899+
// doesn't have to deal with pin access blockages across the entire
900+
// extension of all edges of the die area. This should help SA not
901+
// relying on extreme utilizations to converge for designs such as
902+
// sky130hd/uW.
902903
return;
903904
}
904905

0 commit comments

Comments
 (0)