diff options
Diffstat (limited to 'src/sim/power/PowerModel.py')
-rw-r--r-- | src/sim/power/PowerModel.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sim/power/PowerModel.py b/src/sim/power/PowerModel.py index ecb45b442..342569013 100644 --- a/src/sim/power/PowerModel.py +++ b/src/sim/power/PowerModel.py @@ -1,4 +1,4 @@ -# Copyright (c) 2016 ARM Limited +# Copyright (c) 2016-2018 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall @@ -39,6 +39,9 @@ from m5.SimObject import * from m5.params import * from m5.proxy import Parent +# Enum for a type of power model +class PMType(Enum) : vals = ['All', 'Static', 'Dynamic'] + # Represents a power model for a simobj # The model itself is also a SimObject so we can make use some # nice features available such as Parent.any @@ -57,3 +60,6 @@ class PowerModel(SimObject): # Need a reference to the system so we can query the thermal domain # about temperature (temperature is needed for leakage calculation) subsystem = Param.SubSystem(Parent.any, "subsystem") + + # Type of power model + pm_type = Param.PMType("All", "Type of power model") |