Sta::clear() call Power::clear() resolves #278

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2025-07-31 14:20:55 -07:00
parent ec3208bfbf
commit 0ab75c30bf
3 changed files with 13 additions and 0 deletions

View File

@ -104,6 +104,17 @@ Power::Power(StaState *sta) :
{
}
void
Power::clear()
{
global_activity_.init();
input_activity_.init();
user_activity_map_.clear();
seq_activity_map_.clear();
activity_map_.clear();
activities_valid_ = false;
}
void
Power::setGlobalActivity(float density,
float duty)

View File

@ -75,6 +75,7 @@ class Power : public StaState
{
public:
Power(StaState *sta);
void clear();
void power(const Corner *corner,
// Return values.
PowerResult &total,

View File

@ -586,6 +586,7 @@ Sta::clear()
parasitics_->clear();
graph_delay_calc_->clear();
sim_->clear();
power_->clear();
if (check_min_pulse_widths_)
check_min_pulse_widths_->clear();
if (check_min_periods_)