CSC 200 Lecture 3
CSC 200 Lecture 3
Lecture 3
Title: Computer hardware component
Description
In lecture 2, we described in broad terms the various units of a computer system, namely, input,
process, storage and output units. In this lecture, the devices for the units will be discussed in
greater details to allow students to completely identify different components of a computer. The
primary units of measurement of storage capacity and CPU speed will be explained.
Objectives
Students will learn
Computer hardware
Computer hardware is the collection of physical elements that constitute a computer system. It
is the physical parts or components of a computer that are tangible, i.e. the components that can
be seen and touched.
INPUT DEVICES
Input devices allow the user to enter information into the system, or control its operation. Most
personal computers have a mouse and keyboard, but laptop systems typically use a touchpad
instead of a mouse. Other input devices include webcams, microphones, joysticks, scanners, light
pen, track ball, Magnetic Ink Card Reader (MICR), Optical Character Reader (OCR), Bar Code
Reader, and Optical Mark Reader (OMR), etc.
1
OUTPUT DEVICES
Output devices display information in a human readable form. Such devices include speakers,
monitors, plotters, printers, etc.
Monitors
Monitors, commonly called as Visual Display Unit (VDU), are the main output device of a
computer. It forms images from tiny dots, called pixels that are arranged in a rectangular form.
The sharpness of the image depends upon the number of pixels.
There are two kinds of viewing screen used for monitors.
Cathode-Ray Tube (CRT)
Flat- Panel Display
2
Printers
Printer is an output device, which is used to print information on paper.
There are two types of printers:
Impact Printers
Non-Impact Printers
Impact Printers
The impact printers print the characters by striking them on the ribbon which is then pressed on
the paper. Characteristics of Impact Printers are the following:
Very low consumable costs
Very noisy
Useful for bulk printing due to low cost
There is physical contact with the paper to produce an image
Character Printers
Character printers are the printers which print one character at a time.
These are further divided into two types:
Dot Matrix Printer(DMP)
Daisy Wheel
Line Printers
Line printers are the printers which print one line at a time.
These are of further two types
Drum Printer
Chain Printer
Non-impact Printers
Non-impact printers print the characters without using ribbon. These printers print a complete
page at a time so they are also called as Page Printers.
3
CENTRAL PROCESSING UNIT
The CPU is considered as the brain of the computer and it performs all types of data processing
operations. It also stores data, intermediate results and instructions (program) and controls the
operation of all parts of computer.
Memory Unit(it is also called primary memory and will be discussed under the
MEMORY subheading below)
Control Unit
ALU(Arithmetic Logic Unit)
CONTROL UNIT
This unit controls the operations of all parts of computer but does not carry out any actual data
processing operations.
Functions of this unit are:
4
It is responsible for controlling the transfer of data and instructions among other units of
a computer.
It manages and coordinates all the units of the computer.
It obtains the instructions from the memory, interprets them, and directs the operation of
the computer.
It communicates with Input/Output devices for transfer of data or results from storage.
It does not process or store data.
Arithmetic Section
Function of arithmetic section is to perform arithmetic operations like addition, subtraction,
multiplication and division. All complex operations are done by making repetitive use of above
operations.
Logic Section
Function of logic section is to perform logic operations such as comparing, selecting, matching
and merging of data.
The speed of the CPU is defined as the number of times data and instructions are fetched from
the main memory, decoded by the control unit and then sent to the arithmetic/logic unit for
execution and final results stored to the main memory. This is also called the machine instruction
cycle. This typically occurs millions of times per second or more. Note that the units within the
CPU are connected using buses (theses are devices that carry electrical signals). That is CPU is
faster or slower depends on the
1. The preset speed of the clock that times all chip (circuitry on the silicon wafer) activities,
measured in megahertz (MHz), millions of cycles per second, and gigahertz (GHz),
billions of cycles per second. The faster the clock speed, the faster the chip. (For
example, all other factors being equal, a 1.0 GHz chip is twice as fast as a 500 MHz
chip.)
2. The word length, which is the number of bits (0s and 1s) that can be processed by the
CPU at any one time. The majority of current chips handle 32-bit word lengths, and the
Pentium 4 is designed to handle 64-bit word lengths. Therefore, the Pentium 4 chip will
process 64 bits of data in one machine cycle. The larger the word length, the faster the
chip.
3. The bus width. The wider the bus (the physical paths down which the data and
instructions travel as electrical impulses), the more data can be moved and the faster the
5
processing. A processor’s bus bandwidth is the product of the width of its bus (measured
in bits) times the frequency at which the bus transfers data (measured in megahertz). For
example, Intel’s Pentium 4 processor uses a 64-bit bus that runs at 400 MHz. That gives
it a peak bandwidth of 3.2 gigabits per second.
In some cases, the links between the devices internal to the microprocessor are distinguished
from external links. The internal links are called back-side bus and the external links (i.e.,
connections between the processor and main memory) are called front-side bus.
Computer manufacturers have found that performance is boosted if a computer has more than
one CPU. This arrangement is called Dual-core or Multi-core Processing and harnesses the
power of two processors. In this configuration, one integrated circuit contains two processors,
their caches as well as the cache controllers. These two "cores" have resources to perform tasks
in parallel, almost doubling the efficiency and performance of the computer as a whole. Dual
processor systems on the other hand have two separate physical processors in the system.
INTEL CPU'S
Currently, Intel and AMD are the major CPU manufacturers who seem to have the market
covered. Most computers such as APPLE Macs, Gateway computers, HP computers and Dell use
processors made by the same computer manufacturers, such as Intel, AMD, etc. Some examples
of CPUs are giving below:
6
performance by efficiently using the memory bandwidth and is more environmentally friendly
because of its low energy consumption. Examples of Computer manufacturers that use this
processor in their systems - Apple computers, Gateway.
Intel Pentium Processors - Pentium M, Pentium 4
This family of Pentium Processors uses a micro architecture for high-performance computing
using low-power. These processors are designed for medium to large enterprise communications
applications, transaction terminals, etc. The cheapest Intel CPUs now available in the market are
the Intel Pentium models.
COMPUTER MEMORY
A memory is just like a human brain. It is used to store data and instructions. Computer memory
is the storage space in 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 which varies from zero to memory size minus one. For
example if computer has 64k words, then this memory unit has 64 * 1024=65536 memory
locations. The address of these locations varies from 0 to 65535.
Memory is primarily of three types
7
Cache Memory
Primary Memory/Main Memory
Secondary Memory
Memory Capacity
As already noted CPUs process only 0s and 1s. All data are translated through computer
languages into series of these binary digits, or bits. A particular combination of bits represents a
certain alphanumeric character or simple mathematical operation. Eight bits are needed to
represent any one of these characters. This 8-bit string is known as a byte. The storage capacity
of a computer is measured in bytes. (Bits are used as units of measure typically only for
telecommunications capacity, as in how many million bits per second can be sent through a
particular medium.) The hierarchy of byte memory capacity is as follows:
Kilobyte. Kilo means one thousand, so a kilobyte (KB) is approximately one thousand
bytes. Actually, a kilobyte is 1,024 bytes (210 bytes).
Megabyte. Mega means one million, so a megabyte (MB) is approximately one million
bytes (1,048,576 bytes, or 1,024 x 1,024, to be exact). Most personal computers have
hundreds of megabytes of main memory.
Gigabyte. Giga means one billion; a gigabyte (GB) is actually 1,073,741,824 bytes
(1,024 x 1,024 x 1,024 bytes). The storage capacity of a hard drive in modern personal
computers is often many gigabytes.
Terabyte. One trillion bytes (actually, 1,078,036,791,296 bytes) is a terabyte.
To get a feel for these amounts, consider the following examples. If your computer has 256 MB
of RAM (a type of primary storage), it can store 268,435,456 bytes of data. A written word
might, on average, contain 6 bytes, so this translates to approximately 44.8 million words. If your
computer has 20 GB of storage capacity on the hard drive (a type of secondary storage) and the
average page of text has about 2,000 bytes, your hard drive could store some 10 million pages of
text.
Cache Memory
Cache memory is a very high speed semiconductor memory which can speed up CPU. It acts as a
buffer between the CPU and main memory. It is used to hold those parts of data and program
which are most frequently used by CPU. The parts of data and programs are transferred from
disk to cache memory by operating system, from where CPU can access them.
Advantages
The advantages of cache memory are as follows:
Cache memory is faster than main memory.
It consumes less access time as compared to main memory.
It stores the program that can be executed within a short period of time.
It stores data for temporary use.
Disadvantages
The disadvantages of cache memory are as follows:
Cache memory has limited capacity.
8
It is very expensive.
Access time in RAM is independent of the address that is, each storage location inside the
memory is as easy to reach as other locations and takes the same amount of time. Data in the
RAM can be accessed randomly but it is very expensive.
RAM is volatile, i.e. data stored in it is lost when we switch off the computer or if there is a
power failure. Hence a backup uninterruptible power system (UPS) is often used with computers.
RAM is small, both in terms of its physical size and in the amount of data it can hold.
9
Following are the various types of ROM:
Advantages of ROM
The advantages of ROM are as follows:
Non-volatile in nature
These cannot be accidentally changed
Cheaper than RAMs
Easy to test
More reliable than RAMs
These are static and do not require refreshing
Its contents are always known and can be verified
Secondary Memory
This type of memory is also known as external memory or non-volatile. It is slower than main
memory. These are used for storing data/Information permanently. CPU directly does not access
these memories instead they are accessed via input-output routines. Contents of secondary
memories are first transferred to main memory, and then CPU can access it. Examples include:
hard disk, CD-ROM, DVD etc.
10
Hard drive interfaces
Hard drives come with one of several different connectors built in. The five types are ATA/IDE
and SATA for consumer-level drives, and SCSI, Serial Attached SCSI (SAS), and Fibre Channel
for enterprise-class drives.
ATA/IDE Cable
For many years, Advanced Technology Attachment (ATA) connections were the favored internal
drive connection in PCs. Apple adopted ATA with the Blue and White G3 models. ATA drives
must be configured as either a master or a slave when connecting. This is usually accomplished
by the use of a hardware jumper or, more recently, through the use of a cable that can tell the
drive to act as either a master or slave.
ATA also goes by the name ATAPI, IDE, EIDE and PATA, which stands for Parallel ATA.
ATA is still in use in many computers today, but most drive manufacturers are switching over to
SATA (Serial ATA).
SATA
As of 2007, most new computers (Macs and PCs, laptops and desktops) use the newer SATA
interface. It has a number of advantages, including longer cables, faster throughput, multidrive
support through port multiplier technology, and easier configuration. SATA drives can also be
used with eSATA hardware to enable fast, inexpensive configuration as an external drive. Most
people investing in new hard drive enclosures for photo storage should be using SATA drives.
11
SCSI/SAS and Fibre Channel
Small Computer System Interface (SCSI), SAS, and Fibre Channel drives are rare in desktop
computers, and are typically found in expensive enterprise-level storage systems. You can also
find SAS drives (along with the necessary SAS controller cards) in video editing systems where
maximum throughput is needed.
References
1. https://en.wikipedia.org/wiki/computer-hardware
2. www.tutorialspoint.com/computer-fundamentals/computer_ram.html
3. www.geekswhoknow.com/articles/cpu.php
4. http://www.dpbestflow.org/data-storage-hardware/hard-drive-101#interfaces
5. www.wiley.com/college/turban/0471073806/sc/ch03.pdf (CPU Speed and Memory
Capacity)
12