CAP EndSem Unit 6
CAP EndSem Unit 6
-----------------------------------------------------------------------------------
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 to 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 CPU varies from manufacturer to manufacturer.
Examples of devices that require a CU are:
Control Processing Units(CPUs)
Graphics Processing Units(GPUs)
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.
• In microprogrammed control unit micro instructions are stored in a special
memory called control memory
• Implemented using programming approach
• Sequences is carried out by executing a program consisting of micro
instructions.
-------------------------------------------------------------------------------------------------
Instruction Pipeline
Pipeline processing can occur not only in the data stream but in the instruction stream
as well.
Most of the digital computers with complex instructions require instruction pipeline to
carry out operations like fetch, decode and execute instructions.
In general, the computer needs to process each instruction with the following sequence
of steps.
Each step is executed in a particular segment, and there are times when different
segments may take different times to operate on the incoming information. Moreover,
there are times when two or more segments may require memory access at the same
time, causing one segment to wait until another is finished with the memory.
The organization of an instruction pipeline will be more efficient if the instruction cycle
is divided into segments of equal duration. One of the most common examples of this
type of organization is a Four-segment instruction pipeline.
Segment 1:
The instruction fetch segment can be implemented using first in, first out (FIFO) buffer.
Segment 2:
The instruction fetched from memory is decoded in the second segment, and eventually,
the effective address is calculated in a separate arithmetic circuit.
Segment 3:
Segment 4:
The instructions are finally executed in the last segment of the pipeline organization.