Options.py (9791:39c75548bcd4) | Options.py (9800:5fdd91246b7b) |
---|---|
1# Copyright (c) 2013 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 48 unchanged lines hidden (view full) --- 57def addCommonOptions(parser): 58 # system options 59 parser.add_option("--list-cpu-types", 60 action="callback", callback=_listCpuTypes, 61 help="List available CPU types") 62 parser.add_option("--cpu-type", type="choice", default="atomic", 63 choices=CpuConfig.cpu_names(), 64 help = "type of cpu to run with") | 1# Copyright (c) 2013 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 48 unchanged lines hidden (view full) --- 57def addCommonOptions(parser): 58 # system options 59 parser.add_option("--list-cpu-types", 60 action="callback", callback=_listCpuTypes, 61 help="List available CPU types") 62 parser.add_option("--cpu-type", type="choice", default="atomic", 63 choices=CpuConfig.cpu_names(), 64 help = "type of cpu to run with") |
65 parser.add_option("--list-mem-types", 66 action="callback", callback=_listMemTypes, 67 help="List available memory types") 68 parser.add_option("--mem-type", type="choice", default="simple_mem", 69 choices=MemConfig.mem_names(), 70 help = "type of memory to use") | |
71 parser.add_option("--checker", action="store_true"); 72 parser.add_option("-n", "--num-cpus", type="int", default=1) | 65 parser.add_option("--checker", action="store_true"); 66 parser.add_option("-n", "--num-cpus", type="int", default=1) |
73 parser.add_option("--caches", action="store_true") 74 parser.add_option("--l2cache", action="store_true") 75 parser.add_option("--fastmem", action="store_true") 76 parser.add_option("--simpoint-profile", action="store_true", 77 help="Enable basic block profiling for SimPoints") 78 parser.add_option("--simpoint-interval", type="int", default=10000000, 79 help="SimPoint interval in num of instructions") | |
80 parser.add_option("--sys-clock", action="store", type="string", 81 default='1GHz', 82 help = """Top-level clock for blocks running at system 83 speed""") 84 parser.add_option("--cpu-clock", action="store", type="string", 85 default='2GHz', 86 help="Clock for blocks running at CPU speed") | 67 parser.add_option("--sys-clock", action="store", type="string", 68 default='1GHz', 69 help = """Top-level clock for blocks running at system 70 speed""") 71 parser.add_option("--cpu-clock", action="store", type="string", 72 default='2GHz', 73 help="Clock for blocks running at CPU speed") |
74 parser.add_option("--smt", action="store_true", default=False, 75 help = """ 76 Only used if multiple programs are specified. If true, 77 then the number of threads per cpu is same as the 78 number of programs.""") 79 80 # Memory Options 81 parser.add_option("--list-mem-types", 82 action="callback", callback=_listMemTypes, 83 help="List available memory types") 84 parser.add_option("--mem-type", type="choice", default="simple_mem", 85 choices=MemConfig.mem_names(), 86 help = "type of memory to use") 87 parser.add_option("--mem-size", action="store", type="string", 88 default="512MB", 89 help="Specify the physical memory size (single memory)") 90 91 # Cache Options 92 parser.add_option("--caches", action="store_true") 93 parser.add_option("--l2cache", action="store_true") 94 parser.add_option("--fastmem", action="store_true") |
|
87 parser.add_option("--num-dirs", type="int", default=1) 88 parser.add_option("--num-l2caches", type="int", default=1) 89 parser.add_option("--num-l3caches", type="int", default=1) 90 parser.add_option("--l1d_size", type="string", default="64kB") 91 parser.add_option("--l1i_size", type="string", default="32kB") 92 parser.add_option("--l2_size", type="string", default="2MB") 93 parser.add_option("--l3_size", type="string", default="16MB") 94 parser.add_option("--l1d_assoc", type="int", default=2) 95 parser.add_option("--l1i_assoc", type="int", default=2) 96 parser.add_option("--l2_assoc", type="int", default=8) 97 parser.add_option("--l3_assoc", type="int", default=16) 98 parser.add_option("--cacheline_size", type="int", default=64) | 95 parser.add_option("--num-dirs", type="int", default=1) 96 parser.add_option("--num-l2caches", type="int", default=1) 97 parser.add_option("--num-l3caches", type="int", default=1) 98 parser.add_option("--l1d_size", type="string", default="64kB") 99 parser.add_option("--l1i_size", type="string", default="32kB") 100 parser.add_option("--l2_size", type="string", default="2MB") 101 parser.add_option("--l3_size", type="string", default="16MB") 102 parser.add_option("--l1d_assoc", type="int", default=2) 103 parser.add_option("--l1i_assoc", type="int", default=2) 104 parser.add_option("--l2_assoc", type="int", default=8) 105 parser.add_option("--l3_assoc", type="int", default=16) 106 parser.add_option("--cacheline_size", type="int", default=64) |
107 108 # Enable Ruby |
|
99 parser.add_option("--ruby", action="store_true") | 109 parser.add_option("--ruby", action="store_true") |
100 parser.add_option("--smt", action="store_true", default=False, 101 help = """ 102 Only used if multiple programs are specified. If true, 103 then the number of threads per cpu is same as the 104 number of programs.""") | |
105 106 # Run duration options 107 parser.add_option("-m", "--maxtick", type="int", default=m5.MaxTick, 108 metavar="T", help="Stop after T ticks") 109 parser.add_option("--maxtime", type="float") 110 parser.add_option("-I", "--maxinsts", action="store", type="int", 111 default=None, help="""Total number of instructions to 112 simulate (default: run forever)""") --- 4 unchanged lines hidden (view full) --- 117 parser.add_option("--work-end-exit-count", action="store", type="int", 118 help="exit at specified work end count") 119 parser.add_option("--work-begin-exit-count", action="store", type="int", 120 help="exit at specified work begin count") 121 parser.add_option("--init-param", action="store", type="int", default=0, 122 help="""Parameter available in simulation with m5 123 initparam""") 124 | 110 111 # Run duration options 112 parser.add_option("-m", "--maxtick", type="int", default=m5.MaxTick, 113 metavar="T", help="Stop after T ticks") 114 parser.add_option("--maxtime", type="float") 115 parser.add_option("-I", "--maxinsts", action="store", type="int", 116 default=None, help="""Total number of instructions to 117 simulate (default: run forever)""") --- 4 unchanged lines hidden (view full) --- 122 parser.add_option("--work-end-exit-count", action="store", type="int", 123 help="exit at specified work end count") 124 parser.add_option("--work-begin-exit-count", action="store", type="int", 125 help="exit at specified work begin count") 126 parser.add_option("--init-param", action="store", type="int", default=0, 127 help="""Parameter available in simulation with m5 128 initparam""") 129 |
130 # Simpoint options 131 parser.add_option("--simpoint-profile", action="store_true", 132 help="Enable basic block profiling for SimPoints") 133 parser.add_option("--simpoint-interval", type="int", default=10000000, 134 help="SimPoint interval in num of instructions") 135 |
|
125 # Checkpointing options 126 ###Note that performing checkpointing via python script files will override 127 ###checkpoint instructions built into binaries. 128 parser.add_option("--take-checkpoints", action="store", type="string", 129 help="<M,N> take checkpoints at tick M and every N ticks thereafter") 130 parser.add_option("--max-checkpoints", action="store", type="int", 131 help="the maximum number of checkpoints to drop", default=5) 132 parser.add_option("--checkpoint-dir", action="store", type="string", --- 86 unchanged lines hidden (view full) --- 219 # Metafile options 220 parser.add_option("--etherdump", action="store", type="string", dest="etherdump", 221 help="Specify the filename to dump a pcap capture of the" \ 222 "ethernet traffic") 223 224 # Disk Image Options 225 parser.add_option("--disk-image", action="store", type="string", default=None, 226 help="Path to the disk image to use.") | 136 # Checkpointing options 137 ###Note that performing checkpointing via python script files will override 138 ###checkpoint instructions built into binaries. 139 parser.add_option("--take-checkpoints", action="store", type="string", 140 help="<M,N> take checkpoints at tick M and every N ticks thereafter") 141 parser.add_option("--max-checkpoints", action="store", type="int", 142 help="the maximum number of checkpoints to drop", default=5) 143 parser.add_option("--checkpoint-dir", action="store", type="string", --- 86 unchanged lines hidden (view full) --- 230 # Metafile options 231 parser.add_option("--etherdump", action="store", type="string", dest="etherdump", 232 help="Specify the filename to dump a pcap capture of the" \ 233 "ethernet traffic") 234 235 # Disk Image Options 236 parser.add_option("--disk-image", action="store", type="string", default=None, 237 help="Path to the disk image to use.") |
227 228 # Memory Size Options 229 parser.add_option("--mem-size", action="store", type="string", default=None, 230 help="Specify the physical memory size (single memory)") | |