RubySystem.py revision 13062:6f9defe1c11e
17008Snate@binkert.org# Copyright (c) 2009 Advanced Micro Devices, Inc. 27008Snate@binkert.org# All rights reserved. 37008Snate@binkert.org# 47008Snate@binkert.org# Redistribution and use in source and binary forms, with or without 57008Snate@binkert.org# modification, are permitted provided that the following conditions are 67008Snate@binkert.org# met: redistributions of source code must retain the above copyright 77008Snate@binkert.org# notice, this list of conditions and the following disclaimer; 87008Snate@binkert.org# redistributions in binary form must reproduce the above copyright 97008Snate@binkert.org# notice, this list of conditions and the following disclaimer in the 107008Snate@binkert.org# documentation and/or other materials provided with the distribution; 117008Snate@binkert.org# neither the name of the copyright holders nor the names of its 127008Snate@binkert.org# contributors may be used to endorse or promote products derived from 137008Snate@binkert.org# this software without specific prior written permission. 147008Snate@binkert.org# 157008Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 167008Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 177008Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 187008Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 197008Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 207008Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 217008Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 227008Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 237008Snate@binkert.org# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 247008Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 257008Snate@binkert.org# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 267008Snate@binkert.org# 277008Snate@binkert.org# Authors: Steve Reinhardt 286285Snate@binkert.org# Brad Beckmann 2910472Sandreas.hansson@arm.com 3010472Sandreas.hansson@arm.comfrom m5.params import * 318232Snate@binkert.orgfrom ClockedObject import ClockedObject 329104Shestness@cs.utexas.edufrom SimpleMemory import * 337039Snate@binkert.org 3411339SMichael.Lebeane@amd.comclass RubySystem(ClockedObject): 357039Snate@binkert.org type = 'RubySystem' 3611108Sdavid.hashe@amd.com cxx_header = "mem/ruby/system/RubySystem.hh" 376285Snate@binkert.org randomization = Param.Bool(False, 3811702Smichael.lebeane@amd.com "insert random delays on message enqueue times (if True, all message \ 3911702Smichael.lebeane@amd.com buffers are enforced to have randomization; otherwise, a message \ 4011702Smichael.lebeane@amd.com buffer set its own flag to enable/disable randomization)"); 4111702Smichael.lebeane@amd.com block_size_bytes = Param.UInt32(64, 4211702Smichael.lebeane@amd.com "default cache block size; must be a power of two"); 4311702Smichael.lebeane@amd.com memory_size_bits = Param.UInt32(64, 4411702Smichael.lebeane@amd.com "number of bits that a memory address requires"); 4511702Smichael.lebeane@amd.com 4611702Smichael.lebeane@amd.com phys_mem = Param.SimpleMemory(NULL, "") 476876Ssteve.reinhardt@amd.com 4811702Smichael.lebeane@amd.com access_backing_store = Param.Bool(False, "Use phys_mem as the functional \ 4911702Smichael.lebeane@amd.com store and only use ruby for timing.") 506285Snate@binkert.org 516285Snate@binkert.org # Profiler related configuration variables 526285Snate@binkert.org hot_lines = Param.Bool(False, "") 537039Snate@binkert.org all_instructions = Param.Bool(False, "") 547039Snate@binkert.org num_of_sequencers = Param.Int("") 556285Snate@binkert.org number_of_virtual_networks = Param.Unsigned("") 5611339SMichael.Lebeane@amd.com