Splitting a Cache Address

A processor uses 18-bit byte addresses and a direct-mapped cache, in which each memory block has exactly one permitted cache line. The cache has 16 lines, numbered 0 through 15. Each line holds one 32-byte block.


Memory blocks are numbered from zero: block 0 contains byte addresses 0 through 31, block 1 contains addresses 32 through 63, and so on. Consecutive blocks map cyclically to cache lines 0 through 15. The tag is the remaining upper portion of the address after the line-index and byte-offset bits are removed.


For decimal byte address 13228, find the permitted cache line index, the byte offset within its block in bytes, and the tag value. Give all three answers as exact decimal integers. Determine the mapping regardless of whether the block is currently cached.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Memory Questions: