Beruflich Dokumente
Kultur Dokumente
-2-
Memory Terms
Word
4A collection of bits that are read/written together
8 bits
Address
4A collection of bits that are used to specify which word in the RAM is to be read or written
EE 224 notes Morris Jones
-3-
Ram terms
Bit or Cell
4A location in the ram that stores digital information. 4A bit is a single binary digit 4Cell stores one bit in 2 level systems. It may store more bits in multi-level systems
All commercial RAMs are single bit per cell types CCDs store data in analog, and are 6 -8 bits/cell
EE 224 notes Morris Jones
-4-
Ram Concepts
Words (8 bits)
EE 224 notes Morris Jones
-5-
Ram Organization
Rows
Address
Decoder
Cells
-6-
Ram Architecture
Ram organized into Rows and Bits.
4Rows contain one or more words 4Bits are multiplexed to word size
-7-
Output MUX
Some address bits may go to output mux
4Select bits in the desired word 4These address bits are often faster than other address bits
-8-
-9-
Cost of A RAM
Memory cells desired
Address Decoder
Ram Cost
P = 2W + 2L A = WL 2W + 2 L Metric = WL Cells = WL L= C W 2W + 2C W
First Order estimate of efficiency comes from perimeter vrs area Perimeter is overhead, and area is valuable cells
C dMetric 2 2CW 2 = =0 dW C 2 2 = 2 C W W= C
EE 224 notes Morris Jones
Metric =
Square RAMS are the most Cost effective! Number of Rows= Number of Bits
-11-
Example
A designer desires a 1024 location by 8 bit RAM. What is the best internal organization for the RAM. Number of Cells = 8 X 1024=>8192 Cells SQRT(8192) =>90.5 Cannot make this work in Powers of 2, pick the closest power of 2 64 Rows, and 128 bits -- or -128 Rows, and 64 bits
-12-
Whats in a Cell
vdd vdd vdd
Resistor Style
NMOS Style
CMOS Style
Dynamic Style
-13-
Dynamic Cell
Charge is stored on a capacitor
4May be parasitic Capacitance 4Dynamic Rams use this type of Cell
Challenge is to get enough capacitance and keep the cell size quite small Cell has no active gain or VDD path!
-14-
-15-
NMOS Cell
Uses NMOS inverters One always has a path to ground To keep power low, W/L of load must be very small
4Requires a large device
-16-
CMOS Cell
2 N and 2 P transistors No static Power Requires both N and P diffusions
4Larger area for spacing
-17-
Can read out the Cell value Can write in a new Cell value
-18-
vdd
Word Line
-19-
Word Lines
Decode with Nor/Nand structures Run address and not address down side of RAM Connect appropriate phases to transistors May pre-decode 2 bits to 4 to save transistor height
EE 224 notes Morris Jones
-20-
10
Word Lines
Often, Dynamic decode used
4Follow with inverter if necessiary
Clocked drive often used to prevent decode glitches from getting into the cells
4Ram needs timing generation
-21-
Bit Lines
A single Bit line goes to a large number of cells Has much load and noise Often there are two bit lines
4Use differential Sense Circuit 4Makes writes easier
-22-
11
Word Line
-23-
-24-
12
5V
Target is <VT N
VDS=VGS-VT for P VDS<VGS-VT for N
-25-
-26-
13
-27-
Transient Response
-28-
14
Set M to 127 for other loads on the bit line Ram Cell 1, bit lines 0
EE 224 notes Morris Jones
-29-
-30-
15
-31-
Some solutions
Separate Read and Write lines
4Write the Cell with one transistor size 4Read with another transistor
Takes up a lot of area Can buffer the output with a transistor
Often done in multi-rams
-32-
16
Set P and N pass transistor for write condition Set N inverter transistor for read speed Make Pass transistor smaller
EE 224 notes Morris Jones
-33-
-34-
17
Beef Ns up to 10/2
10/2
EE 224 notes Morris Jones
-35-
-36-
18
-37-
Most rams have Minimum size Pass and use differential sense amplifiers to reduce voltage swing
EE 224 notes Morris Jones
-38-
19
Bus Conditioner
Sets the Bus to a voltage level the sense amps can work with
vdd bit
bit
Set the Bit Voltage so the Sense amp works the best!
-39-
-40-
20
OUT In In
-41-
-42-
21