From 04e688f097d590744a300f40b6d62073b32a7ef9 Mon Sep 17 00:00:00 2001 From: Eder Monteiro Date: Thu, 29 Aug 2024 18:54:32 +0000 Subject: [PATCH] grt: reset FastRouteCore when repairing antennas from detailed routing Signed-off-by: Eder Monteiro --- src/grt/src/GlobalRouter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/grt/src/GlobalRouter.cpp b/src/grt/src/GlobalRouter.cpp index f79fedfc021..99b796ead7d 100644 --- a/src/grt/src/GlobalRouter.cpp +++ b/src/grt/src/GlobalRouter.cpp @@ -172,6 +172,7 @@ GlobalRouter::~GlobalRouter() std::vector GlobalRouter::initFastRoute(int min_routing_layer, int max_routing_layer) { + fastroute_->clear(); ensureLayerForGuideDimension(max_routing_layer); configFastRoute(); @@ -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);