ruby_random_test.py (9793:6e6cefc1db1f) ruby_random_test.py (9870:e147cc305061)
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;

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

92 checks_to_complete = options.checks,
93 wakeup_frequency = options.wakeup_freq)
94
95#
96# Create the M5 system. Note that the Memory Object isn't
97# actually used by the rubytester, but is included to support the
98# M5 memory size == Ruby memory size checks
99#
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;

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

92 checks_to_complete = options.checks,
93 wakeup_frequency = options.wakeup_freq)
94
95#
96# Create the M5 system. Note that the Memory 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 = SimpleMemory(),
101 clk_domain = SrcClockDomain(clock = options.sys_clock))
100system = System(tester = tester, physmem = SimpleMemory())
102
101
102# Create a top-level voltage domain and clock domain
103system.voltage_domain = VoltageDomain(voltage = options.sys_voltage)
104
105system.clk_domain = SrcClockDomain(clock = options.sys_clock,
106 voltage_domain = system.voltage_domain)
107
103Ruby.create_system(options, system)
104
105# Create a seperate clock domain for Ruby
108Ruby.create_system(options, system)
109
110# Create a seperate clock domain for Ruby
106system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock)
111system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock,
112 voltage_domain = system.voltage_domain)
107
108assert(options.num_cpus == len(system.ruby._cpu_ruby_ports))
109
110tester.num_cpus = len(system.ruby._cpu_ruby_ports)
111
112#
113# The tester is most effective when randomization is turned on and
114# artifical delay is randomly inserted on messages

--- 41 unchanged lines hidden ---
113
114assert(options.num_cpus == len(system.ruby._cpu_ruby_ports))
115
116tester.num_cpus = len(system.ruby._cpu_ruby_ports)
117
118#
119# The tester is most effective when randomization is turned on and
120# artifical delay is randomly inserted on messages

--- 41 unchanged lines hidden ---