CACS101 CFA Unit 1
CACS101 CFA Unit 1
Introduction
A computer is an electronic machine that takes input from a user, processes the given input and
generates output in the form of useful information.
A computer accepts inputs in many forms such as data, programs and user reply.
DATA -> raw details that require processing for generating useful information
PROGRAM -> set of instructions that can be executed by computer in sequential or non-sequential order
USER REPLY -> input provided by the user in response to query asked by computer
Characteristics
1. Speed
Computer can do any tasks in fractions of second. The speed of the computer is based
on its hardware configuration.
2. Storage Capacity
A computer can store a huge amount of data in many different formats.
3. Accuracy
A computer carries out any calculation with a 100% accuracy. However, this depends on
the configuration of the system and instruction from the user.
4. Reliability
A computer processes results with 0 error. Mostly the error generated in the computer
is due to user’s fault.
5. Diligence
Computer can be set to perform repetitive tasks for numerous times and the result will
always be displayed with the same accuracy and efficiency. Computers aren’t affected
by human traits like dizziness, fatigue, distraction, tiredness, etc.
6. Versatility
The same computer can be used for many different tasks for many different purposes.
Evolution of Computer
1. Mechanical Era
2. First Generation Computer
Employed: 1940 – 1956
Technology used: Vacuum Tube
Tasks done: Mathematical Calculation
Advantages: fast computing in their time, easy to program (assembly language), smaller
in size and consumed less power
Disadvantages: I/O devices not improved to considerable extent, generated huge
amount of heat, beyond the access of households
Classification of Computer
Components of CPU
1. Arithmetic/ Logical Unit
ALU does arithmetic and logical operations. Arithmetic operations include addition,
subtraction, multiplication and division. Arithmetic unit takes input instruction in the
following form:
opcode + operand + format code
opcode – operation
operand – data
format code – format of the operand, e.g. fixed point or floating point
Logical unit operates the data logically. Logical operations include greater than (>), less
than (<), equals to (=), not equal to (! =), shift left, shift right, etc. This unit makes use of
logical gates (AND, OR, NAND, NOR, etc.) to perform logical operations.
2. Control Unit
This unit of CPU controls the flow of data and information. It maintains the sequence of
operation being performed by the CPU. The control unit fetched instruction from
storage area, decode the instructions and transmit the corresponding signal to ALU and
the storage registers.
3. Main Memory
2. Memory
1. Main Memory
RAM is the primary or main memory. It is volatile in nature and holds the data for a short
period of time only, that is only until the system is running. Files and instructions are saved
in different secondary storage systems and they are fetched to the RAM before the
execution. This technique is known as swapping. Memory space available in the main
memory directly affects the speed of the computer.
2. Cache Memory
It is the smallest and fastest form of memory. The contents that requires to be fetched
frequently are stored in the cache memory. Therefore, the processor before looking for the
content in RAM checks here and goes to RAM only if the content isn’t available here.
Cache memory is always placed between RAM and the processor.
3. Register
There are special purpose temporary storage units which are called registers. They are the
form of memory with the highest transfer speed. These registers are used for holding
instructions, data and intermediate results that are currently being processed.
Examples: Program Counter (PC), Instruction Register, Memory Address Register, Memory
Buffer Register, Memory Data Register, Accumulator, etc.
3. Input Device
They are the computer peripherals that are used to send input signals to the computer for
processing. The basic input device is keyboard.
Example: mouse, scanner, digital camera, etc.
4. Output Device
They are the computer peripherals that are used to display the results of the processed data.
The basic output device is monitor.
Example: speaker, printer, etc.
The storage system used for handling the running process is called primary memory. They are temporary
in nature. And the storage which are used to store data and information for longer term is called
secondary memory.
The data and information held by the primary memory can be directly accessed by the CPU using data
and address buses. However, the data stored in the secondary memory is to be fetched to the primary
memory through I/O channel first and the CPU reads the data from the secondary memory via the
primary.
There is a third type of memory as well which is know as internal process memory. These are placed
either near to the CPU or inside the CPU itself.
Internal
Process
Memory Primary
Secondary
Memory Representation
1 Byte = 8 Bits
1 KB = 1024 Bytes
Primary Memory
RAM
Primary
Memory
ROM
1. RAM
It is volatile in nature and loses all its content once the power of the computer is turned off.
Hence RAM is used for storing the data and instructions only during the processing. Unlike
Secondary form of memory, it is faster in data transfer. It is internal memory. It is also called
Read/ Write memory as it can perform both read and write operations.
Static RAM
RAM
Dynamic
RAM
i. SRAM
In this type of RAM data is stored only until the power of the computer is on. It
uses numbers of transistors to store a single bit of data. Based on the
functioning nature it can be further classified as
a. Asynchronous SRAM
It performs operations without the use of system clock. It makes use of
three signals for working, i.e. chip select (CS), write enable (WE) and output
enable (OE).
b. Burst SRAM
It works in association with the system clock. Therefore, it is also known as
synchronous SRAM. It is used with high-speed applications as the read and
write cycles are synchronized with the clock cycle of the processor. The
access waiting time gets reduced after the read and write cycle are
synchronized.
PROM
EPROM
ROM
EEPROM
Flash ROM
Advantages:
- low cost and high storage
- easily transportable
- easy to handle and store
Disadvantages:
- low data transmission due to sequential transmission
- low life duration
- required protected environment for storage
Advantages:
Disadvantages:
Advantages:
- Large storage capacity
- Longer life-span than magnetic tapes
- Low ‘cost-per-bit’ for storage
- Portable
Disadvantages:
- Prone to scratches which could disturb or totally prevent the driver to perform R/W
operations
3. Magneto-Optical System
It includes the features of both optical and magnetic disks. Its main objective is to store the data
in personal computers for longer period of time. It performs R/W operation by making use of
laser and optical technology. It has ferro magnetic particles enclosed in plastic coating. The laser
beam used for R/W operation gets reflected due to magnetic surface of the disk.
Advantages:
- Better performance – high access speed, random access of data, faster R/W operation
- Low power consumption and hear generation
- Highly reliable
- Small dimension/ compact size
Disadvantages:
- High cost
- Lower capacity
- Low storage density
- Vulnerable – data loss, affected by power loss, electrostatic discharges and magnetic fields
Interface
A system of interaction or communication between a computer and another entity such as printer,
another computer network or a human user. Devices such as cable, network card, monitor or keyboard
that enables interaction or communication between computer and other entity.
1. Hardware Interface
Hardware interface exists in many of the components such as buses, storage devices, other I/O
devices, etc. A hardware interface is described by mechanical, electrical and logical signal at the
interface and protocols for sequencing them. Hardware interfaces can be parallel with several
electrical connections carrying parts of data simultaneously or serially where data can be sent
one bit at a time.
Serial -> 1 bit at a time
Parallel -> 1 word at a time
2. Software Interface
A software interface may refer to a wide range of different types of interface at different types
of interfaces at different levels - an operating system may interface with a piece of hardware;
application or program running on the operating system may need to interact via data streams,
filters and pipelines. In Object oriented program, object within an application may need to
interact via methods.
3. User Interface
A user interface consisting of a set of dials, knobs, operating system commands, graphical
display formats and other devices provided by a computer or a program to allow the users to
communicate or use the computer or program. The popular means of user interface is Graphical
User Interface (GUI) which provides pictorial (picture-oriented) way to interact with the system.
GUI is easier to use and user-friendly interface.
Mobile Computing
Mobile computing is human-interaction by which a computer is expected to be transported during
normal usage which allows transmission of data and information in different available forms. This
involves mobile communication, mobile hardware and mobile software.
• Mobile communication issues include ad-hoc networks and infrastructure networks as well as
communication properties, protocols, data formats and concrete technologies.
• Mobile software deals with the characteristics and requirements of mobile application.