Memory
Memory
Just like a human brain, the digital devices such as computer, microcontroller &
smartphone needs a space to store the information & instruction, this storage space is
called memory or “computer memory” and the building block of memory is called a
memory cell. In simple words, memory is an electronic circuit or device capable of
storing information temporarily or permanently.
Table of Contents
Cache Memory
Primary Memory:
o RAM (Random Access Memory)
DRAM (Dynamic RAM)
SRAM (Static RAM)
o ROM (Read-Only Memory)
PROM (Programmable Read-Only Memory)
EPROM (Erasable Programmable Read-Only Memory)
EEPROM (Electrically Erasable Programmable Read-Only
Memory)
Secondary Memory
o Fixed Memory
o Removable Memory
o Magnetic Memory
o Optical Memory
o Solid-State Memory SSD
Cache Memory
The Cache memory is the fastest type of memory that acts as a buffer to store
temporary data between the processor & data memory. It stores the necessary data
frequently used by the CPU so that it can easily access it. It is the most expensive type
of memory & it is integrated inside the CPU chip.
Primary Memory:
The primary memory or primary storage or main memory is a type of computer memory
that is directly accessed by the CPU. It allows the processor to quickly fetch & execute
the instruction & commands stored in this memory.
The primary memory can store the data permanently such as ROM & temporarily such
as RAM.
The Primary memory is further classified into the following two types; RAM and ROM.
RAM (Random Access Memory)
The RAM has further two types & they are briefly discussed below;
DRAM (Dynamic RAM)
DRAM or Dynamic RAM (Dynamic Random Access Memory) is a type of RAM
where the computer memory cell used for storing a bit of data is made of capacitor &
a transistor. Due to the leakage current of the capacitor, the cell cannot retain the
information for too long. Therefore, the DRAM needs to be refreshed or recharge after a
specific time to maintain the data.
Advantages of DRAM
advantages of DRAM
Each memory cell is made of only one transistor, so its design is simple
The bit per chip density is higher.
The Cost per bit is relatively low
The DRAM is inexpensive.
Power consumption is low because the data is store in a capacitor.
Disadvantages of DRAM;
The memory is volatile.
The cell needs to be refreshed at a constant rate to retain data.
The refreshing consumes extra power.
The circuitry required for refreshing is complex
The DRAM is relatively slower in operation than SRAM
The DRAM is used as the main memory. It is an off-chip memory, placed externally on
the motherboard.
SRAM (Static RAM)
The SRAM or Static RAM is another type of primary memory that stores it data
using flip flop & latches. Each memory cell used for storing a single bit of data is made
of 6 transistors.
Advantage of SRAM
Here are some of the advantages of SRAM over DRAM
There is no leakage current, thus it does not need to be refreshed.
Due to no need for refreshing. The access time is faster.
It is on-chip memory which also increases its operation speed
It does not need extra circuitry for refreshing.
It is relatively very faster than DRAM.
Disadvantages of SRAM
Each cell is made of 6 transistors which require more space than DRAM
It is more expensive than DRAM.
Due to large physical space for each bit, it has very low storage capacity.
The memory is volatile i.e. the data is erased when there is no power.
It consumes more power than DRAM due to a large number of transistors & constant
power supply.
It is comparatively cheaper than RAM
Difference between RAM and ROM
Difference RAM ROM
CPU can easily access data CPU cannot easily access data
CPU Interaction stored in RAM stored in ROM
Function Used for temporary storage Used to store firmware, BIOS, and
Difference RAM ROM
The data stored in PROM is permanently The EPROM can be reprogrammed and
stored and cannot be changed and erased. reusable multiple times.
PROM is more flexible than EPROM. EPROM is less flexible than PROM.
Characteristics of ROM
It is a non-volatile memory or permanent memory.
It stores the instructions regarding the startup (& program code) of a microcontroller
or computer.
The CPU cannot directly access its data.
It can be write once & read multiple times.
It does not need the power to maintain its data.
It has a very low capacity.
It is slower than RAM
Advantages of ROM
The advantages of ROM are as follows −
Non-volatile in nature
Cannot be accidentally changed
Cheaper than RAMs
Easy to test
More reliable than RAMs
Static and do not require refreshing
Contents are always known and can be verified
;;;;;;;;;;;;;;;;;;;;;;;;;
Parallel Adder –
A single full adder performs the addition of two one bit numbers and an input
carry. But a Parallel Adder is a digital circuit capable of finding the
arithmetic sum of two binary numbers that is greater than one bit in length by
operating on corresponding pairs of bits in parallel. It consists of full adders
connected in a chain where the output carry from each full adder is connected
to the carry input of the next higher order full adder in the chain. A n bit parallel
adder requires n full adders to perform the operation. So for the two-bit
number, two adders are needed while for four bit number, four adders are
needed and so on. Parallel adders normally incorporate carry lookahead logic
to ensure that carry propagation between subsequent stages of addition does
not limit addition speed.