40 #ifndef __SIM_MATHEXPR_POWERMODEL_PM_HH__
41 #define __SIM_MATHEXPR_POWERMODEL_PM_HH__
43 #include <unordered_map>
45 #include "params/MathExprPowerModel.hh"
61 typedef MathExprPowerModelParams
Params;
117 std::unordered_map<std::string, Stats::Info*>
stats_map;
double getDynamicPower() const
Get the dynamic power consumption.
std::unordered_map< std::string, Stats::Info * > stats_map
double eval(const MathExpr &expr) const
Evaluate an expression in the context of this object, fatal if evaluation fails.
double getStaticPower() const
Get the static power consumption.
MathExprPowerModel(const Params *p)
void regStats()
Register statistics for this object.
void startup()
startup() is the final initialization call before simulation.
MathExprPowerModelParams Params
virtual const std::string name() const
A PowerModelState is an abstract class used as interface to get power figures out of SimObjects...
double tryEval(const MathExpr &expr) const
Evaluate an expression in the context of this object, set failed if evaluation failed.
double getStatValue(const std::string &name) const
Get the value for a variable (maps to a stat)