Professional Documents
Culture Documents
13 Memory PDF
13 Memory PDF
Central Main
Processing Memory
Unit
Computer
Systems
Interconnection
Input
Output
Communication
lines
Storage/Memory Hierarchy
Storage Hierarchy
& Characteristics
Performance
100
of less expensive, but slower memory. Processor-Memory
Performance Gap:
(grows 50% / year)
10
DRAM
1990
1995
1980
1985
2000
Time
CS 160 Ward 5 CS 160 Ward 6
• Location • CPU
• Capacity • Internal
• Unit of transfer • External
• Access method
• Performance
• Physical type
• Physical characteristics
• Organization
• Word size
• Internal
– The natural unit of organization
– Usually governed by data bus width
– Expected size of most data & instructions
• External
– Typically 32 bits or 64 bits
– Usually a block which is much larger than a word
• Past: 16 bits
• Addressable unit
• Number of words – Smallest unit which can be uniquely addressed
– or Bytes – Byte internally (typically)
• Semiconductor
– RAM • Volatility
• Magnetic • Erasable
– Disk & Tape • Power consumption / Heat
• Optical
– CD & DVD
• Others
– Bubble
– Hologram
• How much?
• Physical arrangement of bits into words – Capacity
• Not always obvious • How fast?
• e.g. interleaved (striped) – Performance (Time is money)
• How expensive?
Hierarchy List
• Registers
• L1 Cache (on-chip)
• L2 Cache (off-chip)
• Memory controller cache (L3 Cache) Memory Basics
• Main memory
• Disk cache
• Disk
• Optical
• Tape
• Permanent storage
• Microprogramming
• Library subroutines
• Systems programs
• Function tables
• More complex than figure implies
• Must coordinate with normal read and
write operations
FF FF
A0 W1
•
•
•
A1
Address Memory
• • • • • • cells
decoder • • • • • •
A2
• • • • • •
A3
in textbook
Sense / Write Sense / Write Sense / Write R/W
circuit circuit circuit
CS
256K x 8 chip
Data input/output lines: b7 b1 b0
16 x 8 chip
CS 160 Ward 31 CS 160 Ward 32
Internal Module Organization [3] Typical 16 Mb DRAM (Internal)
1M x 8 chip 4M x 4 chip
CS 160 Ward 33 CS 160 Ward 34
• Memory controller connects computer Physical memory is organized into words, where
to physical memory chips a word is equal to the memory transfer size.
Each read and write operation applies to
an entire word.
Remember:
The physical memory hardware does not
• Latency provide a way to read or write less than a
complete word.
• Cycle time (read
and write)
Example:
• Transfer size (or 32 bits = word
word size)
Error in 0110 = 6
CS 160 Ward 49 CS 160 Ward 50