Computing and Information Technology

Memory Hierarchy & Cache Design: Set-Associative Caches, Replacement Policies & MESI Coherence Practice Exam, Flashcards & Questions

Master foundational to advanced Memory Hierarchy & Cache Design: Set-Associative Caches, Replacement Policies & MESI Coherence with 66 verified curriculum items, worked engineering solutions, and spaced-repetition cards.

48 Total Questions 12 MCQs 18 Calculations 6 Formulas 12 Flashcards
Free Interactive Preview

Memory Hierarchy & Cache Design: Set-Associative Caches, Replacement Policies & MESI Coherence Sample Exam Questions & Rationale

Preview official questions below. The complete pool of 48 items is available in the offline app.

Question 1 of 4 Average Memory Access Time and Multi-Level Caching

In a multi-level cache system, why is the local miss rate of an L2 cache typically significantly higher than its global miss rate?

A The L2 cache only observes requests that have already missed in the high-locality L1 cache filter
B L2 cache lines use half the byte width of L1 lines to reduce bus arbitration delay
C The L2 controller flushes invalid tags upon every DRAM burst refresh cycle
D L2 tag arrays are addressed using physical hashes rather than linear virtual addresses
Accepted Answer: Option A (The L2 cache only observes requests that have already missed in the high-locality L1 cache filter)

Rationale: L1 filters out high temporal and spatial locality memory references. Therefore, the reference stream presented to L2 consists primarily of irregular or cold accesses, elevating the local miss rate (L2 misses / L1 misses).

Question 2 of 4 Cache Miss Classification and Capacity Sizing

Which category of cache miss according to the 3C (or 4C) model is eliminated by increasing cache set associativity while maintaining identical total storage capacity?

A Compulsory misses occurring during initial cold startup block references
B Conflict misses caused by multiple active memory blocks contending for identical set indices
C Capacity misses arising when working set memory footprint exceeds total cache bytes
D Coherence misses induced by external bus invalidation snoops
Accepted Answer: Option B (Conflict misses caused by multiple active memory blocks contending for identical set indices)

Rationale: Conflict (collision) misses occur when multiple addresses map to the same set even when total cache capacity is sufficient. Increasing associativity increases the number of available slots in that set, directly eliminating conflict misses.

Question 3 of 4 Set-Associative Cache Tag Index Offset Mapping

In an N-way set-associative cache, how does increasing the associativity N while holding total cache capacity and block size constant affect the address bit allocation and hardware complexity?

A Decreases index bits, increases tag bits, and requires N parallel tag comparators per set
B Increases index bits, decreases tag bits, and reduces output multiplexer fan-in
C Maintains identical tag bits while doubling the byte offset bit width in each cache line
D Eliminates tag comparison entirely by converting sets into direct CAM lookup entries
Accepted Answer: Option A (Decreases index bits, increases tag bits, and requires N parallel tag comparators per set)

Rationale: With constant capacity C and block size B, number of sets S = C / (N * B). Increasing N reduces S, thus decreasing index bits (log2 S). Since address length is fixed, tag bits increase, and N parallel comparators are required to check all ways in the set simultaneously.

Question 4 of 4 Least Recently Used Replacement Policy and Eviction

How does Pseudo-LRU (tree-PLRU) reduce the state tracking hardware overhead compared to true LRU in an 8-way set-associative cache?

A Uses 7 binary decision tree bits per set instead of 28 triangular matrix bits
B Eliminates age counters by evicting whichever block has the smallest virtual address tag
C Maintains a single 3-bit global shift register shared across all cache sets
D Replaces hardware comparators with a software kernel interrupt handler
Accepted Answer: Option A (Uses 7 binary decision tree bits per set instead of 28 triangular matrix bits)

Rationale: True LRU for N ways requires N(N - 1)/2 bits per set (28 bits for N=8). Tree-PLRU uses a binary tree with N - 1 bits (7 bits for N=8) to track reference history, drastically saving silicon area and update latency.

Active Recall Spaced Repetition Cards (Preview)

Card 1 • Average Memory Access Time and Multi-Level Caching
Average Memory Access Time combines hit latency with {{c1::miss rate times miss penalty}}.
AMAT = Hit Time + (Miss Rate * Miss Penalty) forms the cornerstone of memory hierarchy analysis.
Card 2 • Cache Miss Classification and Capacity Sizing
Conflict misses occur when active memory blocks {{c1::map to the same set}} in a cache.
Collision misses disappear in fully associative structures because blocks can reside in any slot.

Memory Hierarchy & Cache Design: Set-Associative Caches, Replacement Policies & MESI Coherence Curriculum Modules & Topics Covered

Modules
Cache Organization and Address MappingCache Replacement and Coherence Protocols
Core Exam Topics
  • Set-Associative Cache Tag Index Offset Mapping
  • Average Memory Access Time and Multi-Level Caching
  • Cache Miss Classification and Capacity Sizing
  • Least Recently Used Replacement Policy and Eviction
  • Write-Through versus Write-Back Buffer Overhead
  • MESI Protocol State Transitions and Invalidation
Learning Objectives
  • Develop core conceptual recall and analytical problem-solving in Cache Organization and Address Mapping.
  • Develop core conceptual recall and analytical problem-solving in Cache Replacement and Coherence Protocols.

Free Downloadable Memory Hierarchy & Cache Design: Set-Associative Caches, Replacement Policies & MESI Coherence Study Packs (.ZIP / .TSV)

Full Spreadsheet Data (TSV)
TSV • 48 items
Complete Course Pack
ZIP • 48 items
Elements (Standard)
ZIP • 48 items
Active Recall Flashcards
ZIP • 48 items
Formula Codex
ZIP • 48 items
Problem Solving (Mastery)
ZIP • 48 items
Artificial Intelligence (1,579) Artificial Intelligence and Machine Learning (507) Cloud Computing and DevOps (144) Compiler Design & Formal Languages (1,579) Computational Contact Mechanics: Penalty Function Method, Lagrange Multipliers & Mortar Contact Formulations (128) Computer Engineering & Algorithms (1,365)
Full Question Pool: 48 Verified Items

Unlock All 48 Memory Hierarchy & Cache Design: Set-Associative Caches, Replacement Policies & MESI Coherence Practice Questions

Study the full question pool with 13 active recall battle modes, FSRS v5 spaced repetition, and 1-click printable PDF mock exams with full answer keys on Android and Windows PC.

Get on Google Play (Android) Get on Microsoft Store (Windows PC)