29#ifndef __MEM_CACHE_PREFETCH_DELTA_CORRELATING_PREDICTION_TABLES_HH_
30#define __MEM_CACHE_PREFETCH_DELTA_CORRELATING_PREDICTION_TABLES_HH_
39struct DeltaCorrelatingPredictionTablesParams;
40struct DCPTPrefetcherParams;
110 const DeltaCorrelatingPredictionTablesParams &
p);
131 DCPT(
const DCPTPrefetcherParams &
p);
A CacheEntry is an entry containing a tag.
Abstract superclass for simulation objects.
Class containing the information needed by the prefetch to train and generate new prefetch requests.
The prefetcher object using the DCPT.
DCPT(const DCPTPrefetcherParams &p)
DeltaCorrelatingPredictionTables & dcpt
DCPT object.
void calculatePrefetch(const PrefetchInfo &pfi, std::vector< AddrPriority > &addresses, const CacheAccessor &cache) override
Delta Correlating Prediction Tables Prefetcher References: Multi-level hardware prefetching using low...
DeltaCorrelatingPredictionTables(const DeltaCorrelatingPredictionTablesParams &p)
const unsigned int deltaBits
Number of bits of each delta.
AssociativeCache< DCPTEntry > table
The main table.
~DeltaCorrelatingPredictionTables()=default
void calculatePrefetch(const Base::PrefetchInfo &pfi, std::vector< Queued::AddrPriority > &addresses, const CacheAccessor &cache)
Computes the prefetch candidates given a prefetch event.
const unsigned int deltaMaskBits
Number of lower bits to ignore from the deltas.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Provides generic cache lookup functions.
DCPT Table entry datatype.
CircularQueue< Addr > deltas
Stored deltas.
DCPTEntry(unsigned int num_deltas)
Constructor.
void addAddress(Addr address, unsigned int delta_num_bits)
Adds an address to the entry, if the entry already existed, a delta will be generated.
Addr lastAddress
Last accessed address.
void getCandidates(std::vector< Queued::AddrPriority > &pfs, unsigned int mask_bits) const
Attempt to generate prefetch candidates using the two most recent deltas.
void invalidate() override
Invalidate the block.