Module V
Module V
Memory
Memory is an essential part of a digital computer. It is used to store data and instructions. Computer
memory is the storage space in the computer, where data is to be processed and instructions
required for processing are stored. The memory is divided into large number of small parts called
cells. Each location or cell has a unique address.
1. Semiconductor memory
2. Magnetic memory
3. Optical memory
The semiconductor memory is the fastest memory. It consumes less power. The semiconductor
memory is a static device. There is no rotating part. The magnetic and optical memory are slow
compared to semiconductor memory. They are very cheap. They are not static devices. They are
either in the form of rotating disc or tape.
Semiconductor memory
Cache Memory
Cache memory is a very high speed semiconductor memory which can speed up the CPU. It acts as a
buffer between the CPU and the main memory. It is used to hold those parts of data and program
which are most frequently used by the CPU. Cache memory is used to reduce the average time to
access data from the Main memory. The cache is a smaller and faster memory which stores copies of
the data from frequently used main memory locations. There are various different independent
caches in a CPU, which store instructions and data.
Advantages
It stores the program that can be executed within a short period of time.
Disadvantages
It is very expensive.
Primary memory is computer memory that is accessed directly by the CPU. The The main features of
primary memory are,
It is volatile, i.e. its contents are lost once power is switched off
Primary Memory
RAM ROM
The read and write memory of a computer is called RAM. The users can write information into RAM
and read information from it. It is accessible to users. The user enters his data and program into
RAM. It possesses random random access property. RAM is a volatile memory. The information
written in it is retained in it as long as the power supply is on. When the power supply goes off, the
stored information is lost.
The very first ROMs were hard-wired devices that contained a pre-programmed set of data or
instructions. These kind of ROMs are known as masked ROMs, which are inexpensive.
PROM is read-only memory that can be modified only once by a user. Its contents are stored
permanently. The user buys a blank PROM and enters the desired contents using a PROM program.
It can be programmed only once and is not erasable.
EPROM can be erased by exposing it to ultra-violet light for a duration of up to 40 minutes. Usually,
an EPROM eraser achieves this function. This technique of erasing contents is not easy ane
convenient because Th eEPROM IC has to be removed from the computer for the exposure to
Ultraviolet light. When an EPROM is exposed to UV light, the entire data are erased. The user cannot
erase the contents of certain selected memory locations.
EPROMs are used to store programs which are permanent but need updations.EPROMS are more
economical then PROMs because they can be reused.
EEPROM is programmed and erased electrically. It can be erased and reprogrammed about ten
thousand times. Both erasing and programming take about 4 to 10 ms (millisecond). In EEPROM, any
location can be selectively erased and programmed. EEPROMs can be erased one byte at a time,
rather than erasing the entire chip. Hence, the process of reprogramming is flexible but slow.It need
not be removed from the computer’s board for erasing.
Flash Memory
Flash memory (flash) is a modern type of EEPROM. Flash memory can be erased and rewritten faster
than ordinary EEPROM. Its entire contents can be erased in one operation. It is not Byte by byte
alterable like EEPROM. Some new flash memory chips provide block erasure of its contents. It can be
erased and reprogrammed on the system board itself. The name flash memory has been given due
to fast programming capability.
Due to low power consumption, flash memory is used in battery driven digital devices usch as hand
heldcomputers, cell phones etc.
Advantages of ROM
Non-volatile in nature
Cannot be accidentally changed
Cheaper than RAMs
More reliable than RAMs
Static and do not require refreshing
Contents are always known and can be verified
Secondary Memory
RAM is expensive and has a limited storage capacity. Since it is a volatile memory, it cannot retain
information after the computer is powered off. Thus, in addition to primary memory, an auxiliary or
secondary memory is required by a computer. If we need to store large amount of data or programs
permanently, we need a cheaper and permanent memory. Such memory is called secondary
memory.
These are some characteristics of secondary memory, which distinguish it from primary memory −
Depending on whether secondary memory device is part of CPU or not, there are two types of
secondary memory – fixed and removable.
Magnetic tape drives, magnetic disk drives, optical disk drives and magneto-optical disk drives are
the different types of storage devices.
Magnetic Tape
Magnetic tape is a plastic tape with magnetic coating. It is a storage medium on a large open reel or
in a smaller cartridge or cassette (like a music cassette). Magnetic tapes are cheaper storage media.
They are durable, can be written, erased, and re-written. Magnetic tapes are sequential access
devices, which mean that the tape needs to rewind or move forward to the location where the
requested data is positioned in the magnetic tape. Due to their sequential nature, magnetic tapes
are not suitable for data files that need to be revised or updated often. They are generally used to
store back-up data that is not frequently used or to transfer data from one system to other.
Magnetic Disk
Magnetic disk is a direct access secondary storage device. It is a thin plastic or metallic circular plate
coated with magnetic oxide and encased in a protective cover. Data is stored on magnetic disks as
magnetized spots. The presence of a magnetic spot represents the bit 1 and its absence represents
the bit 0.
The surface of disk is divided into concentric circles known as tracks. The outermost track is
numbered 0 and the innermost track is the last track. Tracks are further divided into sectors.
A sector is a pie slice that cuts across all tracks. The data on disk is stored in sector. Sector is
the smallest unit that can be read or written on a disk. A disk has eight or more sectors per
track
Tracks and sectors of a disk
Magnetic disk is inserted into a magnetic disk drive for access. The drive consists of a
read/write head that is attached to a disk arm, which moves the head. The disk arm can
move inward and outward on the disk.
During reading or writing to disk, the motor of disk drive moves the disk at high speed (60–
150 times/sec.)
Accessing data on the disk requires the following—
The read/write head is positioned to the desired track where the data is to be read from or
written to. The time taken to move the read/write head to the desired track is called the
seek time.
Once the read/write head is at the right track, then the head waits for right sector to come
under it (disk is moving at high speed). The time taken for desired sector of the track to
come under read/write head is called the latency time.
Once the read/write head is positioned at the right track and sector, the data has to be
written to disk or read from disk. The rate at which data is written to disk or read from disk is
called data transfer rate. The sum of seek time, latency time and time for data transfer is the
access time ofthe disk.
The storage capacity of disk drive is measured in gigabytes (GB).
Large disk storage is created by stacking together multiple disks. A set of same tracks on all
disks forms a cylinder. Each disk has its own read/write head which work in coordination.
A disk can also have tracks and sectors on both sides. Such a disk is called double-sided disk.
Hard disks are the most famous secondary storage devices. They are online storage devices. The
term online means that the device is permanently connected to the computer system. When
computer is on, the device is available to store information or to give information. Hard disk are
used as secondary memory for mass storage of information permanently. They store programs, data,
operating system, compilers, assemblers, database etc.
A hard disk is made of aluminium with a thin coating of magnetic material over it. Standard size of
hard disk is 3.5 inch. 2.5 inch hard disk are used in portable computers. Hard disks and read/write
heads are kept in a sealed, air filtered enclosure. This technique is known as Winchester technique.
Hard disks together with read/write heads, access mechanism and driving motor constitute a unit
known as hard disk drive unit.The whole unit is fixed . hard disk is also known as platters.
The tracks and sectors in a magnetic disk can be represented as shown below:
To increase the storage capacity, several hard disks are mounted on common drive to constitue a
disk pack as shown below.
The set of all tracks at the same distance from the spindle on the recordable surface of the disk pack
will lie on the surface of a n imaginary cylinder. All the tracks which lie on the cylinder have the same
number.
Disk Cache
Semiconductor RAM memory is much faster than magnetic disk memory. Hence disk access is much
slower than that of main memory. To solve the problem of mismatch in data transfer rate, a
semiconductor memory called disk cache is placed in between main memory and hard disk. The
capacity of disk cache is a few megabytes. The disk cache stores information which are needed for
the execution of the current program.
RAID System
In RAID system(Redundant Array of Independent Disk ), multiple disks operate in parallel and store
same information. It improves storage reliability. It eliminates the risk of data loss when one of the
multiple disks fail.
The high speed of hard disks creates a thin air cushion of about 10 microinch between the rotating
disk and the head. When disk is rotating , the head floats on air cushion and remains 10 microinch
off the disk surface. The head doesnot make any physical contact with the didk surface. Hard disk
must be kept dust free environment because the diameter of the dust particle may be as many as 10
times the thickness of the air cushion. Any dust particle or any other contamination present in the
sealed container will cause the heads to crash in to the disk. It is known as head crash. In head crash
the coating of the magnetic material on the disk surface is damaged where the head strikes.
OPTICAL DISK
Optical disk is a flat and circular disk which is coated with reflective plastic material that can be
altered by laser light. Optical disk does not use magnetism. The bits 1 and 0 are stored as spots that
are relatively bright and light, respectively.
An optical disk consists of a single spiral track that starts from the edge to the centre of disk.
Due to its spiral shape, it can access large amount of data sequentially, for example music
and video. The random access on optical disk is slower than that of magnetic disk, due to its
spiral shape.
The tracks on optical disk are further divided into sectors which are of same length. Thus,
the sectors near the centre of disk wrap around the disk longer than the sectors on the
edges of disk. Reading the disk thus requires spinning the disk faster when reading near the
centre and slower when reading near the edge of disk. Optical disks are generally slower
than hard disks. Optical disks can store large amount of data, up to 6 GB, in a small space.
There are two most common categories of optical disks—read-only optical disks and recordable
optical disks.
CD-ROM
Originally, Compact Disk (CD) was a popular medium for storing music. Now, it is used in computers
to store data and is called Compact Disk-Read Only Memory (CD-ROM). CD-ROM is an optical disk
that can only be read and not written on.
CD-ROM is written on by the manufacturer of the CD-ROM using the laser light. A CD-ROM drive
reads data from the compact disk. Data is stored as pits (depressions) and lands (flat area) on CD-
ROM disk. When the laser light is focused on the disk, the pits scatter the light (interpreted as 0) and
the lands reflect the light to a sensor (interpreted as 1).
As CD-ROM is read only, no changes can be made into the data contained in it. Since there is no
head touching the disk, but a laser light, CD-ROM does not get exhausted easily. The storage density
of CD-ROM is very high and cost is low as compared to floppy disk and hard disk. Access time of CD-
ROM is less. CD-ROM drives can read data at 150Kbps. They come in multiples of this speed like—2x,
4x, 52x, 75x, etc. It is a commonly used medium for distributing software and large data.
DVD-ROM
Digital Versatile Disk-Read Only Memory (DVD-ROM) is an optical storage device used to store digital
video or computer data . DVDs look like CDs, in shape and physical size. It improves on CD
technology. It is a high-density medium with increased track and bit density. DVD-ROM uses both
sides of the disk and special data compression technologies. The tracks for storing data are
extremely small. A full-length movie can be stored on a single disk. Each side of DVD-ROM can store
4.7 GB of data, so a single DVD can store 9.4 GB of data. New DVD-ROMs use layers of data track, to
double its capacity. Such dual layer disks can store 17 GB of data.
In addition to the read only CDs and DVDs, recordable optical disks are also available. Users can
record music, video, audio and data on it. The recordable optical disks are—
Compact Disk-Recordable (CD-R) is a Write Once-Read Many (WORM) disk. A CD-R
disk allows the user to write data permanently on to the disk. Once the data is written, it cannot be
erased. CD-R disk uses a laser that burns pits into the disk surface. It looks like a CD disk externally.
To write to a CD-R disk, a device named CD-Writer or CD–burner is required. A CD-R disk can store
700 MB of data that can run for 80 minutes. CD-R is used to create music CDs in home computers,
back up data from other storage devices, archives of large data, etc.
Compact Disk-ReWritable (CD-RW) allows data to be written, erased and re-written on. The
capacity of CD-RW is same as a CD. They generally do not play on all CD-ROM drives. Digital
Video Disk-Recordable (DVD-R) allows recording of data on a DVD. A DVD writer device is
required to write the data to DVD. The data once written on a DVD cannot be erased or changed.
Digital versatile DisK-Recordable(DVD-R) is the most common type of writable DVDs. Most
DVD players and DVD- ROM drives can read DVd-R disks. We can use DVD-R disc to back up
several gigabytes of data on ypur computer.
Stands for "Digital Versatile Disk Rewritable." A DVD-RW is like a DVD-R but can be erased and
written to again. It can be erased in order for new data to be added. DVD-RWs can hold 4.7GB of
data and do not come in double-layered or double-sided versions. Because of their large capacity
and ability to be used mulitple times, DVD-RW discs are a great solution for frequent backups.
Blue-ray disc
Blu-ray is an optical disc format such as CD and DVD. It was developed for recording and playing back
high-definition (HD) video and for storing large amounts of data. While a CD can hold 700 MB of data
and a basic DVD can hold 4.7 GB of data, a single Blu-ray disc can hold up to 25 GB of data. Dual-
layer Blu-ray discs will be able to store 50 GB of data.
Blu-ray discs can hold more information than other optical media because of the blue lasers the
drives use. The laser is actually blue-violet. The blue-violet laser has a shorter wavelength than the
red lasers used for CDs and DVDs (405nm compared to 650nm). This allows the laser to focus on a
smaller area, which makes it possible to cram significantly more data on a disc the same size as a CD
or DVD.
Blu-ray also features data streams at 36 megabits per second (Mbps), fast enough for high quality
video recording. Blu-ray discs will not play on current CD and DVD players, because those players
lack the blue-violet laser required to read the discs.
A Holographic Versatile Disc is a next generation optical disc technology developed by HSD
FORUM .It has the capacity to hold up to 3.9 terabytes (TB) of data. Here two lasers are used namely
red laser (reference beam) and green laser (information beam). It employs a technique known as
collinear holography, whereby these two lasers are collimated in a single beam. The red lasers are
used to read the information off the HVD as reference beam and green lasers are used to encode
data onto the disk as information beam. The structure of the disc includes dichroic mirror layer
between holographic data and servo data to prevent interference. In other optical disc we can store
only 1 bit per pulse but here we can store 60,000 bits per pulse. The data transfer rate of HVD is 1GB
per sec. HVD uses duplication technology which is suitable for data distribution and copy protection.
The life expectancy of recorded data is about more than 50 years. By these features HVD would be a
successor to today’s Blue ray and HD-DVD. Keywords- DVD, HD-DVD, Disc, Versatile
PC Memory Modules
A memory module is another name for RAM chip. The purpose of memory module is to store
temporary data while the computer is running. A memory module is a circuit board that contains
DRAM integrated circuit that are installed into the memory slot on a computer motherboard.
Memory modules comes in different size and have different pin configuration. Memory module is
the technical term used to describe computer memory like RAM.
RAM chips can be installed individually on a motherboard or as set of chips on a circuit board that
plugs into the motherboard. The three most important circuit boards are,
SIMM
A SIMM is a module containing one or several RAM chips on a small circuit board with pins that
connect to the computer motherboard. SIMM is developed by Wang laboratories in 1983. Since the
more Ram in the computer, the frequency needed to access the secondary memory is very less. We
can expand RAM by installing additional SIMMS. SIMM comes in 32 bit path that requires 72 pins
connector. SIMMs come in memory chips with multiples of 4 megabytes.The memory chips on
SIMM are typically D-RAM chips.An improved form of RAM called Synchronous DRAM can also be
used. Since SD RAM provides a 64 bit data pathe, it requires atleast 2 SIMMS or DIMMs.
DIMM
DIMM is a type of computer memory that is 64 bits which enable fast data transfer. DIMM is a
module that contains several RAM chips on a circuit board with pins connected to the motherboard.
DIMM uses a 64 bit data path. The 64 bit data path refers to the number of bits of data that are
transfered in one clock cycle. DIMMs are used in desktops, laptops etc. A DIMM has a 168 pin
connector, to support 64 bit data transfer.
Modern DIMMs are based on dual data rate 4th generation (DDR4) which use 288 pin connectors
attached together to the motherboard.
Types of DIMMs
The most common DIMMs wth a length of 5.5 inches and a height of 1.8 inches are,
Rambus DRAM is a memory subsystem designed to transfer data at faster rates .RD RAM was
introduced in 1999 by rambus. RIMM is not an acronymn and is a trademark of Rambus given to
DRAM module. RIMM contains 184 pins. Typical SRAM has a data transfer rate upto 1 megahertz. RD
Ram can transfer data at a speed of 800 Mhz. It is onlya 2 byte wide bus. RD RAM is also known as
direct RD RAM or Rambus.