summaryrefslogtreecommitdiff
path: root/src/sim/ClockDomain.py
diff options
context:
space:
mode:
authorAkash Bagdia <akash.bagdia@arm.com>2013-08-19 03:52:28 -0400
committerAkash Bagdia <akash.bagdia@arm.com>2013-08-19 03:52:28 -0400
commite7e17f92db8b249aaf99eb93a2447937d78270d5 (patch)
tree980dd4678997a5c360ed770b2ce1a225cd0eea32 /src/sim/ClockDomain.py
parenta8480fe1c34db25ae8acb5f79d571bc924e0daeb (diff)
downloadgem5-e7e17f92db8b249aaf99eb93a2447937d78270d5.tar.xz
power: Add voltage domains to the clock domains
This patch adds the notion of voltage domains, and groups clock domains that operate under the same voltage (i.e. power supply) into domains. Each clock domain is required to be associated with a voltage domain, and the latter requires the voltage to be explicitly set. A voltage domain is an independently controllable voltage supply being provided to section of the design. Thus, if you wish to perform dynamic voltage scaling on a CPU, its clock domain should be associated with a separate voltage domain. The current implementation of the voltage domain does not take into consideration cases where there are derived voltage domains running at ratio of native voltage domains, as with the case where there can be on-chip buck/boost (charge pumps) voltage regulation logic. The regression and configuration scripts are updated with a generic voltage domain for the system, and one for the CPUs.
Diffstat (limited to 'src/sim/ClockDomain.py')
-rw-r--r--src/sim/ClockDomain.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sim/ClockDomain.py b/src/sim/ClockDomain.py
index 37958dc26..2a3b6addf 100644
--- a/src/sim/ClockDomain.py
+++ b/src/sim/ClockDomain.py
@@ -38,6 +38,7 @@
from m5.params import *
from m5.SimObject import SimObject
+from m5.proxy import *
# Abstract clock domain
class ClockDomain(SimObject):
@@ -51,6 +52,9 @@ class SrcClockDomain(ClockDomain):
cxx_header = "sim/clock_domain.hh"
clock = Param.Clock("Clock period")
+ # A source clock must be associated with a voltage domain
+ voltage_domain = Param.VoltageDomain("Voltage domain")
+
# Derived clock domain with a parent clock domain and a frequency
# divider
class DerivedClockDomain(ClockDomain):