Write-allocate: allocate a cache line (put it in cache) for new data (and maybe write-through).Write-back: CPU writes only to cache cache writes to main memory when the dirty block is later evicted.Write-through: writes go to main memory and cache.No-write: writes invalidate the cache and go directly to memory.Cache write policies ↑top if data is already in the cache. when evicting a line: if D=0 (memory data is NOT stale), just set V=0 if D=1 (memory data is stale), write-back the data and then set D=0 and V=0.ģ.when writing a line in response to write hit, set D=1.when allocating line, set V=1, D=0 (clean) and fill in tag and data.V=1 means the line has valid data, and D=1 (dirty) means the bytes are newer than main memory.write back: when doing allacation for read/write misses, a line needed to be evicted for the newly fetched block if the existing cache line is dirty, do a write-back.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |