changeset eca928d8a4ab in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=eca928d8a4ab
description:
config: topologies: slight code refactor
diffstat:
configs/topologies/Cluster.py | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 86f3b546c214 -r eca928d8a4ab configs/topologies/Cluster.py
--- a/configs/topologies/Cluster.py Sun Feb 23 19:16:15 2014 -0600
+++ b/configs/topologies/Cluster.py Sun Feb 23 19:16:15 2014 -0600
@@ -86,10 +86,15 @@
node.makeTopology(options, network, IntLink, ExtLink, Router)
# connect this cluster to the router
- link = IntLink(link_id=self.num_int_links(),
node_a=self.router, node_b=node.router)
+ link = IntLink(link_id=self.num_int_links(),
node_a=self.router,
+ node_b=node.router)
+
if node.extBW:
link.bandwidth_factor = node.extBW
- elif self.intBW: # if there is an interanl b/w for this node
and no ext b/w to override
+
+ # if there is an interanl b/w for this node
+ # and no ext b/w to override
+ elif self.intBW:
link.bandwidth_factor = self.intBW
if node.extLatency:
@@ -99,8 +104,11 @@
network.int_links.append(link)
else:
- # node is just a controller connect it to the router via a
ext_link
- link = ExtLink(link_id=self.num_ext_links(), ext_node=node,
int_node=self.router)
+ # node is just a controller,
+ # connect it to the router via a ext_link
+ link = ExtLink(link_id=self.num_ext_links(), ext_node=node,
+ int_node=self.router)
+
if self.intBW:
link.bandwidth_factor = self.intBW
if self.intLatency:
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev