We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37e1d15 commit b456589Copy full SHA for b456589
power/Power.cc
@@ -490,10 +490,11 @@ PropActivityVisitor::visit(Vertex *vertex)
490
}
491
if (network_->isDriver(pin)) {
492
LibertyPort *port = network_->libertyPort(pin);
493
- LibertyCell *test_cell = port->libertyCell()->testCell();
494
- if (test_cell)
495
- port = test_cell->findLibertyPort(port->name());
496
if (port) {
+ LibertyCell *test_cell = port->libertyCell()->testCell();
+ if (test_cell)
+ port = test_cell->findLibertyPort(port->name());
497
+
498
FuncExpr *func = port->function();
499
if (func) {
500
PwrActivity activity = power_->evalActivity(func, inst);
0 commit comments