Caches.py revision 6122
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.eduimport m5 303395Shsul@eecs.umich.edufrom m5.objects import * 313395Shsul@eecs.umich.edu 323395Shsul@eecs.umich.educlass L1Cache(BaseCache): 333395Shsul@eecs.umich.edu assoc = 2 343395Shsul@eecs.umich.edu block_size = 64 354444Ssaidi@eecs.umich.edu latency = '1ns' 363395Shsul@eecs.umich.edu mshrs = 10 373395Shsul@eecs.umich.edu tgts_per_mshr = 5 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 464965Ssaidi@eecs.umich.educlass IOCache(BaseCache): 474965Ssaidi@eecs.umich.edu assoc = 8 484965Ssaidi@eecs.umich.edu block_size = 64 494965Ssaidi@eecs.umich.edu latency = '10ns' 504965Ssaidi@eecs.umich.edu mshrs = 20 514965Ssaidi@eecs.umich.edu size = '1kB' 524965Ssaidi@eecs.umich.edu tgts_per_mshr = 12 536122SSteve.Reinhardt@amd.com forward_snoops = False 54