X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmem%2Fcache%2Fcompressors%2FCompressors.py;h=4ed72190c0b6ace92c503909dda122adc3300fe5;hb=7973e49187a977b26cc3abc8a5b1393eb1a1f294;hp=b6315ad8d64ae4783cb1ebeb1a75834b341717a5;hpb=7ce9fe0af9f04a6f94bec9542af025a043c46b35;p=gem5.git diff --git a/src/mem/cache/compressors/Compressors.py b/src/mem/cache/compressors/Compressors.py index b6315ad8d..4ed72190c 100644 --- a/src/mem/cache/compressors/Compressors.py +++ b/src/mem/cache/compressors/Compressors.py @@ -40,6 +40,14 @@ class BaseCacheCompressor(SimObject): "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' cxx_class = 'BDI' @@ -49,15 +57,7 @@ class BDI(BaseCacheCompressor): "combinations of base and delta for the compressors. False if using" \ "only the lowest possible delta size for each base size."); -class DictionaryCompressor(BaseCacheCompressor): - type = 'DictionaryCompressor' - abstract = True - cxx_header = "mem/cache/compressors/dictionary_compressor.hh" - - dictionary_size = Param.Int(Parent.cache_line_size, - "Number of dictionary entries") - -class CPack(DictionaryCompressor): +class CPack(BaseDictionaryCompressor): type = 'CPack' cxx_class = 'CPack' cxx_header = "mem/cache/compressors/cpack.hh"