ruby_random_test.py (8184:a8d64545cda6) ruby_random_test.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;

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

96# Create the M5 system. Note that the PhysicalMemory Object isn't
97# actually used by the rubytester, but is included to support the
98# M5 memory size == Ruby memory size checks
99#
100system = System(tester = tester, physmem = PhysicalMemory())
101
102system.ruby = Ruby.create_system(options, system)
103
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;

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

96# Create the M5 system. Note that the PhysicalMemory Object isn't
97# actually used by the rubytester, but is included to support the
98# M5 memory size == Ruby memory size checks
99#
100system = System(tester = tester, physmem = PhysicalMemory())
101
102system.ruby = Ruby.create_system(options, system)
103
104assert(options.num_cpus == len(system.ruby.cpu_ruby_ports))
104assert(options.num_cpus == len(system.ruby._cpu_ruby_ports))
105
106#
107# The tester is most effective when randomization is turned on and
108# artifical delay is randomly inserted on messages
109#
110system.ruby.randomization = True
111
105
106#
107# The tester is most effective when randomization is turned on and
108# artifical delay is randomly inserted on messages
109#
110system.ruby.randomization = True
111
112for ruby_port in system.ruby.cpu_ruby_ports:
112for ruby_port in system.ruby._cpu_ruby_ports:
113 #
114 # Tie the ruby tester ports to the ruby cpu ports
115 #
116 tester.cpuPort = ruby_port.port
117
118 #
119 # Tell each sequencer this is the ruby tester so that it
120 # copies the subblock back to the checker

--- 20 unchanged lines hidden ---
113 #
114 # Tie the ruby tester ports to the ruby cpu ports
115 #
116 tester.cpuPort = ruby_port.port
117
118 #
119 # Tell each sequencer this is the ruby tester so that it
120 # copies the subblock back to the checker

--- 20 unchanged lines hidden ---