Unit 1complete
Unit 1complete
(CSIT-404)
Memory
Output
Input
Unit
Unit
Registers
Processor
CENTRAL PROCESSING UNIT (CPU)
The CPU or the microprocessor (or simply processor) is
referred as the brain of a computer system.
CPU consists of three main subsystems, the Control Unit
(CU), the Arithmetic Logic Unit (ALU), and the
Registers.
Speed of the computer system is defined by the
architecture of the processor being used.
ARITHMETIC LOGIC UNIT
The ALU contains electronic circuits necessary to
perform arithmetic and logical operations.
The arithmetic operations are ADD, SUBSTRACT,
MULTIPLY, DIVIDE, etc.
The logical operations include COMPARE, SHIFT,
ROTATE, AND, OR, etc
The control unit analyses each instruction in the program
and sends the relevant signals to all other units – ALU,
Memory, Input unit and Output unit
COMMUNICATION INSIDE A COMPUTER
CONTROL UNIT
It is responsible for directing and coordinating most of the
computer system activities.
It does not execute instructions by itself. It tells other parts of
the computer system what to do.
It determines the movement of electronic signals between the
main memory and arithmetic logic unit as well as the control
signals between the CPU and input/output devices.
According to instruction, control unit issues signals to other
units.
After instruction is executed, the result of the instruction is
stored in memory or stored temporarily in the registry, so that
this can be used by the next instruction.
The results of a program are taken out of the computer
through the output unit.
REGISTER
Group of flip flop used to store a word(data)
Flip flop is nothing but hardware
Accumulator.
Decode
Execute
The fetch phase reads the next instruction from memory into the
CPU. The decode phase interprets the opcode by decoding it. The
execute phase performs the indicated operation.
CONTROL UNIT
A control unit, or CU, is circuitry within a computer's processor
that directs operations. It instructs the memory, logic unit, and
both output and input devices of the computer on how to
respond to the program's instructions. CPUs and GPUs are
examples of devices that use control units.
The control signals are generated in the control unit and provide
control inputs for the multiplexers in the common bus, control
inputs in processor registers, and micro-operations for the
accumulator. There are two major types of control
organization: