ruby_random_test.py (9100:3caf131d7a95) | ruby_random_test.py (9108:ad76a669e9d9) |
---|---|
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; --- 76 unchanged lines hidden (view full) --- 85 86# Check the protocol 87check_flush = False 88if buildEnv['PROTOCOL'] == 'MOESI_hammer': 89 check_flush = True 90 91tester = RubyTester(check_flush = check_flush, 92 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; --- 76 unchanged lines hidden (view full) --- 85 86# Check the protocol 87check_flush = False 88if buildEnv['PROTOCOL'] == 'MOESI_hammer': 89 check_flush = True 90 91tester = RubyTester(check_flush = check_flush, 92 checks_to_complete = options.checks, |
93 wakeup_frequency = options.wakeup_freq, 94 num_cpus = options.num_cpus) | 93 wakeup_frequency = options.wakeup_freq) |
95 96# 97# Create the M5 system. Note that the Memory Object isn't 98# actually used by the rubytester, but is included to support the 99# M5 memory size == Ruby memory size checks 100# 101system = System(tester = tester, physmem = SimpleMemory()) 102 103Ruby.create_system(options, system) 104 105assert(options.num_cpus == len(system.ruby._cpu_ruby_ports)) 106 | 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 102Ruby.create_system(options, system) 103 104assert(options.num_cpus == len(system.ruby._cpu_ruby_ports)) 105 |
106tester.num_cpus = len(system.ruby._cpu_ruby_ports) 107 |
|
107# 108# The tester is most effective when randomization is turned on and 109# artifical delay is randomly inserted on messages 110# 111system.ruby.randomization = True 112 113for ruby_port in system.ruby._cpu_ruby_ports: 114 # --- 36 unchanged lines hidden --- | 108# 109# The tester is most effective when randomization is turned on and 110# artifical delay is randomly inserted on messages 111# 112system.ruby.randomization = True 113 114for ruby_port in system.ruby._cpu_ruby_ports: 115 # --- 36 unchanged lines hidden --- |