Advertisement
Guest User

Untitled

a guest
Aug 24th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. Cache size: 8 words
  2. Cache block size: 1 word
  3. Since it's a directed mapped cache, each set has got one block only.
  4. Therefore there are 8 sets (3 bits required for set index)
  5.  
  6. Tag structure:
  7. 0:1 byte offset
  8. 2:4 set index
  9. 5:31 tag
  10.  
  11. Groups:
  12. Set 0: 0x00, 0x20, 0x40, ...
  13. Set 1: 0x04, 0x24, 0x44, ...
  14. Set 2: 0x08, 0x28, 0x48, ...
  15. Set 3: 0x0C, 0x2C, 0x4C, ...
  16. Set 4: 0x10, 0x30, 0x50, ...
  17. Set 5: 0x14, 0x34, 0x54, ...
  18. Set 6: 0x18, 0x38, 0x58, ...
  19. Set 7: 0x1C, 0x3C, 0x5C, ...
  20.  
  21. 0x1000 4000 SET 0: COMPULSORY MISS
  22. 0x1000 4020 SET 0: CONFLICT MISS
  23. 0x1000 4004 SET 1: COMPULSORY MISS
  24. 0x1000 4028 SET 2: COMPULSORY MISS
  25. 0x1000 4024 SET 1: CONFLICT MISS
  26. 0x1000 4020 SET 0: HIT
  27. 0x1000 400C SET 3: COMPULSORY MISS
  28. 0x1000 402C SET 3: CONFLICT MISS
  29. 0x1000 4040 SET 0: CONFLICT MISS
  30. 0x1000 4000 SET 0: CONFLICT MISS
  31. 0x1000 400C SET 3: CONFLICT MISS
  32. 0x1000 402C SET 3: CONFLICT MISS
  33. 0x1000 4020 SET 0: CONFLICT MISS
  34. 0x1000 4024 SET 1: HIT
  35. 0x1000 4004 SET 1: CONFLICT MISS
  36. 0x1000 4000 SET 0: CONFLICT MISS
  37.  
  38. #HITS = 2
  39. #COMPULSORY MISSES = 4
  40. #CONFLICT MISSES = 10
  41.  
  42. :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement