summaryrefslogtreecommitdiff
path: root/src/sim/ClockedObject.py
diff options
context:
space:
mode:
authorDavid Guillen Fandos <david.guillen@arm.com>2016-07-01 17:46:25 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2017-11-16 16:15:12 +0000
commit0757bef15d934b22555c396bcbcb91c0a1dffbe5 (patch)
tree1473b0ad4803cceeac138e22821e53630f1a582c /src/sim/ClockedObject.py
parent899ad72060a7a95d6c1d7090c40f23a04699b43c (diff)
downloadgem5-0757bef15d934b22555c396bcbcb91c0a1dffbe5.tar.xz
pwr: Enable multiple power models per component
This patch allows the user to specify more than one power model for any given Clocked Object. This is useful and some times necessary to properly model components that have multiple power sources (or subcomponents) but gem5 doesn't model them. The ideal solution would be to have a DictParam to replace the VectorParam so each model can have a name and can be identified in the stats file. Change-Id: I4080a7054a16b56069c44750a7a9ce4e674cdf9d Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/5733 Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/sim/ClockedObject.py')
-rw-r--r--src/sim/ClockedObject.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/ClockedObject.py b/src/sim/ClockedObject.py
index c8bf809be..2d6171888 100644
--- a/src/sim/ClockedObject.py
+++ b/src/sim/ClockedObject.py
@@ -67,7 +67,7 @@ class ClockedObject(SimObject):
clk_domain = Param.ClockDomain(Parent.clk_domain, "Clock domain")
# Power model for this ClockedObject
- power_model = Param.PowerModel(NULL, "Power model")
+ power_model = VectorParam.PowerModel([], "Power models")
# Provide initial power state, should ideally get redefined in startup
# routine