Go to the documentation of this file.
38 #ifndef __SIM_MATHEXPR_POWERMODEL_PM_HH__
39 #define __SIM_MATHEXPR_POWERMODEL_PM_HH__
41 #include <unordered_map>
43 #include "params/MathExprPowerModel.hh"
63 typedef MathExprPowerModelParams
Params;
106 std::unordered_map<std::string, const statistics::Info*>
statsMap;
void regStats() override
Callback to set stat parameters.
double getDynamicPower() const override
Get the dynamic power consumption.
double eval(const MathExpr &expr) const
Evaluate an expression in the context of this object, fatal if evaluation fails.
virtual std::string name() const
double getStatValue(const std::string &name) const
Get the value for a variable (maps to a stat)
std::unordered_map< std::string, const statistics::Info * > statsMap
MathExprPowerModelParams Params
void startup() override
startup() is the final initialization call before simulation.
double getStaticPower() const override
Get the static power consumption.
MathExprPowerModel(const Params &p)
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....
Generated on Sun Jul 30 2023 01:56:59 for gem5 by doxygen 1.8.17