From 8dd45674aef2822d4c6cb57f1a4aedc7d9ee311c Mon Sep 17 00:00:00 2001 From: Brad Beckmann Date: Fri, 29 Jan 2010 20:29:32 -0800 Subject: ruby: Converted Garnet to M5 configuration --- configs/common/Options.py | 2 ++ configs/ruby/Ruby.py | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'configs') diff --git a/configs/common/Options.py b/configs/common/Options.py index 1bed93178..7d1b0e745 100644 --- a/configs/common/Options.py +++ b/configs/common/Options.py @@ -41,6 +41,8 @@ parser.add_option("--topology", type="string", default="crossbar", help="'crossbar'|'mesh'") parser.add_option("--mesh-rows", type="int", default=1, help="the number of rows in the mesh topology") +parser.add_option("--garnet-network", type="string", default=none, + help="'fixed'|'flexible'") # Run duration options parser.add_option("-m", "--maxtick", type="int", default=m5.MaxTick, diff --git a/configs/ruby/Ruby.py b/configs/ruby/Ruby.py index d34ffd7a2..65adc152e 100644 --- a/configs/ruby/Ruby.py +++ b/configs/ruby/Ruby.py @@ -90,7 +90,12 @@ def create_system(options, physmem, piobus = None, dma_devices = []): len(cpu_sequencers), options.mesh_rows) - network = SimpleNetwork(topology = net_topology) + if options.garnet_network == "fixed": + network = GarnetNetwork_d(topology = net_topology) + elif options.garnet_network == "flexible": + network = GarnetNetwork(topology = net_topology) + else: + network = SimpleNetwork(topology = net_topology) # # determine the total memory size of the ruby system and verify it is equal -- cgit v1.2.3