Go to the documentation of this file.
38 #ifndef __SIM_POWER_POWER_MODEL_HH__
39 #define __SIM_POWER_POWER_MODEL_HH__
43 #include "enums/PMType.hh"
44 #include "params/PowerModel.hh"
45 #include "params/PowerModelState.hh"
59 typedef PowerModelStateParams
Params;
137 const std::string &
name)
The SubSystem simobject does nothing, it is just a container for other simobjects used by the configu...
Stats::Value dynamicPower
ClockedObject * clocked_object
The clocked object we belong to.
PowerModelStateParams Params
void setClockedObject(ClockedObject *clkobj)
double getDynamicPower() const
Get the dynamic power consumption.
void setClockedObject(ClockedObject *clkobj)
PowerModel(const Params &p)
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to ...
The class stores temperatures in Kelvin and provides helper methods to convert to/from Celsius.
std::unique_ptr< ThermalProbeListener > thermalListener
Listener to catch temperature changes in the SubSystem.
Listener class to catch thermal events.
virtual void setTemperature(Temperature temp)
Temperature update.
virtual double getStaticPower() const =0
Get the static power consumption.
ThermalProbeListener(PowerModel &_pm, ProbeManager *pm, const std::string &name)
PowerModelState(const Params &p)
Temperature _temp
Current temperature.
ProbeManager is a conduit class that lives on each SimObject, and is used to match up probe listeners...
Enums::PMType power_model_type
The type of power model - collects all power, static or dynamic only.
void notify(const Temperature &temp)
virtual double getDynamicPower() const =0
Get the dynamic power consumption.
A PowerModelState is an abstract class used as interface to get power figures out of SimObjects.
ClockedObject * clocked_object
The clocked object we belong to.
std::vector< PowerModelState * > states_pm
Actual power models (one per power state)
double getStaticPower() const
Get the static power consumption.
Stats::Value dynamicPower
virtual void regProbePoints()
Register probe points for this object.
void thermalUpdateCallback(const Temperature &temp)
SubSystem * subsystem
The subsystem this power model belongs to.
Abstract superclass for simulation objects.
ProbeListenerArgBase is used to define the base interface to a ProbeListenerArg (i....
Generated on Tue Mar 23 2021 19:41:28 for gem5 by doxygen 1.8.17