diff options
Diffstat (limited to 'configs')
-rw-r--r-- | configs/common/Options.py | 2 | ||||
-rw-r--r-- | configs/ruby/Ruby.py | 7 |
2 files changed, 8 insertions, 1 deletions
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 |