summaryrefslogtreecommitdiff
path: root/src/sim/SConscript
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/SConscript
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/SConscript')
-rw-r--r--src/sim/SConscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sim/SConscript b/src/sim/SConscript
index 7aa4702cd..90d77848b 100644
--- a/src/sim/SConscript
+++ b/src/sim/SConscript
@@ -35,6 +35,7 @@ SimObject('ClockedObject.py')
SimObject('Root.py')
SimObject('InstTracer.py')
SimObject('ClockDomain.py')
+SimObject('VoltageDomain.py')
Source('arguments.cc')
Source('async.cc')
@@ -52,6 +53,7 @@ Source('simulate.cc')
Source('stat_control.cc')
Source('syscall_emul.cc')
Source('clock_domain.cc')
+Source('voltage_domain.cc')
if env['TARGET_ISA'] != 'no':
SimObject('Process.py')
@@ -84,3 +86,4 @@ DebugFlag('Timer')
DebugFlag('VtoPhys')
DebugFlag('WorkItems')
DebugFlag('ClockDomain')
+DebugFlag('VoltageDomain')