Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1 Direct Map Cache Tracing Exercise

2 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 =

3 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 … …

4 CS2100 Exercise #2: Load #1  Addresses: 4, 0, 8, 12, 36, 0, 4 Address 4 = IndexValidTagWord0Word1 00 10 20 30 00000000000000000000000000100 TagOffset 00 Index Cache I 4

5 CS2100 Exercise #2: Load #2  Addresses: 4, 0, 8, 12, 36, 0, 4 Address 0 = IndexValidTagWord0Word1 00 10 20 30 00000000000000000000000000000 TagOffset 00 Index Cache I 5

6 CS2100 Exercise #2: Load #3  Addresses: 4, 0, 8, 12, 36, 0, 4 Address 8 = IndexValidTagWord0Word1 00 10 20 30 00000000000000000000000000000 TagOffset 01 Index Cache I 6

7 CS2100 Exercise #2: Load #4  Addresses: 4, 0, 8, 12, 36, 0, 4 Address 12 = IndexValidTagWord0Word1 00 10 20 30 00000000000000000000000000100 TagOffset 01 Index Cache I 7

8 CS2100 Exercise #2: Load #5  Addresses: 4, 0, 8, 12, 36, 0, 4 Address 36 = IndexValidTagWord0Word1 00 10 20 30 00000000000000000000000001100 TagOffset 00 Index Cache I 8

9 CS2100 Exercise #2: Load #6  Addresses: 4, 0, 8, 12, 36, 0, 4 Address 0 = IndexValidTagWord0Word1 00 10 20 30 00000000000000000000000000000 TagOffset 00 Index Cache I 9

10 CS2100 Exercise #2: Load #7  Addresses: 4, 0, 8, 12, 36, 0, 4 Address 4 = IndexValidTagWord0Word1 00 10 20 30 00000000000000000000000000100 TagOffset 00 Index Cache I 10


Download ppt "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."

Similar presentations


Ads by Google