Compressors.py (13942:e8b59b523af6) Compressors.py (13944:5000533e6b81)
1# Copyright (c) 2018 Inria
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 22 unchanged lines hidden (view full) ---

31from m5.SimObject import SimObject
32
33class BaseCacheCompressor(SimObject):
34 type = 'BaseCacheCompressor'
35 abstract = True
36 cxx_header = "mem/cache/compressors/base.hh"
37
38 block_size = Param.Int(Parent.cache_line_size, "Block size in bytes")
1# Copyright (c) 2018 Inria
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 22 unchanged lines hidden (view full) ---

31from m5.SimObject import SimObject
32
33class BaseCacheCompressor(SimObject):
34 type = 'BaseCacheCompressor'
35 abstract = True
36 cxx_header = "mem/cache/compressors/base.hh"
37
38 block_size = Param.Int(Parent.cache_line_size, "Block size in bytes")
39
40class BDI(BaseCacheCompressor):
41 type = 'BDI'
42 cxx_class = 'BDI'
43 cxx_header = "mem/cache/compressors/bdi.hh"
44
45 use_more_compressors = Param.Bool(True, "True if should use all possible" \
46 "combinations of base and delta for the compressors. False if using" \
47 "only the lowest possible delta size for each base size.");