Title: COCO Lecture
1COCO Lecture 16Wakerly 10.1-10.4
- Read-only memory
- Static read/write memory
- Dynamic read/write memory
2Read-Only Memory (ROM)
- ROM is nonvolatile memory.
- Its contents are preserved even if no power is
applied.
3Read-Only Memory (ROM)
- Program storage
- Boot ROM for personal computers
- Complete application storage for embedded systems.
4Two-dimensional decoding
5Larger example, 32Kx8 ROM
6Commercial ROM Types
- Fixed
- MASK ROM
- Programmable (only once)
- Programmed ROM (PROM).
- Re-programmable (multiple times)
- Erasable PROM (EPROM)
- Electrically Erasable PROM (EEPROM)
7Typical commercial ROMs
8Microprocessor EPROM application
9ROM control and I/O signals
10ROM timing
11Read/Write Memory
- a.k.a. RAM (Random Access Memory)
- Volatility
- Most RAMs lose their memory when power is removed
- NVRAM RAM battery
- Or use EEPROM
- SRAM (Static RAM)
- Memory behaves like latches or flip-flops
- DRAM (Dynamic Memory)
- Memory lasts only for a few milliseconds
- Must refresh locations by reading or writing
12SRAM
13SRAM operation
- Individual bits are D latches, not
edge-triggered D flip-flops. - Fewer transistors per cell.
- Implications for write operations
- Address must be stable before writing cell.
- Data must be stable before ending a write.
14SRAM array
15SRAM control lines
- Chip select
- Output enable
- Write enable
16SRAM read timing
- Similar to ROM read timing
17SRAM write timing
- Address must be stable before and after
write-enable is asserted. - Data is latched on trailing edge of (WE CS).
18Bidirectional data in and out pins
- Use the same data pins for reads and writes
- Especially common on wide devices
- Makes sense when used with microprocessor buses
(also bidirectional)
19SRAM devices
28-pin DIPs
32-pin DIPs
20Synchronous SRAMs
- Use latch-type SRAM cells internally
- Put registers in front of address and control
(and maybe data) for easier interfacing with
synchronous systems at high speeds - E.g., Pentium cache RAMs
21Dynamic RAMs (DRAMs)
Read assert Word Line, sense Bit Line Write
assert Word Line, drive Bit Line Destructive
Read-Out Refresh Cycles needed storage decays in
ms Internal circuits read word and write
back. Higher density and cheaper than
SRAM Longer access time than SRAM
Single Transistor (and a capacitor) memory element
22DRAM read operations
- Take the word line HIGH.
- Detect whether current flows into or out of the
cell. - Note cell contents are destroyed by the read!
- Must write the bit value back after reading.
23DRAM write operations
- Take the word line HIGH.
- Set the bit line LOW or HIGH to store 0 or 1.
- Take the word line LOW.
- Note The stored charge for a 1 will eventually
leak off.
24DRAM charge leakage
- Typical devices require each cell to be refreshed
once every 4 to 64 mS. - During suspended operation, notebook computers
use power mainly for DRAM refresh.
25DRAM-chip internal organization
64K x 1DRAM
26RAS/CAS operation
- Row Address Strobe, Column Address Strobe
- n address bits are provided in two steps using
n/2 pins, referenced to the falling edges of
RAS_L and CAS_L - Traditional method of DRAM operation for 20 years.
27DRAM read timing
28DRAM refresh timing
29DRAM write timing
30DRAM vs. SRAM
- SRAM
- Typically use six transistors per bit of storage
- Faster as it does not need to refresh
- More expensive and require more space and power
- DRAM
- Use only one transistor per bit
- Slower due to the refresh
- Higher density and more economic