Skip to content

Commit

Permalink
report_power bidir missing func seg fault
Browse files Browse the repository at this point in the history
  • Loading branch information
jjcherry56 committed Apr 24, 2020
1 parent 726300c commit 4084f03
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions search/Power.cc
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,15 @@ PropActivityVisitor::visit(Vertex *vertex)
LibertyPort *port = network_->libertyPort(pin);
if (port) {
FuncExpr *func = port->function();
Instance *inst = network_->instance(pin);
PwrActivity activity = power_->evalActivity(func, inst);
power_->setPinActivity(pin, activity);
debugPrint3(debug_, "power_activity", 3, "set %s %.2e %.2f\n",
vertex->name(network_),
activity.activity(),
activity.duty());
if (func) {
Instance *inst = network_->instance(pin);
PwrActivity activity = power_->evalActivity(func, inst);
power_->setPinActivity(pin, activity);
debugPrint3(debug_, "power_activity", 3, "set %s %.2e %.2f\n",
vertex->name(network_),
activity.activity(),
activity.duty());
}
}
}
bfs_->enqueueAdjacentVertices(vertex);
Expand Down

0 comments on commit 4084f03

Please sign in to comment.