BENC 4453: Computer Architecture: Electronic Memory
BENC 4453: Computer Architecture: Electronic Memory
COMPUTER
ARCHITECTURE
Electronic Memory
“ Computing is a wild dance
between central processing
unit (CPU) and memory.
2
Electronic Memory
● Instructions in memory are fetched and CPU executes
them.
3
“ To understand this dance
you need an understanding
of both the CPU and
Memory.
4
Electronic Memory
● Mistake to consider CPU as a star of the show.
5
“ Rotating Magnetic Memory
– Loud and prone to
vibration
6
Magnetic Core
Memory
● Magnetic core memory systems use tiny toroidal
(ring-shaped) magnetic beads called cores.
7
Magnetic Core
Memory
8
Magnetic Core
Memory
● The state of any given bit is represented not by the
presence or absence of a magnetic field but by its
orientation.
9
Magnetic Core
Memory
● The toroidal cores are woven into a rectangular
matrix of very fine wire supported by a sheet
of circuit board material.
11
Magnetic Core
Memory
● Thus, the core
through which both wires pass is given enough of a
magnetic pulse to change its orientation.
12
Static Random Access Memory
(SRAM)
● Intel’s TTL 64-bit 3101 chip and Intel’s 256-bit 1101 chip
were static random access memory (SRAM) devices.
13
Static Random Access Memory
(SRAM)
● The basic logic element in SRAM chips is the flip-flop.
● Because it has
two states, and because binary digits have two possible
values, a flip-flop can “remember” a
single bit.
14
Static Random Access Memory
(SRAM) ● A typical SRAM cell is made up of six
MOSFETs.
● Two additional access transistors
serve to control the access to a
storage cell during read and write
operations.
15
Static Random Access Memory
(SRAM) ● Access to the cell is enabled by the
word line (WL in figure) which controls
the two access transistors M5 and
M6 which, in turn, control whether the
cell should be connected to the bit
lines: BL and BL.
● Standby
○ If the word line is not asserted, the access transistors M5 and
M6 disconnect the cell from the bit lines. The two cross-coupled
inverters formed by M1 – M4 will continue to reinforce each other as
long as they are connected to the supply.
● Reading
○ In theory, reading only requires asserting the word line WL and
reading the SRAM cell state by a single access transistor and bit line,
e.g. M6, BL. However, bit lines are relatively long and have large
17
parasitic capacitance.
SRAM - Operation
● Reading
○ The read cycle is started by precharging both bit lines BL and BL*, i.e.,
driving the bit lines to a threshold voltage (midrange voltage between
logical 1 and 0) by an external module (not shown in the figures).
○ Then asserting the word line WL enables both the access transistors
M5 and M6, which causes the bit line BL voltage to either slightly drop
(bottom NMOS transistor M3 is ON and top PMOS transistor M4 is off) or
rise (top PMOS transistor M4 is on).
○ If we wish to write a 0, we would apply a 0 to the bit lines, i.e.
setting BL to 1 and BL to 0.
19
Address Lines and Data Lines
● Address Lines
○ used to select
which memory location is to be read or
written to.
● Data Lines
○ carry data either out of the
system, when a value is read, or into the
system, when a value is written.
● Control Lines
○ These have various functions, the most
important of which is to specify whether a
selected memory location is to be read
from or
written to.
20
Memory Chip Addresses Cell
● Each cell holds a single binary digit, which
may be either a 1 or a 0.
● A decoder is a logic element that accepts a
binary number as an input value and uses it
to select one, and only one, of several output
lines.
● Each decoder accepts a 3-bit binary number
and selects one of eight output lines.
● The state of the read/write control line
determines whether the selected cell will
be read from or written to.
● When the control line is set to 0, a read is
performed and whatever value is stored in
the selected cell is placed on the data line.
● When the control line is set to 1, a write is
performed and whatever value is on the data
line is written to the 21
“
1972 - Intel’s ground-breaking 8008
CPU - pulling an 8-bit byte out of a
memory chip
22
Combining Memory Chips
into Memory Systems
● Each 2102 chip stores 1,024 bits.
● The 2102’s 10 address lines are
connected in parallel, so all 10
address lines connect to all eight
chips.
● An address placed on the address
lines will select the corresponding
bit in each chip.
● That bit will be delivered to each
chip’s data pin.
23
Combining Memory Chips
into Memory Systems
● A full 8-bit byte will be available on
the row of 10 data pins with only
one read from memory.
26
Dynamic Random Access Memory
(DRAM) ● It “flips the switch” of all the MOS
transistors in a row at once, causing them
to either conduct or not conduct.
● The cell’s word line is selected. This turns on the MOS transistor of the
selected cell (as well as all the other cells in the row) and connects the
capacitor to the bit line.
29
Read from a DRAM cell
● The capacitor’s charge state affects the voltage on the bit line. If the
capacitor has been charged, the bit line’s voltage goes up slightly. (Very
slightly!) If the capacitor has been discharged, the bit’s line’s voltage goes
down slightly. This change in voltage is exceptionally small and could
amount to the difference of only one million electrons.
● The sense amplifier converts this tiny change in voltage to a digital state of
either 1 or 0.
● The read operation destroys charge in the capacitor of the selected cell and
all the other cells in the row. The state that was read must then be
refreshed and written back to all cells in the row.
30
Writing to a DRAM cell
● The cell’s bit line is given a voltage corresponding to the value to be written
to the cell. Typically, a 1-bit is represented by full voltage and a 0-bit by no
voltage.
● The cell’s word line is selected. This turns on the MOS transistor and allows
the voltage applied to the bit line to pass into the cell’s capacitor.
31
“Note - DRAM cells are not accessed
one at a time.
Because they share a word line, an
entire row of cells is accessed at once.
32
“Opening” a row
● Reading the values from an entire row of cells into temporary storage at the
edge of the SDRAM chip.
“Closing” a row
● Writing back any changes from the temporary storage to the cells
themselves.
33
“ In modern computers, system
memory is almost always read and
written in chunks called cache lines,
which are maintained in fast memory
stores called cache .
34
DRAM Refresh State
● A row is refreshed under two circumstances:
35
DRAM Refresh State
● Rows are refreshed simply by reading the state of the cells in the row and
then immediately writing it back to the cells.
● This reading and writing is not done through the CPU, or in fact with any
involvement of the CPU at all.
● Taken together, the memory controller and the DRAM chips that it manages
are called a memory system.
36
DRAM Speed
● The speed with which data moves between memory systems and the CPU
can dominate the overall performance of the entire computer.
37
“
SDRAM – First Generation – Referred
as Single Data Rate
38
DDR, DDR2 DDR3 and DDR4
SDRAM ● SDR SDRAM is called “single data rate”
because
it can transfer a single data word per clock
cycle.
● After the internal logic in the SDRAM has read the first column,
subsequent columns from the same row are available for “free” without
requiring another time-consuming access to the array.
40
DDR, DDR2 DDR3 and DDR4
SDRAM ● With 32-bit SDR memory you could
efficiently read a single 32-bit word,
followed by another 32-bit word from
another location in memory, but DDR
forces you to take two adjacent 32-bit
words, one on the rising edge and one
on the falling edge of the clock cycle.
41
DDR, DDR2 DDR3 and DDR4
SDRAM ● DDR3 doubles the requirement again
to eight words and supports data
rates of 1.6GHz or higher.
42
DDR, DDR2 DDR3 and DDR4
SDRAM ● The improvement is significant: DDR3
memory uses 30 percent less power
than DDR2 memory.
44
Error-Correcting Code (ECC)
Memory ● Error-Correcting Code (ECC) memory was
developed to prevent memory corruption
from background radiation.
45
Thanks!
Any questions?
46