Ruby.py (10311:ad9c042dce54) | Ruby.py (10519:7a3ad4b09ce4) |
---|---|
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 --- 87 unchanged lines hidden (view full) --- 96 Must return an object which is a subclass of BaseTopology 97 found in configs/topologies/BaseTopology.py 98 This is a wrapper for the legacy topologies. 99 """ 100 exec "import %s as Topo" % options.topology 101 topology = eval("Topo.%s(controllers)" % options.topology) 102 return topology 103 | 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 --- 87 unchanged lines hidden (view full) --- 96 Must return an object which is a subclass of BaseTopology 97 found in configs/topologies/BaseTopology.py 98 This is a wrapper for the legacy topologies. 99 """ 100 exec "import %s as Topo" % options.topology 101 topology = eval("Topo.%s(controllers)" % options.topology) 102 return topology 103 |
104def create_system(options, system, piobus = None, dma_ports = []): | 104def create_system(options, full_system, system, piobus = None, dma_ports = []): |
105 106 system.ruby = RubySystem(no_mem_vec = options.use_map) 107 ruby = system.ruby 108 109 # Set the network classes based on the command line options 110 if options.garnet_network == "fixed": 111 NetworkClass = GarnetNetwork_d 112 IntLinkClass = GarnetIntLink_d --- 19 unchanged lines hidden (view full) --- 132 network = NetworkClass(ruby_system = ruby, topology = options.topology, 133 routers = [], ext_links = [], int_links = [], netifs = []) 134 ruby.network = network 135 136 protocol = buildEnv['PROTOCOL'] 137 exec "import %s" % protocol 138 try: 139 (cpu_sequencers, dir_cntrls, topology) = \ | 105 106 system.ruby = RubySystem(no_mem_vec = options.use_map) 107 ruby = system.ruby 108 109 # Set the network classes based on the command line options 110 if options.garnet_network == "fixed": 111 NetworkClass = GarnetNetwork_d 112 IntLinkClass = GarnetIntLink_d --- 19 unchanged lines hidden (view full) --- 132 network = NetworkClass(ruby_system = ruby, topology = options.topology, 133 routers = [], ext_links = [], int_links = [], netifs = []) 134 ruby.network = network 135 136 protocol = buildEnv['PROTOCOL'] 137 exec "import %s" % protocol 138 try: 139 (cpu_sequencers, dir_cntrls, topology) = \ |
140 eval("%s.create_system(options, system, dma_ports, ruby)" | 140 eval("%s.create_system(options, full_system, system, dma_ports,\ 141 ruby)" |
141 % protocol) 142 except: 143 print "Error: could not create sytem for ruby protocol %s" % protocol 144 raise 145 146 # Create a port proxy for connecting the system port. This is 147 # independent of the protocol and kept in the protocol-agnostic 148 # part (i.e. here). --- 62 unchanged lines hidden --- | 142 % protocol) 143 except: 144 print "Error: could not create sytem for ruby protocol %s" % protocol 145 raise 146 147 # Create a port proxy for connecting the system port. This is 148 # independent of the protocol and kept in the protocol-agnostic 149 # part (i.e. here). --- 62 unchanged lines hidden --- |