Cache.py revision 1310
1from BaseMem import BaseMem 2 3simobj BaseCache(BaseMem): 4 adaptive_compression = Param.Bool(false, 5 "Use an adaptive compression scheme") 6 assoc = Param.Int("associativity") 7 block_size = Param.Int("block size in bytes") 8 compressed_bus = Param.Bool(false, 9 "This cache connects to a compressed memory") 10 compression_latency = Param.Int(0, 11 "Latency in cycles of compression algorithm") 12 do_copy = Param.Bool(false, "perform fast copies in the cache") 13 hash_delay = Param.Int(1, "time in cycles of hash access") 14 in_bus = Param.Bus(NULL, "incoming bus object") 15 max_miss_count = Param.Counter(0, 16 "number of misses to handle before calling exit") 17 mshrs = Param.Int("number of MSHRs (max outstanding requests)") 18 out_bus = Param.Bus("outgoing bus object") 19 prioritizeRequests = Param.Bool(false, 20 "always service demand misses first") 21 protocol = Param.CoherenceProtocol(NULL, "coherence protocol to use") 22 repl = Param.Repl(NULL, "replacement policy") 23 size = Param.Int("capacity in bytes") 24 store_compressed = Param.Bool(false, 25 "Store compressed data in the cache") 26 subblock_size = Param.Int(0, 27 "Size of subblock in IIC used for compression") 28 tgts_per_mshr = Param.Int("max number of accesses per MSHR") 29 trace_addr = Param.Addr(0, "address to trace") 30 write_buffers = Param.Int(8, "number of write buffers") 31