Unit - 4 - Memory Devices
Unit - 4 - Memory Devices
EEEG 320
Digital Circuit and System Design
m words
…
• or m = 2^k words
• e.g., 4,096 x 8 memory:
• 32,768 bits n bits per word
• Memory access
r/w
2k × n read and write
enable memory
Ak-1
• multiport: multiple accesses to different …
locations simultaneously
Qn-1 Q0
permanence
• Traditional ROM/RAM distinctions
Storage
• ROM Mask-programmed ROM Ideal memory
• RAM product
• read and write, lose stored bits without power Tens of EPROM EEPROM FLASH
years
• Traditional distinctions blurred Battery Nonvolatile NVRAM
life (10
• Advanced ROMs can be written to years)
• e.g., EEPROM In-system
• Advanced RAMs can hold bits without power programmable SRAM/DRAM
Near
• e.g., NVRAM zero Write
ability
• Write ability During External External External External
In-system, fast
• Manner and speed a memory can be written fabrication
only
programmer,
one time only
programmer,
1,000s
programmer
OR in-system,
programmer
OR in-system,
writes,
unlimited
• Storage permanence of cycles 1,000s block-oriented
cycles
of cycles writes, 1,000s
written
Write ability and storage permanence of memories,
showing relative degrees along each axis (not to scale).
• Uses A0
• Store software program for general-purpose processor
…
• program instructions can be one or more ROM words Ak-1
• Decoder sets word 2’s line to 1 if address enable 3×8 decoder word 1
word 2
input is 010 A0 word line
and Q0 Q3 Q2 Q1 Q0
• Output is 1010
1 source drain
• (b) Large positive voltage at gate causes negative charges to move out of
channel and get trapped in floating gate storing a logic 0 (a)
storing 1 bit I3 I2 I1 I0
• each input and output data line connects to each cell 4×4 RAM
in its column enable 2×4
A0
• when row is enabled by decoder, each cell has logic A1
that stores input data bit when rd/wr indicates write Memory
cell
or outputs stored bit when rd/wr indicates read rd/wr To every cell
Q3 Q2 Q1 Q0
Data
• word’s cells refreshed when read W
• Typical refresh rate 15.625 microsec.
• Slower to access than SRAM
…
2m × 3n ROM Qn-1 Q0
enable 2m × n ROM 2m × n ROM 2m × n ROM A
Increase width of Increase number
words A0 … … …
and width of words
Am
… … …
enable
Q3n-1 Q2n-1 Q0
outputs
• Cache
• Small, expensive, fast memory stores copy of likely accessed parts of
Cache
Tape
0.12
0.1 1 way
% cache miss
2 way
0.08
4 way
0.06 8 way
0.04
0.02
0
cache size
1 Kb 2 Kb 4 Kb 8 Kb 16 Kb 32 Kb 64 Kb 128 Kb
Expensive (SRAM
NVRAM No Yes Byte Unlimited Fast
+ battery)