Introduction to Computer
Introduction to Computer
Computer-History, Classification
and Basic Anatomy
ENIAC was the first electronic general-purpose computer. It was capable of being
reprogrammed to solve various numerical problems. ENIAC was primarily designed to
calculate artillery firing tables. It was mainly used in the United States Army’s Ballistic
Research Laboratory. ENIAC was introduced to the public at the University of Pennsylvania
in 1946 as “Giant Brain.” ENIAC’ was funded by the United States Army.
ENIAC had a modular design. It had individual panels to perform separate functions.
Twenty modules among them were accumulators that could add, subtract and hold a ten-
digit decimal number in memory. Numbers were passed between these modules through
several general-purpose buses. The modules were able to send and receive numbers,
compute, save the answer and trigger the next operation without any moving component.
That is why it could achieve high speed. Key to its versatility was the ability for branching.
It could switch to different operations, depending on the sign of a computed result.
ENIAC contained 17,468 vacuum tubes, 1500 relays, 70,000 resistors, 7200 crystal diodes,
10,000 capacitors. It had a whopping 5,000,000 hand-soldered joints. It weighed more than
27 tons, was roughly 8 × 3 × 100 feet in size, occupied 1800 ft2 and consumed 150 kW of
electricity.
After ENIAC, a much improved computer named EDVAC (Electronic Discrete Variable
Automatic Computer) was designed. EDVAC was a stored program computer. EDVAC
was the first computer to work in binary number system. This is a major difference with
ENIAC that used decimal number system.
The transistors also generated a lot of heat that subjected the computer to damage. But
it was much better than the vacuum tubes in terms of size and heat.
Second-generation computers used symbolic or assembly languages instead of binary
machine language that allowed programmers to specify instructions in words instead of
machine code or binary.
Second-generation computers were still using punched cards for input and print-outs
for output. At this time, high-level programming languages, like early versions of COBOL
and FORTRAN were being developed. The first computers that were developed around
this time were used in the atomic energy industry.
computers were also equipped with the mouse and other handheld devices. Graphical
user interface (GUI) was also designed for these computers.
computers are used primarily by corporate and governmental organizations for critical
applications, bulk data processing such as census, industry and consumer statistics,
enterprise resource planning and transaction processing.
(4) Supercomputers are the fastest and the most expensive machines. They have
high processing speed compared to other computers. The speed of a supercomputer is
generally measured in FLOPS (Floating point Operations Per Second). Some of the faster
supercomputers can perform trillions of calculations per second. Supercomputers are built
by interconnecting thousands of processors that can work in parallel. Supercomputers are
used for highly calculation-intensive tasks, such as, weather forecasting, climate research,
molecular research, biological research, nuclear research and aircraft design. Some examples
of supercomputers are IBM Roadrunner, IBM Blue gene. The supercomputer assembled in
India by C-DAC (Center for Development of Advanced Computing) is PARAM. PARAM
Padma is the latest machine in this series. The peak computing power of PARAM Padma
is One Tera FLOP.
In case of little-endian, the least significant byte is stored in the smallest address. Here’s
how it would look:
The Central Processing Unit (CPU) is like the brain of the computer. It is responsible for
executing instructions. It controls the sequence of execution of instructions. It comprises
a Control Unit (CU), an Arithmetic & Logic Unit (ALU) and huge number of registers.
The CU controls the execution of instructions. First it decodes the instruction and then
generates micro-operations in a particular order with the help of control memory. The
ALU is responsible for performing arithmetic and logic operations.
The interconnections are referred as BUS. Buses are nothing but bunch of wires used to
carry digital signals. There are three kinds of bus:
1. Address bus
2. Data bus
3. Control bus
Address bus carries address of memory from where to read/to where to write data.
Size of address bus of a processor defines the amount of memory addressable by it.
For example a processor with 16 bit address bus can access 216 = 64 KB memory (26 = 64
and 210 = 1024 = 1 K) and a processor with 32 bit address bus can access 232=4 GB memory
(22 = 4 and 230 = 1024 × 1024 × 1024 = 1024 × 1024 × 1 K = 1024 × 1 Mega = 1 Giga.). Address
bus is unidirectional, i.e., it carries signal from CPU to other components (only CPU is
intelligent enough to generate address).
Data bus is bidirectional. It carries data read from/to be written to a device. Its size and
width of registers signify the size of data that can be crunched by the processor in one go.
Control bus carries control signals that activate/deactivate various circuits.
*
As the programs become larger and larger, it was not possible to put the total program in the
relatively smaller main memory. So virtual memory was introduced in operating systems. It is a
technique that shows the free part of secondary storage as main memory. It keeps the total program
in the secondary storage in blocks and fetches the required blocks to primary when necessary.
†
Here Von Neumann design differs from HAVARD ARCHITECTURE that uses separate code and
data memory on separate bus.
∑ Instructions will be fetched from memory and executed one at a time in a linear
fashion.‡ $$
1.6.1 Input devices
1.6.1.1 Keyboard
Text information is entered in the computer by typing on the computer keyboard. Most
keyboards, for example – the 101-key US traditional keyboard or the 104-key Windows
keyboard, have alphabetic and numeric characters, punctuation marks and function keys.
Keyboards are generally connected to the computer by a PS/2 connector or USB port.
‡
To speed up execution, multiple instructions are fetched in a queue in a pipelined computer.
1.6.1.2 Mouse
Mouse is a pointing device. The cursor on the screen is moved by moving the mouse.
A mouse have mainly two buttons – left and right. Newer mouses may contain other
buttons and a roller for scrolling. In older models, a ball in the bottom of the mouse rolls
on the surface as the mouse moves, and internal rollers sense the movement of the ball and
transmit the information to the computer via the mouse cable. The newer optical mouse
does not use a rolling ball, instead it uses a light and a small optical sensor to detect the
motion of the mouse by tracking a tiny image of the desk surface. Even cordless mouse are
very much affordable now a days, but they need regular battery change that reduces their
popularity. Mouse sends two information to the computer – one is the X and Y coordinate
of the pointer merged in a single number, another is the code of key pressed. Any activity
on the mouse generates an interrupt that ultimately causes an event such as mouse move,
left click, double click, right click, and drag to the operating system. What incidents will
happen with the muse events are completely programmable.
1.6.1.3 Scanners
A scanner is a device that converts a printed page or graphic to an image file that can be
stored in computer by digitizing it. It produces an image made of tiny pixels of different
brightness and color values which are represented numerically and sent to the computer.
Pages containg text is also scanned and saved as images. To convert such images
containing text to editable text files OCR (Optical Character Recognition) software is used.
Scanners are available in various sizes with various scan resolution capability. A4 size
scanners (largest page size it can scan is A4-8.27≤ × 11.69≤) are most popular and affordable.
Scanners with automatic document feeder is also available.
1.6.1.4 Microphone
A microphone can be attached to a computer through a sound card input or circuitry built
into the motherboard to record sound. The sound is digitized and stored in the computer.
Our ear can hear analog sound of frequency range 20 to 20 MHz. But for storing sound in
computer, the analog signal is converted to digital signal. Again when the sound is played
back through speakers, the stored digital signal is converted to analog. (The process of
digitization is beyond the scope of this book.)
1.6.2 Output devices
1.6.2.1 Monitor
Monitor is the maximum used output device of a personal computers. At the begining,
CRT-(Cathode Ray Tube) display in monochrome with low resolution was available.
Gradually high resolution colour monitors was introduced. Presently bulky CRT monitors
has been mostly replaced by LCD or LED monitors as LCD or LED display consumes less
electricity, takes less space and capable of displaying more clear and flicker free images.
1.6.2.2 Printer
When some output on paper is needed, a printer is must. The three most common types
of printers are Dot matrix, Inkjet and Laser. Dot matrix printers provide poorest quality
output in lowest cost. It is mainly used for text based outputs on pre-printed stationary
such as cash-memo and ticket.
Laser printers produce best quality printouts using powder formed inks filled in toner
cartiges. Cost of laser printers are high but printing cost is less than that of a deskjet printer
that uses liquid inks with magnetic particles filled in ink cartiges.
Exercises
1. Write short notes on Von Neumann architecture.
2. Differentiate between Von Neumann and Havard architecture.
3. With a neat block diagram, describe various components on a computer.
4. Classify memories in terms of access strategy.
5. “All ROMs are RAM but all RAMs are not ROMs” – Justify.
6. For a medicine or grocery store what kind of printer you will suggest and why?
7. Write down various ports availble in a computer system.
8. What is a BUS? How many types of BUS is available?
9. Write full form of ENIAC.
10. What do you mean by Virtual Memory. What is the largest possible size of it? Why it is called
virtual?