RubySystem.py revision 9338
12740SN/A# Copyright (c) 2009 Advanced Micro Devices, Inc. 21046SN/A# All rights reserved. 31046SN/A# 41046SN/A# Redistribution and use in source and binary forms, with or without 51046SN/A# modification, are permitted provided that the following conditions are 61046SN/A# met: redistributions of source code must retain the above copyright 71046SN/A# notice, this list of conditions and the following disclaimer; 81046SN/A# redistributions in binary form must reproduce the above copyright 91046SN/A# notice, this list of conditions and the following disclaimer in the 101046SN/A# documentation and/or other materials provided with the distribution; 111046SN/A# neither the name of the copyright holders nor the names of its 121046SN/A# contributors may be used to endorse or promote products derived from 131046SN/A# this software without specific prior written permission. 141046SN/A# 151046SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 161046SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 171046SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 181046SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 191046SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 201046SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 211046SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 221046SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 231046SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 241046SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 251046SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 262665SN/A# 272665SN/A# Authors: Steve Reinhardt 282665SN/A# Brad Beckmann 291046SN/A 305766Snate@binkert.orgfrom m5.params import * 317493Ssteve.reinhardt@amd.comfrom ClockedObject import ClockedObject 321438SN/A 336654Snate@binkert.orgclass RubySystem(ClockedObject): 346654Snate@binkert.org type = 'RubySystem' 356654Snate@binkert.org cxx_header = "mem/ruby/system/System.hh" 366654Snate@binkert.org random_seed = Param.Int(1234, "random seed used by the simulation"); 376654Snate@binkert.org randomization = Param.Bool(False, 384762Snate@binkert.org "insert random delays on message enqueue times"); 396654Snate@binkert.org clock = '1GHz' 403102Sstever@eecs.umich.edu block_size_bytes = Param.Int(64, 413102Sstever@eecs.umich.edu "default cache block size; must be a power of two"); 423102Sstever@eecs.umich.edu mem_size = Param.MemorySize("total memory size of the system"); 433102Sstever@eecs.umich.edu stats_filename = Param.String("ruby.stats", 446654Snate@binkert.org "file to which ruby dumps its stats") 453102Sstever@eecs.umich.edu no_mem_vec = Param.Bool(False, "do not allocate Ruby's mem vector"); 463102Sstever@eecs.umich.edu