Skip to content

Commit 1d645dd

Browse files
committed
grt: skip FastRoute-capacity pin reachability check on the CUGR path
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
1 parent b4322c1 commit 1d645dd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/grt/src/GlobalRouter.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,8 +1441,9 @@ std::vector<RoutePt> GlobalRouter::findOnGridPositions(
14411441
pos_on_grid = grid_->getPositionOnGrid(rect_middle);
14421442
// if a macro/pad pin is unreachable due to not having enough resources
14431443
// at its on grid position, get the position closest to the macro/pad
1444-
// boundary to ensure routability
1445-
if (pin.isConnectedToPadOrMacro()
1444+
// boundary to ensure routability. CUGR has no FastRoute edge capacities
1445+
// to query, so it skips this heuristic and routes from the center.
1446+
if (!use_cugr_ && pin.isConnectedToPadOrMacro()
14461447
&& !isPinReachable(pin, pos_on_grid)) {
14471448
pos_on_grid = grid_->getPositionOnGrid(
14481449
pin.getPositionNearInstEdge(pin_box, rect_middle));

0 commit comments

Comments
 (0)