36 #include "params/CPack.hh" 50 std::unique_ptr<BaseCacheCompressor::CompressionData>
53 std::unique_ptr<BaseCacheCompressor::CompressionData> comp_data =
70 return new CPack(
this);
CPack(const Params *p)
Default constructor.
Cycles is a wrapper class for representing cycle counts, i.e.
std::size_t numEntries
Number of valid entries in the dictionary.
const std::size_t dictionarySize
Dictionary size.
Definition of CPack compression, from "C-Pack: A High-Performance Microprocessor Cache Compression Al...
void addToDictionary(DictionaryEntry data) override
const std::size_t blkSize
Uncompressed cache line size (in bytes).
std::unique_ptr< BaseCacheCompressor::CompressionData > compress(const uint64_t *data, Cycles &comp_lat, Cycles &decomp_lat) override
Apply compression.
std::vector< DictionaryEntry > dictionary
The dictionary.
BaseCacheCompressorParams Params
Convenience typedef.
DictionaryCompressor< uint32_t >::DictionaryEntry DictionaryEntry
std::unique_ptr< BaseCacheCompressor::CompressionData > compress(const uint64_t *data)
Apply compression.
Implementation of a dictionary based cache compressor.
A template version of the dictionary compressor that allows to choose the dictionary size...