Chapter 3 P3
Chapter 3 P3
Chapter 3
COMPUTER MEMORY
Part 3
Internal memory
1
02/03/2019
2
02/03/2019
•••
3
02/03/2019
Byte Ordering
4
02/03/2019
Big-Endian 01
a1 23
b2 45
c3 67
d4
Decimal: 12345
Binary: 0011 0000 0011 1001
Byte Ordering Examples Hex: 3 0 3 9
5
02/03/2019
Register file
ALU
I/O Main
Bus interface
bridge memory
ALU
%rax
Main memory
I/O bridge 0
A
Bus interface
x A
6
02/03/2019
ALU
%rax
Main memory
I/O bridge x 0
Bus interface x A
ALU
%rax x
Main memory
I/O bridge 0
Bus interface
x A
7
02/03/2019
ALU
%rax y
Main memory
I/O bridge 0
A
Bus interface A
ALU
%rax y
Main memory
I/O bridge 0
y
Bus interface
A
8
02/03/2019
ALU
%rax y
main memory
I/O bridge 0
Bus interface y A
Physical types
Semiconductor
RAM
Magnetic
Disk & Tape
Optical
CD & DVD
Others
Bubble
Hologram
9
02/03/2019
Nonvolatile Memories
DRAM and SRAM are volatile memories
Lose information if powered off.
Nonvolatile memories retain value even if powered off
Read-only memory (ROM): programmed during production
Programmable ROM (PROM): can be programmed once
Eraseable PROM (EPROM): can be bulk erased (UV, X-Ray)
Electrically eraseable PROM (EEPROM): electronic erase capability
Flash memory: EEPROMs. with partial (block-level) erase capability
Wears out after about 100,000 erasings
Uses for Nonvolatile Memories
Firmware programs stored in a ROM (BIOS, controllers for disks, network
cards, graphics accelerators, security subsystems,…)
Solid state disks (replace rotating disks in thumb drives, smart phones, mp3
players, tablets, laptops,…)
Disk caches
10
02/03/2019
11
02/03/2019
DRAM
12
02/03/2019
Static RAM
SRAM v DRAM
Both volatile
Power needed to preserve data
Dynamic cell
Simpler to build, smaller
More dense
Less expensive
Needs refresh
Larger memory units
Static
Faster
Cache
13
02/03/2019
Chip Organization
14
02/03/2019
DRAM bank
Structure:
DRAM cells in a 2D grid
Each cell in a row shares
the same word line
Each cell in a column
shares the same bit line
Reading:
The row decoder selects (activates) a row
The sense amplifiers detect and store the bits of the row
The column multiplexer selects the desired column from the row
Two-phase operations:
To reduce the width of the address bus
Address bus: row address → wait → address bus: column
address→ data bus: the desired data
16 X 1 as 4 X 4 Array
Two decoders
Row
Column
Address just broken
up
Not visible from
outside
15
02/03/2019
d x w DRAM:
dw total bits organized as d supercells of size w bits
16
02/03/2019
17
02/03/2019
Memory Modules
Enhanced DRAMs
Basic DRAM cell has not changed since its invention in
1966
Commercialized by Intel in 1970
DRAMs with better interface logic and faster I/O:
Synchronous DRAM (SDRAM)
Uses a conventional clock signal instead of asynchronous control
Allows reuse of the row addresses (e.g., RAS, CAS, CAS, CAS)
Double data-rate synchronous DRAM (DDR SDRAM)
DDR1 : twice as fast
DDR2 : four times as fast
DDR3 : eight times as fast
18
02/03/2019
Enhanced DRAMs
DRAM chips
19
02/03/2019
Organisation in detail
20
02/03/2019
Packaging
21
02/03/2019
Memory Interleaving
Goal: Try to take advantage of bandwidth of multiple
DRAMs in memory system
Memory address A is converted into (b,w) pair, where
b = bank index
w = word index within bank
Logically a wide memory
Accesses to B banks staged over time to share internal resources
such as memory bus
Interleaving can be on
Low-order bits of address (cyclic)
b = A mod B, w = A div B
High-order bits of address (block)
Combination of the two (block-cyclic)
22
02/03/2019
Mixed Interleaving
23