diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2013-09-12 17:49:12 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2013-09-12 17:49:12 -0400 |
commit | c9e45f01e4f84bce12cd77a3f0ecdb47b8051caa (patch) | |
tree | c2e20afd5a6902038c344c2bb10d94d43c5dbc7d /configs/example/ruby_random_test.py | |
parent | cc155ffa0d6b199b71bc598c7f267a4b7da07ac3 (diff) | |
download | gem5-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_random_test.py')
-rw-r--r-- | configs/example/ruby_random_test.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/configs/example/ruby_random_test.py b/configs/example/ruby_random_test.py index cd1b82f16..203a4b142 100644 --- a/configs/example/ruby_random_test.py +++ b/configs/example/ruby_random_test.py @@ -97,13 +97,19 @@ tester = RubyTester(check_flush = check_flush, # actually used by the rubytester, but is included to support the # M5 memory size == Ruby memory size checks # -system = System(tester = tester, physmem = SimpleMemory(), - clk_domain = SrcClockDomain(clock = options.sys_clock)) +system = System(tester = tester, 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) Ruby.create_system(options, system) # Create a seperate clock domain for Ruby -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)) |