From: Daniel R. Carvalho Date: Tue, 5 Nov 2019 12:32:46 +0000 (+0100) Subject: mem-cache: Use cache's max CR on perfect compressor X-Git-Tag: v20.1.0.0~179 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0d67b2263aab6a729368373d9cdef9883870241;p=gem5.git mem-cache: Use cache's max CR on perfect compressor Use cache's max_compression_ratio to setup the max_compression_ratio of the PerfectCompressor. Change-Id: Ib44aa61975fb2cc52f27f64a86c9df9c5531aa1a Signed-off-by: Daniel R. Carvalho Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33387 Reviewed-by: Nikos Nikoleris Maintainer: Nikos Nikoleris Tested-by: kokoro --- diff --git a/src/mem/cache/compressors/Compressors.py b/src/mem/cache/compressors/Compressors.py index 2497e82e0..d7dfdab6b 100644 --- a/src/mem/cache/compressors/Compressors.py +++ b/src/mem/cache/compressors/Compressors.py @@ -125,7 +125,7 @@ class PerfectCompressor(BaseCacheCompressor): cxx_header = "mem/cache/compressors/perfect.hh" chunk_size_bits = 64 - max_compression_ratio = Param.Int(2, + max_compression_ratio = Param.Int(Parent.max_compression_ratio, "Maximum compression ratio allowed") compression_latency = Param.Cycles(1, "Number of cycles to perform data compression")