Ruby.py (8612:df3b7a1e883f) Ruby.py (8638:e8a093d1e131)
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;

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

53 parser.add_option("--map-levels", type="int", default=4)
54
55 parser.add_option("--recycle-latency", type="int", default=10,
56 help="Recycle latency for ruby controller input buffers")
57
58 parser.add_option("--random_seed", type="int", default=1234,
59 help="Used for seeding the random number generator")
60
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;

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

53 parser.add_option("--map-levels", type="int", default=4)
54
55 parser.add_option("--recycle-latency", type="int", default=10,
56 help="Recycle latency for ruby controller input buffers")
57
58 parser.add_option("--random_seed", type="int", default=1234,
59 help="Used for seeding the random number generator")
60
61 parser.add_option("--ruby_stats", type="string", default="ruby.stats")
62
61 protocol = buildEnv['PROTOCOL']
62 exec "import %s" % protocol
63 eval("%s.define_options(parser)" % protocol)
64
65def create_system(options, system, piobus = None, dma_devices = []):
66
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
67 system.ruby = RubySystem(clock = options.clock)
69 system.ruby = RubySystem(clock = options.clock,
70 stats_filename = options.ruby_stats)
68 ruby = system.ruby
69
70 protocol = buildEnv['PROTOCOL']
71 exec "import %s" % protocol
72 try:
73 (cpu_sequencers, dir_cntrls, all_cntrls) = \
74 eval("%s.create_system(options, system, piobus, \
75 dma_devices, ruby)" \

--- 86 unchanged lines hidden ---
71 ruby = system.ruby
72
73 protocol = buildEnv['PROTOCOL']
74 exec "import %s" % protocol
75 try:
76 (cpu_sequencers, dir_cntrls, all_cntrls) = \
77 eval("%s.create_system(options, system, piobus, \
78 dma_devices, ruby)" \

--- 86 unchanged lines hidden ---