COMPUTER
ORGANIZATION & ARCHITECTURE
CACHE MEMORY
SAJEENA SHAJI
Computer Organization & Architecture
Computer Architecture is a functional description of the design
implementation and requirements of different components of a
computer.
Computer Organization provides information about the linking of
different operational attributes of the computer system.
Working Principle : Locality of references
Cache Memory
Cache Mapping Techniques
1. Direct Mapping
2. Associative Mapping
3. Set Associative Mapping
Direct Mapping
Direct Mapping Example Problems
Associative Mapping
Associative Mapping Example Problems
Set Associative Mapping
Problems
Cache Replacement Algorithm
1. Random
2. FIFO
3. LRU
4. LFU
Problem-1
Consider a fully associative cache with 8 cache blocks (numbered
0-7) and the following sequence of memory block requests : 4, 3,
25, 8, 19, 6, 25, 8, 16, 35, 45, 22, 8, 3, 16, 25, 7. If LRU replacement
policy is used, which cache block will have memory block 7?
THANK YOU

cache memory in computer organization CSE