RubyTester.py revision 8832
16899SN/A# Copyright (c) 2005-2007 The Regents of The University of Michigan
26899SN/A# Copyright (c) 2009 Advanced Micro Devices, Inc.
36899SN/A# All rights reserved.
46899SN/A#
56899SN/A# Redistribution and use in source and binary forms, with or without
66899SN/A# modification, are permitted provided that the following conditions are
76899SN/A# met: redistributions of source code must retain the above copyright
86899SN/A# notice, this list of conditions and the following disclaimer;
96899SN/A# redistributions in binary form must reproduce the above copyright
106899SN/A# notice, this list of conditions and the following disclaimer in the
116899SN/A# documentation and/or other materials provided with the distribution;
126899SN/A# neither the name of the copyright holders nor the names of its
136899SN/A# contributors may be used to endorse or promote products derived from
146899SN/A# this software without specific prior written permission.
156899SN/A#
166899SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
176899SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
186899SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
196899SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
206899SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
216899SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
226899SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
236899SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
246899SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
256899SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
266899SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
276899SN/A#
286899SN/A
296899SN/Afrom MemObject import MemObject
306899SN/Afrom m5.params import *
316899SN/Afrom m5.proxy import *
326899SN/A
336899SN/Aclass RubyTester(MemObject):
346899SN/A    type = 'RubyTester'
356899SN/A    cpuPort = VectorPort("the cpu ports")
366899SN/A    checks_to_complete = Param.Int(100, "checks to complete")
376899SN/A    deadlock_threshold = Param.Int(50000, "how often to check for deadlock")
386899SN/A    wakeup_frequency = Param.Int(10, "number of cycles between wakeups")
398184Ssomayeh@cs.wisc.edu    check_flush = Param.Bool(False, "check cache flushing")
408832SAli.Saidi@ARM.com    system = Param.System(Parent.any, "System we belong to")
41