Caches.py revision 9315
19288Sandreas.hansson@arm.com# Copyright (c) 2012 ARM Limited
29288Sandreas.hansson@arm.com# All rights reserved.
39288Sandreas.hansson@arm.com#
49288Sandreas.hansson@arm.com# The license below extends only to copyright in the software and shall
59288Sandreas.hansson@arm.com# not be construed as granting a license to any other intellectual
69288Sandreas.hansson@arm.com# property including but not limited to intellectual property relating
79288Sandreas.hansson@arm.com# to a hardware implementation of the functionality of the software
89288Sandreas.hansson@arm.com# licensed hereunder.  You may use the software subject to the license
99288Sandreas.hansson@arm.com# terms below provided that you ensure that this notice is replicated
109288Sandreas.hansson@arm.com# unmodified and in its entirety in all distributions of the software,
119288Sandreas.hansson@arm.com# modified or unmodified, in source code or in binary form.
129288Sandreas.hansson@arm.com#
134444Ssaidi@eecs.umich.edu# Copyright (c) 2006-2007 The Regents of The University of Michigan
143395Shsul@eecs.umich.edu# All rights reserved.
153395Shsul@eecs.umich.edu#
163395Shsul@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
173395Shsul@eecs.umich.edu# modification, are permitted provided that the following conditions are
183395Shsul@eecs.umich.edu# met: redistributions of source code must retain the above copyright
193395Shsul@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
203395Shsul@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
213395Shsul@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
223395Shsul@eecs.umich.edu# documentation and/or other materials provided with the distribution;
233395Shsul@eecs.umich.edu# neither the name of the copyright holders nor the names of its
243395Shsul@eecs.umich.edu# contributors may be used to endorse or promote products derived from
253395Shsul@eecs.umich.edu# this software without specific prior written permission.
263395Shsul@eecs.umich.edu#
273395Shsul@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
283395Shsul@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
293395Shsul@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
303395Shsul@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
313395Shsul@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
323395Shsul@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
333395Shsul@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
343395Shsul@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
353395Shsul@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
363395Shsul@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
373395Shsul@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
383395Shsul@eecs.umich.edu#
393395Shsul@eecs.umich.edu# Authors: Lisa Hsu
403395Shsul@eecs.umich.edu
413395Shsul@eecs.umich.edufrom m5.objects import *
423395Shsul@eecs.umich.edu
439310Sandreas.hansson@arm.com# Base implementations of L1, L2, IO and TLB-walker caches. There are
449310Sandreas.hansson@arm.com# used in the regressions and also as base components in the
459310Sandreas.hansson@arm.com# system-configuration scripts. The values are meant to serve as a
469310Sandreas.hansson@arm.com# starting point, and specific parameters can be overridden in the
479310Sandreas.hansson@arm.com# specific instantiations.
489310Sandreas.hansson@arm.com
499315Sandreas.hansson@arm.comclass L1Cache(BaseCache):
503395Shsul@eecs.umich.edu    assoc = 2
519288Sandreas.hansson@arm.com    hit_latency = 2
529288Sandreas.hansson@arm.com    response_latency = 2
539310Sandreas.hansson@arm.com    block_size = 64
549310Sandreas.hansson@arm.com    mshrs = 4
558631Schander.sudanthi@arm.com    tgts_per_mshr = 20
568134SAli.Saidi@ARM.com    is_top_level = True
573395Shsul@eecs.umich.edu
589315Sandreas.hansson@arm.comclass L2Cache(BaseCache):
593668Srdreslin@umich.edu    assoc = 8
603668Srdreslin@umich.edu    block_size = 64
619288Sandreas.hansson@arm.com    hit_latency = 20
629288Sandreas.hansson@arm.com    response_latency = 20
639310Sandreas.hansson@arm.com    mshrs = 92
649310Sandreas.hansson@arm.com    tgts_per_mshr = 16
659310Sandreas.hansson@arm.com    write_buffers = 8
669310Sandreas.hansson@arm.com
679310Sandreas.hansson@arm.comclass IOCache(BaseCache):
689310Sandreas.hansson@arm.com    assoc = 8
699310Sandreas.hansson@arm.com    block_size = 64
709310Sandreas.hansson@arm.com    hit_latency = 50
719310Sandreas.hansson@arm.com    response_latency = 50
723668Srdreslin@umich.edu    mshrs = 20
739310Sandreas.hansson@arm.com    size = '1kB'
743668Srdreslin@umich.edu    tgts_per_mshr = 12
759310Sandreas.hansson@arm.com    forward_snoops = False
769310Sandreas.hansson@arm.com    is_top_level = True
773668Srdreslin@umich.edu
787868Sgblack@eecs.umich.educlass PageTableWalkerCache(BaseCache):
797868Sgblack@eecs.umich.edu    assoc = 2
807868Sgblack@eecs.umich.edu    block_size = 64
819288Sandreas.hansson@arm.com    hit_latency = 2
829288Sandreas.hansson@arm.com    response_latency = 2
837868Sgblack@eecs.umich.edu    mshrs = 10
847868Sgblack@eecs.umich.edu    size = '1kB'
857868Sgblack@eecs.umich.edu    tgts_per_mshr = 12
868134SAli.Saidi@ARM.com    is_top_level = True
87