How a cache works
A cache splits an address into tag, set index and block offset, looks in one set, and hits only if a valid line there has the same tag, otherwise it misses and evicts a line.
A cache splits an address into tag, set index and block offset, looks in one set, and hits only if a valid line there has the same tag, otherwise it misses and evicts a line.