Unit 4
Unit 4
Unit 4
1
2
MEMORY UNIT
Sandesh
3 Memory Unit
Main Memory
MAIN MEMORY
Sumanti
12
Main memory
SRAM DRAM
• Does not lose its content • Loses its content after few
until computer is turned off seconds
• Information is stored in form of • Information is stored in the
voltage form of charge
• faster • slower
14
ROM
• Permanent memory
• Stores information required for computer
operations
• Types of rom(PROM,EPROM,EEPROM)
1 Boot Strap loader
5
Shiv
RAM AND ROM CHIPS
22
RAM chip:
RAM chip is better suited for communication with the CPU if it has one
or more control inputs that select the chip only when needed.
Another common feature is a bidirectional data bus that allows the
transfer of data either from memory to CPU during a read operation ,or
from CPU to memory during write operation.
The RAM integrated circuit chips are further classified into two possible
operating modes, static and dynamic.
Fig. RAM chip
23
24
A 128 * 8 RAM chip has a memory capacity of 128 words of eight bits (one
byte) per word. This requires a 7-bit address and an 8-bit bidirectional data
bus.
The 8-bit bidirectional data bus allows the transfer of data either from
memory to CPU during a read operation or from CPU to memory during
a write operation.
The read and write inputs specify the memory operation, and the two chip
select (CS) control inputs are for enabling the chip only when the
microprocessor selects it.
The bidirectional data bus is constructed using three-state buffers.
The output generated by three-state buffers can be placed in one of the three
possible states which include a signal equivalent to logic 1, a signal equal to
logic 0, or a high-impedance state.
ROM
The primary component of the main memory is RAM integrated circuit
chips, but a portion of memory may be constructed with ROM chips.
A ROM memory is used for keeping programs and data that are
permanently resident in the computer.
Apart from the permanent storage of data, the ROM portion of main
memory is needed for storing an initial program called a bootstrap
loader. The primary function of the bootstrap loader program is to
start the computer software operating when power is turned on.
ROM chips are also available in a variety of sizes and are also used as
per the system requirement. The following block diagram
demonstrates the chip interconnection in a 512 * 8 ROM chip.
ROM
2 chip
5
A ROM chip is
unidirectional.
The magic logic for each word can be derived from the
comparison algorithm for two binary numbers.
The equality of two bits can be expressed logically by
the Boolean function
Xj=AiFj +A’i+F’j
Wherex1=1 if the pair of bits in position j are equal;
otherwise, x1=0.
Fora word i to be equal the argument in A we must
have all x1 variables equal to 1.the Boolean condition
is
Mi=x , x ,x ,………..x
1 2 3 n
M1=(x1+k1’)(x2+k2)(x3+k3)…..(xn+kn)
Read operation
VIRTUAL MEMORY
Sanja
2 Address space and Memory space
9
THANK
YOU!