Go to the documentation of this file.
34 #ifndef __MEM_CACHE_COMPRESSORS_MULTI_HH__
35 #define __MEM_CACHE_COMPRESSORS_MULTI_HH__
44 struct MultiCompressorParams;
104 std::unique_ptr<Base::CompressionData>
compress(
128 std::unique_ptr<Base::CompressionData> comp_data);
139 #endif //__MEM_CACHE_COMPRESSORS_MULTI_HH__
const Cycles extraDecompressionLatency
Extra decompression latency to be added to the sub-compressor's decompression latency.
~MultiCompData()=default
Default destructor.
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.
const std::size_t numEncodingBits
An encoding is associated to each sub-compressor to inform which sub-compressor to use when decompres...
Compressor::Multi::MultiStats multiStats
MultiCompData(unsigned index, std::unique_ptr< Base::CompressionData > comp_data)
Default constructor.
Base cache compressor interface.
std::vector< Base * > compressors
List of sub-compressors.
void decompress(const CompressionData *comp_data, uint64_t *data) override
Apply the decompression process to the compressed data.
const uint8_t index
Index of the compressor that provided these compression results.
MultiStats(BaseStats &base_group, Multi &_compressor)
BaseCacheCompressorParams Params
void regStats() override
Callback to set stat parameters.
std::unique_ptr< Base::CompressionData > compData
Compression data of the best compressor.
A 2-Dimensional vecto of scalar stats.
MultiCompressorParams Params
Cycles is a wrapper class for representing cycle counts, i.e.
Stats::Vector2d ranks
Number of times each compressor provided the nth best compression.
friend class Multi
This compressor must be able to access the protected functions of its sub-compressors.
uint8_t getIndex() const
Get the index of the best compressor.
Generated on Wed Sep 30 2020 14:02:12 for gem5 by doxygen 1.8.17