replaceEquivCellBefore non-liberty port

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2021-11-18 10:56:07 -07:00
parent fc3143609d
commit c787060a9a
1 changed files with 25 additions and 23 deletions

View File

@ -4080,6 +4080,7 @@ Sta::replaceEquivCellBefore(Instance *inst,
while (pin_iter->hasNext()) { while (pin_iter->hasNext()) {
Pin *pin = pin_iter->next(); Pin *pin = pin_iter->next();
LibertyPort *port = network_->libertyPort(pin); LibertyPort *port = network_->libertyPort(pin);
if (port) {
if (port->direction()->isAnyInput()) { if (port->direction()->isAnyInput()) {
Vertex *vertex = graph_->pinLoadVertex(pin); Vertex *vertex = graph_->pinLoadVertex(pin);
replaceCellPinInvalidate(port, vertex, to_cell); replaceCellPinInvalidate(port, vertex, to_cell);
@ -4106,6 +4107,7 @@ Sta::replaceEquivCellBefore(Instance *inst,
graph_delay_calc_->delayInvalid(vertex); graph_delay_calc_->delayInvalid(vertex);
} }
} }
}
delete pin_iter; delete pin_iter;
} }
} }