Ruby.py (7663:abb78217021f) | Ruby.py (7809:9d94b886c61b) |
---|---|
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; --- 42 unchanged lines hidden (view full) --- 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") | 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; --- 42 unchanged lines hidden (view full) --- 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 | 59 60 parser.add_option("--random_seed", type="int", default=1234, 61 help="Used for seeding the random number generator") 62 |
60 protocol = buildEnv['PROTOCOL'] 61 exec "import %s" % protocol 62 eval("%s.define_options(parser)" % protocol) 63 64def create_system(options, system, piobus = None, dma_devices = []): 65 66 protocol = buildEnv['PROTOCOL'] 67 exec "import %s" % protocol --- 62 unchanged lines hidden (view full) --- 130 tracer = RubyTracer(), 131 debug = RubyDebug(filter_string = 'none', 132 verbosity_string = 'none', 133 protocol_trace = options.ruby_debug, 134 start_time = options.ruby_debug_cycle), 135 mem_size = total_mem_size) 136 137 ruby.cpu_ruby_ports = cpu_sequencers | 63 protocol = buildEnv['PROTOCOL'] 64 exec "import %s" % protocol 65 eval("%s.define_options(parser)" % protocol) 66 67def create_system(options, system, piobus = None, dma_devices = []): 68 69 protocol = buildEnv['PROTOCOL'] 70 exec "import %s" % protocol --- 62 unchanged lines hidden (view full) --- 133 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 |
|
138 139 return ruby | 142 143 return ruby |