mem-cache: Implement a perfect compressor
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Mon, 22 Jul 2019 17:59:18 +0000 (19:59 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Mon, 4 Nov 2019 21:32:22 +0000 (21:32 +0000)
commitb7223e0976dddc797babc6cbcaa44aa42ecca4f9
tree547ce2a29daa8f03e4f70bfb48b7df9658d23b39
parent3029ef270c75e7521bd7e14fe3a5d465568a9bb5
mem-cache: Implement a perfect compressor

Implement a perfect compressor that always manages to compresses data
exactly to its maximum allowed compression ratio. This allows tracking
a compression upper bound.

Change-Id: Ibc68bf2dc84b75207795d5ba6304b9ed6dbeae8f
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21160
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
src/mem/cache/compressors/Compressors.py
src/mem/cache/compressors/SConscript
src/mem/cache/compressors/perfect.cc [new file with mode: 0644]
src/mem/cache/compressors/perfect.hh [new file with mode: 0644]