Cache placement policies: Difference between revisions

Content deleted Content added
Watarok (talk | contribs)
m Example: Clarify wording
Watarok (talk | contribs)
m Example: Clarify wording
Line 85:
Offset corresponds to the bits used to determine the byte to be accessed from the cache line.
 
In the example, the offset bitsthere are 2 offset bits, which are used to address the 4 bytes of the cache line and the remaining 12 bits form the tag.
 
In the example, theThe tag bits are 12 (14 – 2), which are stored in the tag field of the cache line to match the address on cache request.
 
Since any block of memory can be mapped to any cache line, the memory block can occupy one of the cache lines based on the replacement policy.