diff options
Diffstat (limited to 'src/mem/ruby/network/topologies/Crossbar.py')
-rw-r--r-- | src/mem/ruby/network/topologies/Crossbar.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mem/ruby/network/topologies/Crossbar.py b/src/mem/ruby/network/topologies/Crossbar.py index 86c53cdef..77a6fd6f2 100644 --- a/src/mem/ruby/network/topologies/Crossbar.py +++ b/src/mem/ruby/network/topologies/Crossbar.py @@ -29,12 +29,15 @@ from m5.params import * from m5.objects import * +class Crossbar(Topology): + description='Crossbar' + def makeTopology(nodes, options): ext_links = [ExtLink(ext_node=n, int_node=i) for (i, n) in enumerate(nodes)] xbar = len(nodes) # node ID for crossbar switch int_links = [IntLink(node_a=i, node_b=xbar) for i in range(len(nodes))] - return Topology(ext_links=ext_links, int_links=int_links, + return Crossbar(ext_links=ext_links, int_links=int_links, num_int_nodes=len(nodes)+1) |