Caches.py revision 4444:0648bdc8d1c9
15392Sgblack@eecs.umich.edu# Copyright (c) 2006-2007 The Regents of The University of Michigan
25392Sgblack@eecs.umich.edu# All rights reserved.
35392Sgblack@eecs.umich.edu#
45392Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
55392Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
65392Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
75392Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
85392Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
95392Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
105392Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
115392Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
125392Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
135392Sgblack@eecs.umich.edu# this software without specific prior written permission.
145392Sgblack@eecs.umich.edu#
155392Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
165392Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
175392Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
185392Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
195392Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
205392Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
215392Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
225392Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
235392Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
245392Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
255392Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
265392Sgblack@eecs.umich.edu#
275392Sgblack@eecs.umich.edu# Authors: Lisa Hsu
285392Sgblack@eecs.umich.edu
295392Sgblack@eecs.umich.eduimport m5
305392Sgblack@eecs.umich.edufrom m5.objects import *
315392Sgblack@eecs.umich.edu
325392Sgblack@eecs.umich.educlass L1Cache(BaseCache):
335392Sgblack@eecs.umich.edu    assoc = 2
345392Sgblack@eecs.umich.edu    block_size = 64
355392Sgblack@eecs.umich.edu    latency = '1ns'
365392Sgblack@eecs.umich.edu    mshrs = 10
375392Sgblack@eecs.umich.edu    tgts_per_mshr = 5
385392Sgblack@eecs.umich.edu    protocol = CoherenceProtocol(protocol='moesi')
395392Sgblack@eecs.umich.edu
405606Snate@binkert.orgclass L2Cache(BaseCache):
415392Sgblack@eecs.umich.edu    assoc = 8
425392Sgblack@eecs.umich.edu    block_size = 64
435392Sgblack@eecs.umich.edu    latency = '10ns'
445392Sgblack@eecs.umich.edu    mshrs = 20
455392Sgblack@eecs.umich.edu    tgts_per_mshr = 12
465392Sgblack@eecs.umich.edu
475392Sgblack@eecs.umich.edu