mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-05-30 00:24:12 +08:00
Sta::clear() call Power::clear() resolves #278
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
@@ -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_)
|
||||
|
||||
Reference in New Issue
Block a user