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)
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to ...
A PowerModelState is an abstract class used as interface to get power figures out of SimObjects.
PowerModelStateParams Params
statistics::Value dynamicPower
PowerModelState(const Params &p)
virtual double getDynamicPower() const =0
Get the dynamic power consumption.
void setClockedObject(ClockedObject *clkobj)
Temperature _temp
Current temperature.
ClockedObject * clocked_object
The clocked object we belong to.
virtual void setTemperature(Temperature temp)
Temperature update.
virtual double getStaticPower() const =0
Get the static power consumption.
statistics::Value staticPower
Listener class to catch thermal events.
void notify(const Temperature &temp)
ThermalProbeListener(PowerModel &_pm, ProbeManager *pm, const std::string &name)
virtual void regProbePoints()
Register probe points for this object.
enums::PMType power_model_type
The type of power model - collects all power, static or dynamic only.
statistics::Value staticPower
double getStaticPower() const
Get the static power consumption.
void setClockedObject(ClockedObject *clkobj)
ClockedObject * clocked_object
The clocked object we belong to.
PowerModel(const Params &p)
SubSystem * subsystem
The subsystem this power model belongs to.
void thermalUpdateCallback(const Temperature &temp)
std::vector< PowerModelState * > states_pm
Actual power models (one per power state)
double getDynamicPower() const
Get the dynamic power consumption.
statistics::Value dynamicPower
std::unique_ptr< ThermalProbeListener > thermalListener
Listener to catch temperature changes in the SubSystem.
ProbeListenerArgBase is used to define the base interface to a ProbeListenerArg (i....
ProbeManager is a conduit class that lives on each SimObject, and is used to match up probe listeners...
Abstract superclass for simulation objects.
The SubSystem simobject does nothing, it is just a container for other simobjects used by the configu...
The class stores temperatures in Kelvin and provides helper methods to convert to/from Celsius.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Declaration of Statistics objects.