mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-09-06 01:07:00 +02:00
bulletproofing against incremental updates with missing liberty
Signed-off-by: James Cherry <[email protected]>
This commit is contained in:
+7
-5
@@ -344,11 +344,13 @@ Graph::makeWireEdge(Pin *from_pin,
|
||||
Vertex *from_vertex, *from_bidirect_drvr_vertex;
|
||||
pinVertices(from_pin, from_vertex, from_bidirect_drvr_vertex);
|
||||
Vertex *to_vertex = pinLoadVertex(to_pin);
|
||||
// From and/or to can be bidirect, but edge is always from driver to load.
|
||||
if (from_bidirect_drvr_vertex)
|
||||
makeEdge(from_bidirect_drvr_vertex, to_vertex, arc_set);
|
||||
else
|
||||
makeEdge(from_vertex, to_vertex, arc_set);
|
||||
if (from_vertex && to_vertex) {
|
||||
// From and/or to can be bidirect, but edge is always from driver to load.
|
||||
if (from_bidirect_drvr_vertex)
|
||||
makeEdge(from_bidirect_drvr_vertex, to_vertex, arc_set);
|
||||
else
|
||||
makeEdge(from_vertex, to_vertex, arc_set);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user