Caches.py revision 8134
14444Ssaidi@eecs.umich.edu# Copyright (c) 2006-2007 The Regents of The University of Michigan
23395Shsul@eecs.umich.edu# All rights reserved.
33395Shsul@eecs.umich.edu#
43395Shsul@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
53395Shsul@eecs.umich.edu# modification, are permitted provided that the following conditions are
63395Shsul@eecs.umich.edu# met: redistributions of source code must retain the above copyright
73395Shsul@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
83395Shsul@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
93395Shsul@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
103395Shsul@eecs.umich.edu# documentation and/or other materials provided with the distribution;
113395Shsul@eecs.umich.edu# neither the name of the copyright holders nor the names of its
123395Shsul@eecs.umich.edu# contributors may be used to endorse or promote products derived from
133395Shsul@eecs.umich.edu# this software without specific prior written permission.
143395Shsul@eecs.umich.edu#
153395Shsul@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
163395Shsul@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
173395Shsul@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
183395Shsul@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
193395Shsul@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
203395Shsul@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
213395Shsul@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
223395Shsul@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
233395Shsul@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
243395Shsul@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
253395Shsul@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
263395Shsul@eecs.umich.edu#
273395Shsul@eecs.umich.edu# Authors: Lisa Hsu
283395Shsul@eecs.umich.edu
293395Shsul@eecs.umich.edufrom m5.objects import *
303395Shsul@eecs.umich.edu
313395Shsul@eecs.umich.educlass L1Cache(BaseCache):
323395Shsul@eecs.umich.edu    assoc = 2
333395Shsul@eecs.umich.edu    block_size = 64
344444Ssaidi@eecs.umich.edu    latency = '1ns'
353395Shsul@eecs.umich.edu    mshrs = 10
363395Shsul@eecs.umich.edu    tgts_per_mshr = 5
378134SAli.Saidi@ARM.com    is_top_level = True
383395Shsul@eecs.umich.edu
393668Srdreslin@umich.educlass L2Cache(BaseCache):
403668Srdreslin@umich.edu    assoc = 8
413668Srdreslin@umich.edu    block_size = 64
424444Ssaidi@eecs.umich.edu    latency = '10ns'
433668Srdreslin@umich.edu    mshrs = 20
443668Srdreslin@umich.edu    tgts_per_mshr = 12
453668Srdreslin@umich.edu
467868Sgblack@eecs.umich.educlass PageTableWalkerCache(BaseCache):
477868Sgblack@eecs.umich.edu    assoc = 2
487868Sgblack@eecs.umich.edu    block_size = 64
497868Sgblack@eecs.umich.edu    latency = '1ns'
507868Sgblack@eecs.umich.edu    mshrs = 10
517868Sgblack@eecs.umich.edu    size = '1kB'
527868Sgblack@eecs.umich.edu    tgts_per_mshr = 12
538134SAli.Saidi@ARM.com    is_top_level = True
547868Sgblack@eecs.umich.edu
554965Ssaidi@eecs.umich.educlass IOCache(BaseCache):
564965Ssaidi@eecs.umich.edu    assoc = 8
574965Ssaidi@eecs.umich.edu    block_size = 64
584965Ssaidi@eecs.umich.edu    latency = '10ns'
594965Ssaidi@eecs.umich.edu    mshrs = 20
604965Ssaidi@eecs.umich.edu    size = '1kB'
614965Ssaidi@eecs.umich.edu    tgts_per_mshr = 12
626122SSteve.Reinhardt@amd.com    forward_snoops = False
638134SAli.Saidi@ARM.com    is_top_level = True
64