Deleted Added
sdiff udiff text old ( 9793:6e6cefc1db1f ) new ( 9870:e147cc305061 )
full compact
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(),
96 clk_domain = SrcClockDomain(clock = options.sys_clock))
97
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
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

--- 18 unchanged lines hidden ---