Computer Science
Computer Science
Inputting
Storing
Processing
Outputting
Controlling
1.Input:
It is the process of feeding data and instructions to a computer system
2. Store:
It is the process of saving the data and instruction for the use of the system as and when
required.
3. Processing:
It is the way of carrying out arithmetic(addition, subtraction, multiplication and division) or
logical(comparison) operations on data in order to convert them to useful information.
4. Output:
It is the process of presenting the final result for the user in printed or visual display format.
INPUT UNIT
Keyboard, mouse, joystick, scanner smartcard, microphone.
Primary Storage
RAM, ROM, PROM EPROM, Flash.
OUTPUT UNIT
Display Screen, Printer, Plotter, Speaker.
Secondary Storage
Magnetic disk, Optical disk, Solid state memory.
Indicate control flow for proper operation
5. Control:
It is the most important operation of the computer in which all four operations described
above are coordinated and synchronized.
Though the internal architecture of different computers vary from one system to another,
the basic organization remains the same.
PRIMARY STORAGE
A primary storage device is any storage device or component
that can store volatile data in computers, servers and other
computing devices. It is used to hold/store data and
applications temporarily or for a shorter period of time while
the computer is running.
Primary storage is also known as main storage, main memory
or internal memory.
Random access memory (RAM), and cache memory(Cache
memory is a small-sized type of volatile computer memory
that provides high-speed data access to a processor and stores
frequently used computer programs, applications and data.)
are common examples of primary storage devices.
As soon as the computer system switches off or resets,
the information held in primary storage is erased.
Limited storage capacity
Expensive
SECONDARY STORAGE
A secondary storage device refers to any non-volatile
storage device that is internal or external to the
computer. It can be any storage device beyond the
primary storage that enables permanent data storage.
A secondary storage device is also known as an
auxiliary storage device or external storage.
SECONDARY STORAGE
Secondary storage devices are primarily referred to a
storage devices.
These devices store all programs and applications
stored on a computer, including the operating system,
device drivers, applications and general user data.
Most of the secondary storage devices are internal to
the computer such as the hard disk drive, the tape disk
drive and even the compact disk drive and floppy disk
drive.
System Unit
Working of CPU
The CPU
The CPU
CPU stands for central processing unit, it is brain of computer
called processor.
Converts data into information
instructions.
It executes instructions and tells other parts of computers what
to do.
Most of the work consists of calculations and data transfer.
Two parts
Control Unit (CU)
Arithmetic and Logic Unit (ALU)
Control Unit
CU
Control Unit is an important component of CPU. It acts
unit.
Think of the control unit as a traffic signal directing the flow
Arithmetic Unit
Logic Unit
locations built directly into the CPU that are used to hold the
data currently being processed.
ALU will use the register to hold the data currently being used
for calculation.
For example
CU might load two numbers from memory into the registers in
the ALU.
Then it might tell the ALU divide the two numbers (an
22
IP Cycle:
23
Input: Transforming Data into Information
Key Terms
Command– A type of input that tells the program what
to do.
Confirmation– A message that indicates if the command
was or was not carried out.
Keyboard– Enables the user to input characters.
25
Machine cycles
Each time the CPU executes an instruction, it takes a series
of steps.
The completed series of steps is called machine cycles.
A machine cycle itself can be broken down into two smaller
cycles-
1. Instruction cycle
2. Execution cycle
Machine cycle - fetch► decode► execute► store
Instruction Execution Cycle
The CPU continuously transfer data to and from memory
INSTRUCTION CYCLE
1. FETCHING:
Before CPU can execute an instruction ,the control unit must
retrieve a command or data from the computer’s memory.
2. DECODING:
Before a command can be executed ,the control unit must break
down (or decode) the command into instruction that
correspond to those in the CPU’ s instruction set
Execution Cycle
Execution Cycle
1. Executing:
When the command is executed, the CPU carries out the instructions in
order by converting them into microcode.
2. Storing:
The CPU may be required to store the results of an instruction in
memory (but this condition is not always required).
Steps of Machine Cycle