coam4_merged
coam4_merged
The purpose of control unit is to initiate a The control hardware can be viewed as a The scheme of micro-instruction by
series of sequential steps of micro- state machine that changes from one state assigning one bit position to each control
operations. At any given time certain to another in every clock cycle, depending signal is called horizontal micro-
operations are to be initiated while all on the contents of the instruction register, instructions. Example:
others remain idle. The control variable at the condition codes and the external 011101001101001110 In a horizontal
any given time can be represented by a inputs. The outputs of the state machine microinstruction every bit in the control
string of 1's and 0's called control word. are the control signals. field attaches to a controller.Horizontal
The control words can be programmed to Control logic derived in this section is a microinstructions represent several micro-
initiate the various components in the hardwired control of the one flip-flop per operations that are executed at the same
system in an organized manner. A control state method. The design of hardwired time.
unit whose control variables are stored in control is carried out in 5 consecutive Vertical Micro-Instructions
a memory called a micro-programmed steps We can reduce the length of the
control unit. Each control word of memory 1. The problem is stated horizontal micro-instruction so easily by
is called Microinstruction and Sequence of 2. An initial equipment configuration is implementing another method known as
microinstructions is called Micro-program. assumed vertical micro-instructions. In this case,
Control memory is usually ROM since an 3. An algorithm is formulated Most signals are not needed
alteration of micro-program is seldom 4. The data processor part is specified simultaneously and many others are
needed. The use of micro-program 5. The control logic is designed mutually exclusive Example: In a vertical
involves placing all control variables in Micro-program Sequencer microinstruction, a code is used for each
words of the ROM for use by the control Micro program sequencer is a control unit action to be performed andthe decoder
unit through successive read which does the tasks of Micro-program translates this code into individual control
operations.The content of the word in the sequencing.There are two important signals. The vertical microinstruction
ROM at a given address specifies the factors must be considered while resembles the conventional machine
micro-operations for the system. designing the micro programsequencer. language format comprising one operation
PLA control o The size of the microinstruction and a few operands
The external sequence register establishes o The address generation time
the present state of the control circuit. Micro-program sequencer is attached to
The PLA outputs determine which micro- the control memory.It inspects certain bits
operations should be initiated depending in the microinstruction to determine the
on the external input conditions and the next address for controlmemory.A typical
present state of the sequence register. At sequencer has the following address
the same time other PLA outputs sequencing capabilities.
determine the next state of the sequence 1. Increments the present address of
register control memory
2. Branches to an address which will be
specified in the bits of microinstruction
3. Branches to a given address if a
specified status bit is equal to 1.
4. Transfers control to a new address as
specified by an external source
5. Has a facility for subroutines calls and
returns.