Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

cache index

The middle bits of an address, which pick where in the cache to look.

The index field, of log2(number of sets) bits just above the line offset, selects one set (in a direct-mapped cache, one line); consecutive lines therefore map to consecutive sets.

Examples

  • A 32 KiB direct-mapped cache with 64-byte lines has 512 lines, so 9 bits above the 6 offset bits pick the line.

Read the full section →