Professional Documents
Culture Documents
Comp App Lect 2 System Unit
Comp App Lect 2 System Unit
Working of CPU
The CPU
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
on.
When the control unit encounters an instruction that involves
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
16
IP Cycle:
17
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
that component.
Each I/O devices has a unique address. (monitor, mouse, CD-ROM)
memory
Control Bus
Collection of individual control signals.