Skip to content

Commit 3d56a37

Browse files
committed
grt: add comment + small refactor
Signed-off-by: Eder Monteiro <[email protected]>
1 parent f67b464 commit 3d56a37

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/grt/src/GlobalRouter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,8 @@ bool GlobalRouter::findPinAccessPointPositions(
937937
} else if (pin.isCorePin()) {
938938
access_points = pin.getITerm()->getPrefAccessPoints();
939939
} else {
940+
// For non-core cells, DRT does not assign preferred APs.
941+
// Use all APs to ensure the guides covering at least one AP.
940942
for (const auto& [pin, aps] : pin.getITerm()->getAccessPoints()) {
941943
access_points.insert(access_points.end(), aps.begin(), aps.end());
942944
}

src/grt/src/Pin.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,7 @@ odb::Point Pin::getPositionNearInstEdge(const odb::Rect& pin_box,
187187

188188
bool Pin::isCorePin() const
189189
{
190-
if (is_port_) {
191-
return false;
192-
}
193-
194-
if (connected_to_pad_or_macro_) {
190+
if (iterm == nullptr) {
195191
return false;
196192
}
197193

0 commit comments

Comments
 (0)