Chapter Two Contd CPU, Motherboard, Storage & I/O
Chapter Two Contd CPU, Motherboard, Storage & I/O
Handout_3
Page - 1 - of 10
CS-105 Fundamentals of Computer Engineering FE (EE) Session-2010
Handout_3
ROMs
Read-only memory (ROM), also known as firmware, is an integrated circuit programmed with specific data when it is
manufactured. Used not only in computers, but in most other electronic items as well.
ROM Types:
There are five basic ROM types:
Ø ROM (Masked)
Ø PROM
Ø EPROM
Hybrid ROMs
Ø EEPROM
Ø Flash memory
Two Common characteristics for all the ROM types:
o Data stored in these chips is nonvolatile.
o Data stored in these chips is either unchangeable or requires a special operation to change.
Two Distinguishing characteristics:
o The methods used to write new data to them (usually called programming)
o The number of times they can be rewritten.
PROM
PROM (programmable ROM) is purchased in an un-programmed state containing 1s only. Special piece of equipment
called a device programmer is used to write the data on PROMs. Once a PROM has been programmed, it can never be changed
then. That is why they are also known as one-time programmable (OTP) devices.
EPROM
Programmed similarly as PROM but can be erased and reprogrammed repeatedly. The chip is exposed to a strong
source of ultraviolet light for erasure of the data. Once it is exposed, the complete data is erased and the chip is refreshed to
initial condition. Definitely it is more expensive than PROMs.
Hybrids
o Combined features of RAM and ROM.
o Like RAMs Hybrid memories can be read and written as desired.
o Like ROMs Hybrid memories maintain their contents without electrical power.
o EEPROMs and Flash memory are the examples of Hybrid memory.
Page - 2 - of 10
CS-105 Fundamentals of Computer Engineering FE (EE) Session-2010
Handout_3
EEPROMs
Electrically-erasable-and-programmable ROM. Similar to EPROM but the erase operation is accomplished electrically.
Data is maintained until not deleted. The data is erased Byte-by-Byte.
Flash Memory
Combines the best features of almost all of the RAM and ROM memory devices. High density, low cost, nonvolatile,
fast, and electrically reprogrammable. Frequently used in embedded systems. Similar to EEPROM but the major difference is
that it can be erased one sector at a time.
RAMs
Overview:
RAM (Random Access Memory) is used in computers. In RAM the operating system, application programs, and data in
current use are kept so that they can be quickly reached by the CPU. RAM is much faster to read from and write to than most
other kinds of storage in a computer (the hard disk, floppy disk, and CD-ROM).RAM is called "random access" because any
storage location can be accessed directly. In general, RAM is much like an arrangement of cells in which each cell can hold a 0
or a 1. Each cell has a unique address and can be accessed by the RAM. If data is being read, the bits that are read flow back on
a separate data line. An 8-megabyte module of dynamic RAM contains 8 million capacitors and 8 million transistors and the
paths that connect them.
Page - 3 - of 10
CS-105 Fundamentals of Computer Engineering FE (EE) Session-2010
Handout_3
Types of RAM:
Erase
Type Volatile? Writeable? Cost(per Byte) Speed
Size
Cache Memory
Cache memory is an intermediate memory used between the central processing unit and main memory. The cache is a
smaller, faster memory which stores copies of the data from the most frequently used main memory locations so as to minimize
the overall access time and enhancing the speed.
Page - 4 - of 10
CS-105 Fundamentals of Computer Engineering FE (EE) Session-2010
Handout_3
the cache line. The proportion of accesses that result in a cache hit is known as the hit rate, and is a measure of the effectiveness
of the cache.
In the case of a cache miss, most caches allocate a new entry, which comprises the tag just missed and a copy of the
data from memory. The reference can then be applied to the new entry just as in the case of a hit. Misses are comparatively slow
because they require the data to be transferred from main memory. This transfer incurs a delay since main memory is much
slower than cache memory, and also incurs the overhead for recording the new data in the cache before it is delivered to the
processor.
(Note: Refer to the cache read operation flow chart given below which depicts all above scenario). Here RA stands for Receive
Address which can be address of any physical RAM location e.g. 300, 301, 302 etc.
Page - 5 - of 10
CS-105 Fundamentals of Computer Engineering FE (EE) Session-2010
Handout_3
Ø It is faster than floppy. Unlike CDs and floppies, hard disk platters rotate continuously with approximate
speed of 7200 rpm, independent of access of data.
Floppy disk
Ø Often called a diskette or simply a disk.
Ø It is a removable flat piece of Mylar plastic packaged in a 3.5 inch plastic case.
Page - 6 - of 10
CS-105 Fundamentals of Computer Engineering FE (EE) Session-2010
Handout_3
Ø The read/write head is used to transfer data b/w the computer and disk.
Optical disks – CDs and DVDs
Page - 7 - of 10
CS-105 Fundamentals of Computer Engineering FE (EE) Session-2010
Handout_3
Page - 8 - of 10
CS-105 Fundamentals of Computer Engineering FE (EE) Session-2010
Handout_3
Ø Pits represent 0.
Ø Lands represent 1.
Ø Sensors or lenses are used to read/write data instead of R/W head.
Ø Laser beams are used to identify pits and lands on CD surface.
Ø High power laser diode is used for writing of the data.
Ø Low power diode is used for reading the data.
Ø If the laser beam after passing through prism, is reflected by striking any spot on CD surface, the sensor
assume 1 at that spot, otherwise 0 in case it scatters
Access methods
Following are the four types of access methods
1) Sequential access method (serial access method)
2) Direct access method
3) Random access method
4) Associative access method
Page - 9 - of 10
CS-105 Fundamentals of Computer Engineering FE (EE) Session-2010
Handout_3
Page - 10 - of 10