113942Sodanrc@yahoo.com.br# Copyright (c) 2018 Inria 213942Sodanrc@yahoo.com.br# All rights reserved. 313942Sodanrc@yahoo.com.br# 413942Sodanrc@yahoo.com.br# Redistribution and use in source and binary forms, with or without 513942Sodanrc@yahoo.com.br# modification, are permitted provided that the following conditions are 613942Sodanrc@yahoo.com.br# met: redistributions of source code must retain the above copyright 713942Sodanrc@yahoo.com.br# notice, this list of conditions and the following disclaimer; 813942Sodanrc@yahoo.com.br# redistributions in binary form must reproduce the above copyright 913942Sodanrc@yahoo.com.br# notice, this list of conditions and the following disclaimer in the 1013942Sodanrc@yahoo.com.br# documentation and/or other materials provided with the distribution; 1113942Sodanrc@yahoo.com.br# neither the name of the copyright holders nor the names of its 1213942Sodanrc@yahoo.com.br# contributors may be used to endorse or promote products derived from 1313942Sodanrc@yahoo.com.br# this software without specific prior written permission. 1413942Sodanrc@yahoo.com.br# 1513942Sodanrc@yahoo.com.br# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1613942Sodanrc@yahoo.com.br# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1713942Sodanrc@yahoo.com.br# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1813942Sodanrc@yahoo.com.br# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1913942Sodanrc@yahoo.com.br# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2013942Sodanrc@yahoo.com.br# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2113942Sodanrc@yahoo.com.br# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2213942Sodanrc@yahoo.com.br# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2313942Sodanrc@yahoo.com.br# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2413942Sodanrc@yahoo.com.br# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2513942Sodanrc@yahoo.com.br# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2613942Sodanrc@yahoo.com.br# 2713942Sodanrc@yahoo.com.br# Authors: Daniel Carvalho 2813942Sodanrc@yahoo.com.br 2913942Sodanrc@yahoo.com.brfrom m5.params import * 3013942Sodanrc@yahoo.com.brfrom m5.proxy import * 3113942Sodanrc@yahoo.com.brfrom m5.SimObject import SimObject 3213942Sodanrc@yahoo.com.br 3313942Sodanrc@yahoo.com.brclass BaseCacheCompressor(SimObject): 3413942Sodanrc@yahoo.com.br type = 'BaseCacheCompressor' 3513942Sodanrc@yahoo.com.br abstract = True 3613942Sodanrc@yahoo.com.br cxx_header = "mem/cache/compressors/base.hh" 3713942Sodanrc@yahoo.com.br 3813942Sodanrc@yahoo.com.br block_size = Param.Int(Parent.cache_line_size, "Block size in bytes") 3913944Sodanrc@yahoo.com.br 4013944Sodanrc@yahoo.com.brclass BDI(BaseCacheCompressor): 4113944Sodanrc@yahoo.com.br type = 'BDI' 4213944Sodanrc@yahoo.com.br cxx_class = 'BDI' 4313944Sodanrc@yahoo.com.br cxx_header = "mem/cache/compressors/bdi.hh" 4413944Sodanrc@yahoo.com.br 4513944Sodanrc@yahoo.com.br use_more_compressors = Param.Bool(True, "True if should use all possible" \ 4613944Sodanrc@yahoo.com.br "combinations of base and delta for the compressors. False if using" \ 4713944Sodanrc@yahoo.com.br "only the lowest possible delta size for each base size."); 4814089Sodanrc@yahoo.com.br 4914089Sodanrc@yahoo.com.brclass CPack(BaseCacheCompressor): 5014089Sodanrc@yahoo.com.br type = 'CPack' 5114089Sodanrc@yahoo.com.br cxx_class = 'CPack' 5214089Sodanrc@yahoo.com.br cxx_header = "mem/cache/compressors/cpack.hh" 53