rubytest-ruby.py (10524:fff17530cef6) | rubytest-ruby.py (11267:aa32b0639ee2) |
---|---|
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; --- 83 unchanged lines hidden (view full) --- 92Ruby.create_system(options, False, system) 93 94# Create a separate clock domain for Ruby 95system.ruby.clk_domain = SrcClockDomain(clock = '1GHz', 96 voltage_domain = system.voltage_domain) 97 98assert(options.num_cpus == len(system.ruby._cpu_ports)) 99 | 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; --- 83 unchanged lines hidden (view full) --- 92Ruby.create_system(options, False, system) 93 94# Create a separate clock domain for Ruby 95system.ruby.clk_domain = SrcClockDomain(clock = '1GHz', 96 voltage_domain = system.voltage_domain) 97 98assert(options.num_cpus == len(system.ruby._cpu_ports)) 99 |
100tester.num_cpus = len(system.ruby._cpu_ports) 101 |
|
100# 101# The tester is most effective when randomization is turned on and 102# artifical delay is randomly inserted on messages 103# 104system.ruby.randomization = True 105 106for ruby_port in system.ruby._cpu_ports: 107 # 108 # Tie the ruby tester ports to the ruby cpu read and write ports 109 # | 102# 103# The tester is most effective when randomization is turned on and 104# artifical delay is randomly inserted on messages 105# 106system.ruby.randomization = True 107 108for ruby_port in system.ruby._cpu_ports: 109 # 110 # Tie the ruby tester ports to the ruby cpu read and write ports 111 # |
110 if ruby_port.support_data_reqs: 111 tester.cpuDataPort = ruby_port.slave 112 if ruby_port.support_inst_reqs: 113 tester.cpuInstPort = ruby_port.slave | 112 if ruby_port.support_data_reqs and ruby_port.support_inst_reqs: 113 tester.cpuInstDataPort = ruby_port.slave 114 elif ruby_port.support_data_reqs: 115 tester.cpuDataPort = ruby_port.slave 116 elif ruby_port.support_inst_reqs: 117 tester.cpuInstPort = ruby_port.slave |
114 | 118 |
119 # Do not automatically retry stalled Ruby requests 120 ruby_port.no_retry_on_stall = True 121 |
|
115 # 116 # Tell the sequencer this is the ruby tester so that it 117 # copies the subblock back to the checker 118 # 119 ruby_port.using_ruby_tester = True 120 121# ----------------------- 122# run simulation 123# ----------------------- 124 125root = Root(full_system = False, system = system ) 126root.system.mem_mode = 'timing' 127 128# Not much point in this being higher than the L1 latency 129m5.ticks.setGlobalFrequency('1ns') | 122 # 123 # Tell the sequencer this is the ruby tester so that it 124 # copies the subblock back to the checker 125 # 126 ruby_port.using_ruby_tester = True 127 128# ----------------------- 129# run simulation 130# ----------------------- 131 132root = Root(full_system = False, system = system ) 133root.system.mem_mode = 'timing' 134 135# Not much point in this being higher than the L1 latency 136m5.ticks.setGlobalFrequency('1ns') |