01Chapter 1: Why memory is a hierarchyA computer does not use one memory device for every purpose. It combines several levels of storage. Small, fast memories stay close to the CPU. Larger, slower memories hold more data at lower cost. This arrangement is called the memory hierarchy.3 min read
02Chapter 2: Temporal and spatial localityThis chapter assumes that you know binary numbers, powers of two, byte-addressable memory, and the basic idea that a CPU fetches instructions and data from memory. You should also know that a cache stores recently used blocks of main memory.2 min read
03Chapter 3: Cache basics: blocks, lines, hits and missesAssume you know binary and hexadecimal numbers, powers of two, byte-addressable memory, word size, and the basic idea that a CPU fetches instructions and data from memory. You should also be comfortable with simple ratios and averages.2 min read
04Chapter 4: Hit ratio, miss ratio and miss penaltyAssume you know binary numbers, powers of two, byte-addressable memory, and how a CPU reads instructions and data. You should also know that a cache stores copies of blocks from a slower memory.2 min read
05Chapter 5: Average memory access timeAssume you know binary numbers, powers of two, byte-addressable memory, and weighted averages. You should also know that a cache stores recently used copies of blocks from main memory.2 min read
06Chapter 6: Splitting an address into tag, index and offsetAssume you know binary and hexadecimal numbers, powers of two, byte-addressable memory, and the basic idea of cache blocks and cache lines. This chapter shows how a cache divides a physical address so it can locate data quickly.2 min read
07Chapter 7: Direct-mapped cacheAssume you know binary and hexadecimal numbers, powers of two, byte-addressable memory, and how a CPU reads data from memory. This chapter explains how a memory block is placed in a direct-mapped cache and how the CPU finds it again.2 min read
08Chapter 8: Fully associative cacheThis chapter assumes you can represent numbers in binary and hexadecimal, calculate powers of two, and distinguish a byte address from a memory block. You should also know that a cache stores recently used copies of data from main memory.2 min read
09Chapter 9: k-way set-associative cacheThis chapter assumes that you know binary and hexadecimal numbers, powers of two, byte-addressable memory, and the basic ideas of cache blocks, hits, misses, tags, indexes, and block offsets.2 min read
10Chapter 10: Cache size, tag bits and total storageAssume you know binary and hexadecimal numbers, powers of two, byte-addressable memory, word size, and weighted averages. This chapter uses capacity for the data stored in a cache. Metadata such as tags and valid bits is counted separately.2 min read
11Chapter 11: Replacement policies: LRU, FIFO and randomThis chapter assumes that you know cache blocks, cache lines, sets, tags, and hit or miss results. You should also be comfortable tracing a sequence of memory-block references.3 min read
13Chapter 13: Compulsory, capacity and conflict missesAssume you know binary addresses, cache blocks, cache lines, and the difference between direct-mapped and set-associative caches. This chapter classifies why a cache access misses. The classification helps you choose a cache design or interpret a GATE CS reference string.3 min read
14Chapter 14: Multilevel caches and access timeThis chapter assumes that you can compute hit and miss ratios, understand cache blocks, and read powers of two. You should also know that a cache hit finds the requested data at that level, while a miss sends the request to a slower level.2 min read
15Chapter 15: GATE problem patterns and strategiesAssume you know binary and hexadecimal notation, powers of two, byte-addressable memory, word size, and basic weighted averages. This chapter focuses on how to recognize and solve common GATE questions about cache organization and access time.2 min read