GPUTLBOptions.py revision 12647
1# Copyright (c) 2011-2015 Advanced Micro Devices, Inc. 2# All rights reserved. 3# 4# For use for simulation and test purposes only 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are met: 8# 9# 1. Redistributions of source code must retain the above copyright notice, 10# this list of conditions and the following disclaimer. 11# 12# 2. Redistributions in binary form must reproduce the above copyright notice, 13# this list of conditions and the following disclaimer in the documentation 14# and/or other materials provided with the distribution. 15# 16# 3. Neither the name of the copyright holder nor the names of its 17# contributors may be used to endorse or promote products derived from this 18# software without specific prior written permission. 19# 20# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 24# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30# POSSIBILITY OF SUCH DAMAGE. 31# 32# Authors: Myrto Papadopoulou 33 34def tlb_options(parser): 35 36 #=================================================================== 37 # TLB Configuration 38 #=================================================================== 39 40 parser.add_option("--TLB-config", type="string", default="perCU", 41 help="Options are: perCU (default), mono, 2CU, or perLane") 42 43 #=================================================================== 44 # L1 TLB Options (D-TLB, I-TLB, Dispatcher-TLB) 45 #=================================================================== 46 47 parser.add_option("--L1TLBentries", type='int', default="32") 48 parser.add_option("--L1TLBassoc", type='int', default="32") 49 parser.add_option("--L1AccessLatency", type='int', default="1", 50 help="latency in gpu cycles") 51 parser.add_option("--L1MissLatency", type='int', default="750", 52 help="latency (in gpu cycles) of a page walk, " 53 "if this is a last level TLB") 54 parser.add_option("--L1MaxOutstandingReqs", type='int', default="64") 55 parser.add_option("--L1AccessDistanceStat", action="store_true") 56 parser.add_option("--tot-L1TLB-size", type="int", default="0") 57 58 #=================================================================== 59 # L2 TLB Options 60 #=================================================================== 61 62 parser.add_option("--L2TLBentries", type='int', default="4096") 63 parser.add_option("--L2TLBassoc", type='int', default="32") 64 parser.add_option("--L2AccessLatency", type='int', default="69", 65 help="latency in gpu cycles") 66 parser.add_option("--L2MissLatency", type='int', default="750", 67 help="latency (in gpu cycles) of a page walk, " 68 "if this is a last level TLB") 69 parser.add_option("--L2MaxOutstandingReqs", type='int', default="64") 70 parser.add_option("--L2AccessDistanceStat", action="store_true") 71 72 #=================================================================== 73 # L3 TLB Options 74 #=================================================================== 75 76 parser.add_option("--L3TLBentries", type='int', default="8192") 77 parser.add_option("--L3TLBassoc", type='int', default="32") 78 parser.add_option("--L3AccessLatency", type='int', default="150", 79 help="latency in gpu cycles") 80 parser.add_option("--L3MissLatency", type='int', default="750", 81 help="latency (in gpu cycles) of a page walk") 82 parser.add_option("--L3MaxOutstandingReqs", type='int', default="64") 83 parser.add_option("--L3AccessDistanceStat", action="store_true") 84 85 #=================================================================== 86 # L1 TLBCoalescer Options 87 #=================================================================== 88 89 parser.add_option("--L1ProbesPerCycle", type='int', default="2") 90 parser.add_option("--L1CoalescingWindow", type='int', default="1") 91 parser.add_option("--L1DisableCoalescing", action="store_true") 92 93 #=================================================================== 94 # L2 TLBCoalescer Options 95 #=================================================================== 96 97 parser.add_option("--L2ProbesPerCycle", type='int', default="2") 98 parser.add_option("--L2CoalescingWindow", type='int', default="1") 99 parser.add_option("--L2DisableCoalescing", action="store_true") 100 101 #=================================================================== 102 # L3 TLBCoalescer Options 103 #=================================================================== 104 105 parser.add_option("--L3ProbesPerCycle", type='int', default="2") 106 parser.add_option("--L3CoalescingWindow", type='int', default="1") 107 parser.add_option("--L3DisableCoalescing", action="store_true") 108