Ruby.py (9576:2c094ad4dc70) | Ruby.py (9593:9441ca79f3c8) |
---|---|
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 --- 135 unchanged lines hidden (view full) --- 144 # 145 # gem5 SimObject defined in src/mem/ruby/network/Network.py 146 net_topology = Topology() 147 net_topology.description = topology.description 148 149 routers, int_links, ext_links = topology.makeTopology(options, 150 IntLinkClass, ExtLinkClass, RouterClass) 151 | 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 --- 135 unchanged lines hidden (view full) --- 144 # 145 # gem5 SimObject defined in src/mem/ruby/network/Network.py 146 net_topology = Topology() 147 net_topology.description = topology.description 148 149 routers, int_links, ext_links = topology.makeTopology(options, 150 IntLinkClass, ExtLinkClass, RouterClass) 151 |
152 net_topology.routers = routers | 152 net_topology.num_routers = len(routers) |
153 net_topology.int_links = int_links 154 net_topology.ext_links = ext_links 155 | 153 net_topology.int_links = int_links 154 net_topology.ext_links = ext_links 155 |
156 network = NetworkClass(ruby_system = ruby, topology = net_topology, 157 routers = routers) |
|
156 157 if options.network_fault_model: 158 assert(options.garnet_network == "fixed") | 158 159 if options.network_fault_model: 160 assert(options.garnet_network == "fixed") |
159 fault_model = FaultModel() 160 network = NetworkClass(ruby_system = ruby, topology = net_topology,\ 161 enable_fault_model=True, fault_model = fault_model) 162 else: 163 network = NetworkClass(ruby_system = ruby, topology = net_topology) | 161 network.enable_fault_model = True 162 network.fault_model = FaultModel() |
164 165 # 166 # Loop through the directory controlers. 167 # Determine the total memory size of the ruby system and verify it is equal 168 # to physmem. However, if Ruby memory is using sparse memory in SE 169 # mode, then the system should not back-up the memory state with 170 # the Memory Vector and thus the memory size bytes should stay at 0. 171 # Also set the numa bits to the appropriate values. --- 30 unchanged lines hidden --- | 163 164 # 165 # Loop through the directory controlers. 166 # Determine the total memory size of the ruby system and verify it is equal 167 # to physmem. However, if Ruby memory is using sparse memory in SE 168 # mode, then the system should not back-up the memory state with 169 # the Memory Vector and thus the memory size bytes should stay at 0. 170 # Also set the numa bits to the appropriate values. --- 30 unchanged lines hidden --- |