SlideShare a Scribd company logo
Page 1
Dive Into
Cache
by ๋ ˆ์“ฐ๋น„
Page 2
Direct Mapping
31 Tag 15 14 Index 6 5 Offset 0
Page 3
Fully Associative
31 Tag
6
5 Offset 0
Page 4
N-Way Set Associative
31 Tag 12 11 Set 6 5 Offset 0
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 ๋ฒˆ์˜ ๋น„๊ต๊ฐ€ ํ•„์š”ํ•˜
๋ฉฐ , ์—ฌ์ „ํžˆ ๊ณต๊ฐ„์„ ์™„์ „
ํžˆ ํšจ์œจ์ ์œผ๋กœ ์‚ฌ์šฉํ•˜์ง€
๋Š” ๋ชปํ•œ๋‹ค .
Page 6
Direct Mapping
Page 7
Page 8
Page 9
Page 10
Page 11
4-Way Associative
Page 12
4-Way Associative
Page 13
4-Way Associative
Page 14
4-Way Associative
Page 15
4-Way Associative
Page 16
Write-Through & No-Write-Allocate
Read:
1.Cache ๋‚ด ํ•ด๋‹น Memory ์กด์žฌ์—ฌ๋ถ€ ๊ฒ€
์‚ฌ
2. ์žˆ์„ ๋•Œ๋Š” Cache ๊ฐ’์„ ์‚ฌ์šฉ
3. ์—†์„ ๋•Œ๋Š” Memory ์—์„œ ์ฝ์–ด์„œ ํ• 
๋‹น
Write:
1.Cache ๋‚ด ํ•ด๋‹น Memory ์กด์žฌ์—ฌ๋ถ€
๊ฒ€์‚ฌ
2. ์žˆ์„ ๋•Œ๋Š” Cache ์™€ Memory ๋™์‹œ
๊ธฐ๋ก
3. ์—†์„ ๋•Œ๋Š” Memory ์—๋งŒ ๊ธฐ๋ก
[No-Write-Allocate ๋ฐฉ์‹ ]
Page 17
Write-Back & 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 ๋ฐฉ์‹ ]
Page 18
Write on Cache :
Write-Through : ๋ฐ”๋กœ Memory ์— ์ ‘๊ทผํ•˜์—ฌ ์“ฐ๊ธฐ๋ฅผ ์ˆ˜ํ–‰
-> ๋งค๋ฒˆ Stall ์„ ์œ ๋ฐœ
Write-Back : Cache ์—๋งŒ ์“ฐ๊ธฐ๋ฅผ ํ•˜๋ฉฐ ํ•ด๋‹น Cache Slot ์—๋Š” Dirty-Bit ๋ฅผ Set
ํ•œ๋‹ค .
-> ์‹ค์ œ๋กœ 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 ์™€ ํ•จ๊ป˜ ์‚ฌ
์šฉ ]
Page 19
Thank You

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
ย 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
ย 

Featured (20)

2024 State of Marketing Report โ€“ by Hubspot
2024 State of Marketing Report โ€“ by Hubspot2024 State of Marketing Report โ€“ by Hubspot
2024 State of Marketing Report โ€“ by Hubspot
ย 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
ย 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
ย 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ย 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
ย 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
ย 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
ย 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
ย 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
ย 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
ย 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
ย 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ย 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
ย 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
ย 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
ย 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
ย 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
ย 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
ย 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
ย 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
ย 

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

  • 1. Page 1 Dive Into Cache by ๋ ˆ์“ฐ๋น„
  • 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 ๋ฒˆ์˜ ๋น„๊ต๊ฐ€ ํ•„์š”ํ•˜ ๋ฉฐ , ์—ฌ์ „ํžˆ ๊ณต๊ฐ„์„ ์™„์ „ ํžˆ ํšจ์œจ์ ์œผ๋กœ ์‚ฌ์šฉํ•˜์ง€ ๋Š” ๋ชปํ•œ๋‹ค .
  • 16. Page 16 Write-Through & 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 & 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 ์— ์ ‘๊ทผํ•˜์—ฌ ์“ฐ๊ธฐ๋ฅผ ์ˆ˜ํ–‰ -> ๋งค๋ฒˆ Stall ์„ ์œ ๋ฐœ Write-Back : Cache ์—๋งŒ ์“ฐ๊ธฐ๋ฅผ ํ•˜๋ฉฐ ํ•ด๋‹น Cache Slot ์—๋Š” Dirty-Bit ๋ฅผ Set ํ•œ๋‹ค . -> ์‹ค์ œ๋กœ 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 ์™€ ํ•จ๊ป˜ ์‚ฌ ์šฉ ]

Editor's Notes

  1. 0. ์†Œ๊ฐœ 1. ์บ์‰ฌ์™€ ๋ฉ”๋ชจ๋ฆฌ๊ฐ„์˜ ๋งคํ•‘ ๋ฐฉ๋ฒ• ์„ค๋ช… 1. Direct Mapping ๋ฐฉ๋ฒ• 2. n-Way mapping ๋ฐฉ๋ฒ• 3. Write-through, Write-back, Write-allocate, No-write-allocate ์šฉ์–ด ์„ค๋ช… 4. Write-through, No-write-allocate ๋ฐฉ์‹ ์บ์‰ฌ์˜ ์ฝ๊ณ  ์“ฐ๊ธฐ(์ˆœ์„œ๋„) 5. Write-back, Write-allocate ๋ฐฉ์‹ ์บ์‰ฌ์˜ ์ฝ๊ณ  ์“ฐ๊ธฐ(์ˆœ์„œ๋„) 0. ์†Œ๊ฐœ 1. Cache ์˜ ์ •์˜ 2. ์ธํ…”์”จํ“จ ๋‹ค์ด ์‚ฌ์ง„ 3. CPUID ์‚ฌ์ง„ 4. ์บ์‹œ ๋ฉ”๋ชจ๋ฆฌ ๋ฒค์น˜๋งˆํฌ ์‚ฌ์ง„ 5. ์”จํ“จ๊ฐ€ ๋ฉ”๋ชจ๋ฆฌ๋ฅผ ์ฝ์„๋•Œ ์ˆœ์„œ๋„(๋‹จ์ˆœํ™”ํ•œ) 6. ์บ์‹œ์ƒ์— ๋ฉ”๋ชจ๋ฆฌ๊ฐ€ ๋งคํ•‘๋˜๋Š” ๋ฐฉ๋ฒ•๋  TAG ๋“ฑ์˜ ์–ธ๊ธ‰(๊ทธ๋ฆผ) 7. Direct Mapping ๋ฐฉ๋ฒ• (1:1) [๊ทธ๋ฆผ] 8. n-Way Mapping (Set-Asocciative) [๊ทธ๋ฆผ] 9. ์“ฐ๊ธฐ๋ฅผ ์ผ์–ด๋‚ ๋•Œ ์บ์‰ฌ๋ฅผ ํ™œ์šฉํ•˜๋Š” ๋ฒ• [Write-through, Write-back, Write-allocate, No-write-allocate ์„ค๋ช…] 10. Write-Through [์ˆœ์„œ๋„] 11. Write-Back [์ˆœ์„œ๋„] 12. ๋ฉ€ํ‹ฐ์ฝ”์–ด๋ฅผ ์œ„ํ•œ MESSI ์•Œ๊ณ ๋ฆฌ์ฆ˜ 13. ๋ ˆํผ๋Ÿฐ์Šค ์•ˆ๋…•ํ•˜์„ธ์š”,, ์ด๋ฒˆ์— ์š”์•ฝ๋ฐœํ‘œ๋ฅผ ๋งก๊ฒŒ๋œ ๋ ˆ์“ฐ๋น„์˜ ์ด๋™ํ˜ธ ์ž…๋‹ˆ๋‹ค. ์ „์ฒด์ ์ธ ์š”์•ฝ์€ ๋‹ค๋ฅธ ์กฐ์—์„œ ์ž˜ ์š”์•ฝํ•ด ์ฃผ์‹ค ๊ฑฐ๋ผ๊ณ  ์ƒ๊ฐ๋˜์–ด, ์ €ํฌ์กฐ๋Š” ๊ต์ˆ˜๋‹˜์ด ๊ฐ•์˜ํ•˜์‹  ์บ์‰ฌ์˜ ๋™์ž‘์— ๋Œ€ํ•œ ๋‚ด์šฉ์„ ์ฃผ๋œ ์ฃผ์ œ๋กœ ์‚ผ์•„ ๋ฐœํ‘œ๋ฅผ ํ•˜๊ธฐ๋กœ ํ–ˆ์Šต๋‹ˆ๋‹ค.
  2. 0. ์†Œ๊ฐœ 1. ์บ์‰ฌ์™€ ๋ฉ”๋ชจ๋ฆฌ๊ฐ„์˜ ๋งคํ•‘ ๋ฐฉ๋ฒ• ์„ค๋ช… 1. Direct Mapping ๋ฐฉ๋ฒ• 2. n-Way mapping ๋ฐฉ๋ฒ• 3. Write-through, Write-back, Write-allocate, No-write-allocate ์šฉ์–ด ์„ค๋ช… 4. Write-through, No-write-allocate ๋ฐฉ์‹ ์บ์‰ฌ์˜ ์ฝ๊ณ  ์“ฐ๊ธฐ(์ˆœ์„œ๋„) 5. Write-back, Write-allocate ๋ฐฉ์‹ ์บ์‰ฌ์˜ ์ฝ๊ณ  ์“ฐ๊ธฐ(์ˆœ์„œ๋„) 0. ์†Œ๊ฐœ 1. Cache ์˜ ์ •์˜ 2. ์ธํ…”์”จํ“จ ๋‹ค์ด ์‚ฌ์ง„ 3. CPUID ์‚ฌ์ง„ 4. ์บ์‹œ ๋ฉ”๋ชจ๋ฆฌ ๋ฒค์น˜๋งˆํฌ ์‚ฌ์ง„ 5. ์”จํ“จ๊ฐ€ ๋ฉ”๋ชจ๋ฆฌ๋ฅผ ์ฝ์„๋•Œ ์ˆœ์„œ๋„(๋‹จ์ˆœํ™”ํ•œ) 6. ์บ์‹œ์ƒ์— ๋ฉ”๋ชจ๋ฆฌ๊ฐ€ ๋งคํ•‘๋˜๋Š” ๋ฐฉ๋ฒ•๋  TAG ๋“ฑ์˜ ์–ธ๊ธ‰(๊ทธ๋ฆผ) 7. Direct Mapping ๋ฐฉ๋ฒ• (1:1) [๊ทธ๋ฆผ] 8. n-Way Mapping (Set-Asocciative) [๊ทธ๋ฆผ] 9. ์“ฐ๊ธฐ๋ฅผ ์ผ์–ด๋‚ ๋•Œ ์บ์‰ฌ๋ฅผ ํ™œ์šฉํ•˜๋Š” ๋ฒ• [Write-through, Write-back, Write-allocate, No-write-allocate ์„ค๋ช…] 10. Write-Through [์ˆœ์„œ๋„] 11. Write-Back [์ˆœ์„œ๋„] 12. ๋ฉ€ํ‹ฐ์ฝ”์–ด๋ฅผ ์œ„ํ•œ MESSI ์•Œ๊ณ ๋ฆฌ์ฆ˜ 13. ๋ ˆํผ๋Ÿฐ์Šค ์•ˆ๋…•ํ•˜์„ธ์š”,, ์ด๋ฒˆ์— ์š”์•ฝ๋ฐœํ‘œ๋ฅผ ๋งก๊ฒŒ๋œ ๋ ˆ์“ฐ๋น„์˜ ์ด๋™ํ˜ธ ์ž…๋‹ˆ๋‹ค. ์ „์ฒด์ ์ธ ์š”์•ฝ์€ ๋‹ค๋ฅธ ์กฐ์—์„œ ์ž˜ ์š”์•ฝํ•ด ์ฃผ์‹ค ๊ฑฐ๋ผ๊ณ  ์ƒ๊ฐ๋˜์–ด, ์ €ํฌ์กฐ๋Š” ๊ต์ˆ˜๋‹˜์ด ๊ฐ•์˜ํ•˜์‹  ์บ์‰ฌ์˜ ๋™์ž‘์— ๋Œ€ํ•œ ๋‚ด์šฉ์„ ์ฃผ๋œ ์ฃผ์ œ๋กœ ์‚ผ์•„ ๋ฐœํ‘œ๋ฅผ ํ•˜๊ธฐ๋กœ ํ–ˆ์Šต๋‹ˆ๋‹ค.