Skip to content

Commit

Permalink
grt: reset FastRouteCore when repairing antennas from detailed routing
Browse files Browse the repository at this point in the history
Signed-off-by: Eder Monteiro <[email protected]>
  • Loading branch information
eder-matheus committed Aug 29, 2024
1 parent 23035d0 commit 04e688f
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 04e688f

Please sign in to comment.