Home | Projects | Notes > Computer Architecture & Organization > Cache Memory

Cache Memory

 

Memory Hierarchy

 

memory-hierarchy-1

 

 

Cache and Virtual Memory

 

cache-and-virtual-memory

 

 

Introduction to Cache Memory

 

memory-hierarchy-2

 

Back in the days Level 3 Cache was outside the CPU, but nowadays they are usually in the same silicon as CPU.

 

Structure of Cache Memory

 

structure-of-a-system-with-cache-memory

 

Cache is now on the same piece of silicon as the CPU. Close means faster. This is called "on-chip cache".

 

Principle of Locality of Reference

 

Performance of Cache Memory

 

speedup-as-a-function-of-hit-ratio

 

 

Cache Organization

 

cache-page

 

 

Cache Consistency (Coherency)

 

Fully Associative Mapped Cache

 

fully-associative-mapped-cache

 

 

main-memory-and-associative-mapped-cache

 

Fully Associative Cache Summary

 

Direct-Mapped Cache

 

main-memory-and-associative-mapped-cache

 

Direct-Mapped Cache (or 1-Way Set Associative Cache) Summary

 

Set Associative (or X-Way Set Associative) Cache

 

2-way-set-associative-cache

 

 

Physical vs. Logical Cache

 

where-should-cache-be-located

 

 

Cache Electronics

 

Cache Coherency (Consistency)

 

basic-cache-model

 

 

Cache Line Size

 

Fetch Policy

 

Multi-Level Cache Memory

 

Instruction and Data Caches

Examples

amds-barcelona-architecture

 

 

intels-nehalem-architecture

 

Writing to Cache

 

decision-tree-for-accesses-to-a-cache-with-a-write-back-strategy

 

 

Virtual Memory and Memory Management

Memory Management

 

the-memory-management-unit

 

Virtual Memory

 

Security Issues

Speculative Execution Vulnerability on ARM