ReplacementPolicies.py (13849:858526a875ab) | ReplacementPolicies.py (14211:acfef4916339) |
---|---|
1# Copyright (c) 2018 Inria 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 64 unchanged lines hidden (view full) --- 73 type = 'RandomRP' 74 cxx_class = 'RandomRP' 75 cxx_header = "mem/cache/replacement_policies/random_rp.hh" 76 77class BRRIPRP(BaseReplacementPolicy): 78 type = 'BRRIPRP' 79 cxx_class = 'BRRIPRP' 80 cxx_header = "mem/cache/replacement_policies/brrip_rp.hh" | 1# Copyright (c) 2018 Inria 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 64 unchanged lines hidden (view full) --- 73 type = 'RandomRP' 74 cxx_class = 'RandomRP' 75 cxx_header = "mem/cache/replacement_policies/random_rp.hh" 76 77class BRRIPRP(BaseReplacementPolicy): 78 type = 'BRRIPRP' 79 cxx_class = 'BRRIPRP' 80 cxx_header = "mem/cache/replacement_policies/brrip_rp.hh" |
81 max_RRPV = Param.Int(3, "Maximum RRPV possible") | 81 num_bits = Param.Int(2, "Number of bits per RRPV") |
82 hit_priority = Param.Bool(False, 83 "Prioritize evicting blocks that havent had a hit recently") 84 btp = Param.Percent(3, 85 "Percentage of blocks to be inserted with long RRPV") 86 87class RRIPRP(BRRIPRP): 88 btp = 100 89 90class NRURP(BRRIPRP): 91 btp = 100 | 82 hit_priority = Param.Bool(False, 83 "Prioritize evicting blocks that havent had a hit recently") 84 btp = Param.Percent(3, 85 "Percentage of blocks to be inserted with long RRPV") 86 87class RRIPRP(BRRIPRP): 88 btp = 100 89 90class NRURP(BRRIPRP): 91 btp = 100 |
92 max_RRPV = 1 | 92 num_bits = 1 |
93 94class TreePLRURP(BaseReplacementPolicy): 95 type = 'TreePLRURP' 96 cxx_class = 'TreePLRURP' 97 cxx_header = "mem/cache/replacement_policies/tree_plru_rp.hh" 98 num_leaves = Param.Int(Parent.assoc, "Number of leaves in each tree") | 93 94class TreePLRURP(BaseReplacementPolicy): 95 type = 'TreePLRURP' 96 cxx_class = 'TreePLRURP' 97 cxx_header = "mem/cache/replacement_policies/tree_plru_rp.hh" 98 num_leaves = Param.Int(Parent.assoc, "Number of leaves in each tree") |