Prefetcher.py (13963:94555f0223ba) | Prefetcher.py (13991:102d94094d6b) |
---|---|
1# Copyright (c) 2012, 2014 ARM Limited | 1# Copyright (c) 2012, 2014, 2019 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 9# terms below provided that you ensure that this notice is replicated --- 84 unchanged lines hidden (view full) --- 94 95 def listenFromProbe(self, simObj, *probeNames): 96 if not isinstance(simObj, SimObject): 97 raise TypeError("argument must be of SimObject type") 98 if len(probeNames) <= 0: 99 raise TypeError("probeNames must have at least one element") 100 self.addEvent(HWPProbeEvent(self, simObj, *probeNames)) 101 | 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 9# terms below provided that you ensure that this notice is replicated --- 84 unchanged lines hidden (view full) --- 94 95 def listenFromProbe(self, simObj, *probeNames): 96 if not isinstance(simObj, SimObject): 97 raise TypeError("argument must be of SimObject type") 98 if len(probeNames) <= 0: 99 raise TypeError("probeNames must have at least one element") 100 self.addEvent(HWPProbeEvent(self, simObj, *probeNames)) 101 |
102class MultiPrefetcher(BasePrefetcher): 103 type = 'MultiPrefetcher' 104 cxx_class = 'MultiPrefetcher' 105 cxx_header = 'mem/cache/prefetch/multi.hh' 106 107 prefetchers = VectorParam.BasePrefetcher([], "Array of prefetchers") 108 |
|
102class QueuedPrefetcher(BasePrefetcher): 103 type = "QueuedPrefetcher" 104 abstract = True 105 cxx_class = "QueuedPrefetcher" 106 cxx_header = "mem/cache/prefetch/queued.hh" 107 latency = Param.Int(1, "Latency for generated prefetches") 108 queue_size = Param.Int(32, "Maximum number of queued prefetches") 109 queue_squash = Param.Bool(True, "Squash queued prefetch on demand access") --- 377 unchanged lines hidden --- | 109class QueuedPrefetcher(BasePrefetcher): 110 type = "QueuedPrefetcher" 111 abstract = True 112 cxx_class = "QueuedPrefetcher" 113 cxx_header = "mem/cache/prefetch/queued.hh" 114 latency = Param.Int(1, "Latency for generated prefetches") 115 queue_size = Param.Int(32, "Maximum number of queued prefetches") 116 queue_squash = Param.Bool(True, "Squash queued prefetch on demand access") --- 377 unchanged lines hidden --- |