ruby_random_test.py (8931:7a1dfb191e3f) ruby_random_test.py (8932:1b2c17565ac8)
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;

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

84
85# Check the protocol
86check_flush = False
87if buildEnv['PROTOCOL'] == 'MOESI_hammer':
88 check_flush = True
89
90tester = RubyTester(check_flush = check_flush,
91 checks_to_complete = options.checks,
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;

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

84
85# Check the protocol
86check_flush = False
87if buildEnv['PROTOCOL'] == 'MOESI_hammer':
88 check_flush = True
89
90tester = RubyTester(check_flush = check_flush,
91 checks_to_complete = options.checks,
92 wakeup_frequency = options.wakeup_freq)
92 wakeup_frequency = options.wakeup_freq,
93 num_cpus = options.num_cpus)
93
94#
95# Create the M5 system. Note that the Memory Object isn't
96# actually used by the rubytester, but is included to support the
97# M5 memory size == Ruby memory size checks
98#
99system = System(tester = tester, physmem = SimpleMemory())
100

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

105#
106# The tester is most effective when randomization is turned on and
107# artifical delay is randomly inserted on messages
108#
109system.ruby.randomization = True
110
111for ruby_port in system.ruby._cpu_ruby_ports:
112 #
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

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

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:
113 #
113 # Tie the ruby tester ports to the ruby cpu ports
114 # Tie the ruby tester ports to the ruby cpu read and write ports
114 #
115 #
115 tester.cpuPort = ruby_port.slave
116 if ruby_port.support_data_reqs:
117 tester.cpuDataPort = ruby_port.slave
118 if ruby_port.support_inst_reqs:
119 tester.cpuInstPort = ruby_port.slave
116
117 #
118 # Tell each sequencer this is the ruby tester so that it
119 # copies the subblock back to the checker
120 #
121 ruby_port.using_ruby_tester = True
122
123 #

--- 22 unchanged lines hidden ---
120
121 #
122 # Tell each sequencer this is the ruby tester so that it
123 # copies the subblock back to the checker
124 #
125 ruby_port.using_ruby_tester = True
126
127 #

--- 22 unchanged lines hidden ---