def __init__( self, size: str, assoc: Optional[int] = 8, tag_latency: Optional[int] = 1, data_latency: Optional[int] = 1, response_latency: Optional[int] = 1, mshrs: Optional[int] = 16, tgts_per_mshr: Optional[int] = 20, writeback_clean: Optional[bool] = True, prefetcher: BasePrefetcher = StridePrefetcher(), ): super(L1DCache, self).__init__() self.size = size self.assoc = assoc self.tag_latency = tag_latency self.data_latency = data_latency self.response_latency = response_latency self.mshrs = mshrs self.tgts_per_mshr = tgts_per_mshr self.writeback_clean = writeback_clean self.prefetcher = prefetcher
def __init__(self, options): super(PrefetchCache, self).__init__() if not options or options.no_prefetchers: return self.prefetcher = StridePrefetcher()
def __init__(self): super(PrefetchCache, self).__init__() self.prefetcher = StridePrefetcher()