Memory Hierarchy in Computer Architecture
Memory Hierarchy in Computer Architecture
A memory element is the set of storage devices which stores the binary data in
the type of bits. In general, the storage of memory can be classified into two
categories such as volatile as well as non- volatile.
The primary memory is also known as internal memory, and this is accessible
by the processor straightly. This memory includes main, cache, as well as CPU
registers.
Secondary Memory
Ability
The ability of the memory hierarchy is the total amount of data the memory
can store. Because whenever we shift from top to bottom inside the memory
hierarchy, then the capacity will increase.
Access Time
The access time in the memory hierarchy is the interval of the time among the
data availability as well as request to read or write. Because whenever we shift
from top to bottom inside the memory hierarchy, then the access time will
increase.
When we shift from bottom to top inside the memory hierarchy, then the cost
for each bit will increase which means an internal Memory is expensive
compared with external memory.
Registers
Usually, the register is a static RAM or SRAM in the processor of the computer
which is used for holding the data word which is typically 64 or 128 bits. The
program counter register is the most important as well as found in all the
processors. Most of the processors use a status word register as well as an
accumulator. A status word register is used for decision making, and the
accumulator is used to store the data like mathematical operation. Usually,
computers like complex instruction set computers have so many registers for
accepting main memory, and RISC- reduced instruction set computers have
more registers.
Cache Memory
Cache memory can also be found in the processor, however rarely it may be
another IC (integrated circuit) which is separated into levels. The cache holds
the chunk of data which are frequently used from main memory. When the
processor has a single core then it will have two (or) more cache levels rarely.
Present multi-core processors will be having three, 2-levels for each one core,
and one level is shared.
Main Memory
The main memory in the computer is nothing but, the memory unit in the CPU
that communicates directly. It is the main storage unit of the computer. This
memory is fast as well as large memory used for storing the data throughout
the operations of the computer. This memory is made up of RAM as well as
ROM.
Magnetic Disks
The magnetic disks in the computer are circular plates fabricated of plastic
otherwise metal by magnetized material. Frequently, two faces of the disk are
utilized as well as many disks may be stacked on one spindle by read or write
heads obtainable on every plane. All the disks in computer turn jointly at high
speed. The tracks in the computer are nothing but bits which are stored within
the magnetized plane in spots next to concentric circles. These are usually
separated into sections which are named as sectors.
Magnetic Tape
Thus, this is all about memory hierarchy. From the above information, finally,
we can conclude that it is mainly used to decrease the bit cost, access
frequency, and to increase the capacity, access time. So it is up to the designer
how much they need these characteristics for satisfying the necessities of their
consumers. Here is a question for you, memory hierarchy in OS?