Sta::worstSlack

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2022-05-31 21:56:11 -07:00
parent 489ffac144
commit f586c53935
2 changed files with 12 additions and 1 deletions

View File

@ -956,6 +956,7 @@ public:
const MinMax *min_max);
// Worst endpoint slack and vertex.
// Incrementally updated.
Slack worstSlack(const MinMax *min_max);
void worstSlack(const MinMax *min_max,
// Return values.
Slack &worst_slack,

View File

@ -3206,6 +3206,16 @@ Sta::totalNegativeSlack(const Corner *corner,
return search_->totalNegativeSlack(corner, min_max);
}
Slack
Sta::worstSlack(const MinMax *min_max)
{
searchPreamble();
Slack worst_slack;
Vertex *worst_vertex;
search_->worstSlack(min_max, worst_slack, worst_vertex);
return worst_slack;
}
void
Sta::worstSlack(const MinMax *min_max,
// Return values.
@ -3213,7 +3223,7 @@ Sta::worstSlack(const MinMax *min_max,
Vertex *&worst_vertex)
{
searchPreamble();
return search_->worstSlack(min_max, worst_slack, worst_vertex);
search_->worstSlack(min_max, worst_slack, worst_vertex);
}
void