ReplacementPolicies.py (13221:48bce2835200) | ReplacementPolicies.py (13849:858526a875ab) |
---|---|
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 --- 71 unchanged lines hidden (view full) --- 80 cxx_header = "mem/cache/replacement_policies/brrip_rp.hh" 81 max_RRPV = Param.Int(3, "Maximum RRPV possible") 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): | 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 --- 71 unchanged lines hidden (view full) --- 80 cxx_header = "mem/cache/replacement_policies/brrip_rp.hh" 81 max_RRPV = Param.Int(3, "Maximum RRPV possible") 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 = 0 | 88 btp = 100 |
89 90class NRURP(BRRIPRP): | 89 90class NRURP(BRRIPRP): |
91 btp = 0 | 91 btp = 100 |
92 max_RRPV = 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") | 92 max_RRPV = 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") |