Sta::endpoints() return VertexSet

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2024-01-29 12:26:27 -07:00
parent be7c9b2288
commit 0d8ffda061
3 changed files with 14 additions and 12 deletions

View File

@ -937,8 +937,9 @@ public:
void delaysInvalid();
// Invalidate all arrival and required times.
void arrivalsInvalid();
PinSet startpoints();
PinSet endpoints();
PinSet startpointPins();
PinSet endpointPins();
VertexSet *endpoints();
int endpointViolationCount(const MinMax *min_max);
// Find the fanin vertices for a group path.
// Vertices in the clock network are NOT included.

View File

@ -2659,7 +2659,7 @@ Sta::ensureClkArrivals()
////////////////////////////////////////////////////////////////
PinSet
Sta::startpoints()
Sta::startpointPins()
{
ensureGraph();
PinSet pins(network_);
@ -2668,8 +2668,15 @@ Sta::startpoints()
return pins;
}
PinSet
VertexSet *
Sta::endpoints()
{
ensureGraph();
return search_->endpoints();
}
PinSet
Sta::endpointPins()
{
ensureGraph();
PinSet pins(network_);

View File

@ -3055,13 +3055,13 @@ worst_clk_skew_cmd(const SetupHold *setup_hold)
PinSet
startpoints()
{
return Sta::sta()->startpoints();
return Sta::sta()->startpointPins();
}
PinSet
endpoints()
{
return Sta::sta()->endpoints();
return Sta::sta()->endpointPins();
}
PinSet
@ -4058,12 +4058,6 @@ port_location(const Port *port)
return pin_location(pin);
}
int
endpoint_count()
{
return Sta::sta()->endpoints().size();
}
int
endpoint_violation_count(const MinMax *min_max)
{