From 6c867f82632fa8d635cd617dd933332f596d0bc4 Mon Sep 17 00:00:00 2001 From: Brad Beckmann Date: Fri, 29 Jan 2010 20:29:27 -0800 Subject: ruby: Added a mesh topology --- configs/ruby/Ruby.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'configs/ruby') diff --git a/configs/ruby/Ruby.py b/configs/ruby/Ruby.py index e7f72b8eb..d34ffd7a2 100644 --- a/configs/ruby/Ruby.py +++ b/configs/ruby/Ruby.py @@ -80,7 +80,17 @@ def create_system(options, physmem, piobus = None, dma_devices = []): # Important: the topology constructor must be called before the network # constructor. # - network = SimpleNetwork(topology = makeCrossbar(all_cntrls)) + if options.topology == "crossbar": + net_topology = makeCrossbar(all_cntrls) + elif options.topology == "mesh": + # + # The uniform mesh topology assumes one router per cpu + # + net_topology = makeMesh(all_cntrls, + len(cpu_sequencers), + options.mesh_rows) + + network = SimpleNetwork(topology = net_topology) # # determine the total memory size of the ruby system and verify it is equal -- cgit v1.2.3