Tags.py (12665:4ca9fc117b95) | Tags.py (12752:6a0e3eb1cc5d) |
---|---|
1# Copyright (c) 2012-2013 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 --- 53 unchanged lines hidden (view full) --- 62 "Percentage of tags to be touched to warm up the cache") 63 64 sequential_access = Param.Bool(Parent.sequential_access, 65 "Whether to access tags and data sequentially") 66 67class BaseSetAssoc(BaseTags): 68 type = 'BaseSetAssoc' 69 cxx_header = "mem/cache/tags/base_set_assoc.hh" | 1# Copyright (c) 2012-2013 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 --- 53 unchanged lines hidden (view full) --- 62 "Percentage of tags to be touched to warm up the cache") 63 64 sequential_access = Param.Bool(Parent.sequential_access, 65 "Whether to access tags and data sequentially") 66 67class BaseSetAssoc(BaseTags): 68 type = 'BaseSetAssoc' 69 cxx_header = "mem/cache/tags/base_set_assoc.hh" |
70 71 # Get the cache associativity |
|
70 assoc = Param.Int(Parent.assoc, "associativity") 71 72 # Get replacement policy from the parent (cache) 73 replacement_policy = Param.BaseReplacementPolicy( 74 Parent.replacement_policy, "Replacement policy") 75 | 72 assoc = Param.Int(Parent.assoc, "associativity") 73 74 # Get replacement policy from the parent (cache) 75 replacement_policy = Param.BaseReplacementPolicy( 76 Parent.replacement_policy, "Replacement policy") 77 |
78class SectorTags(BaseTags): 79 type = 'SectorTags' 80 cxx_header = "mem/cache/tags/sector_tags.hh" 81 82 # Get the cache associativity 83 assoc = Param.Int(Parent.assoc, "associativity") 84 85 # Number of sub-sectors (data blocks) per sector 86 num_blocks_per_sector = Param.Int(1, "Number of sub-sectors per sector"); 87 88 # Get replacement policy from the parent (cache) 89 replacement_policy = Param.BaseReplacementPolicy( 90 Parent.replacement_policy, "Replacement policy") 91 |
|
76class FALRU(BaseTags): 77 type = 'FALRU' 78 cxx_class = 'FALRU' 79 cxx_header = "mem/cache/tags/fa_lru.hh" 80 81 min_tracked_cache_size = Param.MemorySize("128kB", "Minimum cache size for" 82 " which we track statistics") | 92class FALRU(BaseTags): 93 type = 'FALRU' 94 cxx_class = 'FALRU' 95 cxx_header = "mem/cache/tags/fa_lru.hh" 96 97 min_tracked_cache_size = Param.MemorySize("128kB", "Minimum cache size for" 98 " which we track statistics") |