Static Memory - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

Static Memory

Description:

Types of Static Memory Terminology static - maintains state without any action nonvolatile - maintains state without power solid-state - semiconductor, ... – PowerPoint PPT presentation

Number of Views:43
Avg rating:3.0/5.0
Slides: 13
Provided by: coursesC3
Category:
Tags: memory | static

less

Transcript and Presenter's Notes

Title: Static Memory


1
Static Memory
  • Outline
  • Types of Static Memory
  • Static RAM
  • Battery Backup
  • EPROM
  • Flash Memory
  • EEPROM
  • Goal
  • Understand types of static memory
  • Understand static memory design
  • Reading
  • Microprocessor Systems Design, Clements, Ch. 5.3

2
Types of Static Memory
  • Terminology
  • static - maintains state without any action
  • nonvolatile - maintains state without power
  • solid-state - semiconductor, not disk, tape, etc.
  • Memory types
  • SRAM - static read/write random access memory
  • ROM - nonvolatile read only memory
  • EPROM - fast read, off-line chip erase/write ROM
  • Flash - fast read, slow block erase/write ROM
  • EEPROM - fast read, slow byte erase/write ROM

3
Static RAM
  • Static read/write random access memory
  • CPU can quickly read and write each memory
    location
  • CPU can access each memory location at same speed
  • fastest type of memory
  • use for small amount of RAM
  • low power consumption when idle
  • can use battery backup
  • SRAM cell
  • 6 transistor (6T) cell
  • 4 transistor and 2 resistor (4T) cell

Sel
Sel
B
B
B
B
4
SRAM Configuration
  • 1, 4, 8, 16, 24, 32-bits wide
  • width to match chip count for memory capacity
  • Pin compatibility
  • SRAM parts have corresponding ROM, EPROM, etc.
  • Bus contention
  • memories A and B both putting data on bus
  • memory and CPU both putting data on bus

5
Bus Contention
Data bus D00-D31
ltD00D15gt
ltD16D31gt
4Mx16
4Mx16
ltD0D15gt
ltD0D15gt
ltA0A21gt CS R/W
ltA0A21gt CS R/W
Address bus A00-A31
Two 4Mx16 SRAMs form one 4Mx32 memory bank
6
SRAM Configuration
Data bus D00-D31
4Mx32
4Mx32
A
B
ltA0A21gt CS R/W
ltA0A21gt CS R/W
CSA
CSB
Address bus A00-A31
  • CSA and CSB must make sure A and B dont drive
    the bus at the same time
  • bus contention
  • or fight with CPU or other device
  • address decoder timing issue

7
Battery Backup
  • CMOS SRAM uses little power while idle
  • can be placed in special power-down mode
  • lt 50 uA for 6264LP-10 chip
  • battery can supply power
  • save state when power is off - e.g. setup
    parameters
  • selecting powerdown
  • deselect chip, drop supply voltage
  • Battery approach
  • rechargeable NiCad
  • 1.2V cell, put in series for higher voltage
  • charge off power supply
  • drawback - self-discharge of 1/day at 15C,
    8/day at 50C
  • can only use for short-term power loss

8
Backup Supply Design
  • Diode isolated
  • diode blocks power supply when it goes away
  • resistor in series with battery limits charging
    current
  • C/10 where C capacity in A-h
  • 0.1 A-h battery gt 10 mA charging current
  • Vdd 5V, 2.4V battery gt 260 ohm resistor
  • causes 13 mV voltage drop at 50 µA draw
  • also have diode leakage
  • Problem
  • Vdd of 6264 SRAM is 4.3-4.6V
  • Vdd of 68K is 5V
  • could overdrive SRAM inputs, cause latchup
  • solution - pass CPU Vdd through diode
  • better - use transistor cutoff

TTL Vcc
5V
CMOS Vcc
Rc
9
Chip Inputs
  • Must have chip inputs at Vdd or GND
  • otherwise they can draw large power
  • Solution
  • use open-collector drivers with pullup resistors
  • connect resistors to battery supply
  • easier to use active low chip select
  • otherwise must guarantee select is low
  • but drivers are another source of leakage current
  • Chip select
  • tie to battery supply - falls when battery takes
    over
  • use supply comparator - deselect when battery gt
    Vdd

10
EPROM
  • Erasable, programmable ROM
  • use when data infrequently changed
  • e.g. PostScript interpreter in printer
  • EPROM cell
  • floating FET gate, stores charge
  • 12-25V on select gate injects charge into
    floating gate
  • done on special PROM programmer
  • complex programming cycle
  • erase with bright UV light - all gates to 0V
  • chip has quartz window
  • EPROM usage
  • similar to read cycle in SRAM

Vgate
N
N
P-
11
Flash Memory
  • Flash electrically erasable PROM
  • program similar to EPROM
  • erase with Fowler-Nordheim tunneling
  • 12-20V across thin ONO oxide
  • electrons tunnel through it at S/D to erase
  • Bulk erase
  • flash erases whole chip or block/sector at a time
  • slow - can take 100 ms to 1 s
  • Erase/program in system
  • chip has internal voltage generator and
    program/erase logic
  • not like in book
  • Limited lifetime
  • limited to 10K-100K erase/program cycles - oxide
    wears out
  • Usage - solid state disk, BIOS, embedded OS, etc.
  • cheaper than battery-backed SRAM

12
EEPROM
  • Electrically-erasable PROM
  • erase/program with tunneling
  • faster erase, slower programming than flash
  • Byte erase/program
  • automatically erase before program
  • looks like a slow SRAM
  • on-chip voltage generator and timing
  • CPU can poll chip to see if write is done
  • Buffering
  • many EEPROMs have SRAM buffer
  • CPU can do series of quick writes, which are then
    stored
  • Intelligence
  • put chip into read-only mode
  • erase entire chip and disable auto-erase
Write a Comment
User Comments (0)
About PowerShow.com