Skip to content

Commit

Permalink
Merge pull request The-OpenROAD-Project#3387 from The-OpenROAD-Projec…
Browse files Browse the repository at this point in the history
…t-staging/cts-recursion

cts: stop infinite recursion when length is not found
  • Loading branch information
maliberty authored May 25, 2023
2 parents a7e0919 + c5394c2 commit 575222d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cts/src/HTreeBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,9 @@ unsigned HTreeBuilder::computeMinDelaySegment(const unsigned length,
}

if (minKey == std::numeric_limits<unsigned>::max()) {
if (tolerance >= MAX_TOLERANCE) {
return minKey;
}
// Increasing tolerance
return computeMinDelaySegment(length,
inputSlew,
Expand Down

0 comments on commit 575222d

Please sign in to comment.