Deleted Added
sdiff udiff text old ( 12513:4dfc54394b5a ) new ( 12600:e670dd17c8cf )
full compact
1# Copyright (c) 2012-2013, 2015 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 29 unchanged lines hidden (view full) ---

38#
39# Authors: Nathan Binkert
40# Andreas Hansson
41
42from m5.params import *
43from m5.proxy import *
44from MemObject import MemObject
45from Prefetcher import BasePrefetcher
46from Tags import *
47
48class BaseCache(MemObject):
49 type = 'BaseCache'
50 abstract = True
51 cxx_header = "mem/cache/base.hh"
52
53 size = Param.MemorySize("Capacity")

--- 15 unchanged lines hidden (view full) ---

69 write_buffers = Param.Unsigned(8, "Number of write buffers")
70
71 is_read_only = Param.Bool(False, "Is this cache read only (e.g. inst)")
72
73 prefetcher = Param.BasePrefetcher(NULL,"Prefetcher attached to cache")
74 prefetch_on_access = Param.Bool(False,
75 "Notify the hardware prefetcher on every access (not just misses)")
76
77 tags = Param.BaseTags(LRU(), "Tag store (replacement policy)")
78 sequential_access = Param.Bool(False,
79 "Whether to access tags and data sequentially")
80
81 cpu_side = SlavePort("Upstream port closer to the CPU and/or device")
82 mem_side = MasterPort("Downstream port closer to memory")
83
84 addr_ranges = VectorParam.AddrRange([AllMemory],
85 "Address range for the CPU-side port (to allow striping)")

--- 30 unchanged lines hidden ---