summaryrefslogtreecommitdiff
path: root/configs/example/ruby_direct_test.py
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2013-09-12 17:49:12 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2013-09-12 17:49:12 -0400
commitc9e45f01e4f84bce12cd77a3f0ecdb47b8051caa (patch)
treec2e20afd5a6902038c344c2bb10d94d43c5dbc7d /configs/example/ruby_direct_test.py
parentcc155ffa0d6b199b71bc598c7f267a4b7da07ac3 (diff)
downloadgem5-c9e45f01e4f84bce12cd77a3f0ecdb47b8051caa.tar.xz
config: Add voltage domain to Ruby example scripts
This patch adds the minimum required voltage domain configuration to the Ruby example scripts.
Diffstat (limited to 'configs/example/ruby_direct_test.py')
-rw-r--r--configs/example/ruby_direct_test.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/configs/example/ruby_direct_test.py b/configs/example/ruby_direct_test.py
index e4d4c73f8..fe96bdc2d 100644
--- a/configs/example/ruby_direct_test.py
+++ b/configs/example/ruby_direct_test.py
@@ -92,8 +92,14 @@ else:
# actually used by the rubytester, but is included to support the
# M5 memory size == Ruby memory size checks
#
-system = System(physmem = SimpleMemory(),
- clk_domain = SrcClockDomain(clock = options.sys_clock))
+system = System(physmem = SimpleMemory())
+
+
+# Create a top-level voltage domain and clock domain
+system.voltage_domain = VoltageDomain(voltage = options.sys_voltage)
+
+system.clk_domain = SrcClockDomain(clock = options.sys_clock,
+ voltage_domain = system.voltage_domain)
#
# Create the ruby random tester
@@ -105,7 +111,8 @@ system.tester = RubyDirectedTester(requests_to_complete = \
Ruby.create_system(options, system)
# Since Ruby runs at an independent frequency, create a seperate clock
-system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock)
+system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock,
+ voltage_domain = system.voltage_domain)
assert(options.num_cpus == len(system.ruby._cpu_ruby_ports))