ruby_mem_test.py (10083:2beea2a439b4) | ruby_mem_test.py (10120:f5ceb3c3edb6) |
---|---|
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; --- 130 unchanged lines hidden (view full) --- 139 voltage_domain = system.voltage_domain) 140 141# 142# The tester is most effective when randomization is turned on and 143# artifical delay is randomly inserted on messages 144# 145system.ruby.randomization = True 146 | 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; --- 130 unchanged lines hidden (view full) --- 139 voltage_domain = system.voltage_domain) 140 141# 142# The tester is most effective when randomization is turned on and 143# artifical delay is randomly inserted on messages 144# 145system.ruby.randomization = True 146 |
147assert(len(cpus) == len(system.ruby._cpu_ruby_ports)) | 147assert(len(cpus) == len(system.ruby._cpu_ports)) |
148 149for (i, cpu) in enumerate(cpus): 150 # 151 # Tie the cpu memtester ports to the correct system ports 152 # | 148 149for (i, cpu) in enumerate(cpus): 150 # 151 # Tie the cpu memtester ports to the correct system ports 152 # |
153 cpu.test = system.ruby._cpu_ruby_ports[i].slave | 153 cpu.test = system.ruby._cpu_ports[i].slave |
154 cpu.functional = system.funcbus.slave 155 156 # 157 # Since the memtester is incredibly bursty, increase the deadlock 158 # threshold to 5 million cycles 159 # | 154 cpu.functional = system.funcbus.slave 155 156 # 157 # Since the memtester is incredibly bursty, increase the deadlock 158 # threshold to 5 million cycles 159 # |
160 system.ruby._cpu_ruby_ports[i].deadlock_threshold = 5000000 | 160 system.ruby._cpu_ports[i].deadlock_threshold = 5000000 |
161 162 # 163 # Ruby doesn't need the backing image of memory when running with 164 # the tester. 165 # | 161 162 # 163 # Ruby doesn't need the backing image of memory when running with 164 # the tester. 165 # |
166 system.ruby._cpu_ruby_ports[i].access_phys_mem = False | 166 system.ruby._cpu_ports[i].access_phys_mem = False |
167 168for (i, dma) in enumerate(dmas): 169 # 170 # Tie the dma memtester ports to the correct functional port 171 # Note that the test port has already been connected to the dma_sequencer 172 # 173 dma.functional = system.funcbus.slave 174 --- 20 unchanged lines hidden --- | 167 168for (i, dma) in enumerate(dmas): 169 # 170 # Tie the dma memtester ports to the correct functional port 171 # Note that the test port has already been connected to the dma_sequencer 172 # 173 dma.functional = system.funcbus.slave 174 --- 20 unchanged lines hidden --- |