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"
63 typedef PowerModelStateParams
Params;
146 pm.thermalUpdateCallback(temp);
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to ...
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
void notify(const Temperature &temp)
ThermalProbeListener(PowerModel &_pm, 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)
ProbeListenerPtr< ThermalProbeListener > thermalListener
Listener to catch temperature changes in the SubSystem.
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
ProbeListenerArgBase(std::string name)
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.
SimObject(const Params &p)
Copyright (c) 2024 Arm Limited All rights reserved.
std::unique_ptr< Listener, ProbeListenerCleanup > ProbeListenerPtr
This typedef should be used instead of a raw std::unique_ptr<> since we have to disconnect the listen...
Overload hash function for BasicBlockRange type.
Declaration of Statistics objects.