Direct Map Cache Tracing Exercise
Exercise #1: Setup Information CS2100 Cache I 2 Memory 4GB Memory Address 310N-1N Block Number Offset 1 Block = 8 bytes Cache 32Bytes 1 Block = 8 bytes N+M-1 310N-1N Tag Offset Index Offset, N = Block Number = Number of Cache Blocks = Cache Index, M = Cache Tag =
Exercise #2: Tracing Memory Access Using the given setup, trace the following memory loads: Load from addresses: 4, 0, 8, 12, 36, 0, 4 Note that “A”, “B”…. “J” represents word-size data CS2100 Cache I 3 Memory Content Address Data 0 A 4 B 8 C 12 D … … 32 I 36 J … …
CS2100 Exercise #2: Load #1 Addresses: 4, 0, 8, 12, 36, 0, 4 Address 4 = IndexValidTagWord0Word TagOffset 00 Index Cache I 4
CS2100 Exercise #2: Load #2 Addresses: 4, 0, 8, 12, 36, 0, 4 Address 0 = IndexValidTagWord0Word TagOffset 00 Index Cache I 5
CS2100 Exercise #2: Load #3 Addresses: 4, 0, 8, 12, 36, 0, 4 Address 8 = IndexValidTagWord0Word TagOffset 01 Index Cache I 6
CS2100 Exercise #2: Load #4 Addresses: 4, 0, 8, 12, 36, 0, 4 Address 12 = IndexValidTagWord0Word TagOffset 01 Index Cache I 7
CS2100 Exercise #2: Load #5 Addresses: 4, 0, 8, 12, 36, 0, 4 Address 36 = IndexValidTagWord0Word TagOffset 00 Index Cache I 8
CS2100 Exercise #2: Load #6 Addresses: 4, 0, 8, 12, 36, 0, 4 Address 0 = IndexValidTagWord0Word TagOffset 00 Index Cache I 9
CS2100 Exercise #2: Load #7 Addresses: 4, 0, 8, 12, 36, 0, 4 Address 4 = IndexValidTagWord0Word TagOffset 00 Index Cache I 10