Bài giảng Computer Organization and Architecture: Chapter 4 với nội dung chính là Cache Memory sẽ giới thiệu tới các bạn các vấn đề về: Location; Capacity; Unit of transfer; Access method; Performance; Physical type; Physical characteristics; Organisation.
Trang 1William Stallings
Computer Organization and Architecture
6th Edition
Chapter 4
Cache Memory
Trang 3• CPU
• Internal
• External
Trang 9Memory Hierarchy - Diagram
Trang 13• Physical arrangement of bits into words
• Not always obvious
• e.g. interleaved
Trang 14The Bottom Line
Trang 16So you want fast?
Trang 17Locality of Reference
• During the course of the execution of a program,
memory references tend to cluster
• e.g. loops
Trang 18• Small amount of fast memory
• Sits between normal main memory and CPU
• May be located on CPU chip or module
Trang 19Cache operation - overview
Trang 21Size does matter
Trang 22Typical Cache Organization
Trang 27Direct Mapping Cache Organization
Trang 28Direct Mapping Example
Trang 29Direct Mapping Summary
Trang 30Direct Mapping pros & cons
Trang 32Fully Associative Cache Organization
Trang 33Associative Mapping Example
Trang 34Tag 22 bit Word2 bit
Trang 35Associative Mapping Summary
Trang 36Set Associative Mapping
Trang 37Set Associative Mapping
Trang 38Two Way Set Associative Cache Organization
Trang 39Set Associative Mapping
Trang 40Two Way Set Associative Mapping Example
Trang 41Set Associative Mapping Summary
Trang 48Pentium 4 Diagram (Simplified)
Trang 49Pentium 4 Core Processor
Trang 50Pentium 4 Design Reasoning
Trang 51Power PC Cache Organization
Trang 52PowerPC G4
Trang 53Comparison of Cache Sizes