Ruby.py (10898:96c0fe4a09f0) Ruby.py (11021:e8a6637afa4c)
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

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

204
205 # Connect the system port for loading of binaries etc
206 system.system_port = system.sys_port_proxy.slave
207
208 # Create the network topology
209 topology.makeTopology(options, network, IntLinkClass, ExtLinkClass,
210 RouterClass)
211
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

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

204
205 # Connect the system port for loading of binaries etc
206 system.system_port = system.sys_port_proxy.slave
207
208 # Create the network topology
209 topology.makeTopology(options, network, IntLinkClass, ExtLinkClass,
210 RouterClass)
211
212 if options.garnet_network is None:
213 assert(NetworkClass == SimpleNetwork)
214 assert(RouterClass == Switch)
215 network.setup_buffers()
216
212 if InterfaceClass != None:
213 netifs = [InterfaceClass(id=i) for (i,n) in enumerate(network.ext_links)]
214 network.netifs = netifs
215
216 if options.network_fault_model:
217 assert(options.garnet_network == "fixed")
218 network.enable_fault_model = True
219 network.fault_model = FaultModel()

--- 29 unchanged lines hidden ---
217 if InterfaceClass != None:
218 netifs = [InterfaceClass(id=i) for (i,n) in enumerate(network.ext_links)]
219 network.netifs = netifs
220
221 if options.network_fault_model:
222 assert(options.garnet_network == "fixed")
223 network.enable_fault_model = True
224 network.fault_model = FaultModel()

--- 29 unchanged lines hidden ---