class3
class3
performed so that the CPU can tell how many operands it needs to fetch in order to
perform the instruction.
The Control Unit is the part of the computer’s central processing unit (CPU), which directs the operation of the
processor. It was included as part of the Von Neumann Architecture by John von Neumann. It is the responsibility of
the control unit to tell the computer’s memory, arithmetic/logic unit, and input and output devices how to respond to
the instructions that have been sent to the processor. It fetches internal instructions of the programs from the main
memory to the processor instruction register, and based on this register contents, the control unit generates a control
signal that supervises the execution of these instructions. A control unit works by receiving input information which it
converts into control signals, which are then sent to the central processor. The computer’s processor then tells the
attached hardware what operations to perform. The functions that a control unit performs are dependent on the type
of CPU because the architecture of the CPU varies from manufacturer to manufacturer.
It coordinates the sequence of data movements into, out of, and between a processor’s many
sub-units.
It interprets instructions.
It controls many execution units(i.e.ALU , data buffers and registers ) contained within a CPU.
It also handles multiple tasks, such as fetching, decoding, execution handling and storing
results.
The control unit of a CPU fetches and executes instructions, playing a critical role in system
performance. Its design ensures smooth operation of various components.
Types of Control Unit
There are two types of control units:
Hardwired
Micro programmable control unit.
Hardwired Control Unit
IR
Opcode
External input
Instruction Control signal generator Conditional
Decoder signal
Control signal
Micro Programmable control unit
The fundamental difference between these unit structures
and the structure of the hardwired control unit is the existence
of the control store that is used for storing words containing
encoded control signals mandatory for instruction execution.
In microprogrammed control units, subsequent instruction
words are fetched into the instruction register in a normal
way. However, the operation code of each instruction is not
directly decoded to enable immediate control signal
generation but it comprises the initial address of a
microprogram contained in the control store.
IR 100 111000101
Instruction 101
102
103
MICRO PC
ADD 200
100 ROM
SUB 300