GPUCoalescer.py revision 13665
112697Santhony.gutierrez@amd.com# Copyright (c) 2015 Advanced Micro Devices, Inc. 212697Santhony.gutierrez@amd.com# All rights reserved. 311308Santhony.gutierrez@amd.com# 412697Santhony.gutierrez@amd.com# For use for simulation and test purposes only 511308Santhony.gutierrez@amd.com# 612697Santhony.gutierrez@amd.com# Redistribution and use in source and binary forms, with or without 712697Santhony.gutierrez@amd.com# modification, are permitted provided that the following conditions are met: 811308Santhony.gutierrez@amd.com# 912697Santhony.gutierrez@amd.com# 1. Redistributions of source code must retain the above copyright notice, 1012697Santhony.gutierrez@amd.com# this list of conditions and the following disclaimer. 1111308Santhony.gutierrez@amd.com# 1212697Santhony.gutierrez@amd.com# 2. Redistributions in binary form must reproduce the above copyright notice, 1312697Santhony.gutierrez@amd.com# this list of conditions and the following disclaimer in the documentation 1412697Santhony.gutierrez@amd.com# and/or other materials provided with the distribution. 1511308Santhony.gutierrez@amd.com# 1612697Santhony.gutierrez@amd.com# 3. Neither the name of the copyright holder nor the names of its 1712697Santhony.gutierrez@amd.com# contributors may be used to endorse or promote products derived from this 1812697Santhony.gutierrez@amd.com# software without specific prior written permission. 1911308Santhony.gutierrez@amd.com# 2012697Santhony.gutierrez@amd.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 2112697Santhony.gutierrez@amd.com# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2212697Santhony.gutierrez@amd.com# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2312697Santhony.gutierrez@amd.com# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 2412697Santhony.gutierrez@amd.com# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2512697Santhony.gutierrez@amd.com# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2612697Santhony.gutierrez@amd.com# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2712697Santhony.gutierrez@amd.com# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2812697Santhony.gutierrez@amd.com# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2912697Santhony.gutierrez@amd.com# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 3012697Santhony.gutierrez@amd.com# POSSIBILITY OF SUCH DAMAGE. 3111308Santhony.gutierrez@amd.com# 3211308Santhony.gutierrez@amd.com# Authors: Steve Reinhardt 3311308Santhony.gutierrez@amd.com# Brad Beckmann 3411308Santhony.gutierrez@amd.com 3511308Santhony.gutierrez@amd.comfrom m5.params import * 3611308Santhony.gutierrez@amd.comfrom m5.proxy import * 3713665Sandreas.sandberg@arm.com 3813665Sandreas.sandberg@arm.comfrom m5.objects.Sequencer import * 3911308Santhony.gutierrez@amd.com 4011900Sandreas.sandberg@arm.comclass RubyGPUCoalescer(RubyPort): 4111308Santhony.gutierrez@amd.com type = 'RubyGPUCoalescer' 4211308Santhony.gutierrez@amd.com cxx_class = 'GPUCoalescer' 4311308Santhony.gutierrez@amd.com cxx_header = "mem/ruby/system/GPUCoalescer.hh" 4411308Santhony.gutierrez@amd.com 4511308Santhony.gutierrez@amd.com # max_outstanding_requests = (wave front slots) x (wave front size) 4611308Santhony.gutierrez@amd.com max_outstanding_requests = Param.Int(40*64, 4711308Santhony.gutierrez@amd.com "max requests (incl. prefetches) outstanding") 4811308Santhony.gutierrez@amd.com assume_rfo = Param.Bool(True, "assume protocol implementes Read for " 4911308Santhony.gutierrez@amd.com "Ownership coherence"); 5011900Sandreas.sandberg@arm.com 5111900Sandreas.sandberg@arm.com icache = Param.RubyCache("") 5211900Sandreas.sandberg@arm.com dcache = Param.RubyCache("") 5311900Sandreas.sandberg@arm.com deadlock_threshold = Param.Cycles(500000, 5411900Sandreas.sandberg@arm.com "max outstanding cycles for a request before " \ 5511900Sandreas.sandberg@arm.com "deadlock/livelock declared") 5611900Sandreas.sandberg@arm.com garnet_standalone = Param.Bool(False, "") 5711900Sandreas.sandberg@arm.com dcache_hit_latency = Param.Cycles(1, "Data cache hit latency") 58