mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-09-06 17:21:05 +02:00
power more NaNsense
This commit is contained in:
+2
-1
@@ -814,7 +814,8 @@ Power::findOutputInternalPower(const Pin *to_pin,
|
||||
float weight = 0.0;
|
||||
if (duty_sum_iter != pg_duty_sum.end()) {
|
||||
float duty_sum = duty_sum_iter->second;
|
||||
weight = duty / duty_sum;
|
||||
if (duty_sum != 0.0)
|
||||
weight = duty / duty_sum;
|
||||
}
|
||||
float port_internal = weight * energy * to_activity.activity();
|
||||
debugPrint9(debug_, "power", 2, "%3s -> %-3s %6s %.2f %.2f %.2f %9.2e %9.2e %s\n",
|
||||
|
||||
Reference in New Issue
Block a user