diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-03-22 15:53:22 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-03-22 15:53:22 -0500 |
commit | 2d501276429ab674c146a86802e62538892fc500 (patch) | |
tree | 11bbe0bd00647b64046cdf2c52a13fbfa07030d0 /configs/ruby | |
parent | 2ca42cd62666f4d13eab259290b6cde5fe677862 (diff) | |
download | gem5-2d501276429ab674c146a86802e62538892fc500.tar.xz |
ruby: network: move routers from topology to network
Diffstat (limited to 'configs/ruby')
-rw-r--r-- | configs/ruby/Ruby.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/configs/ruby/Ruby.py b/configs/ruby/Ruby.py index 88a0acd49..6859b044e 100644 --- a/configs/ruby/Ruby.py +++ b/configs/ruby/Ruby.py @@ -149,18 +149,17 @@ def create_system(options, system, piobus = None, dma_ports = []): routers, int_links, ext_links = topology.makeTopology(options, IntLinkClass, ExtLinkClass, RouterClass) - net_topology.routers = routers + net_topology.num_routers = len(routers) net_topology.int_links = int_links net_topology.ext_links = ext_links + network = NetworkClass(ruby_system = ruby, topology = net_topology, + routers = routers) if options.network_fault_model: assert(options.garnet_network == "fixed") - fault_model = FaultModel() - network = NetworkClass(ruby_system = ruby, topology = net_topology,\ - enable_fault_model=True, fault_model = fault_model) - else: - network = NetworkClass(ruby_system = ruby, topology = net_topology) + network.enable_fault_model = True + network.fault_model = FaultModel() # # Loop through the directory controlers. |