Go to the documentation of this file.
34 #ifndef __MEM_CACHE_COMPRESSORS_MULTI_HH__
35 #define __MEM_CACHE_COMPRESSORS_MULTI_HH__
47 struct MultiCompressorParams;
110 std::unique_ptr<Base::CompressionData>
compress(
134 std::unique_ptr<Base::CompressionData> comp_data);
146 #endif //__MEM_CACHE_COMPRESSORS_MULTI_HH__
std::vector< Base * > compressors
List of sub-compressors.
const uint8_t index
Index of the compressor that provided these compression results.
std::unique_ptr< Base::CompressionData > compData
Compression data of the best compressor.
A 2-Dimensional vecto of scalar stats.
BaseCacheCompressorParams Params
const std::size_t numEncodingBits
An encoding is associated to each sub-compressor to inform which sub-compressor to use when decompres...
void decompress(const CompressionData *comp_data, uint64_t *data) override
Apply the decompression process to the compressed data.
Cycles is a wrapper class for representing cycle counts, i.e.
MultiCompData(unsigned index, std::unique_ptr< Base::CompressionData > comp_data)
Default constructor.
MultiCompressorParams Params
Base cache compressor interface.
statistics::Vector2d ranks
Number of times each compressor provided the nth best compression.
const Cycles extraDecompressionLatency
Extra decompression latency to be added to the sub-compressor's decompression latency.
~MultiCompData()=default
Default destructor.
void regStats() override
Callback to set stat parameters.
void setCache(BaseCache *_cache) override
The cache can only be set once.
friend class Multi
This compressor must be able to access the protected functions of its sub-compressors.
MultiStats(BaseStats &base_group, Multi &_compressor)
gem5::compression::Multi::MultiStats multiStats
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.
uint8_t getIndex() const
Get the index of the best compressor.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Generated on Sun Jul 30 2023 01:56:57 for gem5 by doxygen 1.8.17