Cache, Set Associative, Write-Through, Write-Back

  • Published on
    12-Jun-2015

  • View
    683

  • Download
    2

Embed Size (px)

DESCRIPTION

Cache, Set Associative, Write-Through, Write-Back

Transcript

<ul><li> 1. Page 1 Dive Into Cache by </li></ul> <p> 2. Page 2 Direct Mapping 31 Tag 15 14 Index 6 5 Offset 0 3. Page 3 Fully Associative 31 Tag 6 5 Offset 0 4. Page 4 N-Way Set Associative 31 Tag 12 11 Set 6 5 Offset 0 5. Page 5 Mapping method Summary Direct Mapping (Cheap) Index , Cache . Fully Associative Cache Cache (Expensive) Cache Slot . N-Way Associative Direct Mapping Fully Associative , Fully Associative (less expensive) Direct Mapping Direct Mapping Index N , . 6. Page 6 Direct Mapping 7. Page 7 8. Page 8 9. Page 9 10. Page 10 11. Page 11 4-Way Associative 12. Page 12 4-Way Associative 13. Page 13 4-Way Associative 14. Page 14 4-Way Associative 15. Page 15 4-Way Associative 16. Page 16 Write-Through &amp; No-Write-Allocate Read: 1.Cache Memory 2. Cache 3. Memory Write: 1.Cache Memory 2. Cache Memory 3. Memory [No-Write-Allocate ] 17. Page 17 Write-Back &amp; Write-Allocate Read: 1.Cache Memory 2. Cache 3. Cache 4. Dirty-Flag-Setted Memory 5. Memory Cache [Write-Allocate ] 6. Cache Dirty-Flag Write: 1.Cache Memory 2. Cache Dirty-Flag 3. Cache 4. Dirty-Flag-Setted Memory 5. Memory Cache [Write-Allocate ] 18. Page 18 Write on Cache : Write-Through : Memory -&gt; Stall Write-Back : Cache Cache Slot Dirty-Bit Set . -&gt; Memory Stall Memory . 1) Dirty-Bit Set Cache , 2) Dirty-Bit Set Cache , Write-Allocate : Memory Memory Cache Memory , Cache . [Write-Back ] No-Write-Allocate : Memory Cache . [Write-Through ] 19. Page 19 Thank You </p>