17019SBrad.Beckmann@amd.com# Copyright (c) 2009 Advanced Micro Devices, Inc.
27019SBrad.Beckmann@amd.com# All rights reserved.
37019SBrad.Beckmann@amd.com#
47019SBrad.Beckmann@amd.com# Redistribution and use in source and binary forms, with or without
57019SBrad.Beckmann@amd.com# modification, are permitted provided that the following conditions are
67019SBrad.Beckmann@amd.com# met: redistributions of source code must retain the above copyright
77019SBrad.Beckmann@amd.com# notice, this list of conditions and the following disclaimer;
87019SBrad.Beckmann@amd.com# redistributions in binary form must reproduce the above copyright
97019SBrad.Beckmann@amd.com# notice, this list of conditions and the following disclaimer in the
107019SBrad.Beckmann@amd.com# documentation and/or other materials provided with the distribution;
117019SBrad.Beckmann@amd.com# neither the name of the copyright holders nor the names of its
127019SBrad.Beckmann@amd.com# contributors may be used to endorse or promote products derived from
137019SBrad.Beckmann@amd.com# this software without specific prior written permission.
147019SBrad.Beckmann@amd.com#
157019SBrad.Beckmann@amd.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
167019SBrad.Beckmann@amd.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
177019SBrad.Beckmann@amd.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
187019SBrad.Beckmann@amd.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
197019SBrad.Beckmann@amd.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
207019SBrad.Beckmann@amd.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
217019SBrad.Beckmann@amd.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
227019SBrad.Beckmann@amd.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
237019SBrad.Beckmann@amd.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
247019SBrad.Beckmann@amd.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
257019SBrad.Beckmann@amd.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
267019SBrad.Beckmann@amd.com#
277019SBrad.Beckmann@amd.com# Authors: Steve Reinhardt
287019SBrad.Beckmann@amd.com#          Brad Beckmann
297019SBrad.Beckmann@amd.com
306876Ssteve.reinhardt@amd.comfrom m5.params import *
3113665Sandreas.sandberg@arm.comfrom m5.objects.ClockedObject import ClockedObject
3213665Sandreas.sandberg@arm.comfrom m5.objects.SimpleMemory import *
336876Ssteve.reinhardt@amd.com
349206Snilay@cs.wisc.educlass RubySystem(ClockedObject):
356876Ssteve.reinhardt@amd.com    type = 'RubySystem'
3611108Sdavid.hashe@amd.com    cxx_header = "mem/ruby/system/RubySystem.hh"
376876Ssteve.reinhardt@amd.com    randomization = Param.Bool(False,
3813062Sxianwei.zhang@amd.com        "insert random delays on message enqueue times (if True, all message \
3913062Sxianwei.zhang@amd.com         buffers are enforced to have randomization; otherwise, a message \
4013062Sxianwei.zhang@amd.com         buffer set its own flag to enable/disable randomization)");
419504Snilay@cs.wisc.edu    block_size_bytes = Param.UInt32(64,
426876Ssteve.reinhardt@amd.com        "default cache block size; must be a power of two");
4310524Snilay@cs.wisc.edu    memory_size_bits = Param.UInt32(64,
4410524Snilay@cs.wisc.edu        "number of bits that a memory address requires");
4510012Snilay@cs.wisc.edu
4611172Snilay@cs.wisc.edu    phys_mem = Param.SimpleMemory(NULL, "")
4711172Snilay@cs.wisc.edu
4811172Snilay@cs.wisc.edu    access_backing_store = Param.Bool(False, "Use phys_mem as the functional \
4911172Snilay@cs.wisc.edu        store and only use ruby for timing.")
5011172Snilay@cs.wisc.edu
5111049Snilay@cs.wisc.edu    # Profiler related configuration variables
5211049Snilay@cs.wisc.edu    hot_lines = Param.Bool(False, "")
5311049Snilay@cs.wisc.edu    all_instructions = Param.Bool(False, "")
5411049Snilay@cs.wisc.edu    num_of_sequencers = Param.Int("")
5511172Snilay@cs.wisc.edu    number_of_virtual_networks = Param.Unsigned("")
56