Sta::clear() call Power::clear() resolves #278
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
ec3208bfbf
commit
0ab75c30bf
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ class Power : public StaState
|
|||
{
|
||||
public:
|
||||
Power(StaState *sta);
|
||||
void clear();
|
||||
void power(const Corner *corner,
|
||||
// Return values.
|
||||
PowerResult &total,
|
||||
|
|
|
|||
|
|
@ -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_)
|
||||
|
|
|
|||
Loading…
Reference in New Issue