Professional Documents
Culture Documents
Characteristics of Computers
Speed: Computers have tremendous processing speed.
Accuracy: They are very accurate. Error can only occur due to faulty
instructions or hardware malfunctioning.
Reliability: At hardware level, computers do not require human intervention
between its processing operations.
Storage Capability: Computers can store large amounts of data and it can
recall the required information almost instantaneously.
Versatility: They can perform multiple tasks simultaneously with equal ease.
Diligence: Computers do not get tired and they do not suffer from lack of
concentration.
Lack of Intelligence: As a machine, a computer can only perform what it is
programmed to do, nothing more and nothing less.
Evolution of Computers
• Computers were preceded by many devices which
mankind developed for their computing
requirements. Some of them are:
According to Purpose
General: A general-purpose computer is designed to perform a
range of tasks.
Specific: These computers are designed to handle a specific
problem or to perform a single specific task.
Application of Computers
A number system defines a set of values used to represent quantity. The number systems can be categorised into
two broad categories:
Non-Positional Number Systems Positional Number Systems
(16)10 (0.375)10
Decimal
8 to Octal Remainder
359 Decimal
= 0.3125 Fraction
× 8 = to2.Octal
5 Fraction
2
8 10
(359) 44 7 = 0.5 10× 8
(0.3125) = 4.0 4
8 5 4 Octal equivalent of (0.3125)10 is (0.24)8
8 0 5
Octal equivalent of (359)10 is (547)8
= 4 × 8 2 + 5 × 8 1 + 6 × 80 = 2 × 82 + 3 × 81 + 7 × 80 + 0 × 8-1 + 4 × 8-2
= 256 + 40 + 6 = 302 = 128 + 24 + 7 + 0 + 0.0625 = 159.0625
Decimal equivalent of (456)8 is (302)10 Decimal equivalent of (237.04)8 is (159.0625)10
(B14)16 (A.23)16
1 1 10
+ +
1 1 0 1
1 1 1 1
- 1 0 1 1
+ 1 0 1 0
0 0 1 0
1 1 0 0 1
Binary Arithmetic
Binary Addition Binary Subtraction
Complement
The complement of a number is the number which when added to
the original will make it equal to a multiple of the base number
system.
Binary Coding
The most commonly used coding systems are:
Binary Coded Decimal (BCD)
American Standard Code for Information Interchange (ASCII)
Extended Binary Coded Decimal Interchange Code (EBCDIC)
Logic Gates
The term gate is used to describe the set of the basic electronic
components which when combined with each other, are able to
perform complex logical and arithmetic operations. Numerically, this
involves only two symbols - 0 and 1.
Basic Logic Gates
• AND Gate: The output is HIGH (1) when all the inputs are HIGH,
otherwise it is LOW (0). A dot (.) is used to show the AND operation.
• OR Gate: The output is HIGH (1) when any of the inputs are HIGH;
otherwise it is LOW (0). A plus (+) is used to show the OR operation.
• NOT Gate: This gate changes one logic level (HIGH / LOW) to the
opposite logic level, i.e. it changes '1' to '0' and vice versa.
Registers
The registers are special purpose, high-speed temporary memory units. They hold
various types of information such as data, instructions, addresses, and the
intermediate results of calculations. The important registers within CPU are:
Program Counter (PC)
Instruction Register (IR)
Memory Address Register (MAR)
Memory Buffer Register (MBR)
Accumulator (ACC)
Data Register (DR)
Registers and its Functions
Program Counter (PC): Keeps track of the next instruction to be
executed.
Instruction Register (IR): Holds the instruction to be decoded by
the control unit.
Memory Address Register (MAR): Holds the address of the
next location in memory to be accessed.
Memory Buffer Register (MBR): Used for storing data either
coming to the CPU or data being transferred by the CPU.
Accumulator (ACC): It is a general-purpose register used for
storing temporary results and results produced by arithmetic
logical unit.
Data Register (DR): Used for storing the operands and other
data.
Control Unit
• The control unit can be thought of as the ‘heart’ of the CPU. It controls
the I/O devices and transfer of data to and from the primary storage.
Control unit repeats a set of four basic operations:
• Fetching: The process of obtaining a program instruction or data item
from memory.
• Decoding: The process of translating the instruction into commands
the computer can execute.
• Executing: The process of carrying out the commands.
• Storing: The process of writing the result to memory.
Arithmetic Operations
Addition
Subtraction
Multiplication
Division
Arithmetic Logic Unit
ALU carries out arithmetic and logical operations on the data
made available to it. It comprises of:
Cache
A cache is a piece of very fast memory, made from high-speed static RAM that
reduces the access time of the data. It is very expensive and generally
incorporated in the processor, where valuable data and program segments are
kept. The cache facilitates the system to catch up with the processor's speed.
Instruction Set
Processors are built with the ability to execute a limited set of basic operations. The collection of these operations is
known as the processor's instruction set. Based upon the instruction sets, there are two common types of
architectures:
Complex Instruction Set Computer (CISC)
Reduced Instruction Set Computer (RISC)
Multiprocessor System
Computer systems that include more than one processor are called multiprocessor systems or parallel systems. In
a multiprocessing system, two or more independent processors are linked together in a coordinated system. In
such systems, instructions from different and independent programs can be processed at the same time, by
different processors.
Symmetric Shared Memory Multiprocessor
Asymmetric Shared Memory Multiprocessor
Primary Memory
Memory refers to the electronic holding place for instructions and data where the computer's microprocessor can
reach quickly.
Memory Representation
The various units, used to measure computer memory, are as follows:
Memory Hierarchy
The memory in a computer system is of three fundamental types:
Internal Processor Memory: Includes cache memory and special
registers.
Primary Memory: Includes Random Access Memory (RAM) and
Read Only Memory (ROM).
Secondary Memory: Includes hard disk, magnetic disk, and
magnetic tapes.
Types of SRAM
Asynchronous SRAM (ASRAM) Burst SRAM (BSRAM)
Pipeline Burst SRAM (PB SRAM)
Types of DRAM
Fast Page Mode DRAM (FPM DRAM) Extended Data Out DRAM (EDO DRAM)
Burst Extended Data Output DRAM (BEDO DRAM) Synchronous DRAM (SDRAM)
Rambus DRAM (RDRAM) Video RAM (VRAM)
Double Data Rate Synchronous DRAM (DDR SDRAM)
Magnetic Tape
Magnetic tape looks like the tape used in music cassettes.
The data is stored in the form of tiny segment of magnetised
and de-magnetised portion on the surface of the material. The
tape is divided into vertical column (frames) and horizontal
rows (channels). The data is stored in a string of successive
frames with one data per frame. Each frame is further divided
into rows or tracks. A magnetic tape can typically have 7-9
tracks. A bit can be stored in each track, with one byte per
frame.
Magnetic Disk
A magnetic disk comprises a thin piece of plastic/metal circular plate, which is
coated with magnetic oxide layer. Data is represented as magnetised spots on a
disk. A magnetised spot represents 1 and absence of a spot represents a 0. The
surface of the disk is divided into imaginary tracks and sectors (track and disk). The
track sectors are grouped into a collection known as cluster.
Optical Disk
An optical disk is a flat, circular, plastic disk coated with material on
which bits may be stored in the form of highly reflective areas and
significantly reflected areas, from which the stored data may be read
when illuminated with a narrow beam source, such as laser diode.
Unlike magnetic disks, optical disk consists of single long track in the
form of spiral shape.
Types of Optical Disk
CD-ROM (Compact Disk-Read Only Memory) Disk: As the name implies, it comes pre-recorded with data, which
cannot be altered.
WORM (Write Once Read Many) Disk: These types of disks can be used to read as well as to write (usually once)
data onto their surfaces.
Magneto-Optical Disk
This disk is a hybrid of magnetic and optical technology, employing laser to read data onto the disk, while using
magnetic field to write data.