Ruby.py (8923:820111f58fbb) Ruby.py (8929:4148f9af0b70)
1# Copyright (c) 2012 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

71 help="Used for seeding the random number generator")
72
73 parser.add_option("--ruby_stats", type="string", default="ruby.stats")
74
75 protocol = buildEnv['PROTOCOL']
76 exec "import %s" % protocol
77 eval("%s.define_options(parser)" % protocol)
78
1# Copyright (c) 2012 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

71 help="Used for seeding the random number generator")
72
73 parser.add_option("--ruby_stats", type="string", default="ruby.stats")
74
75 protocol = buildEnv['PROTOCOL']
76 exec "import %s" % protocol
77 eval("%s.define_options(parser)" % protocol)
78
79def create_system(options, system, piobus = None, dma_devices = []):
79def create_system(options, system, piobus = None, dma_ports = []):
80
81 system.ruby = RubySystem(clock = options.clock,
82 stats_filename = options.ruby_stats,
83 no_mem_vec = options.use_map)
84 ruby = system.ruby
85
86 protocol = buildEnv['PROTOCOL']
87 exec "import %s" % protocol
88 try:
89 (cpu_sequencers, dir_cntrls, all_cntrls) = \
80
81 system.ruby = RubySystem(clock = options.clock,
82 stats_filename = options.ruby_stats,
83 no_mem_vec = options.use_map)
84 ruby = system.ruby
85
86 protocol = buildEnv['PROTOCOL']
87 exec "import %s" % protocol
88 try:
89 (cpu_sequencers, dir_cntrls, all_cntrls) = \
90 eval("%s.create_system(options, system, piobus, \
91 dma_devices, ruby)" \
90 eval("%s.create_system(options, system, piobus, dma_ports, ruby)"
92 % protocol)
93 except:
94 print "Error: could not create sytem for ruby protocol %s" % protocol
95 raise
96
97 # Create a port proxy for connecting the system port. This is
98 # independent of the protocol and kept in the protocol-agnostic
99 # part (i.e. here).

--- 87 unchanged lines hidden ---
91 % protocol)
92 except:
93 print "Error: could not create sytem for ruby protocol %s" % protocol
94 raise
95
96 # Create a port proxy for connecting the system port. This is
97 # independent of the protocol and kept in the protocol-agnostic
98 # part (i.e. here).

--- 87 unchanged lines hidden ---