summaryrefslogtreecommitdiff
path: root/src/sim/power/SConscript
diff options
context:
space:
mode:
authorDavid Guillen Fandos <david.guillen@arm.com>2016-06-06 17:16:44 +0100
committerDavid Guillen Fandos <david.guillen@arm.com>2016-06-06 17:16:44 +0100
commit7cfb59d6e580bac0d663bc22da315aed7746fdeb (patch)
treed600a1e07357e2a56c0a73f0f41b2d6eff59c2d3 /src/sim/power/SConscript
parentfb5fc11da49938660ea22c336964677cdba890e1 (diff)
downloadgem5-7cfb59d6e580bac0d663bc22da315aed7746fdeb.tar.xz
sim: Adding support for power models
This patch adds some basic support for power models in gem5. The power interface is defined so it can interact with thermal models as well. It implements a simple power evaluator that can be used for simple power models that express power in the form of a math expression. These expressions can use stats within the same SimObject (or down its hierarchy) and some magic variables such as "temp" for temperature. In future patches we will extend this functionality to allow slightly more complex expressions. The model allows it to be extended to use other kinds of models. Change-Id: I76752f9638b6815e229fd74cdcb7721a305cbc4b
Diffstat (limited to 'src/sim/power/SConscript')
-rw-r--r--src/sim/power/SConscript5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sim/power/SConscript b/src/sim/power/SConscript
index 8ec65519c..2f0eb4fc1 100644
--- a/src/sim/power/SConscript
+++ b/src/sim/power/SConscript
@@ -30,9 +30,14 @@
Import('*')
+SimObject('MathExprPowerModel.py')
+SimObject('PowerModel.py')
+SimObject('PowerModelState.py')
SimObject('ThermalDomain.py')
SimObject('ThermalModel.py')
+Source('power_model.cc')
+Source('mathexpr_powermodel.cc')
Source('thermal_domain.cc')
Source('thermal_model.cc')