Go to the documentation of this file.
34 #ifndef __MEM_CACHE_COMPRESSORS_PERFECT_COMPRESSOR_HH__
35 #define __MEM_CACHE_COMPRESSORS_PERFECT_COMPRESSOR_HH__
44 struct PerfectCompressorParams;
62 std::unique_ptr<CompressionData>
compress(
64 Cycles& decomp_lat)
override;
69 typedef PerfectCompressorParams
Params;
94 #endif //__MEM_CACHE_COMPRESSORS_PERFECT_COMPRESSOR_HH__
const Cycles decompressionLatency
Number of cycles needed to perform decompression.
const int compressedSize
Size to which this compressor always compresses.
void decompress(const CompressionData *comp_data, uint64_t *data) override
Apply the decompression process to the compressed data.
Base cache compressor interface.
CompData(const std::vector< Chunk > &chunks)
Default constructor that creates a copy of the original data.
BaseCacheCompressorParams Params
std::unique_ptr< CompressionData > compress(const std::vector< Chunk > &chunks, Cycles &comp_lat, Cycles &decomp_lat) override
Apply the compression process to the cache line.
PerfectCompressorParams Params
Cycles is a wrapper class for representing cycle counts, i.e.
const Cycles compressionLatency
Number of cycles needed to perform compression.
std::vector< Chunk > chunks
The original data is simply copied over to this vector.
Generated on Wed Sep 30 2020 14:02:12 for gem5 by doxygen 1.8.17