Prefetcher.py (13665:9c7fe3811b88) | Prefetcher.py (13667:e3ae3619b9ab) |
---|---|
1# Copyright (c) 2012, 2014 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 --- 223 unchanged lines hidden (view full) --- 232 "A prefetch accuracy factor smaller than this is considered low") 233 high_cache_hit_threshold = Param.Float(0.875, 234 "A cache hit ratio bigger than this is considered high") 235 low_cache_hit_threshold = Param.Float(0.75, 236 "A cache hit ratio smaller than this is considered low") 237 epoch_cycles = Param.Cycles(256000, "Cycles in an epoch period") 238 offchip_memory_latency = Param.Latency("30ns", 239 "Memory latency used to compute the required memory bandwidth") | 1# Copyright (c) 2012, 2014 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 --- 223 unchanged lines hidden (view full) --- 232 "A prefetch accuracy factor smaller than this is considered low") 233 high_cache_hit_threshold = Param.Float(0.875, 234 "A cache hit ratio bigger than this is considered high") 235 low_cache_hit_threshold = Param.Float(0.75, 236 "A cache hit ratio smaller than this is considered low") 237 epoch_cycles = Param.Cycles(256000, "Cycles in an epoch period") 238 offchip_memory_latency = Param.Latency("30ns", 239 "Memory latency used to compute the required memory bandwidth") |
240 241class DeltaCorrelatingPredictionTables(SimObject): 242 type = 'DeltaCorrelatingPredictionTables' 243 cxx_class = 'DeltaCorrelatingPredictionTables' 244 cxx_header = "mem/cache/prefetch/delta_correlating_prediction_tables.hh" 245 deltas_per_entry = Param.Unsigned(20, 246 "Number of deltas stored in each table entry") 247 delta_bits = Param.Unsigned(12, "Bits per delta") 248 delta_mask_bits = Param.Unsigned(8, 249 "Lower bits to mask when comparing deltas") 250 table_entries = Param.MemorySize("128", 251 "Number of entries in the table") 252 table_assoc = Param.Unsigned(128, 253 "Associativity of the table") 254 table_indexing_policy = Param.BaseIndexingPolicy( 255 SetAssociative(entry_size = 1, assoc = Parent.table_assoc, 256 size = Parent.table_entries), 257 "Indexing policy of the table") 258 table_replacement_policy = Param.BaseReplacementPolicy(LRURP(), 259 "Replacement policy of the table") 260 261class DCPTPrefetcher(QueuedPrefetcher): 262 type = 'DCPTPrefetcher' 263 cxx_class = 'DCPTPrefetcher' 264 cxx_header = "mem/cache/prefetch/delta_correlating_prediction_tables.hh" 265 dcpt = Param.DeltaCorrelatingPredictionTables( 266 DeltaCorrelatingPredictionTables(), 267 "Delta Correlating Prediction Tables object") 268 |
|