summaryrefslogtreecommitdiff
path: root/configs/example/ruby_network_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'configs/example/ruby_network_test.py')
-rw-r--r--configs/example/ruby_network_test.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/configs/example/ruby_network_test.py b/configs/example/ruby_network_test.py
index b6fdc416f..5a9764d5a 100644
--- a/configs/example/ruby_network_test.py
+++ b/configs/example/ruby_network_test.py
@@ -104,13 +104,20 @@ cpus = [ NetworkTest(fixed_pkts=options.fixed_pkts,
# create the desired simulated system
system = System(cpu = cpus,
- physmem = SimpleMemory(),
- clk_domain = SrcClockDomain(clock = options.sys_clock))
+ 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)
i = 0
for ruby_port in system.ruby._cpu_ruby_ports: