Microinstruction Format Concept of Horizontal and Vertical Microprogramming
Microinstruction Format Concept of Horizontal and Vertical Microprogramming
(An ISO – 9001: 2008 Certified & „A‟ Grade accredited Institution by
NAAC)
Department of Information Technology
Microinstruction Format & Concept of Horizontal and
Vertical Microprogrammed Control Unit
-Compiled by Prof. Minakshi
Topics Covered:
Micro-programmed Control Unit
Basic Terminologies used in Micro-programmed Control Unit
Microinstruction Formats
Horizontal vs. Vertical Microinstructions/control unit
Terminologies:
Control variable
Control word or microinstruction
Micro-operation
Control Memory
Micro-program
Micro-code
Micro-operation:
The execution of an instruction involves the execution of a
sequence of subsets, generally called cycles.
For example, an execution may consist of fetch, decode, execute
and interrupt cycle. Each cycle is in turn made of a sequence of
more fundamental operations called micro-operations.
A single micro-operation generally involves a transfer between
registers, transfer between a register and an external bus or a
simple ALU operation. The following figure shows that the program
execution is done by performing various microoperations.
Control Variable:
The control function that specifies a micro-operation is a binary
variable. When it is in one binary state, the corresponding micro-
operation is executed.
The active state of a control variable may be either the 1-state or 0-
state, depending on the application.
During any given time, certain micro-operations are to be initiated
while others remain idle.
Control word:
The control variables 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.
Control Memory:
A memory that is the part of control unit is called the control
memory. Control memory is the storage in the micro-programmed
control unit to store the micro-program.
Micro-code: A logically coherent portion of micro-program is called
micro-code.
The nine bits of the microoperation field will be 000 100 101.
It is important to realize that two or more conflicting
microoperations cannot be specified simultaneously.
For example, a microoperation field 010 001 000 has no meaning
because it specifies the operations to clear AC to 0 and subtract DR
from AC at the same time.
CD condition field consists of two bits which are encoded to
specify four status bits condition given in the following table.
CD Condition Symbol
00 Always = 1 U Unconditional
Branch
01 DR(15) I Indirect Address Bit
10 AC(15) S Sign Bit of AC
11 AC=0 Z Zero Value in AC
Note that the last two conditions in BR field are independent of the
values in the CD and AD Fields.
Horizontal Micro-programmed Control Unit and Vertical Micro-
programmed Control Unit:
Question
Suppose there are 64 control signals in the system and 1024 word
control memory then find out the size of horizontal and vertical
microinstructions.
Answer:
Number of Control signals= 64
Number of bits required to represent the 64 control signal = log2 64 = 6
Number of control words in the control memory= 1024 = 210
Number of address bits = 10
= 50+4 +10
= 64 bits
= 6 +4+10
= 20 bits