Memory System
Memory System
from RAM
Cache memory
CPU may generate address (based on MAR) that might not exist.
Virtual memory
Some Basic Concepts
4
Cache and Main Memory
Memory Cell Operation
Chip Organization
Control
Cell
Select Data In / Data Out (sense)
16 X 8 organization
9
Organization of 1K X 1 memory chip
A0
A1
…
A21
14
Static Memories
Retain state as long as Vsupply is
available.
Timing is controlled
asynchronously
ROM
PROM
EPROM
EEPROM
Flash Memory
Types of ROM
18
Error Correction
Hard Failure
Permanent defect
Soft Error
Random, non-destructive
No permanent damage to memory
Hamming error correcting code one technique for
detecting errors
Similar to parity bit, but contains enough information to correct
data with single bit errors
Error Correction
Hard Failure
Permanent defect
Soft Error
Random, non-destructive
No permanent damage to memory
Detected using Hamming error correcting code
20
Error Correcting Code Function
21
22
23
24
Speed, Size and Cost
25
Cache Memories
Locality of reference
Temporal
Spatial
Read or write hit
Write-through protocol
Write-back or copy back protocol
Read miss
Load-through or early restart
26
Direct Mapping
Require
associative search
28
Set-Associative Mapping
Task
Normalize Elements According to Row
Array Stored in the Memory in Column Order
31
Task : Normalize Row Wise
32
Loop 1 Loop 2
Tag 16-3=15bits
34
Associative Mapping (For 0th Row)
Loop 1 Loop 2
Tag 16bits
35
Set-Associative Mapping (For 0th Row)
Data cache is organized into two sets and
each holds four blocks/words
Loop 1 Loop 2
Tag 15bits
For Row
0,2,4,6,8
2. Access to consecutive
memory location can keep
several module.