Go to the documentation of this file.
37 #include "debug/CacheComp.hh"
39 #include "params/ZeroCompressor.hh"
55 std::unique_ptr<Base::CompressionData>
59 std::unique_ptr<Base::CompressionData> comp_data =
64 comp_data->setSizeBits(
blkSize * 8);
65 DPRINTF(CacheComp,
"Zero compression failed\n");
81 ZeroCompressorParams::create()
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.
DictionaryCompressor< uint64_t >::DictionaryEntry DictionaryEntry
const std::size_t blkSize
Uncompressed cache line size (in bytes).
std::unique_ptr< Base::CompressionData > compress(const std::vector< Chunk > &chunks)
Apply compression.
std::size_t numEntries
Number of valid entries in the dictionary.
void addToDictionary(DictionaryEntry data) override
A template version of the dictionary compressor that allows to choose the dictionary size.
BaseCacheCompressorParams Params
Cycles is a wrapper class for representing cycle counts, i.e.
std::vector< DictionaryEntry > dictionary
The dictionary.
const std::size_t dictionarySize
Dictionary size.
Generated on Wed Sep 30 2020 14:02:12 for gem5 by doxygen 1.8.17