Unit 1 Computer System (2) (1) - 1629266582
Unit 1 Computer System (2) (1) - 1629266582
1 Introduction To Computer
A computer is an electronic machine that converts the raw data into useful information.
Computer derived from Greek word 'Computer' which means to compute/ calculate. The
term "computer" was originally given to humans who performed numerical calculations
using mechanical calculators.
Computer is an electronic device which accepts data as its input, process it by doing some
kind of manipulation and converting the data into information (Human readable and
meaning). Technically, we can say computer is a high- speed electronic digital data
processing machine. Initially computer was designed as a tool to manipulate numbers and to
solve arithmetic problem according to algorithms based on numerical methods. As time
passed on people began to realize that computer could process alphabets as well as numbers
and special characters i.e. general computer is the desirable one.
Computer has affected almost every sphere of human activity. Computer today come in
different sizes , forms, shapes etc. Regardless of the type of computer, every computer is
controlled by programmed instruction. It is the programmed instruction which gives the
computer a purpose and tells it what to do. Computer could be either specific purpose
(Fixed algorithm embedded) or general purpose (programmable).
The figure above shows a personal computer system used these days. Two kinds of inputs
are required in the computer they are as follows:-
i. Input
Computer needs to accept input that are entered by the users. The users enter the data
through input device. Example of input device are keyboard, touch screen, mouse etc.
Actually if the user want to make a computer perform any task, then he/she have to at
first provide the raw data to the computer. These data are referred as input.
ii. Processing
Computer has to perform the necessary work according to the instruction given by the
user. The doing of work is referred as processing. Processing is done by processing
device. Processing device on computer is CPU (Central processing unit).
iii. Storage
Sometime the result obtained after the processing or even the data input by the user
may have to be permanently or temporarily stored in the computer. This work is done
by storage device . RAM (Random Access Memory), ROM(Read Only Memory), hard
disk, floppy disk etc are devices used for storage purpose.
iv. Output
After the processing is over the result of the work performed (referred as output) needs
to be displayed so that the user knows the result. This displaying is done by output
device, Monitor is a common output device.
i. Hardware
ii. Software
iii. People
iv. Data
All of the above four are discussed as follows:
i. Hardware
Hardware are the part of computer which we can touch. Generally hardware are the
electronic/digital devices which make up the computer. Example of hardware are
monitor, CPU, keyboard etc.
i. Speed
Computer has capacity to do calculations at a very high speed. If a man multiplies 1259
with 574 then it takes about 55 to 65 seconds for an expert to do the job with the help of
pencil, his wisdom and memory. Similarly if a person counts continuously 10 lakh then
it will take 3.5 days. But in contrast a modern computer can do about 3 crore such
calculation in one minute. Currently medium sized computer executes over one million
(10 lakh) instructions per second. The speed of computer is usually measured in term of
following time units.
There is also another mechanism to measure speed of computer in term of instructions per
second. There are following two such measures.
Units Meaning
1 Bit 0 or 1
1 Nibble 4 Bits
1 Byte 8 Bits
1 Kilo Byte (KB) 1024 bytes
1 Mega Byte (MB) 1024 KB
1 Giga Byte (GB) 1024 MB
1 Tera Byte (TB) 1024 GB
1 Peta Byte (PB) 1024 TB
1 Exa Byte (EB) 1024 PB
1 Zetta Byte (ZB) 1024 EB
1 Yotta Byte (YB) 1024 ZB
These days we commonly hear computer have 120 GB, 1 TB, 5 TB or more storage capacity
in secondary storage and 1GB, 4 GB, 32 GB, 64 GB or more storage capacity in primary
storage.
iii. Accuracy
Even though the computer have great speed, they still possess tremendous accuracy
while doing calculations. Computers works on the basis of electric pulses so there are
no chances of any mistake. Accuracy also mean if the data and instructions provided to
the computer are correct, then the output produced by the computer is also correct.
Similarly if wrong data or instruction are provided to the computer we will get wrong
output. This is referred as GIGO (Garbage In Garbage out).
iv. Reliability
Individual components of computer have a very high life and degree of reliability.
Computer is only a machine and it does not make errors on its own. So computer is a
reliable device. The computer is as reliable as the instruction and data provided to the
computer.
v. Diligence
Man suffer from physical and mental fatigue, lack of concentration and laziness which
do not permit him to carry on his task at the same level of speed and accuracy through
the entire day. But the computer on the other hand is capable of operating at exactly
the same level of speed and accuracy even if it has to do voluminous and complex
operations for a long period of time. This features of computer to perform a work again
and again without getting bored and tired and that also without affecting its speed,
accuracy and efficiency is called diligence.
vi. Versatility
The feature of a computer to perform more than 1 work having different characteristics
is called versatility of computer. Computer has the ability to communicate with other
1. Computer are more accurate and much reliable than the any other devices and human
beings.
2. Since computer can do a work in nanoseconds / picoseconds, it gives advantage in form
of speed while performing any task.
3. It is very effective to use computer for doing repeated jobs.
4. The technique, simulation can be used to perform impossible/danger tasks by use of
computer and this is an advantage of computer.
5. Computer is a versatile machine and it can do number of different jobs at a time.
6. Computer is used for tele-culture and e-culture from any place.
7. Computers can do the jobs repeatedly without error, avoiding the fatigue that affect
humans.
8. Computers can do critical and dangerous tasks that may be hazardous to human being.
Approved by CDC, Nepal
6 Computer Science-XI
9. Computer are capable of providing information which can be used in decision making.
10. Computer are impartial. They offer a means of data processing unaffected by racial
religious or cultural bias.
1. In under developed and developing countries, the cost of computer becomes expensive
and hence it is beyond the reach of everybody.
2. Computer as we know depends on electricity to run hence there is always a danger of
electric shock.
3. If some components or devices or programs of computer fails then the computer will
produce unreliable information.
4. Computer has made human being to depend heavily on machine.
5. Computer may hamper human vision due to excessive use from its screen.
6. The programs and software prepared for one type of computer (of one brand) may not
be usable on other type of computer (of other brand).
7. Computer need stored program to function properly.
8. Computer also can't distinguish between good and bad input/ output/ data/ instruction.
9. For using a computer effectively, a number of computer language and user of software
is required to be learnt.
10. Computer is used for illegal cyber crime.
iv. Command
vi. Data
Raw facts and figures are called data. Data generally don't give complete meaning to
the users.
vii. Information
The processed data is known as information. Information gives complete meaning to
users. Information might be any picture, text, audio, video, animation or hypermedia.
viii. Memory
It is the place in the computer where information can be stored and retained. Memory
can store information for temporary period of time or permanent period of time.
xi. Firmware
If manufactures of ROM write programs on instructions permanently in it, then we
refer the ROM as firmware.
The airline company keeps details of all the seats on all of its flights stored in a central
computer. Terminals which are sited all over the world are linked to the central
computer. Terminal usually consists of only a keyboard for entering information and a
visual displayed unit on which information can be displayed. When a client wishes to
book a seats the operator keys the flight number into the keyboard and can almost
immediately get information about available seats on the flight on the visual display
what the computer has done is to look up the details of the flight, probably stored on
the hard disk / floppy disk /CD's etc. and then transmit the details back to the terminal.
When a seat has been booked the computer is informed about it through the keyboard
and it immediately bring the records on the disk up-to date by notifying that that seat is
no longer available. This process of keeping records up-to date is called computer
updating.
Also computer can be of great assistance for the disabled people who cannot speak.
These disabled people can type message with their fingers or even with some other
special stick like device. Then based on the message the necessary action is performed.
As the technology is advancing very fast , that day is not far when it would be even
possible to control things just by moving eyes. In this case the sensors with LASER will
measure which instruction over eye ball is looking at and carry out that instruction.
Approved by CDC, Nepal
10 Computer Science-XI
In Hospitals, computer care used for monitoring patients, raising the alarm if the heart stops
beating or if breathing falls beyond a certain level. Doctors can use computer to help
themselves to diagnose the illness and recommend the treatment options.
The modern home washing machine is an intelligent machine which uses water and soap at
temperature for different periods of times and washes different type of clothing. The
modern washing machine is equipped with microprocessor . Under the control of
microprocessor chip, it will be possible to wash clothes automatically.
b. Napier Bones
John Napier developed the idea of logarithms. Napier also
devised set of rods for use in calculations involving
multiplications these rods had 4 faces and numbers were
engraved in those rods. Altogether there were 11 rods.
These rods were carved from bones and therefore called
Napier's Bones. Napier Bones was used for multiplication
and division.
c. Slide Rule
The idea of logarithm was used to invent the computing machines called the Slide Rule. It
was invented by William Oughtred in 1620 .
A simple slide rule consists of two rulers for calculations. One rulers (scale) can pass ( slip)
over other. The scales are designed in such a manner that suitable alignment of one scale
against the other make it possible to obtain various results of calculation we can obtain
products quotients by using this device. This device was popularly used for over two
hundred fifty years after it got invented.
The main features of Pascal machine was that it was capable of performing automatic carry
transfer multiplication and division. Pascal had invented the machine to assist his father in
the calculation. His father was a tax superintendent and he was never able to get to bed
before 1 a.m. Blaise was highly motivated to ease his father with the calculating work. So he
set himself on the task and invented the machine in two years. At the time of invention
Pascal was only of 18 years old.
e. Stepped Recknor
Gottfried Wilhelm Von Leibniz invented
calculating machine called stepped Recknor.
Stepped Recknor was just codification of Pascal
machine this machine was the first device which
could multiply device and also find square root.
It was used for over two hundred years after its
invention. Actually it was used till electronic or electro mechanical came into existence.
g. Charles Babbage
Charles Babbage was professor of Mathematics at Cambridge university. He developed a
machine called" Difference Engine in the year 1822.This machine could evaluate algebraic
expressions and mathematical functions up to 20 decimal places. This machine was also
expected to calculate logarithmic table to a high degree of precision. The machine was also
capable of evaluating polynomial equation. Eleven year later he started to design another
machine called of analytical engine. Analytical engine had the concept of using binary digits
(bits) in this machine. Analytical engine could do all the four mathematical operations (
addition, subtraction, multiplication, division).
Approved by CDC, Nepal
16 Computer Science-XI
Analytical engine had many features that are common to the modern computer Babbage
also included the concept of central processor, storage area and input/output device in his
design. The two revolutionary innovations incorporated in analytical engine were
comparison and modification of stored information. Unfortunately owing to the lack of
technology of that time the analytical engine remained a design on paper and could not be
developed so it remained a conceptual design. As Babbage formulated the working
principle of modern digital computer he is also called as Father of computer science.
i. George Boole
Boolean Algebra is considered as one of the most important discovery
of 19th century. In 1854, George Boole performed an investigation
into the “laws of thought” which were based around a simplified
version of the “group” or “set” theory, and from this Boolean Algebra
was developed. It was George Boole's logic which gave basic idea of
presenting the electric circuits with binary input (0 or 1) and its
output. In computer science the logic provided by Boolean algebra is called digital logic.
Dr. Herman Hollerith is believed to be the first person who used punched card practically.
Herman Hollerith also formed his own company which later on was incorporated into
International Business Machine Corporation (IBM) which is one of the largest computer
manufacturing company in the world even today.
Mark I is the first electronic computer. It was developed by Professor Howard Aiken in 1937.
It was based on Charles Babbage principle. Mark I was the first machine in the world which
could perform according to the pre-programmed instruction without any manual interference.
It utilized the punched card concept Mark I had dimension of 51×8×3 cubic feet. It consumed
lots of electricity. Also it generated lots of heat. Mark I could multiply two twenty digit. Mark I
used 18,000 vacuum tubes as main memory device. The main problem of Mark I was it was
difficult even for the inventor to find the fault when it functioned wrongly. There were about
7 lakh 50 thousand parts in Mark I. The cables used for connection were 500 miles long. Mark I
weighed 32 tons. In spite of all this Mark I is considered to be the first computer in the real
sense of term. In the year 1944 Howard Aiken modified Mark I and attempted to built another
computer which he called Mark II. Mark II used 19,000 vacuumed tubes and occupied 15,000
square feet. It consumed 130 KW electrical power for operation.
e. IBM 7090
It came in market in 1958. It used transistor as storage device for the first time. It was
designed for "large-scale scientific and technological applications". The 7090 is the third
member of the IBM 700/7000 series scientific computers.
f. IBM 360
It was the first computer to use IC as storage device. It came in market in 1964. IBM 360 was
first family of computers designed to cover the complete range of applications, from small to
large, both commercial and scientific. It has features like memory, addressing, data formats,
instruction formats, program status word and interruption system
g. Altair
In 1755 first microcomputer named as Altair came. The Altair is widely recognized as the
spark that ignited the microcomputer revolution as the first commercially successful
personal computer. The computer bus designed for the Altair was to become a standard in
the form of the S-100 bus, and the first programming language for the machine was
Microsoft's founding product, Altair Basic.
h. Macintosh
In 1984 Apple Computer introduces Macintosh, the first widely available computer with
GUI( Graphics User Interface). A GUI is a display format that allows the user to select
commands, call up files, start programs, and do other routine tasks by using a device called
a mouse to point to pictorial symbols (icons) or lists of menu choices on the screen.
i. Windows 1989
Microsoft Corporation introduces windows for IBM computers. In 1998, it
produced Windows CE, a version of its Windows OS, for use on mobile devices such as
PDAs. This encouraged electronics firms to enter the handheld organizer market.
way computer operate. This resulted in more smaller, more cheaper, more powerful, more
efficient and more reliable devices. We can view the evolution of computer in 5 generation.
Each of these five generations are an improvement over the former. The points about the
improvement of a generation from its former one are as follows:
Characteristics
These machines were enormous, filling up entire rooms with tens of thousands of
vacuum tubes, but were much slower than even the cheapest personal computer
available today.
First generation computer relied on machine language to perform operations, and
they could only solve one problem at a time.
Input was punched on punched cards and paper tape, and output was displayed
on printers.
Advantages
Approved by CDC, Nepal
Introduction to computer 21
Vacuum tubes were the only electronic components available during those days
Vacuum tube technology made possible the advent of electronic digital computers
These computers were the fastest calculating device of their time. They could
perform computations in milliseconds.
Disadvantages
Too bulky in size so not portable.
Unreliable.
Thousands of vacuum tubes that were used emitted large amount of heat and burnt
out frequently.
Air conditioning required.
Prone to frequent hardware failures.
Constant maintenance required.
Manual assembly of individual components into functioning unit required.
Commercial production was difficult and costly so, limited to commercial use.
Let us discuss a bit about vacuum tube which was the memory
device used in this generation. Vacuum tube was invented by
Lee De Forest in 1980 A.D. Vacuum tube is a vacuum filled glass
tube or metal tube which consists of set of metal electrodes and
intervening metal. The electrical current between the electrodes
are controlled by voltage on the metal grids. Each vacuum tube
consumed about half a watt power. The vacuum tubes allowed
flow of electrons in only one direction. In the past vacuum tubes
were used for amplification and switching in electronic circuit.
But now a days vacuum tubes are used in cathode ray tubes and in those applications
which require very high power level. A vacuum tube is also called valve in great Britain.
Characteristics
Transistors were used as a basic building block for second generation computers.
Second generation computers moved from cryptic binary machine language to
symbolic, or assembly language, which allows programmers to specify instructions
in words. High level languages were also being developed at this time like early
version of FORTRAN and COBOL.
These were also the first computer that stored their instructions in their memory.
Second generation computer still relied on punched card for input and printer for
output.
Advantage
Smaller in size as compared to first generation computers.
More reliable.
Less heat generated.
These computers were able to reduce computational times from milliseconds to
microseconds.
Less prone to hardware failures.
Better portability.
Wider commercial use.
Disadvantage
Air conditioning required.
Frequent maintenance required.
Manual assembly of individual components into a functional unit was required.
Commercial production was difficult and costly.
Let us discuss about transistors which was used as memory device in this generation.
Transistor was invented by John Burdeen, Walter H. Brattain and William B. Shockley. These
three people won Nobel Prize for inventing transistors and a big revolution in electronics
took place with their invention. Transistor is made up of germanium semiconductor
material. Transistor amplify a signal, open a circuit or closes a circuit. Transistors requires
no heating. Transistors were highly reliable in comparison to vacuum tubes. Transistor also
needed less space and consumed only one- tenth of power required by the vacuum tubes
Transistor could switch from a 0 to 1 state in a few microsecond about a tenth time needed
by vacuum tubes.
Advantages
Smaller in size as compared to previous generation computer.
Even more reliable than second generation.
Even lower heat generated than 2nd generation.
These computers were able to reduce computational times from microsecond to
nanoseconds.
Maintenance cost is low because hardware failures are rare.
Easily portable.
Totally general purpose. Widely used for various commercial applications all over
the world.
Less power requirement than previous generation.
Manual assembly of individual components into a functioning unit not required.
So human labour and cost involved at assembly stage reduced drastically.
Commercial production was easier and cheaper.
Disadvantages
Air-conditioning required in many cases.
Highly sophisticated technology required for the manufacture of IC chips.
Examples of 3rd generation computers are IBM 360, UNIVAC
9000, Honeywell 200, etc. Let us discuss about integrated
circuit which was used as memory device in this generation.
Integrated circuit are the circuits which consists of transistors
resistors and capacitors grown on a single chip of silicon
eliminating wired inter connection between components. Integrated circuit was invented by
Jack Kilby at Texas Instruments in 1980s.
We can categorized the IC into following types on the basis of number of electronic components used
Approved by CDC, Nepal
24 Computer Science-XI
on them.
Advantages
Smallest in size because of high component density.
Very reliable.
Heat generated is negligible.
No air conditioning required in most cases.
Much faster in computation than previous generations.
Hardware failure is negligible and hence minimal maintenance is required.
Easily portable because of their small size.
Totally general purpose.
Minimal labour and cost involved at assembly stage.
Cheapest among all generations.
Disadvantages:
Approved by CDC, Nepal
Introduction to computer 25
Highly sophisticated technology required
for the manufacture of VLSI chips.
Let us now discuss about microprocessor.
Microprocessor are the IC’s which have the entire
computer circuitry on a single silicon chip. The
computers using these chips are called
microcomputer. Microcomputer can be programmed .
There are 16 bit microprocessor, 32 bit microprocessor,
64 bit microprocessor. A 64 bit microprocessor means
that 64 bits information can be transferred in parallel
at a time and can be held in their registers and can be
processed at a time. The microprocessor and main memory of a computer is held on a single
board called as motherboard. A modern microprocessor can have millions of transistors in
an integrated circuit package that can easily fit into palm of one's hand. The most popular
lines of microprocessors today are the 680×86 family from. Intel which is at the of all IBM
PC- compatible computers. Thus microprocessor examples are 68000, 68020, 68030, 68040,
80286, 80386 DX, 80385X etc. Example of 4th generation computer are IBM PC, Apple
/Macintosh, Pentium PC.
Biochips are just the chips which are made up of large organic molecules and genetically
Approved by CDC, Nepal
26 Computer Science-XI
engineered proteins. After using biochips, it is expected that the capability of computer will
increase by millions of time. Artificial intelligence enable the computers to simulate speech
recognition, deduction, inference, ability to learn from past etc. In short we can say a computer
with reasoning. Learning and logic deriving capabilities is said to posses artificial intelligence.
The above given block diagram shows the classification of computer. We have following
types of computers on the basis of size.
1. Mainframe computer
2. Mini computer.
3. Micro computer
4. Super computer
1. Mainframe Computer
The largest types of computer on the basis of size is
mainframe computer. can support more than 100 users
at the same time. Actually a mainframe can include
up-to thousand of terminals attached to it at
geographically remote location and occupy an entire
site with hundred of disk devices and hardware units.
Mainframe computer are used by large organization
like banks, building societies, Insurance companies ,
government departments etc. Mainframe computer is used in those places where many
Approved by CDC, Nepal
28 Computer Science-XI
people need frequent access to the same data, which is usually organised into one on
more huge databases. Airline corporation may use mainframe computer system for
flight scheduling , reservations, ticketing and meeting a range of customer service
needs.
Example of mainframe computer are VAX 884, ICL 2950/10, CDC 1604, CDC 3600 etc.
We can list various characteristics of mainframe computer as follows:
i. Mainframe computer is administered from central location.
ii. Mainframe computer can allow more than 100 users to works at a same time.
iii. Mainframe computer being largest computer on the basis of size occupy around 1,000
square feet area.
iv. Mainframe computers are very expensive computers and they have great processing
capability.
2. Mini Computers
Minicomputers are the medium sized computer on the basis of
size i.e. they are larger than micro computer and are smaller
than mainframe computer. Minicomputer were first released
in 1660's . Mini computers are also called as midrange
computers because the capabilities of minicomputer are
somewhere between mainframe and microcomputer. A
minicomputer is 4 to 5 times faster than the microcomputer.
They also have CPU speed of approximate 500 kilo
instructions per second .Minicomputers are mainly multi-user
system where 50 users (approximately) can work
simultaneously through the terminal. However some minicomputer also are designed
for a single user. These computer occupy area of around 10-15 square feet. The
minicomputer are used. In medium sized organisation for their database
administration. In Nepal Rasta Bank, National Computer Centre, Nepal Airline
Corporation etc. are using minicomputers. The DEC is the major manufacturer of
minicomputer. VAX series 8200 and 8300 are two major service of DEC. Example of
other minicomputer are DECLPAD – 7, DECPAD – 9, IBM AS/400 etc.
3. Micro Computer
Microcomputer gets the name micro because of two
reasons: First as it is miniature in size and second it
uses microprocessor. The microcomputer replaced the
many separate components that made up the
minicomputer's CPU with a single integrated
microprocessor chip. Now-a-days, the terms
"Microcomputer", "Personal Computer" and "Home
Computer" are used interchangeably and are colloquial terms.
Approved by CDC, Nepal
Introduction to computer 29
In 1981 IBM brought out its first micro computer called IBM PC. These computers are
also called PC's, personnel computers or home computer. We can find microcomputer
in very small size referred as laptop computer notebook computer and palmtop
computer. The Microcomputer are especially made to be used by a single user.
Microcomputer are used in home office school, business etc. for various purpose.
Microcomputer however are not meant to do jobs that require great computing power.
Micro computer is the most popular type of computer. The main reason of
microcomputer's popularity is the rapid rate in which its technology are improved.
Microprocessors memory chips and storage devices make continual gains in speed and
capacity while physical size and price remain stable or in some case are reduced. For
example, compared to a typical PC of ten years ago a PC of same price today will have
about ten times as much RAM, about 100 times more storage capacity and a micro
processor at least 100 times as fast. example of microcomputers are IBM PC, Apple Mac.
4. Super Computer
Super computers are the most speediest, powerful and
physically the large computers that uses state-of-art
technology. Typically, they are custom-designed to meet
a certain level of computing solution. Super computer
consist of several processors running together and
today's fastest super computers can execute trillion
calculations per second. Since these computers use state-
of-art technology, today's supercomputer may not be
tomorrow's supercomputer.
Super computers are also used to map the human genome or DNA structure. Scientists
and Engineers process and then simulate the processes on a super computer. Super
computer can also help in analyzing and forecasting global weather patterns. Super
computers are to be kept in protective rooms with special cooling system, power
protection and other security features.
Example of super computer are CRAY II, CYBER 205, PARAM, Titan, IBM Sequoia, K
Computer, Jaguar etc.
Summary
The word "Computer" is derived from Latin word "Computare" which means to
calculate.
Computer is an electronic device which takes input through input device,
processes those data according to some instruction and if required will display the
result.
Abacus is the earliest calculating device made by man.
John Napier invented modern logarithm.
William Oughtred invented Slide Rule in 1620 which was based on principle of
Logarithm.
Calculation including addition and subtraction was possible up to 3 digits in
Pascaline.
Joseph Marie Jacquard is also called father of Punched Card concept.
Charles Babbage is father of computer.
Lady Augusta Ada Lovelace is considered as the world's first computer
programmer.
George Boole discovered Boolean Algebra.
Dr. Herman Hollerith is considered as founder of IBM.
Mark-I is the first electromechanical computer.
John Von Neumann is considered as father of stored program concept.
EDSAC is the first stored program computer.
There are following types of computer on the basis of size:
a. Microcomputer b. Minicomputer
c. Mainframe computer d. Super computer
Microcomputer are the computer which use microprocessors as memory device.
Microcomputer are also called personal computer.
Around 50 users can work together in minicomputer through the terminals.
Around 100 users can work together to mainframe computer through the
terminals.
Super computers are used for special purpose only example in scientific works.
Mobile computing involves computing with mobility facility.
Exercise
1. Define computer and its function.
7. "In spite of possessing various capabilities computer has limitation" Do you agree
upon this statement? Justify your answer.
a. Hardware b. ROM
c. Software d. Data
e. RAM. e. Information
15. Explain how minicomputer is different from mainframe and micro computer?
16. What is mobile computing? What are the advantages and disadvantages of mobile
computing?
c. Pascaline d UNIVAC
We can easily extend the above two layers into several layers (both of hardware and
software). Thus a computer system can be viewed as a multilayered machine as in following
figure.
Application layer
System software layer SOFTWARE LEVEL
Machine layer
Micro programmed layer HARDWARE LEVEL
Digital logic layer
Electrical and electronic component layer
Figure: Layers of computer architecture
In the following portion; a short description of all layers is presented starting from the
lowest layer.
1. Levels of Hardware
Various levels of hardware are discussed as follows
2. Level of Software
The various level of software are discussed as follows
i. System Software Layer
This layer consists of number of variety of programs that support the operation of
computer i.e. system software. It is only due to the system software which has
made possible for the user to focus on an application or a problem (to be solved)
without needing to know the detailing of how the machine works internally. One
major type of system software is the operating system which tells the computer
how to use its own components. Other example of system software include
loaders, debugger linker, assembler, compiler etc.
ii. Application Software Layer:
This layer consists of the application software which tells the computer how to
accomplish specific task, such as work processing or drawing for the user. Example
of application program are Microsoft software, Auto CAD, C program etc.
CPU
Registers (smallest
storage)
Arithmetic
Input Output
Logic Unit
(ALU)
Control Unit
(CU)
Memory
The computer system consists of input devices for reading user data and instructions. Main
memory is used to store these instructions and data temporarily and a central processing
unit (CPU) processes the data and instructions. Output devices are for printing, displaying
or outputting information. Secondary storage (memory) devices permanently store data and
programs.
Input Devices
An input device accepts data and instructions from the user. The input devices accept
information in the form of letters, numbers, and command from the user. The most common
example of input device is the keyboard which is basically the primary text and numeric
input device. Another popular input device is the mouse, which lets the user select options
from on-screen menus. Other popular input devices are light pen, trackballs, touch pads,
joysticks, scanners, digital cameras, microphones etc.
In a general computer, the CPU or the processor is a single chip, an integrated circuit
containing millions of transistors, packed into a surface smaller than a stamp. Every task to
be done by a computer must be interpreted and executed by the processor. This makes the
processor the most important resource amongst the other resources.
Register Array
Registers are high speed memory location which are used to store temporary results. They
are separate from the locations in the main storage although they can be similar in structure.
Registers are present in the control unit and the ALU. The number of registers contained
varies depending on the computer. Actually registers are basically a small purpose kind of
memory that the processor has for doing some particular uses like calculations and record
keeping.
Registers are similar to the computers main memory in one way that they are a set of
locations where data can be stored while the processor is working on it. The computer's
main memory is larger and it is located outside the processor; whereas the registers are the
part of the processor.
Some of the registers in the CPU are as follows:
i. Instruction register (IR): It holds the instructions currently being processed.
ii. Program counter register: It holds the address of next instruction to be executed.
iii. General purpose register: It holds data temporarily or for intermediate results. There is
always one accumulator which holds the results of some CPU operation, usually of
arithmetic nature.
iv. Accumulator: It stores the result of arithmetic operators.
v. Link register: Carry over which are resulted due to computations are stored in the link
resistors.
Main Memory
The CPU does have registers, but these are of small size that can hold only a few bytes at a
time. In addition to registers, CPU needs to have million of bytes randomly accessed space
where it can quickly read or write programs and data while they are being used. Thus
electronic memory allows the CPU to store and retrieve the data quickly. The memory of a
system may be classified into two operational categories namely: Primary memory and
Secondary memory.
Auxiliary Storage
This storage is meant of supplement main memory. Auxiliary storage is used for holding
backup data/instructions. It is also used for data transportation and for bulk data storage.
Output Devices
Output devices return the processed data from the CPU for use. The function of an output device
is to present processed data to the user. The most common examples of output devices are the
monitors and the printers.
1.2.3. Microprocessor
A microprocessor is similar to our human brain; it can be trained to do anything. It can be
programmed to do anything we want based on its instruction set and capabilities.
Sometimes solutions are very complex, circuits also becomes very complex if we try to solve
it without programming. Microprocessor is the brain of computer, which does all the work.
It is a computer processor that incorporates all the functions of CPU (Central Processing
Unit) on a single IC (Integrated Circuit) or at the most a few ICs. Microprocessors were first
introduced in early 1970s. 4004 was the first general purpose microprocessor used by Intel in
building personal computers. Arrival of low cost general purpose microprocessors has been
instrumental in development of modern society the way it has.
Microprocessors are multipurpose devices that can be designed for generic or specialized
functions. The microprocessors of laptops and smartphones are general purpose whereas
ones designed for graphical processing or machine vision are specialized ones. There are
some characteristics that are common to all microprocessors.
Clock speed
Word size
Instruction set
Clock Speed
Every microprocessor has an internal clock that regulates the speed at which it executes
instructions and also synchronizes it with other components. The speed at which the
microprocessor executes instructions is called clock speed. Clock speeds are measured in
MHz or GHz where 1 MHz means 1 million cycles per second whereas 1 GHz equals to 1
billion cycles per second. Here cycle refers to single electric signal cycle.
First commercial microprocessor Intel 4004 was a 4-bit processor. It had 4 input pins and 4
output pins. Number of output pins is always equal to the number of input pins. Currently
most microprocessors use 32-bit or 64-bit architecture.
Instruction Set
A command given to a digital machine to perform an operation on a piece of data is called
an instruction. Basic set of machine level instructions that a microprocessor is designed to
execute is called its instruction set. These instructions carry out following types of
operations:
Data transfer
Arithmetic operations
Logical operations
Control flow
Input/output and machine control
Microprocessor Components
Compared to the first microprocessors, today’s processors are very small but still they have
these basic parts right from the first model −
CPU
Bus
Memory
1.2.4. Bus Structure
In microcomputers the term bus refers to the path between the components of a computer.
Actually bus is set of hardware line (conductor) which lies inside the computer through
which data is transmitted from one part of computer to the another part. The CPU is
connected to main memory, input device and output device by three separate buses viz.
address bus, data bus and control bus.
i. Address Bus
Address bus is the bus which carries the memory locations for data or instructions that
needs to be stored. Address bus is unidirectional i.e. data can flow only in one direction.
In the figure we have shown 16 address buses.
Memory
Primary Memory
It may be called as main memory or internal memory. CPU has direct access only to the
data/information in primary memory. Primary memory is built within the computer. It is of
a limited capacity and is also temporary in nature. It may enhance up 512 MB, 1GB, 2GB, 4
GB depending on need of the user. There are following functions of primary memory:
i. To hold the operating system instruction when the computer is turned on.
Approved by CDC, Nepal
Introduction to computer 41
ii. To hold the copy of programming instructions and data that are input from keyboard
through user and that are being currently executed but for temporary period of time.
iii. To store the result temporarily, which is generated after processing until it is transferred
to corresponding output device.
There are two types of primary memory viz. RAM and ROM.
Primary Memory
RAM ROM
RAM is a volatile memory i.e. the contents in RAM are lost when the power to computer is
cut off. Memory that can be instantly changed is RAM, so RAM instructions are temporary
in nature and are present only for the time that the program is being used. These are two
type of RAM's viz. SRAM and DRAM.
Cache Memory
Cache memory is a holding area in which the data and instructions most recently called
from RAM by the processor are temporarily stored. It is a type of very fast memory that is
used to improve the speed of computer. It acts as an intermediate store between the CPU
and main memory, and works by storing the most frequently or recently used data and
instructions.
Moving data between the RAM and the CPU’s register is one of the most time consuming
operations because RAM is much slower than CPU. A partial solution to this problem is to
include a cache memory in the CPU. Cache memory is similar to RAM, except that it is
extremely fast compared to normal memory.
When a program is running and the CPU needs to read a data or program instruction from
RAM, the CPU checks first to see whether the data is in cache memory. If the data is not
there, the CPU reads the data from RAM into registers, but it also loads a copy of the data
into cache memory. The next time the CPU needs that same data, it finds it in the cache
memory and saves the time needed to load the data from RAM. If the CPU finds required
data or program instruction in the cache, then it is cache hit and if the CPU does not find the
required data or program instruction in the cache, then it is cache miss.
CPU RAM
Cache
Memory
During cache operations, updates made in cache must be reflected back to RAM.
This is known as cache coherence. Cache memories are managed in different levels
L1, L2.
Secondary memory also has two types viz. magnetic memory and optical memory.
Secondary Memory
a. Magnetic Disk
It is a magnetic storage device which is circular like disk and is
coated with magnetic material. These disk can be accessed
randomly. Magnetic disk needs to be protected from exposure
to the resource of magnetism which can damage or destroy
information they hold. So magnetic disk are enclosed in
i. Hard Disk
Hard disk is also called fixed disk. It is actually set of flat
disk called platters. Each surface of a platter can hold ten
billions of individual bits of data. Each platter has two
heads; one on top of the platter and the other on the bottom.
Each platter also has information recorded in concentric
circles called tracks. Each track is divided into 26 sectors.
Each individual sector can hold 512 byte of information. Hard disk rotates at 2400-
3600 rpm. Hard disks are fixed disks in case of microcomputer and minicomputer
but in case of mainframe computer they are exchangeable i.e. they can removed and
put as when required.. It is possible to have more than one hard disk into one micro
computer. (generally two in numbers). Main hard disk is called master and the
other one is called slave.
Advantages of Hard Disk
1. Hard disk can store lot more data than floppies. Hard disk can store up to 200 Gb of
data.
2. The data in hard disk can be stored for longer period than the floppy disk.
3. The time to access the data in hard disk is very less as compared to floppy disk.
b. Magnetic Tape
It is similar to audio cassette tapes. It is made up of plastic ribbon
coated on one side with an iron oxide based magnetisable material.
Data are recorded in the form of tiny visible spots on the
magnetized side. Magnetic tape can be accessed serially only.
1. We can't perform read or write operations on magnetic tape without specified electronic
device needed.
2. Magnetic tape is very sensitive to dust, smoke, heat, magnetic field.
c. Magnetic Drum
It is a drum on which magnetic oxide coating is made.
Magnetic drum is basically used to store a large
amount of binary information. Magnetic drum is
rotating in nature. As the drum rotates, binary data
can be stored along tracks of the drum or the data can
be read from the track. Among all the tracks in
2. Optical Storage
In the recent years, the new technology for storing data has evolved. This technology uses
optical or light based data storage. Today, the most popular alternatives to magnetic storage
system are optical systems. There are following advantages of optical storage devices.
CDRW disks allows the user to read and write a number of times. Normal CDROM
disk can play in CDRW drive.
1. Keyboard
This is the most common input device which
consists of keys marked with characters on it.
Data is entered into computer by pressing a
set of keys available with these devices.
Keyboard contains 101 to 104 keys. When a
key is pressed, an electronic signal is produced which is detected by an electronic
circuit called keyboard encoder. After the key board encoder detects which key is
pressed it sends a binary code to the computer. Most keyboard follow a similar
layout, with their keys arranged in five group. These group includes the
alphanumeric keys, numeric keypad, functions keys, modifier keys and cursor
movement key.
2. Mouse
Mouse is actually a pointing device that lets us to control the
position of a graphical pointer on the screen without using the
keyboard. Mouse rolls (rotated) on a small ball and has one or
two button on the top. Actually Microsoft mouse features two
button and the Macintosh mouse features one button. Using the
mouse involves five technique viz. pointing, clicking, double clicking, dragging
and right clicking. Potentiometers are coupled to the roller in mouse which sense
the relative movement of mouse. This motion is then converted into digital values
that determines the magnitude and direction of a mouse's movement..
3. Joystick
Joystick is a device which lets the user to move an object on the
screen. Children can play games in simple way by the use of a
joystick. A joystick is a stick set in two crossed grooves and can
4. Trackball
The trackball is also a pointing device. We need to rest our
thumb on the exposed ball and fingers on the buttons. To
move the pointer around the screen; we need to roll the ball
with our thumb. We don't need to move the whole device.
When space is limited, a trackball can be an advantage
because it requires less space than a mouse. Track ball gained
popularity with the advent of laptop computer.
5. Track Pad
The track pad (also called touch pad) is a stationary pointing
device that many people find less tiring to use than a mouse
or a track ball. The movement of finger across a small touch
surface is translated into pointer movement on the computer
screen. The touch sensitive surface may be only 1.5 to 2 inches
square, so the finger never has to move far. One of the
drawback of track pad is that they must be kept clean and static free .Dust and oils
from the user's fingers can affect the track pad's performance, making it less
sensitive to the touch. Some note book computer and desktop computer feature a
track pad.
6. Scanner
Scanner (also called image scanner) converts any printed
image into an electronic form by shining lights on to the
image and sensing the intensity of the light's reflection at
every point. We can use suitable software to organize or
manipulate the electronic image. For example, if we scan a
photo we can use Adobe Photoshop to increase or decrease
the contrast or to adjust the colors. Common optical scanner devices are Optimal
Mark Reader (OMR), Optical Character Reader (OCR) and Bar Code Reader.
the marks involves focusing a light on the page being scanned and detecting the
reflected light patterns from the marks. Pencil marks made with a soft lead pencil
will reflect the light.
7. Touch Screen
Touch screen accept input by allowing the user to place a
fingertip directly in the computer screen usually to make a
selection from a menu of choices. Most touch screen
computers use sensors in or near the computers screen to
detect the touch of the finger. Touch screen are found in
applications such as automated teller machine. Also touch
screen are used in tourist centres, where tourist can look up various local facilities
Approved by CDC, Nepal
Introduction to computer 51
and entertainments.
9. Light Pen
Light pen is also a pointing device. Light pen consists of
photoelectric cells which is mounted in a pen shaped tube.
When the pen is brought in front of a picture element of the
screen, it senses light coming from a limited field of view. The
light coming from the screen causes the photoelectric cell to
respond by generating a pulse. The electric response is
transmitted to a processor that identifies the pixel the light pen is pointing to. Thus,
to identify a specific location the light pen is very useful. But the light pen provides
no information when it is held over blank part of the screen because it is passive
device with sensor only. The light pen can be also used to draw images on screen.
With the movement of the light pen over the screen, the lines are drawn.
i. Flatbed DIGITIZER
In case of flatbed digitizer the drawing to be digitized is spread and fixed over a
rectangular flat bed table. A mechanical device is now moved over the surface of the
drawing and produces signal related to the x and y coordinates of the table.
11. Microphone
Microphone is the input device which accepts audio input.
Microphone convert the sound wave into analog electrical
signals. Using speech recognition software, we can use
microphone as an input device for dictating text, navigating
programs and choosing commands. Microphones are
becoming increasingly popular as input devices these day. A
multimedia PC usually come with a microphone . Sometimes
the "mic" will be on a stand or it may be built into the computer's memory. To use
the microphone for input, computer must have a sound card installed within it.
1. Monitor
Monitor is the most commonly used output devices on most
personal computer system. Monitor is a soft copy output device
i.e. the output presented by monitor is of temporary nature.
Various sizes of 14", 15", 17", 19" monitor can be available. A size
of 19" monitor means that size of viewable screen measured
across the diagonal from corner to corner is 19". Computer
monitors can be roughly divided into two categories: CRT and flat panel displays.
i. CRT Monitor
This is the typical monitor that we see in the desktop computer and
it looks a lot like a television screen and even works in the same
way. This type of monitor uses a large vacuum tube.
a. Monitor Size
The bigger the size of monitor ; the better the monitor is.
b. Resolution
Resolution of a computer monitor is classified by the number of pixels on the
screen expressed as a matrix. For example a resolution of 640×480 means that there
are 640 pixels horizontally across the screen and 480 pixel vertically down the
screen. Pixel (picture element) is the smallest unit that can be displayed on the
screen.
c. Refresh Rate
Refresh rate of the monitor, is the number of times per second that the electron gun
scans every pixel on the screen. It is measured in Hertz (Hz) or in cycle per second.
A refresh rate of 60 Hz means that every pixel on the screen is scanned 60 times per
second. An image has to be refreshed at refresh rate greater than 50 Hz otherwise
the human eye may get flickering image.
2. Printers
Printers are hard copy output device i.e. the output displayed through printers are
of permanent nature and they can be seen on paper till the paper is destroyed or it
becomes damaged. Two general type of printers on the basis of technology used in
manufacturing process are as follows:
i. Impact printer
ii. Non-impact printer
Each of the above two are discussed as follows
i. Impact Printer
An impact printer creates an image by pressing an
inked ribbon against the paper, using pins or
hammers to shape the image. A simple example of
impact printer is a type writer which uses small
hammers to strike the ribbon. Each hammer is
embossed with the shape of an alphanumeric
characters and that shape is transferred through the inked ribbon onto the paper,
resulting in a printed character. The example of impact printers are line printer, dot
matrix printer, band printers, daisy wheel printer etc.
3. Plotters
Plotter is also an output device which is used to
produce high quality line drawing such as building
plans or electronic circuit. Early plotters were bulky,
mechanical devices that used robotic arm, which
literally drew the image on a piece of paper. The form of
plotters are flatbed plotters and Drum plotters.
4. Speakers
Speakers are common features on today’s multimedia
personal computer. Speaker is an output device. The
computer uses speakers as output device to produce
sound. Speakers attached to computers are similar to
those which are connected to stereo. The only difference is
that they are usually smaller and they contain their own
amplifiers.
Serial Ports
Serial Ports provide an interface to connect serial lines to prepare a serial communication.
Serial ports are typically used in modem, mouse, security cameras etc. A
Serial port uses DB-9 connector, a 9 pin D-Shaped Connector which
connects to the transmission line. A serial port provides a serial
communication using one line and thus have no dependency on other
wire's speed and its length can be extended as per the need.
HDMI
HDMI stands for High Definition Multimedia Interface and is the most frequently used HD
signal for transferring both high definition audio and video over a single cable.
It is used both in the commercial AV (Audio-Visual) sector and is the most used cable in
homes connecting devices such as digital TV, DVD player, Blu Ray player, Xbox, PlayStation
and Apple TV with the television.
More and more home AV devices are being connected using this simple, effective cable, but
now HDMI is also featuring on laptops and PCs and therefore becoming the standard for the
corporate and commercial markets – for education, presentation, digital signage and retail
display to transmit high quality audio video signals from device to device.
A single HDMI cable replaces the three composite audio/video cables, making it easier to
connect two devices together for transmitting audio and video signals. HDMI is capable of
transmitting standard, enhanced, and high-definition video signals, as well as up to 8-
channels of digital audio signals. The length of HDMI cables varies significantly. They can
run from one foot up to 50 feet, though it's not recommended that users buy more than a 25
foot cable as it may result in signal degradation or loss. The HDMI ports are found either on
the video card or motherboard on the back of the computer. It is important to note that not
all computers and video cards have HDMI connectors; your computer may use Display
port, DVI, or VGA technology.
Expansion Slot
Alternatively known as a bus slot or expansion port,
an expansion slot is a connection or port inside a computer on
the motherboard or riser card. It provides an installation point
for a hardware expansion card to be connected. For example, if
you wanted to install a new video card in the computer, you'd
purchase a video expansion card and install that card into the
compatible expansion slot.
Older expansion cards also included memory expansion cards, clock/calendar cards, hard
disk cards, compatibility cards for hardware emulation, and disk controller cards. The Altair
8800 was the first slot-type expansion card bus added to a microcomputer. It was developed
in 1974-1975 by IBM Corp.
The expansion slot opening is generally located on the back of a PC and provides an
electrical connection to the motherboard for an expansion card. Screws are then used to
attach the card to the slot for added security.
Summary
A complete computer system consists of 4 parts viz. hardware, software, people and
data.
The mechanical devices that make up the computer are called hardware.
Software is a set of electronic instructions consisting of complex codes that makes the
computer perform task.
People are the computer operator (user).
Data are the raw facts.
The style of construction and the way many parts of a computers system is organized is
referred wholly as computer architecture.
Processor (CPU) is the main component in a computer, that is the heart of the computer
system with circuitry to control the interpretations.
Control unit controls the sequence of actions by the program and input/output
operation.
All the arithmetic and logical calculations are performed by ALU.
Main memory is an immediate access memory also called as primary memory.
Auxiliary storage is meant to supplement the main memory.
Registers are the high speed memory locations which are used to store temporary
locations.
Bus refers to the path between the components of the computer.
Address bus is the bus which carries the memory location for data and instruction that
needs to be stored.
Data bus is the path way where transmission of actual data among CPU and other
devices take place.
Control bus transmits all timing and controlling functions sent by the control unit.
John Von Neumann in 1946 originated the stored program concept.
Memory is the workspace, for the computers processor.
RAM (Random Access Memory) is main memory from where any location in the
memory can be randomly and quickly accessed.
Secondary memory are meant to supplement the main memory.
ROM is the type of the primary memory whose contents are permanently etched into
the memory chip at the manufacturing stage.
Cache memory is used to increase the speed of processing by making current program
and data available to CPU at a rapid rate.
Monitor and printer are the output devices.
Approved by CDC, Nepal
Introduction to computer 61
Exercise
1. Explain the layers in the computer architecture.
3. What is microprocessor? Explain whether CPU and microprocessor are same or not.
6. What do you mean by hard copy output and soft copy output?
7. Explain cache memory. Write why cache memory is useful in computer system?