Co Unit3 p-1
Co Unit3 p-1
• Control covered
Memory,
• Address sequencing,
• Micro program
example,
• Design of Control Unit
•1
Control Memory
• The function of the control unit in a digital computer is
to initiate sequences of micro operations.
• The control unit initiates a series of sequential steps of micro
operations.
• The control variables at any given time can be represented
by a string of 1's and 0's called a control word.
• As such, control words can be programmed to perform
various operations on the components of the system.
• A control unit whose binary control variables are stored
in memory is called micro programmed control unit.
• A memory that is a part of control unit is called a control
memory.
•2
Address sequencing
•Control memory address register specifies the address of the microinstruction,
and the control data register holds the microinstruction read from memory.
•The microinstruction contains a control word that specifies one or more micro
operations for the data processor.
•The next address generator is sometimes called a micro program sequencer, as
it determines the address sequence that is read from control memory.
•The control data register holds the present microinstruction while the next
address is computed and read from memory. The data register is sometimes
called a pipeline register.
•It allows the execution of the micro operations specified by the control word
simultaneously with the generation of the next microinstruction.
a subroutine is a sequence of program instructions that performs a specific task, packaged as a unit. This unit can then be used in programs
wherever that particular task should be performed. •4
Micro program
example
•5
Micro program
example
4. The BR field contains one of the four symbols defined in previous Table
5.The AD field specifies a value for the address field of the microinstruction
in one of three possible ways:
a. With a symbolic address, which must also appear as a label
b. With the symbol NEXT to designate the next address in sequence
c. When the BR field contains a RET or MAP symbol, the AD field is
•9
•8
left empty and is converted to seven z•Sehrwoetsa Jbosyhi the assembler.
Micro program
example
•9•9
Design of Control Unit
• The bits of the microinstruction are usually divided into
fields, with each field defining a distinct, separate
function.
• The various fields encountered in instruction formats
provide control bits to initiate microoperations in the
system, special bits to specify the way that the next address
is to be evaluated, and an address field for branching.
• The number of control bits that initiate microoperations
can be reduced by grouping mutually exclusive variables
into fields and encoding the k bits in each field to provide
2^k micro operations
•10
•1
0
Design of Control Unit
•11
•1
1
Design of Control Unit
•12
•1
2