Escolar Documentos
Profissional Documentos
Cultura Documentos
Introduc)on
Memory is one of the most important func8onal units of a computer.
Used to store both instruc8ons and data.
Stores as bits (0s and 1s), usually organized in terms of bytes.
How are the data stored in memory accessed?
Lecture 1: EVOLUTION OF COMPUTER SYSTEM
Lecture 23:1:PROCESSOR
Lecture EVOLUTION MEMORY INTERACTION
OF COMPUTER SYSTEM Every memory loca8on has a unique address.
A memory is said to be byte addressable if every byte of data has a unique
address.
DR. KAMALIKA DATTA Some memory systems are word addressable also (every addressed loca8ons
DR. DR. KAMALIKA DATTA
KAMALIKA DATTA
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING, NIT MEGHALAYA consists of mul8ple bytes, say, 32 bits or 4 bytes).
DEPARTMENT OFOF
DEPARTMENT COMPUTER SCIENCE
COMPUTER AND
SCIENCE ANDENGINEERING,
ENGINEERING,NIT
NITMEGHALAYA
MEGHALAYA
2 2 2
3 2 4 2
5 2 6 2
1
12/08/17
7 2 8 2
9 2 10 2
11 2 12 2
2
12/08/17
How a Memory Chip Looks Like? Organiza)on of Cells in an 8x4 Memory Chip
W0 b3 b3 b2 b2 b1 b1 b0 b0
Memory cells are organized in
W1
the form of an array.
W2
Every memory cell holds one
bit of data. Address
W3
Memory Cells
Present-day VLSI technology A0 Decoder W4
A1 3 X 8
allows one to pack billions of W5
A2
bits per chip. W6
A memory module used in
W7
computers typically contains
R/W
several such chips. Sense/Write
circuit
Sense/Write
circuit
Sense/Write
circuit
Sense/Write
circuit
CS
13 2 14 2
15 2 16 2
17 2 18 2
3
12/08/17
Introduc)on
Broadly two types of semiconductor memory systems:
a) Sta8c Random Access Memory (SRAM)
b) Dynamic Random Access Memory (DRAM)
Lecture 1: EVOLUTION OF COMPUTER SYSTEM i. Asynchronous DRAM
Lecture
Lecture 1:24: STATIC AND
EVOLUTION DYNAMICSYSTEM
OF COMPUTER RAM ii. Synchronous DRAM
Vary in terms of speed, density, vola8lity proper8es, and cost.
DR. KAMALIKA DATTA
DR. KAMALIKA DATTA Present-day main memory systems are built using DRAM.
DEPARTMENT OF DR. KAMALIKA DATTA
DEPARTMENT OFCOMPUTER
COMPUTERSCIENCE AND ENGINEERING,
SCIENCE AND ENGINEERING, NIT
NIT MEGHALAYA
MEGHALAYA Cache memory systems are built using SRAM.
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING, NIT MEGHALAYA
2 20 2
21 2 22 2
23 2 24 2
4
12/08/17
25 2 26 2
In State 0 In State 1
Bit lines Bit lines
In state 0 the voltage at X is low and In state 1 the voltage at X is high and
the voltage at Y is high. the voltage at Y is low.
When the voltage at X is low, T3 T4 When the voltage at X is high, T3 T4
transistors (T4 & T5) are on while transistors (T3 & T6) are on while
(T3 & T6) are o. T1 T2 (T4 & T5) are o. T1 T2
X Y X Y
When word line is ac8vated, T1 and When word line is ac8vated, T1 and
T2 are turned on and the bit lines b T5 T6 T2 are turned on and the bit lines b T5 T6
will have 0 and b will have 1. will have 1 and b will have 0.
b Word line b b Word line b
27 2 28 2
29 2 30 2
5
12/08/17
31 2 32 2
Types of DRAM
a) Asynchronous DRAM (ADRAM) b) Synchronous DRAM (SDRAM)
Timing of the memory device is Memory opera8ons are synchronized by a
handled asynchronously. clock.
A special memory controller
circuit generates the signals
Concept of SDRAM came in the 1970s. END OF LECTURE 24
Commercially made available only in 1993
asynchronously. by Samsung.
DRAM chips produced between By 2000 SDRAM replaced almost all types
the early 1970s to mid-1990s of DRAMs in the market.
used asynchronous DRAM. Performance of SDRAM is much higher
compared to all other exis8ng DRAM.
33 2 34 2
Asynchronous DRAM
The 8ming of the memory device is controlled asynchronously.
The device connected to this memory is responsible for the
delay.
Lecture 1: EVOLUTION OF COMPUTER SYSTEM Address lines are divided into two parts and mul8plexed.
Lecture
Lecture 25: ASYNCHRONOUS
1: EVOLUTION DRAM
OF COMPUTER SYSTEM Upper half of address:
Loaded into Row Address Latch using Row Address Strobe (RAS).
DR. KAMALIKA DATTA Lower half of address:
DR.
DR.KAMALIKA
KAMALIKA DATTA
DATTA
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING, NIT MEGHALAYA
DEPARTMENT OFOF
DEPARTMENT COMPUTER SCIENCE
COMPUTER AND
SCIENCE ENGINEERING,
AND ENGINEERING,NIT
NITMEGHALAYA
MEGHALAYA
Loaded into Column Address Latch using Column Address Strobe (CAS).
2 36 2
6
12/08/17
37 38
2 2
READ or WRITE Opera)on For a READ opera8on, the output values Each row of the cell array must be
of the selected circuits are transferred to periodically refreshed to prevent data
For a read opera8on, the x-bit row Acer loading of row address, the column data lines Dm-1 to D0. loss.
address is applied rst. address is selected. For a WRITE opera8on, the data available Cost is low but access 8me is high
It is loaded into Row Address In response to CAS the column address is on the data lines Dm-1 to D0 is compared to SRAM.
Latch in response to the signal loaded into Column Address Latch. transferred to the selected circuits. Very high packing density (few billion
RAS. Then the column decoder selects a This informa8on is stored in the cells per chip).
The read opera8on is performed par8cular column from c columns and an selected cell. Widely used in the main memory of
in which all the cells of the appropriate group of m sense/write Both RAS and CAS are ac8ve low signals. modern computer systems.
selected row are read and circuits are selected.
refreshed. That is they cause latching the addresses
when they move from high to low.
39 40
2 2
41
2
42
2
7
12/08/17
43 44
2 2
Opera8on:
When the DRAM cell is accessed only an m-bit word (data bus width) is transferred.
But when we select a row, we can select not only the data of a single column but
mul8ple columns as well.
A latch can be connected at the output of the sense amplier in each column. END OF LECTURE 25
Once we apply a row address, the row get selected.
Dierent column addresses are required to place dierent bytes on the data lines.
Hence consecu8ve bytes can be transferred by applying consecu8ve column
addresses under the control of successive CAS signals.
This also helps in faster transfer of blocks of data.
This block transfer capability is termed as Fast Page Mode access.
45 46
2 2
Synchronous DRAM
SDRAM is the commonly used name for various kinds of
dynamic RAM that are synchronized with clock.
The structure of this memory is same as asynchronous DRAM.
Lecture 1: EVOLUTION OF COMPUTER SYSTEM The concept of SDRAM were known from 70s but it is rst
Lecture
Lecture 26: SYNCHRONOUS
1: EVOLUTION DRAM
OF COMPUTER SYSTEM developed by Samsung in the year 1993 (KM48SL2000).
By 2000 all kinds of DRAM were replaced by SDRAM.
DR.
DR.
KAMALIKA
DR.KAMALIKA
KAMALIKA
DATTA
DATTA
DATTA
DEPARTMENT
DEPARTMENTOF
OFCOMPUTER
DEPARTMENT COMPUTER
OF SCIENCE
SCIENCE
COMPUTER AND
AND
SCIENCE ENGINEERING,
ENGINEERING,
AND NIT
ENGINEERING,NIT
NIT MEGHALAYA
MEGHALAYA
MEGHALAYA
48
2 2
8
12/08/17
49 50
2 2
51 52
2 2
Standardiza)on
Here the control signals required are provided internally by column SDRAM families are standardized by Joint Electron Device
counter and clock signals. Engineering Council (JEDEC).
New set of data are available in the data lines acer every clock cycle. Various DDRx standards have been formulated and published by
All the opera8ons are triggered at the rising edge of the clock. JEDEC.
It has built-in refresh circuitry, and refresh counter is part of it. Board manufacturers comply by the standards.
53 54
2 2
9
12/08/17
55 56
2 2
DDR3 DDR4
Internal clock: 133 MHz Internal clock: 133 MHz
Bus clock: 533 MHz Bus clock: 1067 MHz
Transfer rate: 8.53 GB/s Transfer rate: 17.06 GB/s
57 58
2 2
Name Internal Clock Bus Clock Transfer Rate A dual in-line memory module (DIMM)
DDR2-400 100 MHz 200 MHz 3.20 GB/s consists of a number of DRAM ICs.
Genera)ons of
DDR2-400 133 MHz 266 MHz 4.26 GB/s These modules are mounted on a
DDRx SDRAM DDR2-667 166 MHz 333 MHz 5.33 GB/s printed-circuit board and designed for
DDR2-800 200 MHz 400 MHz 6.40 GB/s use in PCs, worksta8ons and servers.
Three SRDAM DIMM slots on a PC motherboard
DDR3-800 100 MHz 400 MHz 6.40 GB/s DIMMs have separate electrical
DDR3-1066 133 MHz 533 MHz 8.53 GB/s contacts on each side of the module,
and has a 64-bit data path.
DDR3-1333 166 MHz 667 MHz 10.67 GB/s
DDR3-1600 200 MHz 800 MHz 12.80 GB/s
DDR4-1600 100 MHz 800 MHz 12.80 GB/s
DDR4-2133 133 MHz 1066 MHz 17.06 GB/s
DDR4-3200 200 MHz 1600 MHz 25.60 GB/s Two 8 GB DDR4-2133 ECC 1.2V modules
59 60
2 2
10
12/08/17
61 62
2 2
63 64
2 2
Memory Interfacing
Basic problem:
Interfacing one of more memory modules to the processor.
We assume a single level memory at present (i.e. no cache memory).
Ques8ons to be answered:
Lecture 1: EVOLUTION OF COMPUTER SYSTEM
Lecture 27: MEMORY INTERFACING AND ADDRESSING How the processor address and data lines are connected to memory modules?
Lecture 1: EVOLUTION OF COMPUTER SYSTEM
How are the addresses decoded?
How are the memory addresses distributed among the memory modules?
DR. KAMALIKA DATTA
DR. KAMALIKA DATTA
DR. KAMALIKA DATTA How to speed up data transfer rate between processor and memory?
DEPARTMENT
DEPARTMENTOF
OFCOMPUTER SCIENCEAND
COMPUTER SCIENCE ANDENGINEERING,
ENGINEERING,NITNIT MEGHALAYA
MEGHALAYA
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING, NIT MEGHALAYA
2 66 2
11
12/08/17
67 2 68 2
69 2 70 2
High order address lines (A31 and A30) select one of the memory modules.
MEMORY M0 CS0 When is M0 selected?
A31 CS0 (1G x 8) RD/WR Address is: 0 0 x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
2 x 4 CS1 Range of addresses is: 0x00000000 to 0x3FFFFFFF
A30 Decoder CS2
MEMORY M1 CS1 When is M1 selected?
CS3
(1G x 8) RD/WR Address is: 0 1 x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
PROCESSOR A29 A0 Range of addresses is: 0x40000000 to 0x7FFFFFFF
MEMORY M2 CS2 When is M2 selected?
(1G x 8) RD/WR Address is: 1 0 x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
D7 D0
Range of addresses is: 0x80000000 to 0xBFFFFFFF
MEMORY M3 CS2 When is M3 selected?
(1G x 8) RD/WR Address is: 1 1 x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
Range of addresses is: 0xC0000000 to 0xFFFFFFFF
71 2 72 2
12
12/08/17
73 2 74 2
75 2 76 2
77 2 78 2
13
12/08/17
79 2 80 2
END OF LECTURE 27
81 2
14