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"
62 typedef PowerModelStateParams
Params;
140 const std::string &
name)
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.
void setClockedObject(ClockedObject *clkobj)
virtual double getStaticPower() const =0
Get the static power consumption.
PowerModelStateParams Params
ClockedObject * clocked_object
The clocked object we belong to.
The class stores temperatures in Kelvin and provides helper methods to convert to/from Celsius.
PowerModel(const Params &p)
virtual double getDynamicPower() const =0
Get the dynamic power consumption.
The SubSystem simobject does nothing, it is just a container for other simobjects used by the configu...
statistics::Value staticPower
void notify(const Temperature &temp)
double getDynamicPower() const
Get the dynamic power consumption.
Abstract superclass for simulation objects.
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 ...
ProbeManager is a conduit class that lives on each SimObject, and is used to match up probe listeners...
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
ThermalProbeListener(PowerModel &_pm, ProbeManager *pm, const std::string &name)
ProbeListenerArgBase is used to define the base interface to a ProbeListenerArg (i....
Listener class to catch thermal events.
statistics::Value dynamicPower
std::unique_ptr< ThermalProbeListener > thermalListener
Listener to catch temperature changes in the SubSystem.
Temperature _temp
Current temperature.
A PowerModelState is an abstract class used as interface to get power figures out of SimObjects.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
virtual void setTemperature(Temperature temp)
Temperature update.
PowerModelState(const Params &p)
Generated on Sun Jul 30 2023 01:56:59 for gem5 by doxygen 1.8.17