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 21:02:17 -07:00
parent b456589007
commit e7bffbfef5
1 changed files with 2 additions and 1 deletions

View File

@ -494,7 +494,8 @@ PropActivityVisitor::visit(Vertex *vertex)
LibertyCell *test_cell = port->libertyCell()->testCell(); LibertyCell *test_cell = port->libertyCell()->testCell();
if (test_cell) if (test_cell)
port = test_cell->findLibertyPort(port->name()); port = test_cell->findLibertyPort(port->name());
}
if (port) {
FuncExpr *func = port->function(); FuncExpr *func = port->function();
if (func) { if (func) {
PwrActivity activity = power_->evalActivity(func, inst); PwrActivity activity = power_->evalActivity(func, inst);