Caches.py revision 7868
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 373395Shsul@eecs.umich.edu 383668Srdreslin@umich.educlass L2Cache(BaseCache): 393668Srdreslin@umich.edu assoc = 8 403668Srdreslin@umich.edu block_size = 64 414444Ssaidi@eecs.umich.edu latency = '10ns' 423668Srdreslin@umich.edu mshrs = 20 433668Srdreslin@umich.edu tgts_per_mshr = 12 443668Srdreslin@umich.edu 457868Sgblack@eecs.umich.educlass PageTableWalkerCache(BaseCache): 467868Sgblack@eecs.umich.edu assoc = 2 477868Sgblack@eecs.umich.edu block_size = 64 487868Sgblack@eecs.umich.edu latency = '1ns' 497868Sgblack@eecs.umich.edu mshrs = 10 507868Sgblack@eecs.umich.edu size = '1kB' 517868Sgblack@eecs.umich.edu tgts_per_mshr = 12 527868Sgblack@eecs.umich.edu 534965Ssaidi@eecs.umich.educlass IOCache(BaseCache): 544965Ssaidi@eecs.umich.edu assoc = 8 554965Ssaidi@eecs.umich.edu block_size = 64 564965Ssaidi@eecs.umich.edu latency = '10ns' 574965Ssaidi@eecs.umich.edu mshrs = 20 584965Ssaidi@eecs.umich.edu size = '1kB' 594965Ssaidi@eecs.umich.edu tgts_per_mshr = 12 606122SSteve.Reinhardt@amd.com forward_snoops = False 61