GPUCoalescer.py revision 11308:7d8836fd043d
17405SAli.Saidi@ARM.com# Copyright (c) 2015 Advanced Micro Devices, Inc. 29814Sandreas.hansson@arm.com# All rights reserved. 37405SAli.Saidi@ARM.com# 47405SAli.Saidi@ARM.com# For use for simulation and test purposes only 57405SAli.Saidi@ARM.com# 67405SAli.Saidi@ARM.com# Redistribution and use in source and binary forms, with or without 77405SAli.Saidi@ARM.com# modification, are permitted provided that the following conditions are met: 87405SAli.Saidi@ARM.com# 97405SAli.Saidi@ARM.com# 1. Redistributions of source code must retain the above copyright notice, 107405SAli.Saidi@ARM.com# this list of conditions and the following disclaimer. 117405SAli.Saidi@ARM.com# 127405SAli.Saidi@ARM.com# 2. Redistributions in binary form must reproduce the above copyright notice, 137405SAli.Saidi@ARM.com# this list of conditions and the following disclaimer in the documentation 147405SAli.Saidi@ARM.com# and/or other materials provided with the distribution. 157405SAli.Saidi@ARM.com# 167405SAli.Saidi@ARM.com# 3. Neither the name of the copyright holder nor the names of its contributors 177405SAli.Saidi@ARM.com# may be used to endorse or promote products derived from this software 187405SAli.Saidi@ARM.com# without specific prior written permission. 197405SAli.Saidi@ARM.com# 207405SAli.Saidi@ARM.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 217405SAli.Saidi@ARM.com# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 227405SAli.Saidi@ARM.com# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 237405SAli.Saidi@ARM.com# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 247405SAli.Saidi@ARM.com# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 257405SAli.Saidi@ARM.com# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 267405SAli.Saidi@ARM.com# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 277405SAli.Saidi@ARM.com# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 287405SAli.Saidi@ARM.com# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 297405SAli.Saidi@ARM.com# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 307405SAli.Saidi@ARM.com# POSSIBILITY OF SUCH DAMAGE. 317405SAli.Saidi@ARM.com# 327405SAli.Saidi@ARM.com# Authors: Steve Reinhardt 337405SAli.Saidi@ARM.com# Brad Beckmann 347405SAli.Saidi@ARM.com 357405SAli.Saidi@ARM.comfrom m5.params import * 367405SAli.Saidi@ARM.comfrom m5.proxy import * 377405SAli.Saidi@ARM.comfrom Sequencer import * 387405SAli.Saidi@ARM.com 397405SAli.Saidi@ARM.comclass RubyGPUCoalescer(RubySequencer): 407405SAli.Saidi@ARM.com type = 'RubyGPUCoalescer' 417405SAli.Saidi@ARM.com cxx_class = 'GPUCoalescer' 429050Schander.sudanthi@arm.com cxx_header = "mem/ruby/system/GPUCoalescer.hh" 438887Sgeoffrey.blake@arm.com 448232Snate@binkert.org # max_outstanding_requests = (wave front slots) x (wave front size) 458232Snate@binkert.org max_outstanding_requests = Param.Int(40*64, 469384SAndreas.Sandberg@arm.com "max requests (incl. prefetches) outstanding") 477678Sgblack@eecs.umich.edu assume_rfo = Param.Bool(True, "assume protocol implementes Read for " 488059SAli.Saidi@ARM.com "Ownership coherence"); 498284SAli.Saidi@ARM.com