Internal Memory - PowerPoint PPT Presentation

1 / 36
About This Presentation
Title:

Internal Memory

Description:

RAS = Row Addr. Select. CAS = Column Addr. Select. WE = Write Enable. OE = Output Enable ... RAS# demux. mux. data (8) byte select. address (11) address (24) ... – PowerPoint PPT presentation

Number of Views:321
Avg rating:3.0/5.0
Slides: 37
Provided by: tpea
Category:
Tags: internal | memory | ras

less

Transcript and Presenter's Notes

Title: Internal Memory


1
Chapter 5
  • Internal Memory
  • 5.1 Semiconductor Main Memory
  • 5.2 Error Correction
  • 5.3 Advanced DRAM

2
Semiconductor Memory Types
3
Semiconductor Memory
  • RAM Random Access Memory
  • Misnamed
  • all semiconductor memory is random access
  • (well flash?)
  • Read/Write
  • Volatile (lose power lose memory contents)
  • Temporary storage
  • static or dynamic

4
Memory Cell Operation
5
Dynamic RAM
  • Bits stored as charge in capacitors ? charge
    leaks
  • level of charge determines value
  • need refreshing even when powered
  • Pro simple, small, inexpensive
  • Con need refresh circuits, slow
  • Main memory

capacitor is an electrical sponge
Analog Device!
6
Dynamic RAM Structure
High Voltage at Y allows current to flow from
X to Z or Z to X
one transistor and one capacitor per bit
Y
X
Z

7
DRAM Operation
  • Address line active
  • ? transistor switch closed and current flows
  • Write
  • data signal to bit line High ? 1 Low
    ? 0
  • address line active ? transfers charge from
    bit line to capacitor
  • Read
  • address line active
  • transfer charge from capacitor to bit line (then
    to amplifier)
  • capacitor charge must be restored !

8
Static RAM
Digital Device!
  • Bits stored in transistor latches ? no
    capacitors!
  • no charge leak, no refresh needed
  • Pro no refresh circuits, faster
  • Con more complex construction, larger per bit
  • more expensive
  • Cache

transistors switch faster than capacitors
charge !
9
Static RAM Structure
1
NOT
six transistors per bit (flip flop will see
in 97.2xxx)
0
1
1
0
example
0/1
1
0
0
10
Static RAM Operation
  • Transistor arrangement (flip flop) has 2 stable
    logic states
  • Write
  • signal bit line High ? 1 Low ? 0
  • address line active ? switch flip flop to
    stable state
  • matching bit line
  • Read
  • address line active
  • drive bit line to same state as flip flop

no need for refresh!
11
SRAM v DRAM Summary
  • Both volatile need power to preserve data

12
Read Only Memory (ROM)
  • Permanent storage ? Nonvolatile
  • Boot program
  • Systems programs (BIOS)
  • Embedded application program
  • Library subroutines
  • Function tables

13
Types of ROM
  • ROM written during manufacture
  • very expensive for small runs, cheap for large
    runs
  • PROM Programmable (once)
  • need special equipment to program
  • must program before placing in computer

14
Read mostly Memory (Nonvolatile)
  • Erasable Programmable (EPROM)
  • erased by UV, special equipment to program
  • must program before placing in computer
  • must remove from computer to modify
  • Electrically Erasable (EEPROM)
  • at word level
  • takes much longer to write than read
  • Flash memory
  • erase blocks of memory electrically

modify in computer via bus
15
Organizing Memory
  • memory components must often be grouped together
    to provide useful configurations
  • e.g. one component might implement a 2K array of
    1-bit elements
  • organize 8 components together to provide a 2K
    array of bytes

total 2K x 8-bit
2K x 1-bit

address
data
control
16
Whats a MUX?
  • multiplexer
  • acts like a switch between several inputs and a
    single output

select
if select 0 then output A if select 1
then output B
2-to-1 MUX
A
Output
B
17
Whats a DEMUX?
  • demultiplexer
  • decodes inputs to activate an output

2-to-4 DEMUX
O0
A
O1
O2
B
O3
18
16MBit DRAM Organisation (Example)
  • one chip 2048 x 2048 x 4bit array (4M x 4bit
    array)
  • Reduces number of address pins
  • use 11 pins to address ( 211 2048 )
  • Multiplex row address and column address

19
Refreshing
  • Refresh circuit included on chip
  • Disable chip
  • Count through rows
  • Read Write back
  • Takes time
  • Slows down apparent performance

20
Typical 16 Mb DRAM (4M x 4)
RAS Row Addr. Select CAS Column Addr. Select
WE Write Enable OE Output Enable
2 k x 2 k 4 M
nybble
21
How to organize into a 16MByte Module?
CAS
4M x 4
data (8)
RAS
high nybble (4)
11 bits
address (24)
low nybble (4)
mux
11 bits
address (11)
demux
byte select
2 bits
22
Packaging
data byte
data nybble
23
Example256kByte Module Organisation
8 x 1-bit modules byte
218 256k
. . .
24
Extend Example to 1 Mbyte Module
Groups
A
B
C
D
256 k
256 k
256 k
256 k
25
Error Correction
  • Hard Failure
  • Permanent defect
  • Soft Error
  • Random, non-destructive
  • No permanent damage to memory
  • Detected using Hamming error correcting code

26
Error Correcting Code Function
27
e.g. Single Bit Error Detection
  • Add one parity bit, K1
  • Compute value of parity bit as follows (this is
    f)
  • Count number of 1 bits in data part of a word
  • If this count is even, parity bit is 0, else
    parity bit is 1
  • Can detect single bit errors, but multiple bit
    errors may go undetected
  • Not enough info. to correct errors, i.e. there
    is no Corrector module

28
e.g. Correction of 4-bit words
  • M4, and it turns out we need K3
  • With 4 bit data words, have following
    combinations
  • 00002, 00012, 00102, 00112, , 11102, 11112
  • For each data word abcd2, mem computes 3 parity
    bits g, h, i

A
Each parity bit chosen so the number of 1s in its
circle is even, i.e. icbd is even, etc
h
a
B
g
b
d
c
i
C
29
Correction of 4-bit words (cont.)
  • E.g. 0011 bits in order AB,ABC,AC,BC
    (alphabetic)

B
Even parity

1
0
0
A
i.e. Memory holds

1
0
0
1
1
1
1
C

0
110
0011
data
Error Occurs. Now data looks like 1011
parity bits g,h,i
Two parity bits find error
1
1
1
1
1
0
1
1
0
1
1
1
0
0
30
Advanced DRAM Organization
  • Basic DRAM same since first RAM chips
  • Enhanced DRAM
  • Contains small SRAM as well
  • SRAM holds last line read (c.f. Cache!)
  • Cache DRAM
  • Larger SRAM component
  • Use as cache or serial buffer

31
Synchronous DRAM (SDRAM)
  • Access is synchronized with an external clock
  • Address is presented to RAM
  • RAM finds data (CPU waits in conventional DRAM)
  • Since SDRAM moves data in time with system clock,
    CPU knows when data will be ready
  • CPU does not have to wait, it can do something
    else
  • Burst mode allows SDRAM to set up stream of data
    and fire it out in block
  • DDR-SDRAM sends data twice per clock cycle
    (leading trailing edge)

32
IBM 64Mb SDRAM Operation
mode register value determines burst length and
latency
33
IBM 64Mb SDRAM Block Diagram
34
RAMBUS DRAM (RDRAM)
  • Adopted by Intel for Pentium Itanium
  • Main competitor to SDRAM
  • Vertical package all pins on one side
  • Data exchange over 28 wires lt 12 cm long
  • Bus addresses up to 320 RDRAM chips at 1.6Gbps
  • Asynchronous block protocol
  • 480ns initial access time
  • Then 1.6 Gbps data rate

latency
burst
35
RAMBUS Diagram
To processor
Smart
36
Recent Memory Offerings (circa 2002)
Note Price for RDRAM 512MB ?1024MB Why? (What
is ECC?)
Write a Comment
User Comments (0)
About PowerShow.com