Ruby.py (7809:9d94b886c61b) Ruby.py (7832:de7601e6e19d)
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;

--- 36 unchanged lines hidden (view full) ---

45 parser.add_option("--numa-high-bit", type="int", default=None,
46 help="high order address bit to use for numa mapping. " \
47 "0 = highest bit, not specified = lowest bit")
48
49 # ruby sparse memory options
50 parser.add_option("--use-map", action="store_true", default=False)
51 parser.add_option("--map-levels", type="int", default=4)
52
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;

--- 36 unchanged lines hidden (view full) ---

45 parser.add_option("--numa-high-bit", type="int", default=None,
46 help="high order address bit to use for numa mapping. " \
47 "0 = highest bit, not specified = lowest bit")
48
49 # ruby sparse memory options
50 parser.add_option("--use-map", action="store_true", default=False)
51 parser.add_option("--map-levels", type="int", default=4)
52
53 # ruby debug cmd line options
54 parser.add_option("--ruby-debug", action="store_true", default=False)
55 parser.add_option("--ruby-debug-cycle", type="int", default=1)
56
57 parser.add_option("--recycle-latency", type="int", default=10,
58 help="Recycle latency for ruby controller input buffers")
59
60 parser.add_option("--random_seed", type="int", default=1234,
61 help="Used for seeding the random number generator")
62
63 protocol = buildEnv['PROTOCOL']
64 exec "import %s" % protocol

--- 61 unchanged lines hidden (view full) ---

126 assert(total_mem_size.value == physmem_size)
127
128 ruby_profiler = RubyProfiler(num_of_sequencers = len(cpu_sequencers))
129
130 ruby = RubySystem(clock = options.clock,
131 network = network,
132 profiler = ruby_profiler,
133 tracer = RubyTracer(),
53 parser.add_option("--recycle-latency", type="int", default=10,
54 help="Recycle latency for ruby controller input buffers")
55
56 parser.add_option("--random_seed", type="int", default=1234,
57 help="Used for seeding the random number generator")
58
59 protocol = buildEnv['PROTOCOL']
60 exec "import %s" % protocol

--- 61 unchanged lines hidden (view full) ---

122 assert(total_mem_size.value == physmem_size)
123
124 ruby_profiler = RubyProfiler(num_of_sequencers = len(cpu_sequencers))
125
126 ruby = RubySystem(clock = options.clock,
127 network = network,
128 profiler = ruby_profiler,
129 tracer = RubyTracer(),
134 debug = RubyDebug(filter_string = 'none',
135 verbosity_string = 'none',
136 protocol_trace = options.ruby_debug,
137 start_time = options.ruby_debug_cycle),
138 mem_size = total_mem_size)
139
140 ruby.cpu_ruby_ports = cpu_sequencers
141 ruby.random_seed = options.random_seed
142
143 return ruby
130 mem_size = total_mem_size)
131
132 ruby.cpu_ruby_ports = cpu_sequencers
133 ruby.random_seed = options.random_seed
134
135 return ruby