| Managing cache | ||||||||||||||
| Cache line is stored in cache slot: | ||||||||||||||
| Actual data: cache line (data block) | ||||||||||||||
| Offset: k-bit address of data within cache line | ||||||||||||||
| V: valid bit | ||||||||||||||
| D: dirty bit | ||||||||||||||
| If data block valid, D = 1 indicates data has been modified since put in cache | ||||||||||||||
| Tag: upper 32-k bits | ||||||||||||||
|
||||||||||||||
| Number of bits per cache slot in this example: | ||||||||||||||
| 2 bits for V and D + 27 bits for tag + 32 * 8 bits for data = 285 | ||||||||||||||