SlideShare a Scribd company logo
1 of 33
Download to read offline
Charles Kime & Thomas Kaminski
© 2004 Pearson Education, Inc.
Terms of Use
(Hyperlinks are active in View Show mode)
Chapter 9 – Memory Basics
Logic and Computer Design Fundamentals
Chapter 9 2
Overview
ƒ Memory definitions
ƒ Random Access Memory (RAM)
ƒ Static RAM (SRAM) integrated circuits
• Cells and slices
• Cell arrays and coincident selection
ƒ Arrays of SRAM integrated circuits
ƒ Dynamic RAM (DRAM) integrated circuits
ƒ DRAM Types
• Synchronous (SDRAM)
• Double-Data Rate (DDR SRAM)
• RAMBUS DRAM (RDRAM)
ƒ Arrays of DRAM integrated circuits
Chapter 9 3
Memory Definitions
ƒ Memory ─ A collection of storage cells together with
the necessary circuits to transfer information to and
from them.
ƒ Memory Organization ─ the basic architectural
structure of a memory in terms of how data is accessed.
ƒ Random Access Memory (RAM) ─ a memory
organized such that data can be transferred to or from
any cell (or collection of cells) in a time that is not
dependent upon the particular cell selected.
ƒ Memory Address ─ A vector of bits that identifies a
particular memory element (or collection of elements).
Chapter 9 4
Memory Definitions (Continued)
ƒ Typical data elements are:
• bit ─ a single binary digit
• byte ─ a collection of eight bits accessed together
• word ─ a collection of binary bits whose size is a
typical unit of access for the memory. It is typically
a power of two multiple of bytes (e.g., 1 byte, 2
bytes, 4 bytes, 8 bytes, etc.)
ƒ Memory Data ─ a bit or a collection of bits to
be stored into or accessed from memory cells.
ƒ Memory Operations ─ operations on memory
data supported by the memory unit. Typically,
read and write operations over some data
element (bit, byte, word, etc.).
Chapter 9 5
Memory Organization
ƒ Organized as an indexed array of words. Value of the
index for each word is the memory address.
ƒ Often organized to fit the needs of a particular
computer architecture. Some historically significant
computer architectures and their associated memory
organization:
• Digital Equipment Corporation PDP-8 – used a 12-bit address
to address 4096 12-bit words.
• IBM 360 – used a 24-bit address to address 16,777,216 8-bit
bytes, or 4,194,304 32-bit words.
• Intel 8080 – (8-bit predecessor to the 8086 and the current Intel
processors) used a 16-bit address to address 65,536 8-bit bytes.
Chapter 9 6
Memory Block Diagram
ƒ A basic memory system is
shown here:
ƒ k address lines are
decoded to address 2k
words of memory.
ƒ Each word is n bits.
ƒ Read and Write are single
control lines defining the
simplest of memory
operations.
n Data Input Lines
k Address Lines
Read
Write
n Data Output Lines
Memory
Unit
2k Words
n Bits per Word
k
1
1
n
n
Chapter 9 7
Memory Organization Example
ƒ Example memory
contents:
• A memory with 3
address bits & 8
data bits has:
• k = 3 and n = 8 so
23 = 8 addresses
labeled 0 to 7.
• 23 = 8 words of 8-bit
data
Memory Address
Binary Decimal
Memory
Content
0 0 0 0 1 0 0 0 1 1 1 1
0 0 1 1 1 1 1 1 1 1 1 1
0 1 0 2 1 0 1 1 0 0 0 1
0 1 1 3 0 0 0 0 0 0 0 0
1 0 0 4 1 0 1 1 1 0 0 1
1 0 1 5 1 0 0 0 0 1 1 0
1 1 0 6 0 0 1 1 0 0 1 1
1 1 1 7 1 1 0 0 1 1 0 0
Chapter 9 8
Basic Memory Operations
ƒ Memory operations require the following:
• Data ─ data written to, or read from, memory as
required by the operation.
• Address ─ specifies the memory location to operate
on. The address lines carry this information into
the memory. Typically: n bits specify locations of 2n
words.
• An operation ─ Information sent to the memory and
interpreted as control information which specifies
the type of operation to be performed. Typical
operations are READ and WRITE. Others are
READ followed by WRITE and a variety of
operations associated with delivering blocks of data.
Operation signals may also specify timing info.
Chapter 9 9
Basic Memory Operations (continued)
ƒ Read Memory ─ an operation that reads a data value
stored in memory:
• Place a valid address on the address lines.
• Wait for the read data to become stable.
ƒ Write Memory ─ an operation that writes a data value
to memory:
• Place a valid address on the address lines and valid data on the
data lines.
• Toggle the memory write control line
ƒ Sometimes the read or write enable line is defined as a
clock with precise timing information (e.g. Read Clock,
Write Strobe).
• Otherwise, it is just an interface signal.
• Sometimes memory must acknowledge that it has completed
the operation.
Chapter 9 10
Memory Operation Timing
ƒ Most basic memories are asynchronous
• Storage in latches or storage of electrical charge
• No clock
ƒ Controlled by control inputs and address
ƒ Timing of signal changes and data observation is critical to the
operation
ƒ Read timing:
Read cycle
Clock
Address
Memory
enable
Read/
Write
Data
output
20 ns
T1 T2 T3 T4 T1
Address valid
65 ns
Data valid
Chapter 9 11
Memory Operation Timing
ƒ Write timing:
ƒ Critical times measured with respect to edges of write pulse (1-0-1):
• Address must be established at least a specified time before 1-0 and held
for at least a specified time after 0-1 to avoid disturbing stored contents
of other addresses
• Data must be established at least a specified time before 0-1 and held for
at least a specified time after 0-1 to write correctly
Write cycle
Clock
Address
Memory
enable
Read/
Write
Data
input
20 ns
T1 T2 T3 T4 T1
Address valid
Data valid
75 ns
Chapter 9 12
RAM Integrated Circuits
ƒ Types of random access memory
• Static – information stored in latches
• Dynamic – information stored as electrical charges
on capacitors
ƒ Charge “leaks” off
ƒ Periodic refresh of charge required
ƒ Dependence on Power Supply
• Volatile – loses stored information when power
turned off
• Non-volatile – retains information when power
turned off
Chapter 9 13
Static RAM  Cell
ƒ Array of storage cells used to implement static RAM
ƒ Storage Cell
• SR Latch
• Select input for
control
• Dual Rail Data
Inputs B and B
• Dual Rail Data
Outputs C and C
Select
B
RAM cell
C
C
B
S
R
Q
Q
Chapter 9 14
Static RAM  Bit Slice
ƒ Represents all circuitry that is required for 2n
1-bit words
• Multiple RAM cells
• Control Lines:
ƒ Word select i
– one for each word
ƒ
ƒ Bit Select
• Data Lines:
ƒ Data in
ƒ Data out
Write
/
ad
Re
(a) Logic diagram
Select
S
R
Q
Q
B
RAM cell
C
C
B
Select
S
R
Q
Q
RAM cell
X
Word
select
0
Word
select
2n  1
Data in
Write logic
Read/
Write
Bit
select
S
R
Q
Q
X
X
X
Word
select
0
Word
select
1
Word
select
2n
Read/Write
logic
Data in
Data out
Read/
Write
Bit
select
(b) Symbol
RAM cell
RAM cell
RAM cell
Data out
Read logic
 1
Chapter 9 15
Read/
ƒ To build a RAM IC
from a RAM slice,
we need:
• Decoder
2n-Word × 1-Bit RAM IC
 decodes
the n address lines to
2n word select lines
• A 3-state buffer 
• on the data output
permits RAM ICs to
be combined into a
RAM with c × 2n words
Word select
Read/Write
logic
Data in
Data out
Write
Bit
select
(b) Block diagram
RAM cell
RAM cell
RAM cell
Data input
Chip select
Read/Write
Data
output
A3
A2
A1
A0
23
22
21
20
4-to-16
Decoder 0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
A3
A2
A1
A0
Data
input
Data
output
(a) Symbol
Read/
Write
Memory
enable
16 x 1
RAM
Chapter 9 16
ƒ Memory arrays can be very large =>
• Large decoders
• Large fanouts for the bit lines
• The decoder size and fanouts can be reduced by
approximately by using a coincident selection in
a 2-dimensional array
• Uses two decoders, one for words and one for bits
• Word select becomes Row select
• Bit select becomes Column select
ƒ See next slide for example
• A3 and A2 used for Row select
• A1 and A0 for Column select
Cell Arrays and Coincident Selection
n
Chapter 9 17
Cell Arrays and Coincident Selection
(continued)
Data input
Read/Write
X X
X
A1 A0
RAM cell
0
RAM cell
4
RAM cell
8
RAM cell
12
Read/Write
logic
Data in
Data out
Read/
Write
Bit
select
RAM cell
1
RAM cell
5
RAM cell
9
RAM cell
13
Read/Write
logic
Data in
Data out
Read/
Write
Bit
select
RAM cell
2
RAM cell
6
RAM cell
10
RAM cell
14
Read/Write
logic
Data in
Data out
Read/
Write
Bit
select
RAM cell
3
RAM cell
7
RAM cell
11
RAM cell
15
Read/Write
logic
Data in
Data out
Read/
Write
Bit
select
Column
decoder
2-to-4 Decoder
with enable
21 20
0 1
Column select
2
Enable
3
Chip select
Data
output
Row
select
Row decoder
A2
A3
X
2-to-4
Decoder
20
21
1
2
3
0
Chapter 9 18
RAM ICs with > 1 Bit/Word
ƒ Word length can be quite high.
ƒ To better balance the number of words
and word length, use ICs with > 1
bit/word
ƒ See Figure 9-8 for example
• 2 Data input bits
• 2 Data output bits
• Row select selects 4 rows
• Column select selects 2 pairs of columns
Chapter 9 19
Making Larger Memories
ƒ Using the CS lines, we
can make larger
memories from smaller
ones by tying all
address, data, and R/W
lines in parallel, and
using the decoded
higher order address
bits to control CS.
ƒ Using the 4-Word by 1-
Bit memory from
before, we construct a
16-Word by
1-Bit memory. ⇒
D3
S1
S0
D2
D1
D0
Decoder
R/W
A2
A3
A1
A0
Data In
Data Out
R/W
CS
A0
A1 D-In
D-Out
R/W
CS
A0
A1 D-In
D-Out
R/W
CS
A0
A1 D-In
D-Out
R/W
CS
A0
A1 D-In
D-Out
Chapter 9 20
Making Wider Memories
ƒ To construct wider
memories from narrow
ones, we tie the address
and control lines in
parallel and keep the data
lines separate.
ƒ For example, to make a 4-
word by 4-bit memory
from 4, 4-word by 1-bit
memories ⇒
ƒ Note: Both 16x1 and 4x4
memories take 4-chips
and hold 16 bits of data. R/W
A1
A0
Data In
Data Out
R/W
CS
A0
A1 D-In
D-Out
R/W
CS
A0
A1 D-In
D-Out
R/W
CS
A0
A1 D-In
D-Out
R/W
CS
A0
A1 D-In
D-Out
CS
3 2 1 0
3 2 1 0
Chapter 9 21
Dynamic RAM (DRAM)
ƒ Basic Principle: Storage of information
on capacitors.
ƒ Charge and discharge of capacitor to
change stored value
ƒ Use of transistor as “switch” to:
• Store charge
• Charge or discharge
ƒ See next slide for circuit, hydraulic
analogy, and logical model.
Chapter 9 22
Dynamic RAM (continued)
(a) (c)
Select
D
C
Q
B
DRAM cell
model
C
(f) (g)
(h)
Select
B
T
C
DRAM cell
To Pump
(b)
(d) (e)
Stored 1 Stored 0
Write 1 Write 0
Read 0
Read 1
Chapter 9 23
Dynamic RAM - Bit Slice
ƒ C is driven by 3-state
drivers
ƒ Sense amplifier is used
to change the small
voltage change on C
into H or L
ƒ In the electronics, B, C,
and the sense amplifier
output are connected to
make destructive read
into non-destructive
read
Data in
(b) Symbol
(a) Logic diagram
Select
B
Select
Word
select
0
Word
select
2n2 1
Write logic
Bit
select
Data out
Read logic
D
C
Q
DRAM cell
model
D
C
Q
DRAM cell
model
C
Sense
amplifier
Read/Write
logic
Data in
Data out
Bit
select
DRAM cell
DRAM cell
DRAM cell
Word
select
0
Word
select
1
Word
select
2n2 1
Read/
Write
Read/
Write
Chapter 9 24
Dynamic RAM - Block Diagram
ƒ Block Diagram – See Figure 9-14 in text
ƒ Refresh Controller and Refresh Counter
ƒ Read and Write Operations
• Application of row address
• Application of column address
• Why is the address split?
• Why is the row address applied first?
Chapter 9 25
Dynamic RAM Read Timing
Read cycle
20 ns
T1 T2 T3 T4 T1
Data valid
65 ns
Hi-Z
Read/
Write
Data
output
Clock
Row
Address
Column
Address
RAS
CAS
Address
Output
enable
Chapter 9 26
DRAM Types
ƒ Types to be discussed
• Synchronous DRAM (SDRAM)
• Double Data Rate SDRAM (DDR SDRAM)
• RAMBUS® DRAM (RDRAM)
ƒ Justification for effectiveness of these types
• DRAM often used as a part of a memory hierarchy (See details in
chapter 14)
• Reads from DRAM bring data into lower levels of the hierarchy
• Transfers from DRAM involve multiple consecutively addressed
words
• Many words are internally read within the DRAM ICs using a
single row address and captured within the memory
• This read involves a fairly long delay
Chapter 9 27
DRAM Types (continued)
ƒ Justification for effectiveness of these types (continued)
• These words are then transferred out over the memory data
bus using a series of clocked transfers
• These transfers have a low delay, so several can be done in a
short time
• The column address is captured and used by a synchronous
counter within the DRAM to provide consecutive column
addresses for the transfers
ƒ burst read – the resulting multiple word read from
consecutive addresses
Chapter 9 28
Synchronous DRAM
ƒ Transfers to and from the DRAM are synchronize with a clock
ƒ Synchronous registers appear on:
• Address input
• Data input
• Data output
ƒ Column address counter
• for addressing internal data to be transferred on each clock cycle
• beginning with the column address counts up to column address +
burst size – 1
ƒ Example: Memory data path width: 1 word = 4 bytes
Burst size: 8 words = 32 bytes
Memory clock frequency: 5 ns
Latency time (from application of row address until first
word available): 4 clock cycles
Read cycle time: (4 + 8) x 5 ns = 60 ns
Memory Bandwidth: 32/(60 x 10-9) = 533 Mbytes/sec
Chapter 9 29
Double Data Rate Synchronous DRAM
ƒ Transfers data on both edges of the clock
ƒ Provides a transfer rate of 2 data words per
clock cycle
ƒ Example: Same as for synchronous DRAM
• Read cycle time = 60 ns
• Memory Bandwidth: (2 x 32)/(60 x 10-9) = 1.066
Mbytes/sec
Chapter 9 30
RAMBUS DRAM (RDRAM)
ƒ Uses a packet-based bus for interaction between the RDRAM ICs and the
memory bus to the processor
ƒ The bus consists of:
• A 3-bit row address bus
• A 5-bit column address bus
• A 16 or 18-bit (for error correction) data bus
ƒ The bus is synchronous and transfers on both edges of the clock
ƒ Packets are 4-clock cycles long giving 8 transfers per packet representing:
• A 12-bit row address packet
• A 20-bit column address packet
• A 128 or 144-bit data packet
ƒ Multiple memory banks are used to permit concurrent memory accesses
with different row addresses
ƒ The electronic design is sophisticated permitting very fast clock speeds
Chapter 9 31
Other RAM Types
ƒ XDR – Rambus RAM uses 8bit lanes, 400, 600,
800MHz, Octal Data Rate, 8 or 16 lanes (Bi-
directional diferrential signalling)
ƒ DDR2 SDRAM – doubled bus frequency using
same physical clock. Long latency.
ƒ RLDRAM – Reduced latency DRAM, response
times similar to SRAM, restricted bank access
ƒ QDR SRAM – SRAM on corner transitions.
Chapter 9 32
Arrays of DRAM Integrated Circuits
ƒ Similar to arrays of SRAM ICs, but there are
differences typically handled by an IC called a
DRAM controller:
• Separation of the address into row address and
column address and timing their application
• Providing RAS and CAS and timing their
application
• Performing refresh operations at required intervals
• Providing status signals to the rest of the system
(e.g., indicating whether or not the memory is active
or is busy performing refresh)
Chapter 9 33
Terms of Use
ƒ © 2004 by Pearson Education,Inc. All rights reserved.
ƒ The following terms of use apply in addition to the standard Pearson
Education Legal Notice.
ƒ Permission is given to incorporate these materials into classroom
presentations and handouts only to instructors adopting Logic and
Computer Design Fundamentals as the course text.
ƒ Permission is granted to the instructors adopting the book to post these
materials on a protected website or protected ftp site in original or
modified form. All other website or ftp postings, including those
offering the materials for a fee, are prohibited.
ƒ You may not remove or in any way alter this Terms of Use notice or
any trademark, copyright, or other proprietary notice, including the
copyright watermark on each slide.
ƒ Return to Title Page

More Related Content

Similar to ram.pdf

Chp3 designing bus system, memory & io copy
Chp3 designing bus system, memory & io   copyChp3 designing bus system, memory & io   copy
Chp3 designing bus system, memory & io copymkazree
 
901320_Main Memory.ppt
901320_Main Memory.ppt901320_Main Memory.ppt
901320_Main Memory.pptChandinialla1
 
eMMC Embedded Multimedia Card overview
eMMC Embedded Multimedia Card overvieweMMC Embedded Multimedia Card overview
eMMC Embedded Multimedia Card overviewVijayGESYS
 
Memory Hierarchy PPT of Computer Organization
Memory Hierarchy PPT of Computer OrganizationMemory Hierarchy PPT of Computer Organization
Memory Hierarchy PPT of Computer Organization2022002857mbit
 
Microprocessor and Application (8085)
Microprocessor and Application (8085)Microprocessor and Application (8085)
Microprocessor and Application (8085)ufaq kk
 
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...Hsien-Hsin Sean Lee, Ph.D.
 
Part of UNIT2 Memory mapped IOjkl;'lk.pdf
Part of UNIT2 Memory mapped IOjkl;'lk.pdfPart of UNIT2 Memory mapped IOjkl;'lk.pdf
Part of UNIT2 Memory mapped IOjkl;'lk.pdfAbhishekkumar397974
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacingdeval patel
 
Random Access Memory
Random Access Memory Random Access Memory
Random Access Memory rohitladdu
 
Chapter 2-8085 Microprocessor Architecture and Microcomputer Systems
Chapter 2-8085 Microprocessor Architecture and Microcomputer SystemsChapter 2-8085 Microprocessor Architecture and Microcomputer Systems
Chapter 2-8085 Microprocessor Architecture and Microcomputer Systemscmkandemir
 
Microprocessor Part 1
Microprocessor    Part 1Microprocessor    Part 1
Microprocessor Part 1Sajan Agrawal
 
Lec11 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Memory part3
Lec11 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Memory part3Lec11 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Memory part3
Lec11 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Memory part3Hsien-Hsin Sean Lee, Ph.D.
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA ControllerShivamSood22
 
Microelectronics U4.pptx.ppt
Microelectronics U4.pptx.pptMicroelectronics U4.pptx.ppt
Microelectronics U4.pptx.pptPavikaSharma3
 
DIGITAL DESIGNS SLIDES 7 ENGINEERING 2ND YEAR
DIGITAL DESIGNS SLIDES 7 ENGINEERING  2ND YEARDIGITAL DESIGNS SLIDES 7 ENGINEERING  2ND YEAR
DIGITAL DESIGNS SLIDES 7 ENGINEERING 2ND YEARkasheen2803
 

Similar to ram.pdf (20)

Chp3 designing bus system, memory & io copy
Chp3 designing bus system, memory & io   copyChp3 designing bus system, memory & io   copy
Chp3 designing bus system, memory & io copy
 
901320_Main Memory.ppt
901320_Main Memory.ppt901320_Main Memory.ppt
901320_Main Memory.ppt
 
eMMC Embedded Multimedia Card overview
eMMC Embedded Multimedia Card overvieweMMC Embedded Multimedia Card overview
eMMC Embedded Multimedia Card overview
 
Memory Hierarchy PPT of Computer Organization
Memory Hierarchy PPT of Computer OrganizationMemory Hierarchy PPT of Computer Organization
Memory Hierarchy PPT of Computer Organization
 
Microprocessor and Application (8085)
Microprocessor and Application (8085)Microprocessor and Application (8085)
Microprocessor and Application (8085)
 
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
 
Dd sdram
Dd sdramDd sdram
Dd sdram
 
Memory management
Memory managementMemory management
Memory management
 
Part of UNIT2 Memory mapped IOjkl;'lk.pdf
Part of UNIT2 Memory mapped IOjkl;'lk.pdfPart of UNIT2 Memory mapped IOjkl;'lk.pdf
Part of UNIT2 Memory mapped IOjkl;'lk.pdf
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
Random Access Memory
Random Access Memory Random Access Memory
Random Access Memory
 
Chapter 2-8085 Microprocessor Architecture and Microcomputer Systems
Chapter 2-8085 Microprocessor Architecture and Microcomputer SystemsChapter 2-8085 Microprocessor Architecture and Microcomputer Systems
Chapter 2-8085 Microprocessor Architecture and Microcomputer Systems
 
Microprocessor Part 1
Microprocessor    Part 1Microprocessor    Part 1
Microprocessor Part 1
 
Lec11 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Memory part3
Lec11 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Memory part3Lec11 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Memory part3
Lec11 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Memory part3
 
Internal memory
Internal memoryInternal memory
Internal memory
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
 
Memoryhierarchy
MemoryhierarchyMemoryhierarchy
Memoryhierarchy
 
Memory_Interface.pdf
Memory_Interface.pdfMemory_Interface.pdf
Memory_Interface.pdf
 
Microelectronics U4.pptx.ppt
Microelectronics U4.pptx.pptMicroelectronics U4.pptx.ppt
Microelectronics U4.pptx.ppt
 
DIGITAL DESIGNS SLIDES 7 ENGINEERING 2ND YEAR
DIGITAL DESIGNS SLIDES 7 ENGINEERING  2ND YEARDIGITAL DESIGNS SLIDES 7 ENGINEERING  2ND YEAR
DIGITAL DESIGNS SLIDES 7 ENGINEERING 2ND YEAR
 

Recently uploaded

GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixingviprabot1
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIEduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIkoyaldeepu123
 

Recently uploaded (20)

GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixing
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIEduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AI
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 

ram.pdf

  • 1. Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Chapter 9 – Memory Basics Logic and Computer Design Fundamentals
  • 2. Chapter 9 2 Overview ƒ Memory definitions ƒ Random Access Memory (RAM) ƒ Static RAM (SRAM) integrated circuits • Cells and slices • Cell arrays and coincident selection ƒ Arrays of SRAM integrated circuits ƒ Dynamic RAM (DRAM) integrated circuits ƒ DRAM Types • Synchronous (SDRAM) • Double-Data Rate (DDR SRAM) • RAMBUS DRAM (RDRAM) ƒ Arrays of DRAM integrated circuits
  • 3. Chapter 9 3 Memory Definitions ƒ Memory ─ A collection of storage cells together with the necessary circuits to transfer information to and from them. ƒ Memory Organization ─ the basic architectural structure of a memory in terms of how data is accessed. ƒ Random Access Memory (RAM) ─ a memory organized such that data can be transferred to or from any cell (or collection of cells) in a time that is not dependent upon the particular cell selected. ƒ Memory Address ─ A vector of bits that identifies a particular memory element (or collection of elements).
  • 4. Chapter 9 4 Memory Definitions (Continued) ƒ Typical data elements are: • bit ─ a single binary digit • byte ─ a collection of eight bits accessed together • word ─ a collection of binary bits whose size is a typical unit of access for the memory. It is typically a power of two multiple of bytes (e.g., 1 byte, 2 bytes, 4 bytes, 8 bytes, etc.) ƒ Memory Data ─ a bit or a collection of bits to be stored into or accessed from memory cells. ƒ Memory Operations ─ operations on memory data supported by the memory unit. Typically, read and write operations over some data element (bit, byte, word, etc.).
  • 5. Chapter 9 5 Memory Organization ƒ Organized as an indexed array of words. Value of the index for each word is the memory address. ƒ Often organized to fit the needs of a particular computer architecture. Some historically significant computer architectures and their associated memory organization: • Digital Equipment Corporation PDP-8 – used a 12-bit address to address 4096 12-bit words. • IBM 360 – used a 24-bit address to address 16,777,216 8-bit bytes, or 4,194,304 32-bit words. • Intel 8080 – (8-bit predecessor to the 8086 and the current Intel processors) used a 16-bit address to address 65,536 8-bit bytes.
  • 6. Chapter 9 6 Memory Block Diagram ƒ A basic memory system is shown here: ƒ k address lines are decoded to address 2k words of memory. ƒ Each word is n bits. ƒ Read and Write are single control lines defining the simplest of memory operations. n Data Input Lines k Address Lines Read Write n Data Output Lines Memory Unit 2k Words n Bits per Word k 1 1 n n
  • 7. Chapter 9 7 Memory Organization Example ƒ Example memory contents: • A memory with 3 address bits & 8 data bits has: • k = 3 and n = 8 so 23 = 8 addresses labeled 0 to 7. • 23 = 8 words of 8-bit data Memory Address Binary Decimal Memory Content 0 0 0 0 1 0 0 0 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 0 1 0 2 1 0 1 1 0 0 0 1 0 1 1 3 0 0 0 0 0 0 0 0 1 0 0 4 1 0 1 1 1 0 0 1 1 0 1 5 1 0 0 0 0 1 1 0 1 1 0 6 0 0 1 1 0 0 1 1 1 1 1 7 1 1 0 0 1 1 0 0
  • 8. Chapter 9 8 Basic Memory Operations ƒ Memory operations require the following: • Data ─ data written to, or read from, memory as required by the operation. • Address ─ specifies the memory location to operate on. The address lines carry this information into the memory. Typically: n bits specify locations of 2n words. • An operation ─ Information sent to the memory and interpreted as control information which specifies the type of operation to be performed. Typical operations are READ and WRITE. Others are READ followed by WRITE and a variety of operations associated with delivering blocks of data. Operation signals may also specify timing info.
  • 9. Chapter 9 9 Basic Memory Operations (continued) ƒ Read Memory ─ an operation that reads a data value stored in memory: • Place a valid address on the address lines. • Wait for the read data to become stable. ƒ Write Memory ─ an operation that writes a data value to memory: • Place a valid address on the address lines and valid data on the data lines. • Toggle the memory write control line ƒ Sometimes the read or write enable line is defined as a clock with precise timing information (e.g. Read Clock, Write Strobe). • Otherwise, it is just an interface signal. • Sometimes memory must acknowledge that it has completed the operation.
  • 10. Chapter 9 10 Memory Operation Timing ƒ Most basic memories are asynchronous • Storage in latches or storage of electrical charge • No clock ƒ Controlled by control inputs and address ƒ Timing of signal changes and data observation is critical to the operation ƒ Read timing: Read cycle Clock Address Memory enable Read/ Write Data output 20 ns T1 T2 T3 T4 T1 Address valid 65 ns Data valid
  • 11. Chapter 9 11 Memory Operation Timing ƒ Write timing: ƒ Critical times measured with respect to edges of write pulse (1-0-1): • Address must be established at least a specified time before 1-0 and held for at least a specified time after 0-1 to avoid disturbing stored contents of other addresses • Data must be established at least a specified time before 0-1 and held for at least a specified time after 0-1 to write correctly Write cycle Clock Address Memory enable Read/ Write Data input 20 ns T1 T2 T3 T4 T1 Address valid Data valid 75 ns
  • 12. Chapter 9 12 RAM Integrated Circuits ƒ Types of random access memory • Static – information stored in latches • Dynamic – information stored as electrical charges on capacitors ƒ Charge “leaks” off ƒ Periodic refresh of charge required ƒ Dependence on Power Supply • Volatile – loses stored information when power turned off • Non-volatile – retains information when power turned off
  • 13. Chapter 9 13 Static RAM  Cell ƒ Array of storage cells used to implement static RAM ƒ Storage Cell • SR Latch • Select input for control • Dual Rail Data Inputs B and B • Dual Rail Data Outputs C and C Select B RAM cell C C B S R Q Q
  • 14. Chapter 9 14 Static RAM  Bit Slice ƒ Represents all circuitry that is required for 2n 1-bit words • Multiple RAM cells • Control Lines: ƒ Word select i – one for each word ƒ ƒ Bit Select • Data Lines: ƒ Data in ƒ Data out Write / ad Re (a) Logic diagram Select S R Q Q B RAM cell C C B Select S R Q Q RAM cell X Word select 0 Word select 2n  1 Data in Write logic Read/ Write Bit select S R Q Q X X X Word select 0 Word select 1 Word select 2n Read/Write logic Data in Data out Read/ Write Bit select (b) Symbol RAM cell RAM cell RAM cell Data out Read logic  1
  • 15. Chapter 9 15 Read/ ƒ To build a RAM IC from a RAM slice, we need: • Decoder 2n-Word × 1-Bit RAM IC  decodes the n address lines to 2n word select lines • A 3-state buffer  • on the data output permits RAM ICs to be combined into a RAM with c × 2n words Word select Read/Write logic Data in Data out Write Bit select (b) Block diagram RAM cell RAM cell RAM cell Data input Chip select Read/Write Data output A3 A2 A1 A0 23 22 21 20 4-to-16 Decoder 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 A3 A2 A1 A0 Data input Data output (a) Symbol Read/ Write Memory enable 16 x 1 RAM
  • 16. Chapter 9 16 ƒ Memory arrays can be very large => • Large decoders • Large fanouts for the bit lines • The decoder size and fanouts can be reduced by approximately by using a coincident selection in a 2-dimensional array • Uses two decoders, one for words and one for bits • Word select becomes Row select • Bit select becomes Column select ƒ See next slide for example • A3 and A2 used for Row select • A1 and A0 for Column select Cell Arrays and Coincident Selection n
  • 17. Chapter 9 17 Cell Arrays and Coincident Selection (continued) Data input Read/Write X X X A1 A0 RAM cell 0 RAM cell 4 RAM cell 8 RAM cell 12 Read/Write logic Data in Data out Read/ Write Bit select RAM cell 1 RAM cell 5 RAM cell 9 RAM cell 13 Read/Write logic Data in Data out Read/ Write Bit select RAM cell 2 RAM cell 6 RAM cell 10 RAM cell 14 Read/Write logic Data in Data out Read/ Write Bit select RAM cell 3 RAM cell 7 RAM cell 11 RAM cell 15 Read/Write logic Data in Data out Read/ Write Bit select Column decoder 2-to-4 Decoder with enable 21 20 0 1 Column select 2 Enable 3 Chip select Data output Row select Row decoder A2 A3 X 2-to-4 Decoder 20 21 1 2 3 0
  • 18. Chapter 9 18 RAM ICs with > 1 Bit/Word ƒ Word length can be quite high. ƒ To better balance the number of words and word length, use ICs with > 1 bit/word ƒ See Figure 9-8 for example • 2 Data input bits • 2 Data output bits • Row select selects 4 rows • Column select selects 2 pairs of columns
  • 19. Chapter 9 19 Making Larger Memories ƒ Using the CS lines, we can make larger memories from smaller ones by tying all address, data, and R/W lines in parallel, and using the decoded higher order address bits to control CS. ƒ Using the 4-Word by 1- Bit memory from before, we construct a 16-Word by 1-Bit memory. ⇒ D3 S1 S0 D2 D1 D0 Decoder R/W A2 A3 A1 A0 Data In Data Out R/W CS A0 A1 D-In D-Out R/W CS A0 A1 D-In D-Out R/W CS A0 A1 D-In D-Out R/W CS A0 A1 D-In D-Out
  • 20. Chapter 9 20 Making Wider Memories ƒ To construct wider memories from narrow ones, we tie the address and control lines in parallel and keep the data lines separate. ƒ For example, to make a 4- word by 4-bit memory from 4, 4-word by 1-bit memories ⇒ ƒ Note: Both 16x1 and 4x4 memories take 4-chips and hold 16 bits of data. R/W A1 A0 Data In Data Out R/W CS A0 A1 D-In D-Out R/W CS A0 A1 D-In D-Out R/W CS A0 A1 D-In D-Out R/W CS A0 A1 D-In D-Out CS 3 2 1 0 3 2 1 0
  • 21. Chapter 9 21 Dynamic RAM (DRAM) ƒ Basic Principle: Storage of information on capacitors. ƒ Charge and discharge of capacitor to change stored value ƒ Use of transistor as “switch” to: • Store charge • Charge or discharge ƒ See next slide for circuit, hydraulic analogy, and logical model.
  • 22. Chapter 9 22 Dynamic RAM (continued) (a) (c) Select D C Q B DRAM cell model C (f) (g) (h) Select B T C DRAM cell To Pump (b) (d) (e) Stored 1 Stored 0 Write 1 Write 0 Read 0 Read 1
  • 23. Chapter 9 23 Dynamic RAM - Bit Slice ƒ C is driven by 3-state drivers ƒ Sense amplifier is used to change the small voltage change on C into H or L ƒ In the electronics, B, C, and the sense amplifier output are connected to make destructive read into non-destructive read Data in (b) Symbol (a) Logic diagram Select B Select Word select 0 Word select 2n2 1 Write logic Bit select Data out Read logic D C Q DRAM cell model D C Q DRAM cell model C Sense amplifier Read/Write logic Data in Data out Bit select DRAM cell DRAM cell DRAM cell Word select 0 Word select 1 Word select 2n2 1 Read/ Write Read/ Write
  • 24. Chapter 9 24 Dynamic RAM - Block Diagram ƒ Block Diagram – See Figure 9-14 in text ƒ Refresh Controller and Refresh Counter ƒ Read and Write Operations • Application of row address • Application of column address • Why is the address split? • Why is the row address applied first?
  • 25. Chapter 9 25 Dynamic RAM Read Timing Read cycle 20 ns T1 T2 T3 T4 T1 Data valid 65 ns Hi-Z Read/ Write Data output Clock Row Address Column Address RAS CAS Address Output enable
  • 26. Chapter 9 26 DRAM Types ƒ Types to be discussed • Synchronous DRAM (SDRAM) • Double Data Rate SDRAM (DDR SDRAM) • RAMBUS® DRAM (RDRAM) ƒ Justification for effectiveness of these types • DRAM often used as a part of a memory hierarchy (See details in chapter 14) • Reads from DRAM bring data into lower levels of the hierarchy • Transfers from DRAM involve multiple consecutively addressed words • Many words are internally read within the DRAM ICs using a single row address and captured within the memory • This read involves a fairly long delay
  • 27. Chapter 9 27 DRAM Types (continued) ƒ Justification for effectiveness of these types (continued) • These words are then transferred out over the memory data bus using a series of clocked transfers • These transfers have a low delay, so several can be done in a short time • The column address is captured and used by a synchronous counter within the DRAM to provide consecutive column addresses for the transfers ƒ burst read – the resulting multiple word read from consecutive addresses
  • 28. Chapter 9 28 Synchronous DRAM ƒ Transfers to and from the DRAM are synchronize with a clock ƒ Synchronous registers appear on: • Address input • Data input • Data output ƒ Column address counter • for addressing internal data to be transferred on each clock cycle • beginning with the column address counts up to column address + burst size – 1 ƒ Example: Memory data path width: 1 word = 4 bytes Burst size: 8 words = 32 bytes Memory clock frequency: 5 ns Latency time (from application of row address until first word available): 4 clock cycles Read cycle time: (4 + 8) x 5 ns = 60 ns Memory Bandwidth: 32/(60 x 10-9) = 533 Mbytes/sec
  • 29. Chapter 9 29 Double Data Rate Synchronous DRAM ƒ Transfers data on both edges of the clock ƒ Provides a transfer rate of 2 data words per clock cycle ƒ Example: Same as for synchronous DRAM • Read cycle time = 60 ns • Memory Bandwidth: (2 x 32)/(60 x 10-9) = 1.066 Mbytes/sec
  • 30. Chapter 9 30 RAMBUS DRAM (RDRAM) ƒ Uses a packet-based bus for interaction between the RDRAM ICs and the memory bus to the processor ƒ The bus consists of: • A 3-bit row address bus • A 5-bit column address bus • A 16 or 18-bit (for error correction) data bus ƒ The bus is synchronous and transfers on both edges of the clock ƒ Packets are 4-clock cycles long giving 8 transfers per packet representing: • A 12-bit row address packet • A 20-bit column address packet • A 128 or 144-bit data packet ƒ Multiple memory banks are used to permit concurrent memory accesses with different row addresses ƒ The electronic design is sophisticated permitting very fast clock speeds
  • 31. Chapter 9 31 Other RAM Types ƒ XDR – Rambus RAM uses 8bit lanes, 400, 600, 800MHz, Octal Data Rate, 8 or 16 lanes (Bi- directional diferrential signalling) ƒ DDR2 SDRAM – doubled bus frequency using same physical clock. Long latency. ƒ RLDRAM – Reduced latency DRAM, response times similar to SRAM, restricted bank access ƒ QDR SRAM – SRAM on corner transitions.
  • 32. Chapter 9 32 Arrays of DRAM Integrated Circuits ƒ Similar to arrays of SRAM ICs, but there are differences typically handled by an IC called a DRAM controller: • Separation of the address into row address and column address and timing their application • Providing RAS and CAS and timing their application • Performing refresh operations at required intervals • Providing status signals to the rest of the system (e.g., indicating whether or not the memory is active or is busy performing refresh)
  • 33. Chapter 9 33 Terms of Use ƒ © 2004 by Pearson Education,Inc. All rights reserved. ƒ The following terms of use apply in addition to the standard Pearson Education Legal Notice. ƒ Permission is given to incorporate these materials into classroom presentations and handouts only to instructors adopting Logic and Computer Design Fundamentals as the course text. ƒ Permission is granted to the instructors adopting the book to post these materials on a protected website or protected ftp site in original or modified form. All other website or ftp postings, including those offering the materials for a fee, are prohibited. ƒ You may not remove or in any way alter this Terms of Use notice or any trademark, copyright, or other proprietary notice, including the copyright watermark on each slide. ƒ Return to Title Page