cxx_header = "mem/cache/compressors/base.hh"
block_size = Param.Int(Parent.cache_line_size, "Block size in bytes")
+ size_threshold = Param.Unsigned(Parent.cache_line_size, "Minimum size, "
+ "in bytes, in which a block must be compressed to. Otherwise it is "
+ "stored in its uncompressed state")
+
+class BaseDictionaryCompressor(BaseCacheCompressor):
+ type = 'BaseDictionaryCompressor'
+ abstract = True
+ cxx_header = "mem/cache/compressors/dictionary_compressor.hh"
+
+ dictionary_size = Param.Int(Parent.cache_line_size,
+ "Number of dictionary entries")
class BDI(BaseCacheCompressor):
type = 'BDI'
"combinations of base and delta for the compressors. False if using" \
"only the lowest possible delta size for each base size.");
-class CPack(BaseCacheCompressor):
+class CPack(BaseDictionaryCompressor):
type = 'CPack'
cxx_class = 'CPack'
cxx_header = "mem/cache/compressors/cpack.hh"