Skip to content

Commit 215d855

Browse files
committed
grt/cugr: return rerouted nets from incremental route to match FastRoute path
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
1 parent 5a9a438 commit 215d855

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/grt/src/GlobalRouter.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6369,6 +6369,8 @@ std::vector<Net*> GlobalRouter::updateDirtyRoutes(bool save_guides)
63696369

63706370
if (use_cugr_) {
63716371
cugr_->setVerbose(false);
6372+
std::vector<Net*> dirty_nets;
6373+
dirty_nets.reserve(dirty_nets_.size());
63726374
for (odb::dbNet* db_net : dirty_nets_) {
63736375
// Rebuild the GlobalRouter pin set from the netlist (as updateDirtyNets
63746376
// does for FastRoute); updatePinAccessPoints below fixes the positions.
@@ -6377,13 +6379,14 @@ std::vector<Net*> GlobalRouter::updateDirtyRoutes(bool save_guides)
63776379
net->setDirtyNet(false);
63786380
net->clearLastPinPositions();
63796381
cugr_->updateNet(db_net);
6382+
dirty_nets.push_back(net);
63806383
}
63816384
dirty_nets_.clear();
63826385
cugr_->routeIncremental();
63836386
routes_ = cugr_->getRoutes();
63846387
// Sync pin access points with CUGR's routing, as the full route does.
63856388
updatePinAccessPoints();
6386-
return {};
6389+
return dirty_nets;
63876390
}
63886391

63896392
std::vector<Net*> dirty_nets;

0 commit comments

Comments
 (0)