Go to the documentation of this file.
   41 #include "params/PowerModel.hh" 
   42 #include "params/PowerModelState.hh" 
   50     : 
SimObject(
p), _temp(0), clocked_object(NULL),
 
   51       ADD_STAT(dynamicPower, statistics::units::Watt::get(),
 
   52                "Dynamic power for this object (Watts)"),
 
   53       ADD_STAT(staticPower, statistics::units::Watt::get(),
 
   54                "Static power for this object (Watts)")
 
   64       clocked_object(NULL), power_model_type(
p.pm_type),
 
   65       ADD_STAT(dynamicPower, statistics::units::Watt::get(),
 
   66                          "Dynamic power for this power state"),
 
   67       ADD_STAT(staticPower, statistics::units::Watt::get(),
 
   68                          "Static power for this power state")
 
   71              "Subsystem is NULL! This is not acceptable for a PowerModel!\n");
 
   76         pms->setTemperature(
p.ambient_temp);
 
   92         pms->setClockedObject(clkobj);
 
   99         pms->setTemperature(temp);
 
  125     warn_if(
w[enums::PwrState::UNDEFINED] > 0,
 
  126         "SimObject in UNDEFINED power state! Power figures might be wrong!\n");
 
  153         warn(
"SimObject in UNDEFINED power state! " 
  154              "Power figures might be wrong!\n");
 
  
SubSystem * subsystem
The subsystem this power model belongs to.
virtual void regProbePoints()
Register probe points for this object.
double getStaticPower() const
Get the static power consumption.
virtual double getStaticPower() const =0
Get the static power consumption.
PowerModelStateParams Params
The class stores temperatures in Kelvin and provides helper methods to convert to/from Celsius.
Derived & method(T *obj, V(T::*method)() const)
Extended functor that calls the specified method of the provided object.
PowerModel(const Params &p)
virtual double getDynamicPower() const =0
Get the dynamic power consumption.
statistics::Value staticPower
#define ADD_STAT(n,...)
Convenience macro to add a stat to a statistics group.
double getDynamicPower() const
Get the dynamic power consumption.
Abstract superclass for simulation objects.
void registerPowerProducer(PowerModel *pm)
enums::PMType power_model_type
The type of power model - collects all power, static or dynamic only.
statistics::Value dynamicPower
void thermalUpdateCallback(const Temperature &temp)
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to ...
ClockedObject * clocked_object
The clocked object we belong to.
std::vector< PowerModelState * > states_pm
Actual power models (one per power state)
void setClockedObject(ClockedObject *clkobj)
statistics::Value staticPower
ProbeManager * getProbeManager()
Get the probe manager for this object.
#define warn_if(cond,...)
Conditional warning macro that checks the supplied condition and only prints a warning if the conditi...
#define panic_if(cond,...)
Conditional panic macro that checks the supplied condition and only panics if the condition is true a...
Listener class to catch thermal events.
statistics::Value dynamicPower
std::vector< double > getWeights() const
Returns the percentage residency for each power state.
std::unique_ptr< ThermalProbeListener > thermalListener
Listener to catch temperature changes in the SubSystem.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
PowerModelState(const Params &p)
Generated on Tue Sep 21 2021 12:25:48 for gem5 by  doxygen 1.8.17