Computer Organization and Architecture
Module III:Memory Systems & Cache Organization
Name:Prof.Reshma Kohad
Memory Hierarchy
�
2. Cache Memory
3. Main Memory
Types of Main Memory�
5. Magnetic Disk
6. Magnetic Tape
Characteristics of Memory Hierarchy�
Advantages of Memory Hierarchy�
Disadvantages of Memory Hierarchy�
Levels of memory
1. Primary Memory
RAM (Random Access Memory):�
RAM is of two types:
ROM (Read Only Memory)
Types of Rom
Secondary Memory�
Characteristics of Secondary Memory
Types of Secondary Memory
2. Magnetic Disks: A magnetic disk is a circular metal or a plastic plate and these plates are coated with magnetic material.
Types of Optical Disks�
WORM-(WRITE ONCE READ MANY)�
DVDs
3. Cache Memory�
Advantages of Cache Memory
Disadvantages of Cache Memory
Levels of memory
Levels of memory
Let us see the memory levels in terms of size, access time, bandwidth.
Level� | Register� | Cache� | Primary memory� | Secondary memory� |
Bandwidth� | 4k to 32k MB/sec� | 800 to 5k MB/sec� | 400 to 2k MB/sec� | 4 to 32 MB/sec� |
Size� | Less than 1KB� | Less than 4MB� | Less than 2 GB� | Greater than 2 GB� |
Access time� | 2 to 5nsec� | 3 to 10 nsec� | 80 to 400 nsec� | 5ms� |
Managed by� | Compiler� | Hardware� | Operating system� | OS or user |
Latency (Memory Latency)�
Example:
Simple Analogy:�Ordering food in a restaurant 🍽️
Throughput
Bandwidth
Memory Technologies: Overview of main memory technologies.
RAM (Random Access Memory)�
Types of RAM�
1)SRAM (Static Random Access memory)
2. DRAM (Dynamic Random Access memory)�
Types of DRAM�
Read Only Memory (ROM)�
�Types of ROM �
Cache Memory: Purpose of cache memory
�Characteristics of Cache Memory�
Cache memory Types�Instruction and data caches, Unified cache
Instruction Cache (I-Cache)
Data Cache (D-Cache)
Unified Cache
Cache Performance�
Write Through:
Write Back:
Types of cache misses
2. Capacity Misses�
3. Conflict Misses�
4. Coherence Misses�
Cache Mapping and Operations
�1. Direct Mapping�
�2. Fully Associative Mapping�
�3. Set-Associative Mapping�
multi-level caches
Least Recently Used (LRU)�
�Levels of Memory�