rubytest-ruby.py (7570:417ef5d444bd) rubytest-ruby.py (8322:19949c6de823)
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# Copyright (c) 2009 Advanced Micro Devices, Inc.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 65 unchanged lines hidden (view full) ---

74# create the tester and system, including ruby
75#
76tester = RubyTester(checks_to_complete = 100, wakeup_frequency = 10)
77
78system = System(tester = tester, physmem = PhysicalMemory())
79
80system.ruby = Ruby.create_system(options, system)
81
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# Copyright (c) 2009 Advanced Micro Devices, Inc.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 65 unchanged lines hidden (view full) ---

74# create the tester and system, including ruby
75#
76tester = RubyTester(checks_to_complete = 100, wakeup_frequency = 10)
77
78system = System(tester = tester, physmem = PhysicalMemory())
79
80system.ruby = Ruby.create_system(options, system)
81
82assert(options.num_cpus == len(system.ruby.cpu_ruby_ports))
82assert(options.num_cpus == len(system.ruby._cpu_ruby_ports))
83
84#
85# The tester is most effective when randomization is turned on and
86# artifical delay is randomly inserted on messages
87#
88system.ruby.randomization = True
89
83
84#
85# The tester is most effective when randomization is turned on and
86# artifical delay is randomly inserted on messages
87#
88system.ruby.randomization = True
89
90for ruby_port in system.ruby.cpu_ruby_ports:
90for ruby_port in system.ruby._cpu_ruby_ports:
91 #
92 # Tie the ruby tester ports to the ruby cpu ports
93 #
94 tester.cpuPort = ruby_port.port
95
96 #
97 # Tell the sequencer this is the ruby tester so that it
98 # copies the subblock back to the checker

--- 12 unchanged lines hidden ---
91 #
92 # Tie the ruby tester ports to the ruby cpu ports
93 #
94 tester.cpuPort = ruby_port.port
95
96 #
97 # Tell the sequencer this is the ruby tester so that it
98 # copies the subblock back to the checker

--- 12 unchanged lines hidden ---