RubySystem.py revision 10706:4206946d60fe
15882Snate@binkert.org# Copyright (c) 2009 Advanced Micro Devices, Inc. 25882Snate@binkert.org# All rights reserved. 38232Snate@binkert.org# 45882Snate@binkert.org# Redistribution and use in source and binary forms, with or without 55882Snate@binkert.org# modification, are permitted provided that the following conditions are 65882Snate@binkert.org# met: redistributions of source code must retain the above copyright 75882Snate@binkert.org# notice, this list of conditions and the following disclaimer; 85882Snate@binkert.org# redistributions in binary form must reproduce the above copyright 95882Snate@binkert.org# notice, this list of conditions and the following disclaimer in the 105882Snate@binkert.org# documentation and/or other materials provided with the distribution; 115882Snate@binkert.org# neither the name of the copyright holders nor the names of its 125882Snate@binkert.org# contributors may be used to endorse or promote products derived from 135882Snate@binkert.org# this software without specific prior written permission. 145882Snate@binkert.org# 155882Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 165882Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 175882Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 185882Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 195882Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 205882Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 215882Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 225882Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 235882Snate@binkert.org# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 245882Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 255882Snate@binkert.org# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 265882Snate@binkert.org# 275882Snate@binkert.org# Authors: Steve Reinhardt 285882Snate@binkert.org# Brad Beckmann 295882Snate@binkert.org 305882Snate@binkert.orgfrom m5.params import * 315882Snate@binkert.orgfrom ClockedObject import ClockedObject 325882Snate@binkert.orgfrom SimpleMemory import * 335882Snate@binkert.org 345882Snate@binkert.orgclass RubySystem(ClockedObject): 359554Sandreas.hansson@arm.com type = 'RubySystem' 368232Snate@binkert.org cxx_header = "mem/ruby/system/System.hh" 378232Snate@binkert.org random_seed = Param.Int(1234, "random seed used by the simulation"); 388232Snate@binkert.org randomization = Param.Bool(False, 398231Snate@binkert.org "insert random delays on message enqueue times"); 408231Snate@binkert.org block_size_bytes = Param.UInt32(64, 418231Snate@binkert.org "default cache block size; must be a power of two"); 428231Snate@binkert.org memory_size_bits = Param.UInt32(64, 438232Snate@binkert.org "number of bits that a memory address requires"); 448232Snate@binkert.org 458232Snate@binkert.org # Profiler related configuration variables 468232Snate@binkert.org hot_lines = Param.Bool(False, "") 478232Snate@binkert.org all_instructions = Param.Bool(False, "") 488269Snate@binkert.org num_of_sequencers = Param.Int("") 498232Snate@binkert.org phys_mem = Param.SimpleMemory(NULL, "") 508232Snate@binkert.org 518232Snate@binkert.org access_backing_store = Param.Bool(False, "Use phys_mem as the functional \ 528232Snate@binkert.org store and only use ruby for timing.") 538232Snate@binkert.org