RubySystem.py revision 10525:77787650cbbc
18999Suri.wiener@arm.com# Copyright (c) 2009 Advanced Micro Devices, Inc.
28999Suri.wiener@arm.com# All rights reserved.
38999Suri.wiener@arm.com#
48999Suri.wiener@arm.com# Redistribution and use in source and binary forms, with or without
58999Suri.wiener@arm.com# modification, are permitted provided that the following conditions are
68999Suri.wiener@arm.com# met: redistributions of source code must retain the above copyright
78999Suri.wiener@arm.com# notice, this list of conditions and the following disclaimer;
88999Suri.wiener@arm.com# redistributions in binary form must reproduce the above copyright
98999Suri.wiener@arm.com# notice, this list of conditions and the following disclaimer in the
108999Suri.wiener@arm.com# documentation and/or other materials provided with the distribution;
118999Suri.wiener@arm.com# neither the name of the copyright holders nor the names of its
128999Suri.wiener@arm.com# contributors may be used to endorse or promote products derived from
134762Snate@binkert.org# this software without specific prior written permission.
147534Ssteve.reinhardt@amd.com#
154762Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
164762Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
174762Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
184762Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
194762Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
204762Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
214762Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
224762Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
234762Snate@binkert.org# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
244762Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
254762Snate@binkert.org# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
264762Snate@binkert.org#
274762Snate@binkert.org# Authors: Steve Reinhardt
284762Snate@binkert.org#          Brad Beckmann
294762Snate@binkert.org
304762Snate@binkert.orgfrom m5.params import *
314762Snate@binkert.orgfrom ClockedObject import ClockedObject
324762Snate@binkert.orgfrom SimpleMemory import *
334762Snate@binkert.org
344762Snate@binkert.orgclass RubySystem(ClockedObject):
354762Snate@binkert.org    type = 'RubySystem'
364762Snate@binkert.org    cxx_header = "mem/ruby/system/System.hh"
374762Snate@binkert.org    random_seed = Param.Int(1234, "random seed used by the simulation");
384762Snate@binkert.org    randomization = Param.Bool(False,
394762Snate@binkert.org        "insert random delays on message enqueue times");
404762Snate@binkert.org    block_size_bytes = Param.UInt32(64,
414762Snate@binkert.org        "default cache block size; must be a power of two");
424762Snate@binkert.org    memory_size_bits = Param.UInt32(64,
4312563Sgabeblack@google.com        "number of bits that a memory address requires");
4412563Sgabeblack@google.com
454762Snate@binkert.org    # Profiler related configuration variables
464762Snate@binkert.org    hot_lines = Param.Bool(False, "")
474762Snate@binkert.org    all_instructions = Param.Bool(False, "")
484762Snate@binkert.org    num_of_sequencers = Param.Int("")
4911991Sandreas.sandberg@arm.com    phys_mem = Param.SimpleMemory(NULL, "")
5011802Sandreas.sandberg@arm.com