Ruby.py (9594:219ad5fe8c04) Ruby.py (9791:39c75548bcd4)
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

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

43import m5
44from m5.objects import *
45from m5.defines import buildEnv
46
47def define_options(parser):
48 # By default, ruby uses the simple timing cpu
49 parser.set_defaults(cpu_type="timing")
50
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

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

43import m5
44from m5.objects import *
45from m5.defines import buildEnv
46
47def define_options(parser):
48 # By default, ruby uses the simple timing cpu
49 parser.set_defaults(cpu_type="timing")
50
51 parser.add_option("--ruby-clock", action="store", type="string",
52 default='2GHz',
53 help="Clock for blocks running at Ruby system's speed")
54
51 # ruby network options
52 parser.add_option("--topology", type="string", default="Crossbar",
53 help="check src/mem/ruby/network/topologies for complete set")
54 parser.add_option("--mesh-rows", type="int", default=1,
55 help="the number of rows in the mesh topology")
56 parser.add_option("--garnet-network", type="choice",
57 choices=['fixed', 'flexible'], help="'fixed'|'flexible'")
58 parser.add_option("--network-fault-model", action="store_true", default=False,

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

86 This is a wrapper for the legacy topologies.
87 """
88 exec "import %s as Topo" % options.topology
89 topology = eval("Topo.%s(controllers)" % options.topology)
90 return topology
91
92def create_system(options, system, piobus = None, dma_ports = []):
93
55 # ruby network options
56 parser.add_option("--topology", type="string", default="Crossbar",
57 help="check src/mem/ruby/network/topologies for complete set")
58 parser.add_option("--mesh-rows", type="int", default=1,
59 help="the number of rows in the mesh topology")
60 parser.add_option("--garnet-network", type="choice",
61 choices=['fixed', 'flexible'], help="'fixed'|'flexible'")
62 parser.add_option("--network-fault-model", action="store_true", default=False,

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

90 This is a wrapper for the legacy topologies.
91 """
92 exec "import %s as Topo" % options.topology
93 topology = eval("Topo.%s(controllers)" % options.topology)
94 return topology
95
96def create_system(options, system, piobus = None, dma_ports = []):
97
94 system.ruby = RubySystem(clock = options.clock,
98 system.ruby = RubySystem(clock = options.ruby_clock,
95 stats_filename = options.ruby_stats,
96 no_mem_vec = options.use_map)
97 ruby = system.ruby
98
99 protocol = buildEnv['PROTOCOL']
100 exec "import %s" % protocol
101 try:
102 (cpu_sequencers, dir_cntrls, topology) = \

--- 91 unchanged lines hidden ---
99 stats_filename = options.ruby_stats,
100 no_mem_vec = options.use_map)
101 ruby = system.ruby
102
103 protocol = buildEnv['PROTOCOL']
104 exec "import %s" % protocol
105 try:
106 (cpu_sequencers, dir_cntrls, topology) = \

--- 91 unchanged lines hidden ---