Options.py revision 3395
16019Shines@cs.fsu.edu# Copyright (c) 2006 The Regents of The University of Michigan 27093Sgblack@eecs.umich.edu# All rights reserved. 37093Sgblack@eecs.umich.edu# 47093Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without 57093Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are 67093Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright 77093Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer; 87093Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright 97093Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the 107093Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution; 117093Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its 127093Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from 137093Sgblack@eecs.umich.edu# this software without specific prior written permission. 146019Shines@cs.fsu.edu# 156019Shines@cs.fsu.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 166019Shines@cs.fsu.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 176019Shines@cs.fsu.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 186019Shines@cs.fsu.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 196019Shines@cs.fsu.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 206019Shines@cs.fsu.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 216019Shines@cs.fsu.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 226019Shines@cs.fsu.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 236019Shines@cs.fsu.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 246019Shines@cs.fsu.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 256019Shines@cs.fsu.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 266019Shines@cs.fsu.edu# 276019Shines@cs.fsu.edu# Authors: Lisa Hsu 286019Shines@cs.fsu.edu 296019Shines@cs.fsu.edu# system options 306019Shines@cs.fsu.eduparser.add_option("-d", "--detailed", action="store_true") 316019Shines@cs.fsu.eduparser.add_option("-t", "--timing", action="store_true") 326019Shines@cs.fsu.eduparser.add_option("-n", "--num_cpus", type="int", default=1) 336019Shines@cs.fsu.eduparser.add_option("--caches", action="store_true") 346019Shines@cs.fsu.edu 356019Shines@cs.fsu.edu# Run duration options 366019Shines@cs.fsu.eduparser.add_option("-m", "--maxtick", type="int") 376019Shines@cs.fsu.eduparser.add_option("--maxtime", type="float") 386019Shines@cs.fsu.edu 396019Shines@cs.fsu.edu# Checkpointing options 407399SAli.Saidi@ARM.com###Note that performing checkpointing via python script files will override 417399SAli.Saidi@ARM.com###checkpoint instructions built into binaries. 426019Shines@cs.fsu.eduparser.add_option("--take_checkpoints", action="store", type="string", 436019Shines@cs.fsu.edu help="<M,N> will take checkpoint at cycle M and every N cycles \ 446019Shines@cs.fsu.edu thereafter") 456019Shines@cs.fsu.eduparser.add_option("--max_checkpoints", action="store", type="int", 466019Shines@cs.fsu.edu help="the maximum number of checkpoints to drop", 476019Shines@cs.fsu.edu default=5) 486116Snate@binkert.orgparser.add_option("--checkpoint_dir", action="store", type="string", 496019Shines@cs.fsu.edu help="Place all checkpoints in this absolute directory") 506019Shines@cs.fsu.eduparser.add_option("-r", "--checkpoint_restore", action="store", type="int", 516019Shines@cs.fsu.edu help="restore from checkpoint <N>") 526019Shines@cs.fsu.edu 536019Shines@cs.fsu.edu# CPU Switching - default switch model goes from a checkpoint 546019Shines@cs.fsu.edu# to a timing simple CPU with caches to warm up, then to detailed CPU for 556019Shines@cs.fsu.edu# data measurement 566116Snate@binkert.orgparser.add_option("-s", "--standard_switch", action="store_true", 576116Snate@binkert.org help="switch from one cpu mode to another") 586019Shines@cs.fsu.edu