MODULE_04
MODULE_04
ON
COMPUTER ORGANIZATION
(BECC0317)
VVCE AUTONOMOUS 2022 SCHEME
MODULE 04
THE MEMORY SYSTEM
Version: 1.0
Release Date: 30th January 2024
by
MOHAMED ANEES
Assistant Professor
Department of Electronics & Communication
Vidyavardhaka College of Engineering, Mysuru
ENGINEERING NOTES / COMPUTER ORGANIZATION / BECCO317 / MODULE 04
TABLE OF CONTENTS
Address Bus: The processor uses the address lines to specify the memory location.
Data Bus: The processor uses the data lines to transfer the data.
Memory Address Register (MAR): The MAR holds the address of the memory
location to be accessed.
Memory Data Register (MDR): The MDR contains the data to be written into or read
out of the addressed location.
Memory Function Completed (MFC): This is the processor’s internal control signal
that indicates that the requested memory operation has been completed.
Memory Access Time: It is the time that elapses between the initiation of an operation
to transfer a word of data and the completion of that operation.
Memory Cycle Time: The minimum time delay required between the initiation of two
successive memory operations.
• CS (Chip Select) input selects a given chip in a multichip memory system. The
̅ control signal specified read or write operation.
𝐑/𝐖
• Each row of cells constitutes a memory word. All cells of a row are connected to
a common line referred to as the word line. The word line is selected by a
decoder.
• The cells in each column are connected to a Sense/Write circuit by two-bit lines,
and the Sense/Write circuits are connected to the data input/output lines of the
chip.
• During a Read operation, the Sense/Write circuits 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 Sense/Write circuits receive input data and store
them in the cells of the selected word.
Two inverters are cross-connected to form a latch. The latch is connected to two-bit
lines by transistors T1 and T2. These transistors act as switches that can be opened or
closed under control of the word line.
Read Operation
▪ In order to read the state of the SRAM cell, the word line is activated to close
switches T1 and T2.
▪ ̅
If the cell is in state 1, the signal on bit line 𝒃 is high and the signal on bit line 𝒃
is low.
▪ The Sense/Write circuit at the end of the two-bit lines monitors their state and
sets the corresponding output accordingly.
Write Operation
▪ ̅,
During a Write operation, the Sense/Write circuit drives bit lines 𝒃 and 𝒃
instead of sensing their state.
▪ ̅ and
It places the appropriate value on bit line 𝒃 and its complement on 𝒃
activates the word line. This forces the cell into the corresponding state, which
the cell retains when the word line is deactivated.
Single Cell
Cell Structure Each bit stored in a flip-flop latch Each bit stored as charge in a capacitor
Refresh
No refresh needed Requires periodic refresh (refresh cycle)
Requirement
Density Lower density Higher density
Power
Higher power consumption Lower power consumption
Consumption
Complexity More complex circuitry Simpler circuitry
Cost Expensive Less expensive than SRAM
Usage Cache memory, registers, small buffers Main memory (RAM) in computers
Internal Organization:
• The cells are organized in the form of a 4K x 4K array.
• The 4096 cells in each row are divided into 512 groups of 8, so that a row can
store 512 bytes of data. Therefore, 12 address bits are needed to select a row.
• Another 9 bits are needed to specify a group of 8 bits in the selected row. Thus, a
21-bit address is needed to access a byte in this memory. The high-order 12 bits
and the low-order 9 bits of the address constitute the row and column address of a
byte, respectively.
4.3.1 ROM
4.3.2 PROM
• PROM stands for programmable ROM. This allows the data to be loaded by a
user.
• Before it is programmed, the memory contains all 0s. The user can insert 1s at the
required locations by burning out the fuses at these locations using high-current
pulses.
• Process of inserting the data is irreversible.
• PROMs provide a faster and considerably less expensive approach because they
can be programmed directly by the user.
4.3.3 EPROM
• EPROM stands for Erasable Programmable Read-Only Memory. EPROM
is known for its ability to be programmed and erased multiple times, making it a
rewritable memory device.
• The programming involves applying higher-than-normal voltages to specific
memory cells, causing them to change their state.
• The erasure process involves exposing the EPROM chip to ultraviolet (UV)
light, which clears the data stored in the memory cells.
• EPROM chips have a small quartz window on the top that allows ultraviolet
light to reach the memory cells. The UV light is used during the erasure
process.
• A significant disadvantage of EPROMs is that a chip must be physically
removed from the circuit for reprogramming.
4.3.4 EEPROM
• EEPROM stands for Electrically Erasable Programmable Read-Only
Memory.
• EEPROM is programmable, allowing users to write data to it using electrical
signals. The programming process involves applying specific voltage levels to
memory cells, causing changes in their state.
• EEPROM is electrically erasable.
• EEPROM has a limited number of write-erase cycles, and repeated
programming and erasing can affect the longevity of the memory cells.
• The processor issues a Read request, a block of words is transferred from the main
memory to the cache, one word at a time. Subsequent references to the data in this
block of words are found in the cache. At any given time, only some blocks in the
main memory are held in the cache. Which blocks in the main memory are in the
cache is determined by a “Mapping Function”.
• When the cache is full, and a block of words needs to be transferred from the main
memory, some block of words in the cache must be replaced. This is determined by a
“Replacement Algorithm”.
• Techniques that automatically move program and data into the physical main memory
when they are required for execution are called virtual memory techniques. The binary
addresses that the processor issues are called virtual or logical addresses.
• A special hardware unit, called the Memory management unit (MMU) translates
virtual addresses into physical addresses.
• When the desired data or instructions are in the main memory they are fetched and
executed.
• If the data are not in the main memory, the MMU causes the operating system to bring
the data into the main memory from the disk. Transfer of data between the disk and the
main memory is performed using the DMA scheme.
• MMU causes the operating system to bring the data from the secondary storage into the
main memory.
Q. CO &
Question Marks
No. BL