From 0a9f4b950fb52db3951ad1f7aafc674b505d2679 Mon Sep 17 00:00:00 2001 From: Brad Beckmann Date: Fri, 6 Apr 2012 13:47:06 -0700 Subject: rubytest: seperated read and write ports. This patch allows the ruby tester to support protocols where the i-cache and d-cache are managed by seperate controllers. --- configs/example/ruby_random_test.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'configs/example/ruby_random_test.py') diff --git a/configs/example/ruby_random_test.py b/configs/example/ruby_random_test.py index cb6a74776..b4d32b72c 100644 --- a/configs/example/ruby_random_test.py +++ b/configs/example/ruby_random_test.py @@ -89,7 +89,8 @@ if buildEnv['PROTOCOL'] == 'MOESI_hammer': tester = RubyTester(check_flush = check_flush, checks_to_complete = options.checks, - wakeup_frequency = options.wakeup_freq) + wakeup_frequency = options.wakeup_freq, + num_cpus = options.num_cpus) # # Create the M5 system. Note that the Memory Object isn't @@ -110,9 +111,12 @@ system.ruby.randomization = True for ruby_port in system.ruby._cpu_ruby_ports: # - # Tie the ruby tester ports to the ruby cpu ports + # Tie the ruby tester ports to the ruby cpu read and write ports # - tester.cpuPort = ruby_port.slave + if ruby_port.support_data_reqs: + tester.cpuDataPort = ruby_port.slave + if ruby_port.support_inst_reqs: + tester.cpuInstPort = ruby_port.slave # # Tell each sequencer this is the ruby tester so that it -- cgit v1.2.3