Tags.py (13418:08101e89101e) Tags.py (13419:aaadcfae091a)
1# Copyright (c) 2012-2013 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

39from m5.proxy import *
40from ClockedObject import ClockedObject
41from IndexingPolicies import *
42
43class BaseTags(ClockedObject):
44 type = 'BaseTags'
45 abstract = True
46 cxx_header = "mem/cache/tags/base.hh"
1# Copyright (c) 2012-2013 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

39from m5.proxy import *
40from ClockedObject import ClockedObject
41from IndexingPolicies import *
42
43class BaseTags(ClockedObject):
44 type = 'BaseTags'
45 abstract = True
46 cxx_header = "mem/cache/tags/base.hh"
47
48 # Get system to which it belongs
49 system = Param.System(Parent.any, "System we belong to")
50
47 # Get the size from the parent (cache)
48 size = Param.MemorySize(Parent.size, "capacity in bytes")
49
50 # Get the block size from the parent (system)
51 block_size = Param.Int(Parent.cache_line_size, "block size in bytes")
52
53 # Get the tag lookup latency from the parent (cache)
54 tag_latency = Param.Cycles(Parent.tag_latency,

--- 55 unchanged lines hidden ---
51 # Get the size from the parent (cache)
52 size = Param.MemorySize(Parent.size, "capacity in bytes")
53
54 # Get the block size from the parent (system)
55 block_size = Param.Int(Parent.cache_line_size, "block size in bytes")
56
57 # Get the tag lookup latency from the parent (cache)
58 tag_latency = Param.Cycles(Parent.tag_latency,

--- 55 unchanged lines hidden ---