ruby_direct_test.py (9790:ccc428657233) ruby_direct_test.py (9793:6e6cefc1db1f)
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;

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

87 print "Error: unknown direct test generator"
88 sys.exit(1)
89
90#
91# Create the M5 system. Note that the Memory Object isn't
92# actually used by the rubytester, but is included to support the
93# M5 memory size == Ruby memory size checks
94#
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;

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

87 print "Error: unknown direct test generator"
88 sys.exit(1)
89
90#
91# Create the M5 system. Note that the Memory Object isn't
92# actually used by the rubytester, but is included to support the
93# M5 memory size == Ruby memory size checks
94#
95system = System(physmem = SimpleMemory())
96system.clock = options.sys_clock
95system = System(physmem = SimpleMemory(),
96 clk_domain = SrcClockDomain(clock = options.sys_clock))
97
97#
98# Create the ruby random tester
99#
100system.tester = RubyDirectedTester(requests_to_complete = \
101 options.requests,
102 generator = generator)
103
104Ruby.create_system(options, system)
105
98#
99# Create the ruby random tester
100#
101system.tester = RubyDirectedTester(requests_to_complete = \
102 options.requests,
103 generator = generator)
104
105Ruby.create_system(options, system)
106
107# Since Ruby runs at an independent frequency, create a seperate clock
108system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock)
109
106assert(options.num_cpus == len(system.ruby._cpu_ruby_ports))
107
108for ruby_port in system.ruby._cpu_ruby_ports:
109 #
110 # Tie the ruby tester ports to the ruby cpu ports
111 #
112 system.tester.cpuPort = ruby_port.slave
113

--- 17 unchanged lines hidden ---
110assert(options.num_cpus == len(system.ruby._cpu_ruby_ports))
111
112for ruby_port in system.ruby._cpu_ruby_ports:
113 #
114 # Tie the ruby tester ports to the ruby cpu ports
115 #
116 system.tester.cpuPort = ruby_port.slave
117

--- 17 unchanged lines hidden ---