Skip to content

Commit

Permalink
Merge pull request The-OpenROAD-Project#5671 from eder-matheus/grt_re…
Browse files Browse the repository at this point in the history
…pair_antennas

grt: reset FastRouteCore when repairing antennas from detailed routing
  • Loading branch information
maliberty authored Aug 29, 2024
2 parents 23035d0 + 04e688f commit 76e93ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/grt/src/GlobalRouter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ GlobalRouter::~GlobalRouter()
std::vector<Net*> GlobalRouter::initFastRoute(int min_routing_layer,
int max_routing_layer)
{
fastroute_->clear();
ensureLayerForGuideDimension(max_routing_layer);

configFastRoute();
Expand Down Expand Up @@ -342,7 +343,7 @@ void GlobalRouter::repairAntennas(odb::dbMTerm* diode_mterm,
float ratio_margin,
const int num_threads)
{
if (!initialized_) {
if (!initialized_ || haveDetailedRoutes()) {
int min_layer, max_layer;
getMinMaxLayer(min_layer, max_layer);
initFastRoute(min_layer, max_layer);
Expand Down

0 comments on commit 76e93ff

Please sign in to comment.