rubytest-ruby.py (8322:19949c6de823) | rubytest-ruby.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; --- 63 unchanged lines hidden (view full) --- 72 73# 74# create the tester and system, including ruby 75# 76tester = RubyTester(checks_to_complete = 100, wakeup_frequency = 10) 77 78system = System(tester = tester, physmem = PhysicalMemory()) 79 | 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; --- 63 unchanged lines hidden (view full) --- 72 73# 74# create the tester and system, including ruby 75# 76tester = RubyTester(checks_to_complete = 100, wakeup_frequency = 10) 77 78system = System(tester = tester, physmem = PhysicalMemory()) 79 |
80system.ruby = Ruby.create_system(options, system) | 80Ruby.create_system(options, system) |
81 82assert(options.num_cpus == len(system.ruby._cpu_ruby_ports)) 83 84# 85# The tester is most effective when randomization is turned on and 86# artifical delay is randomly inserted on messages 87# 88system.ruby.randomization = True --- 5 unchanged lines hidden (view full) --- 94 tester.cpuPort = ruby_port.port 95 96 # 97 # Tell the sequencer this is the ruby tester so that it 98 # copies the subblock back to the checker 99 # 100 ruby_port.using_ruby_tester = True 101 | 81 82assert(options.num_cpus == len(system.ruby._cpu_ruby_ports)) 83 84# 85# The tester is most effective when randomization is turned on and 86# artifical delay is randomly inserted on messages 87# 88system.ruby.randomization = True --- 5 unchanged lines hidden (view full) --- 94 tester.cpuPort = ruby_port.port 95 96 # 97 # Tell the sequencer this is the ruby tester so that it 98 # copies the subblock back to the checker 99 # 100 ruby_port.using_ruby_tester = True 101 |
102 # 103 # Ruby doesn't need the backing image of memory when running with 104 # the tester. 105 # 106 ruby_port.access_phys_mem = False 107 |
|
102# ----------------------- 103# run simulation 104# ----------------------- 105 106root = Root( system = system ) 107root.system.mem_mode = 'timing' 108 109# Not much point in this being higher than the L1 latency 110m5.ticks.setGlobalFrequency('1ns') | 108# ----------------------- 109# run simulation 110# ----------------------- 111 112root = Root( system = system ) 113root.system.mem_mode = 'timing' 114 115# Not much point in this being higher than the L1 latency 116m5.ticks.setGlobalFrequency('1ns') |