From 01f792a3675983411ff77b54cbee7ffee2a3d5d5 Mon Sep 17 00:00:00 2001 From: "Emilio Castillo ext:(%2C%20Nilay%20Vaish%20%3Cnilay%40cs.wisc.edu%3E)" Date: Mon, 1 Sep 2014 16:55:30 -0500 Subject: ruby: Fixes clock domains in configuration files This patch fixes scripts related to ruby by adding the ruby clock domain. Now the L1 controllers and the Sequencer shares the cpu clock domain, while the rest of the components use the ruby clock domain. Before this patch, running simulations with the cpu clock set at 2GHz or 1GHz will output the same time results and could distort power measurements. Committed by: Nilay Vaish --- tests/configs/rubytest-ruby.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/configs/rubytest-ruby.py b/tests/configs/rubytest-ruby.py index f2c88c92b..b3d3f0363 100644 --- a/tests/configs/rubytest-ruby.py +++ b/tests/configs/rubytest-ruby.py @@ -78,7 +78,10 @@ if buildEnv['PROTOCOL'] == 'MOESI_hammer': tester = RubyTester(check_flush = check_flush, checks_to_complete = 100, wakeup_frequency = 10, num_cpus = options.num_cpus) -system = System(tester = tester, physmem = SimpleMemory(null = True)) +# We set the testers as cpu for ruby to find the correct clock domains +# for the L1 Objects. +system = System(cpu = tester, physmem = SimpleMemory(null = True)) + # Dummy voltage domain for all our clock domains system.voltage_domain = VoltageDomain(voltage = options.sys_voltage) system.clk_domain = SrcClockDomain(clock = '1GHz', -- cgit v1.2.3