Memory Organization Unit-4
Memory Organization Unit-4
1 ORGANIZATION
2
MEMORY
UNIT
3 Memory Unit
an essential component in any general purpose computer since it
is needed to store programs and data.
memory unit that communicates directly with the CPU = main
memory
devices that provide backup storage = auxiliary memory.
Auxiliary memory devices are used to store system
programs, large data files and other backup information.
Only programs and data currently needed by the processor
reside in main memory. All other information is stored in
main memory and transferred to main memory when
needed.
4 Cache
Memory
• Memory that lies in between main memory
and CPU
Holds those parts of the program and data
that are most heavily used
• increases the overall processing speed of
the computer by providing frequently
required data to the CPU at a faster speed.
5
Main Memory
Auxiliary Memory
• Made of devices that provide backup storage
• Magnetic tapes, Magnetic disks
• At the bottom of the hierarchy are the relatively
slow magnetic tapes used to store removable
files whereas at the top level, magnetic disks
used as backup storage
7 Memory
Types
Sequential Access Memory
Main
I/O
Memory
Processor
Magnetic disk
Cach
CP
Memory
e
U
MAIN
MEMORY
12
Main memory
• Basic memory of the computer
• Temprorary memory except ROM
• Faster for read write operation
• Expensive internal memory so not portable.
RAM
• Volatile memory.
• Store the information required during processing
Two types of random Static RAM(SRAM) and
Dynamic RAM(DRAM)
13 TYPES OF
RAM
SRAM DRA
• M
Loses its content after
• Does not lose its content until
computer is turned off few
second
• Information is stored in form of • sInformation is stored in the
voltage form of charge
• faster • slower
14
ROM
• Permanent memory
• Store the information required for computer operations
• Types of ROM (PROM,EPROM,EEPROM)
1 Boot Strap
5
loader
❖ Initial program whose function is to start the computer
operating system after the power is turned on. and it is
stored in the ROM portion of the main memory.
Computer start up :starting the execution of initial
program after
computer is turned on
Boot strap loader loads the portion of disk to main
memory and control is then transferred to OS.
16 Auxiliary
memory(SECONDARY
MEMORY)
• The most common auxilliary device used in the computer
system is magnetic disk and magnetic tape.
• Store large amount of data permanantly.
• Portable
When the RD input is enabled, the content of the selected byte is placed into
the
data bus.
2 ROM
5
chip
A ROM chip is unidirectional.
26
VIRTUAL
MEMORY
28
blocks.
35
Page
Replacement
A virtual memory system is a combination of hardware and
software techniques. A memory management software
system handles:
Which page in main memory should be removed to
make room for a new page?
When a new page is to be transferred from auxiliary memory
to main memory?
36