Go to the documentation of this file.
38 #ifndef __SIM_POWER_POWER_MODEL_HH__
39 #define __SIM_POWER_POWER_MODEL_HH__
42 #include "enums/PMType.hh"
43 #include "params/PowerModel.hh"
44 #include "params/PowerModelState.hh"
58 typedef PowerModelStateParams
Params;
92 .
desc(
"Dynamic power for this object (Watts)")
98 .
desc(
"Static power for this object (Watts)")
145 .
desc(
"Dynamic power for this power state")
151 .
desc(
"Static power for this power state")
167 const std::string &
name)
virtual void regStats()
Callback to set stat parameters.
The SubSystem simobject does nothing, it is just a container for other simobjects used by the configu...
Stats::Value dynamicPower
Derived & method(T *obj, V(T::*method)() const)
Extended functor that calls the specified method of the provided object.
ClockedObject * clocked_object
The clocked object we belong to.
PowerModelStateParams Params
virtual void setTemperature(double temp)
Temperature update.
PowerModel(const Params *p)
void setClockedObject(ClockedObject *clkobj)
double getDynamicPower() const
Get the dynamic power consumption.
void regStats()
Callback to set stat parameters.
void setClockedObject(ClockedObject *clkobj)
void thermalUpdateCallback(const double &temp)
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to ...
std::unique_ptr< ThermalProbeListener > thermalListener
Listener to catch temperature changes in the SubSystem.
Listener class to catch thermal events.
void notify(const double &temp)
virtual double getStaticPower() const =0
Get the static power consumption.
ThermalProbeListener(PowerModel &_pm, ProbeManager *pm, const std::string &name)
Derived & name(const std::string &name)
Set the name and marks this stat to print at the end of simulation.
const Params * params() const
virtual const std::string name() const
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.
virtual double getDynamicPower() const =0
Get the dynamic power consumption.
double _temp
Current temperature.
A PowerModelState is an abstract class used as interface to get power figures out of SimObjects.
void regStats()
Callback to set stat parameters.
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.
Derived & desc(const std::string &_desc)
Set the description and marks this stat to print at the end of simulation.
Stats::Value dynamicPower
PowerModelState(const Params *p)
virtual void regProbePoints()
Register probe points for this object.
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 Wed Sep 30 2020 14:02:14 for gem5 by doxygen 1.8.17