ruby_random_test.py (8322:19949c6de823) | ruby_random_test.py (8436:5648986156db) |
---|---|
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; --- 85 unchanged lines hidden (view full) --- 94 95# 96# Create the M5 system. Note that the PhysicalMemory 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 = PhysicalMemory()) 101 | 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; --- 85 unchanged lines hidden (view full) --- 94 95# 96# Create the M5 system. Note that the PhysicalMemory 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 = PhysicalMemory()) 101 |
102system.ruby = Ruby.create_system(options, system) | 102Ruby.create_system(options, system) |
103 104assert(options.num_cpus == len(system.ruby._cpu_ruby_ports)) 105 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 --- 5 unchanged lines hidden (view full) --- 116 tester.cpuPort = ruby_port.port 117 118 # 119 # Tell each sequencer this is the ruby tester so that it 120 # copies the subblock back to the checker 121 # 122 ruby_port.using_ruby_tester = True 123 | 103 104assert(options.num_cpus == len(system.ruby._cpu_ruby_ports)) 105 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 --- 5 unchanged lines hidden (view full) --- 116 tester.cpuPort = ruby_port.port 117 118 # 119 # Tell each sequencer this is the ruby tester so that it 120 # copies the subblock back to the checker 121 # 122 ruby_port.using_ruby_tester = True 123 |
124 # 125 # Ruby doesn't need the backing image of memory when running with 126 # the tester. 127 # 128 ruby_port.access_phys_mem = False 129 |
|
124# ----------------------- 125# run simulation 126# ----------------------- 127 128root = Root( system = system ) 129root.system.mem_mode = 'timing' 130 131# Not much point in this being higher than the L1 latency 132m5.ticks.setGlobalFrequency('1ns') 133 134# instantiate configuration 135m5.instantiate() 136 137# simulate until program terminates 138exit_event = m5.simulate(options.maxtick) 139 140print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause() | 130# ----------------------- 131# run simulation 132# ----------------------- 133 134root = Root( system = system ) 135root.system.mem_mode = 'timing' 136 137# Not much point in this being higher than the L1 latency 138m5.ticks.setGlobalFrequency('1ns') 139 140# instantiate configuration 141m5.instantiate() 142 143# simulate until program terminates 144exit_event = m5.simulate(options.maxtick) 145 146print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause() |