Professional Documents
Culture Documents
Chapter3 2 1
Chapter3 2 1
Chapter 3 :
Storage Fundamentals
Primary memory
Primary memory is also known as main
memory or may also refer to “Internal
memory.” and primary storage.
All those types of computer memories that
are directly accessed by the processor using
data bus are called primary memory.
That allows a processor to access stores
running programs and currently processed
data that stored in a memory location.
The use of memories is therefore mandatory in all
systems using a microprocessor, including
computers.
An example of Primary memory is RAM and ROM
that store programs. These memories are limited in
capacity and manufactured by using integrated
circuits (IC) or semiconductor device.
Its speed of Data accessing is faster than secondary
memory.
It is more expensive than secondary memory.
When you turn on the computer, Generally CPU
searches for essential codes in RAM to get it.
Otherwise, it goes to ROM.Yes, they both chips
collectively called primary memory in a computer
system
Types of Primary Memory
RAM (Random Access Memory)
The Word “RAM” stands for “random
access memory” or may also refer to short-
term memory. It’s called “random” because
you can read store data randomly at any
time and from any physical location.
It is a temporal storage memory.
RAM is volatile that only retains all the data
as long as the computer powered.
It is the fastest type of memory.
RAM holds data and processing instructions
temporarily until the CPU needs it.
RAM is considered “random access” because you
can access any memory cell directly if you know the
row and column that intersect at that cell.
RAM is electronic chips made of so called
semiconductor material, just like processors and
many other types of chips.
In RAM, transistors make up the individual storage
cells which can each “remember” an amount of data,
for example, 1 or 4 bits – as long as the PC is
switched on. Physically, RAM consists of small
electronic chips which are mounted in modules
(small printed circuit boards).
The modules are installed in the PC’s motherboard
using sockets – there are typically 2, 3 or 4 of these.
Types of RAM
SRAM
DRAM
Static RAM
Static RAM is the form of RAM which made
with flip flops and used for primary storage.
It retains data in latch as long as the computer
powered.
SRAM is more expensive and consumes more
power than DRAM.
It used as Cache Memory in a computer system.
As technically, SRAM uses more transistors as
compared to DRAM.
It is faster compared to DRAM due to the
latching arrangement, and they use 6 transistors
per data bit as compared to DRAM, which uses
one transistor per bit.
In static RAM, a form of flip flop holds each bit
of memory.
A flip-flop for a memory cell takes four or six
transistors along with some wiring, but never
has to be refreshed. This makes static RAM
significantly faster than dynamic RAM.
However, because it has more parts, a static
memory cell takes up a lot more space on a
chip than a dynamic memory cell. Therefore,
you get less memory per chip, and that makes
static RAM a lot more expensive.
Static RAM is fast and expensive, and dynamic
RAM is less expensive and slower.
Static RAM is used to create the CPU’s speed
sensitive cache, while dynamic RAM forms the
larger system RAM space.
Dynamic Random Access
Memory (DRAM)
It is another form of RAM used as main
Memory, its retains information in
Capacitors for a short period (a few
milliseconds) even though the computer
powered.
The Data is Refreshed Periodically to
maintain in it. The DRAM is cheaper, but it
can store much more information.
Moreover, it is also slower and consumes
less power than SRAM.
In the most common form of computer memory, Dynamic Memory
Cell, represents a single bit of data.
The capacitor holds the bit of information – a 0 or a 1. The transistor
acts as a switch that lets the control circuitry on the memory chip
read the capacitor or change its state.
A capacitor is like a small bucket that is able to store electrons. To
store a 1 in the memory cell, the bucket is filled with electrons.
To store a 0, it is emptied. The problem with the capacitor’s bucket is
that it has a leak. In a matter of a few milliseconds a full bucket
becomes empty.
Therefore, for dynamic memory to work, either the CPU or the
Memory Controller has to come along and recharge all of the
capacitors holding it before they discharge. To do this, the memory
controller reads the memory and then writes it right back. This refresh
operation happens automatically thousands of times per second.
This refresh operation is where dynamic RAM gets its name. Dynamic
RAM has to be dynamically refreshed all of the time or it forgets what
it is holding. The downside of all of this refreshing is that it takes time
and slows down the memory.
ROM (Read Only Memory)
ROM is the long-term internal memory. ROM is
“Non-Volatile Memory” that retains data without the
flow of electricity.
Read-only memory, or ROM, is a type of computer
storage containing non-volatile, permanent data that,
normally, can only be read, not written to.
ROM contains the programming that allows a
computer to start up or regenerate each time it is
turned on.
ROM is an essential chip with permanently written
data or programs.
ROM comes with pre-written by the computer
manufacturer to hold the instructions for booting-up
the computer.
ROM also performs large input/output (I/O) tasks
and protects programs or software instructions
Almost every computer incorporates a
small amount of ROM that contains the
start-up firmware.
This boot firmware is called the basic
input/output system (BIOS).
This software consists of code that
instructs the boot-up processes for the
computer -- such as loading the operating
system (OS) into the random access
memory (RAM) or running hardware
diagnostics.
Consequently, ROM is most often used for
firmware updates.
How does ROM work?
ROM is sustained by a small, long-life battery in the
computer. It contains two basic components: the
decoder and the OR logic gates. In ROM, the
decoder receives input in binary form; the output
will be the decimal equivalent. The OR gates in
ROM use the decoder's decimal output as their
input.
ROM performs like a disk array. It contains a grid of
rows and columns that are used to turn the system
on and off. Every element of the array correlates
with a specific memory element on the ROM chip.
A diode is used to connect the corresponding
elements.
When a request is received, the address input is
used to find the specific memory location. The value
that is read from the ROM chip should match the
contents of the chosen array element.
Types Of ROM
PROM
EPROM
EEPROM
PROM (Programmable Read
Only Memory)
It can be programmed only be done once and
read many. Unlike ROM, PROMs retain their
contents without the flow of electricity.
PROM is also nonvolatile memory.
The significant difference between a ROM and
a PROM is that a ROM comes with pre-
written by the computer manufacturer
whereas PROM manufactured as blank
memory.
PROM can be programmed by PROM burner
and by blowing internal fuses permanently.
EPROM (Erasable Programmable
Read Only Memory)
EPROM is a type of ROM chip that can
retain the data even if there is no power
supply.
The data can be erased and reprogrammed by
using ultraviolet (UV) light. The UV light clears
the data on the chip so that it can reprogram.
For writing and erasing data on the EPROM,
we need a particular device which is known as
PROM programmer.
The process of programming an EPROM is
often called BURNING, and the box into which
it is plugged to program it an EPROM burner.
EPROM is a non-volatile memory.
EPROM is developed by Dov Frohman in
1971 at Intel.
A programmed EPROM can retain its data for
a minimum of 10 to 20 years. There is a
transparent quartz crystal window at the top
of the EPROM which allows the UV light to
erase the data.
The data on EPROM can be erased a limited
number of times because excessive erasing
damages the silicon dioxide layer and it makes
the use of chip unreliable.
The programming process on EPROM is not
electrically reversible
EEPROM (Electrically Erasable
Programmable Read Only Memory)
It is a non-volatile ROM chip which used for storing a
small amount of data in computers or some other
electronic devices.
Through EEPROM, an individual byte of data can be
erased and reprogrammed entirely, not selectively by
the electrical voltage.
For modification in the EEPROM chip, there is no need
of removing the chip from the computer.
EEPROM perform read and write cycle very slowly as
compared to the read and write cycles of RAM. Here,
erase and write operations are performed by byte per
byte.
EEPROM is a distinct type flash memory that can store
large-capacity (static or semi-static) “data” bits or
“program” bits than conventional EEPROM devices.
Parameter Primary Memory Secondary Memory
Secondary memory is
These memories are known as a Backup
Alias also called internal memory or Additional
memory. memory or Auxiliary
memory.
It holds data or
It stores a substantial
information that is
amount of data and
currently being used by
Storage information. Capacity is
the processing unit.
generally from 200GB to
Capacity is usually in 16
terabytes.
to 32 GB