PropActivityVisitor::visit null port check PR 301

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2025-09-29 19:45:04 -07:00
parent 37e1d15433
commit b456589007
1 changed files with 4 additions and 3 deletions

View File

@ -490,10 +490,11 @@ PropActivityVisitor::visit(Vertex *vertex)
}
if (network_->isDriver(pin)) {
LibertyPort *port = network_->libertyPort(pin);
LibertyCell *test_cell = port->libertyCell()->testCell();
if (test_cell)
port = test_cell->findLibertyPort(port->name());
if (port) {
LibertyCell *test_cell = port->libertyCell()->testCell();
if (test_cell)
port = test_cell->findLibertyPort(port->name());
FuncExpr *func = port->function();
if (func) {
PwrActivity activity = power_->evalActivity(func, inst);