Professional Documents
Culture Documents
1
Basic Operations on Memory Cell
2
Memory classification
Memory is one of the most essential elements of a computing system because without it computer can’t perform simple tasks. Computer
memory is of two basic type – Primary memory(RAM and ROM) and Secondary memory(hard drive, CD,etc.). Random Access Memory
(RAM) is primary- volatile memory and Read Only Memory (ROM) is primary-non-volatile memory.
1. PROM (Programmable read-only memory) – It can be programmed by user. Once programmed, the data and instructions in it
cannot be changed.
2. EPROM (Erasable Programmable read only memory) – It can be reprogrammed. To erase data from it, expose it to ultra violet
light. To reprogram it, erase all the previous data.
3. EEPROM (Electrically erasable programmable read only memory) – The data can be erased by applying electric field, no need
of ultra violet light. We can erase only portions of
the chip.
Memory Cell
• Over the history of computing, different memory cell architectures have been used,
• Eg. core memory and bubble memory.
• Today, the most common memory cell architecture is MOS memory,
• MOS consists of metal–oxide–semiconductor (MOS) memory cells.
• Modern random-access memory (RAM) uses MOS field-effect transistors (MOSFETs) as flip-flops, along with
MOS capacitors for certain types of RAM.
• The SRAM (static RAM) memory cell is a type of flip-flop circuit, typically implemented using MOSFETs.
These require very low power to keep the stored value when not being accessed.
This is the
construction of
SRAM with 6
MOSFETs
Memory Cell
• A second type, DRAM (dynamic RAM), is based around MOS capacitors. Charging and discharging a
capacitor can store a '1' or a '0' in the cell. However, the charge in this capacitor will slowly leak away, and
must be refreshed periodically. Because of this refresh process,
• DRAM uses more power, but can achieve greater storage densities.
• Non-volatile memory technologies including EPROM, EEPROM and flash memory use floating-gate memory
cells, which are based around floating-gate MOSFET transistors.
Logic circuits without memory cells or feedback paths are called combinational,
their outputs values depend only on the current value of their input values.
They do not have memory. In computers, it allows to store both programs and data and memory cells are also used for
temporary storage of the output of combinational circuits to be used later by digital systems.
Logic circuits that use memory cells are called sequential circuits.
Its output depends not only on the present value of its inputs, but also on the circuits previous state, as determined by the
values stored on its memory cells.
These circuits require a timing generator or clock for their operation.
Computer memory used in most contemporary computer systems is built mainly out of DRAM cells; since the layout is
much smaller than SRAM, it can be more densely packed yielding cheaper memory with greater capacity.
Since the DRAM memory cell stores its value as the charge of a capacitor, and there are current leakage issues, its value
must be constantly rewritten.
This is one of the reasons that make DRAM cells slower than the larger SRAM (Static RAM) cells, which has its value
always available.
That is the reason why SRAM memory is used for on-chip cache included in modern microprocessor chips.
History of Computer Memory
• 1946 Freddie Williams applied for a patent on his cathode-ray tube (CRT) storing device (Williams tube) with 128 40-
bit words.
• It was operational in 1947 and is considered the first practical implementation of random-access memory (RAM).
• In that year, the first patent applications for magnetic-core memory were filed. Later practical magnetic-core memory
was developed by An Wang , and improved by Jay Forrester and Jan A. Rajchman in the early 1950s,
• Later commercialized with the Whirlwind computer in 1953.
Semiconductor memory began in the early 1960s with bipolar memory cells, made of bipolar transistors. While it
improved performance, it could not compete with the lower price of magnetic-core memory.
MOS memory cells
Intel 1103, a metal-oxide-semiconductor (MOS) dynamic random-access memory (DRAM) chip.
The invention of the MOSFET (metal-oxide-semiconductor field-effect transistor), also known as the MOS transistor, by
Mohamed M. Atalla and Dawon Kahng at Bell Labs in 1959,[11] enabled the practical use of metal–oxide–semiconductor
(MOS) transistors as memory cell storage elements, a function previously served by magnetic cores. The first modern
memory cells were introduced in 1964, when John Schmidt designed the first 64-bit p-channel MOS (PMOS) static
random-access memory (SRAM).
The two most common types of DRAM memory cells since the 1980s have been trench- capacitor cells and stacked-
capacitor cells] Trench-capacitor cells are where holes (trenches) are made in a silicon substrate, whose side walls
are used as a memory cell, whereas stacked-capacitor cells are the earliest form of three-dimensional memory (3D
memory), where memory cells are stacked vertically in a three-dimensional cell structure. Both debuted in 1984,
when Hitachi introduced trench-capacitor memory and Fujitsu introduced stacked-capacitor memory.
SRAM and DRAM further..
Storage
The storage element of the DRAM memory cell is the capacitor. The charge stored in the capacitor degrades over time,
so its value must be refreshed (read and rewritten) periodically. The n MOS transistor acts as a gate to allow reading or
writing when open or storing when closed.
Reading
For reading the Word line (2) drives a logic 1 (voltage high) into the gate of the n MOS transistor (3) which makes it
conductive and the charge stored at the capacitor (4) is then transferred to the bit line (1). The bit line will have a
parasitic capacitance (5) that will drain part of the charge and slow the reading process. The capacitance of the bit line
will determine the needed size of the storage capacitor (4). It is a trade-off. If the storage capacitor is too small, the
voltage of the bit line would take too much time to raise or not even rise above the threshold needed by the amplifiers
at the end of the bit line. Since the reading process degrades the charge in the storage capacitor (4) its value is rewritten
after each read.
Writing
The writing process is the easiest, the desired value logic 1 (high voltage) or logic 0 (low voltage) is driven into the bit
line. The word line activates the n MOS transistor (3) connecting it to the storage capacitor (4). The only issue is to
keep it open enough time to ensure that the capacitor is fully charged or discharged before turning off the nMOS
transistor (3).
Flip-flop
The flip-flop has many different implementations, its storage element is usually a Latch consisting of a NAND gate
loop or a NOR gate loop with additional gates used to implement clocking. Its value is always available for reading as
an output. The value remains stored until it is changed through the set or reset process. Flip-flops are typically
implemented using MOSFET transistors.
•SRAM & DRAM Advantages :
•Advantages of SRAM:
The SRAM provides a large storage capacities on on-chip memories
A typically the SRAMs have very low latency and high performance
(Latency is the time delay between sending a request to read/write a
memory byte/word and receiving the response after the request)
It is very easy to design and interface compared with other memories
Advantages of DRAM:
The storage capacity is very high
13
Memory Hierarchy
Q)Write how
following parameters
changes as we move
down this hierarchy?
a. Capacity
b. Cost per bit
c. Access Time
d. Frequency of
access by CPU
14
Essential Characteristics
needed in memory
15
Computer Bus
16
Memory Capacity
• Single memory cell has 1-bit capacity. 8 Bits make
one Byte. Half a Byte is known as a Nibble
• Usable max size of memory is determined by the size
of the address bus of the computer.
• Question - What is the number of memory locations
that can be used by a computer that generates 16-bit
addresses?
• Word length determines the capacity per memory
location. If the word length is 2 bytes in the above
example, what is the size of memory in kb?
17
Memory Capacity
•Word size
– The natural unit of organisation of memory.
• Number of Bytes
– For internal memory, this is typically expressed in terms of
bytes (1 byte 8 bits) or words.
– Common word lengths are 8, 16, and 32 bits.
– External memory capacity is also typically expressed in
terms of bytes.
18
Unit of Transfer
– For internal memory, the unit of transfer is equal
to the number of electrical lines into and out of
the memory module.
– This may be equal to the word length, but is often
larger, such as 64, 128, or 256 bits.
19
• There is a three related concepts for internal memory:
– 1. Word
• It is the “natural” unit of organization of memory.
• The size of the word is typically equal to the number of bits used to
represent an integer and to the instruction length.
– 2.Addressable units
• In some systems, the addressable unit is the word.
• The relationship between the length in bits A of an address and the
number N of addressable units is:
2A = N
– 3. Unit of transfer
• For main memory, this is the number of bits read out of or written into
memory at a time.
• For external memory, data are often transferred in much larger units than
a word, and these are referred to as blocks.
20
Processor and Memory Interconnection
• Processor uses the address lines to specify the memory location involved in
a data transfer operation,
• Uses the data lines to transfer the data.
• At the same time, the control lines carry the command indicating a Read or
Write operation and whether a byte or a word is to be transferred.
Ref. Course Text
21
Speed of Memory
22
Improvement of Memory speed
RAM Explained
24
Memory Organisation -Location
• Memory is internal and external to the computer
• Internal memory
– Internal memory is often referred as main memory
– The processor requires its own memory inside the CPU.
– They are called registers
– Cache is another form of internal memory
• External memory
– External memory consists of peripheral storage devices.
– They include disks, tapes that store and accessible by
the processor via IO controls
25
Organisation of Memory
26
Organisation of Memory
• Memory cells are organized as an array (Rows and Columns)
inside a chip
• Each raw denotes a “Word” of Memory and each word is
connected to a common line called word line.
• Word line is connected to the decoder in the chip.
• Cells in each column are connected to a Read/Write circuit by
two bit lines,
• Read/Write circuits are connected to the data input/output
lines of the chip.
• During a Read operation, these circuits sense, or read, the
information stored in the cells selected by a word line and
place this information on the output data lines.
• During a Write operation, the Read/Write circuits receive
input data and store them in the cells of the selected word. 27
Organisation of Memory
• The data input and the data output of each Read/Write circuit
are connected to a single bidirectional data line that connects
to the data lines (data bus) of a computer.
• Two control lines, R/W’ and CS, are provided. The R/W’
(Read/Write) input specifies the required operation, and the
CS (Chip Select) input selects a given chip in a multichip
memory system.
• It also needs two lines for power supply connections.
28
Organisation of Memory
29
Test Your Knowledge
a. Address Decoder
b. Address Lines
c. Data Lines
d. Chip Select
e. R/W’
30
Test Your Knowledge
31
Test Question
• A memory chip has x number of address pins and n number of
data pins. What is the total memory capacity of this chip?
• 32
Test Question
• Latency time of a particular memory is given as 125ns and the
cycle time is 150ns . What is the minimum time required to
perform 5 consecutive memory read operations in this
memory chip?
• How will this time change if its 5 consecutive Write
operations?
• 33
Memory data R/W Timing
Diagrams
34
Memory data R/W steps
35
Question
36
Organisation of Memory 2
38
Address Decoding
•Address decoding refers to the way a computer system decodes
the addresses on the address bus to select memory locations in
one or more memory or peripheral devices.
•In 68000 processor, a 23-bit address bus permits 223 16-bit
words to be uniquely addressed.
•In full address decoding, each addressable memory location
corresponds to a unique address value on the address bus.
•In partial address decoding, part of address is decoded.
•In partial address decoding full memory capacity may not be
used.
39
40
DRAM Packaging Challenge
• It is difficult to pack large numbers of cells into single DRAM chips, with
normal numbers of address pins.
• Eg. A 64K-bit chip (64K x 1) must have 16 address lines and
• one data line, requiring 16 pins to send in the address and further pins for
other controls.
• When the number of pins is larger its very challenging to compress them
into a single IC with practical sizes and proportions
• Therefore, Multiplexing/demultiplexing reduces the number of pins.
• This goes one step further from previous block diagram
• Addresses are split & each half is sent through the same pins.
• Internally, the DRAM structure is divided into a square of rows and
columns.
– The first half of the address is called the row.
– The second half is called the column.
41
Overcoming DRAM Packaging Challenge
• In a 64K x 1 organization, the first half
address sent through pins A0–A7.
– Internal latches grab the first half Using
RAS (row address strobe)
• The second address half is sent
through the same pins
– Activating CAS (column address strobe),
latches the second half.
• 8 address pins, plus RAS & CAS make a
total of 10 pins
– Instead of 16, without multiplexing.
• There must be a 2-by-1 multiplexer outside
the DRAM chip to access a bit of data from,
both row & column address must be provided.
42
Question- What is the main downside of this solution?
Detail Diagram of Address Multiplexing
43
Question
44
Summary
https://www.youtube.com/watch?v=fpnE6UAfbtU
45
THANK YOU
46