ruby_random_test.py (9790:ccc428657233) ruby_random_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;

--- 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())
101system.clock = options.sys_clock
100system = System(tester = tester, physmem = SimpleMemory(),
101 clk_domain = SrcClockDomain(clock = options.sys_clock))
102
103Ruby.create_system(options, system)
104
102
103Ruby.create_system(options, system)
104
105# Create a seperate clock domain for Ruby
106system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock)
107
105assert(options.num_cpus == len(system.ruby._cpu_ruby_ports))
106
107tester.num_cpus = len(system.ruby._cpu_ruby_ports)
108
109#
110# The tester is most effective when randomization is turned on and
111# artifical delay is randomly inserted on messages
112#

--- 40 unchanged lines hidden ---
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
115#

--- 40 unchanged lines hidden ---