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, 93 num_cpus = options.num_cpus) |
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 # |
114 # Tie the ruby tester ports to the ruby cpu read and write ports |
115 # |
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 |
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 --- |