1# Copyright (c) 2006-2007 The Regents of The University of Michigan 2# Copyright (c) 2009 Advanced Micro Devices, Inc. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 26 unchanged lines hidden (view full) --- 35def define_options(parser): 36 # ruby network options 37 parser.add_option("--topology", type="string", default="Crossbar", 38 help="check src/mem/ruby/network/topologies for complete set") 39 parser.add_option("--mesh-rows", type="int", default=1, 40 help="the number of rows in the mesh topology") 41 parser.add_option("--garnet-network", type="string", default=None, 42 help="'fixed'|'flexible'") |
43 parser.add_option("--network-fault-model", action="store_true", default=False, 44 help="enable network fault model: see src/mem/ruby/network/fault_model/") |
45 46 # ruby mapping options 47 parser.add_option("--numa-high-bit", type="int", default=0, 48 help="high order address bit to use for numa mapping. " \ 49 "0 = highest bit, not specified = lowest bit") 50 51 # ruby sparse memory options 52 parser.add_option("--use-map", action="store_true", default=False) --- 53 unchanged lines hidden (view full) --- 106 net_topology = eval("%s.makeTopology(all_cntrls, options, \ 107 IntLinkClass, ExtLinkClass, \ 108 RouterClass)" \ 109 % options.topology) 110 except: 111 print "Error: could not create topology %s" % options.topology 112 raise 113 |
114 if options.network_fault_model: 115 assert(options.garnet_network == "fixed") 116 fault_model = FaultModel() 117 network = NetworkClass(ruby_system = ruby, topology = net_topology,\ 118 enable_fault_model=True, fault_model = fault_model) 119 else: 120 network = NetworkClass(ruby_system = ruby, topology = net_topology) |
121 122 # 123 # Loop through the directory controlers. 124 # Determine the total memory size of the ruby system and verify it is equal 125 # to physmem. However, if Ruby memory is using sparse memory in SE 126 # mode, then the system should not back-up the memory state with 127 # the Memory Vector and thus the memory size bytes should stay at 0. 128 # Also set the numa bits to the appropriate values. --- 33 unchanged lines hidden --- |