34#ifndef __MEM_CACHE_COMPRESSORS_MULTI_HH__
35#define __MEM_CACHE_COMPRESSORS_MULTI_HH__
47struct MultiCompressorParams;
110 std::unique_ptr<Base::CompressionData>
compress(
134 std::unique_ptr<Base::CompressionData> comp_data);
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,...
Cycles is a wrapper class for representing cycle counts, i.e.
Base cache compressor interface.
friend class Multi
This compressor must be able to access the protected functions of its sub-compressors.
~MultiCompData()=default
Default destructor.
const uint8_t index
Index of the compressor that provided these compression results.
uint8_t getIndex() const
Get the index of the best compressor.
MultiCompData(unsigned index, std::unique_ptr< Base::CompressionData > comp_data)
Default constructor.
std::unique_ptr< Base::CompressionData > compData
Compression data of the best compressor.
void setCache(BaseCache *_cache) override
The cache can only be set once.
const std::size_t numEncodingBits
An encoding is associated to each sub-compressor to inform which sub-compressor to use when decompres...
MultiCompressorParams Params
std::vector< Base * > compressors
List of sub-compressors.
std::unique_ptr< Base::CompressionData > compress(const std::vector< Base::Chunk > &chunks, Cycles &comp_lat, Cycles &decomp_lat) override
Apply the compression process to the cache line.
gem5::compression::Multi::MultiStats multiStats
void decompress(const CompressionData *comp_data, uint64_t *data) override
Apply the decompression process to the compressed data.
const Cycles extraDecompressionLatency
Extra decompression latency to be added to the sub-compressor's decompression latency.
A 2-Dimensional vecto of scalar stats.
Definition of a basic cache compressor.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Declaration of Statistics objects.
void regStats() override
Callback to set stat parameters.
MultiStats(BaseStats &base_group, Multi &_compressor)
statistics::Vector2d ranks
Number of times each compressor provided the nth best compression.