Go to the documentation of this file.
38 #include "debug/CacheComp.hh"
39 #include "params/PerfectCompressor.hh"
44 :
Base(
p), compressedSize(8 * blkSize /
p->max_compression_ratio),
45 compressionLatency(
p->compression_latency),
46 decompressionLatency(
p->decompression_latency)
50 std::unique_ptr<Base::CompressionData>
55 std::unique_ptr<Base::CompressionData> comp_data(
new CompData(chunks));
76 PerfectCompressorParams::create()
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.
void fromChunks(const std::vector< Chunk > &chunks, uint64_t *data) const
This function re-joins the chunks to recreate the original data.
Base cache compressor interface.
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.
Cycles is a wrapper class for representing cycle counts, i.e.
const Cycles compressionLatency
Number of cycles needed to perform compression.
Generated on Wed Sep 30 2020 14:02:12 for gem5 by doxygen 1.8.17