QoSTurnaround.py revision 12968:1c2b8dd9241f
15818Sgblack@eecs.umich.edu# Copyright (c) 2018 ARM Limited
25818Sgblack@eecs.umich.edu# All rights reserved.
35818Sgblack@eecs.umich.edu#
45818Sgblack@eecs.umich.edu# The license below extends only to copyright in the software and shall
55818Sgblack@eecs.umich.edu# not be construed as granting a license to any other intellectual
65818Sgblack@eecs.umich.edu# property including but not limited to intellectual property relating
75818Sgblack@eecs.umich.edu# to a hardware implementation of the functionality of the software
85818Sgblack@eecs.umich.edu# licensed hereunder.  You may use the software subject to the license
95818Sgblack@eecs.umich.edu# terms below provided that you ensure that this notice is replicated
105818Sgblack@eecs.umich.edu# unmodified and in its entirety in all distributions of the software,
115818Sgblack@eecs.umich.edu# modified or unmodified, in source code or in binary form.
125818Sgblack@eecs.umich.edu#
135818Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
145818Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
155818Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
165818Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
175818Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
185818Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
195818Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
205818Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
215818Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
225818Sgblack@eecs.umich.edu# this software without specific prior written permission.
235818Sgblack@eecs.umich.edu#
245818Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
255818Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
265818Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
275818Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
285818Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
295818Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
305818Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
315818Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
325818Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
335818Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
345818Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
355818Sgblack@eecs.umich.edu#
365818Sgblack@eecs.umich.edu# Authors: Giacomo Travaglini
375818Sgblack@eecs.umich.edu
385818Sgblack@eecs.umich.edufrom m5.SimObject import SimObject
395818Sgblack@eecs.umich.edu
405818Sgblack@eecs.umich.edu#QoS Turnaround policy used to select bus state - READ or WRITE
415818Sgblack@eecs.umich.educlass QoSTurnaroundPolicy(SimObject):
425818Sgblack@eecs.umich.edu    type = 'QoSTurnaroundPolicy'
435818Sgblack@eecs.umich.edu    cxx_header = "mem/qos/turnaround_policy.hh"
445818Sgblack@eecs.umich.edu    cxx_class = 'QoS::TurnaroundPolicy'
455818Sgblack@eecs.umich.edu    abstract = True
465818Sgblack@eecs.umich.edu
475818Sgblack@eecs.umich.educlass QoSTurnaroundPolicyIdeal(QoSTurnaroundPolicy):
485818Sgblack@eecs.umich.edu    type = 'QoSTurnaroundPolicyIdeal'
495818Sgblack@eecs.umich.edu    cxx_header = "mem/qos/turnaround_policy_ideal.hh"
505818Sgblack@eecs.umich.edu    cxx_class = 'QoS::TurnaroundPolicyIdeal'
515818Sgblack@eecs.umich.edu