Tags.py (12513:4dfc54394b5a) | Tags.py (12600:e670dd17c8cf) |
---|---|
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 --- 52 unchanged lines hidden (view full) --- 61 warmup_percentage = Param.Percent(Parent.warmup_percentage, 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' | 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 --- 52 unchanged lines hidden (view full) --- 61 warmup_percentage = Param.Percent(Parent.warmup_percentage, 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 abstract = True | |
70 cxx_header = "mem/cache/tags/base_set_assoc.hh" 71 assoc = Param.Int(Parent.assoc, "associativity") 72 | 69 cxx_header = "mem/cache/tags/base_set_assoc.hh" 70 assoc = Param.Int(Parent.assoc, "associativity") 71 |
73class LRU(BaseSetAssoc): 74 type = 'LRU' 75 cxx_class = 'LRU' 76 cxx_header = "mem/cache/tags/lru.hh" | 72 # Get replacement policy from the parent (cache) 73 replacement_policy = Param.BaseReplacementPolicy( 74 Parent.replacement_policy, "Replacement policy") |
77 | 75 |
78class RandomRepl(BaseSetAssoc): 79 type = 'RandomRepl' 80 cxx_class = 'RandomRepl' 81 cxx_header = "mem/cache/tags/random_repl.hh" 82 | |
83class FALRU(BaseTags): 84 type = 'FALRU' 85 cxx_class = 'FALRU' 86 cxx_header = "mem/cache/tags/fa_lru.hh" | 76class FALRU(BaseTags): 77 type = 'FALRU' 78 cxx_class = 'FALRU' 79 cxx_header = "mem/cache/tags/fa_lru.hh" |