Nano Programming -Unit III
Nano Programming -Unit III
Format
Microinstructionforma:
The control field of the micro-instruction decides the control signals to be produced. It is of two
different formats Horizontal or Vertical. Let’s discuss it one by one.
Type-1:
Horizontalmicro-instruction:
Here, we will discuss the horizontal micro-instruction format as follows.
Type-2:
Verticalmicro-instruction:
Here, we will discuss the vertical micro-instruction format as follows.
Horizontal micro-instructions can produce multiple control signals simultaneously but are very
wide. This makes the control memory very large.
Vertical micro-instructions are narrow, but after decoding, only produce one control signal. This
makes the control memory small, but the execution is slow.
Both methods have their own pros and cons.
Hence, a combination of both techniques is needed to be called nano programming.
Nano programming :
Example
Suppose processors have 32 instructions (8 for arithmetic operations 8 for data transfer
operations, 8 for logical operations 8 for shift operation). Suppose we require 32 control signals
total in which 8 are responsible for performing data transfer operation, 8 for logical,8 for a shift,
and 8 for arithmetic.
If we implement it by horizontal micro-instruction, then the size of each micro-instruction
should be 32 bits. Most probably for data transfer operation we don’t need a control signal for
the other 3 types of instruction so in the whole micro-instruction the 27 bits for generating
control signals for different 3 instruction types are 0 (garbage) which makes lots of memory
space waste, also control memory size increases.
If we use nano programming, then micro-control memory has instructions for identifying the
type of the instruction by decoding i.e using vertical micro-instruction. After identifying the type
of instruction the nano control memory is responsible for generating control signals for that
particular instruction type that is identified previously. So the advantage of that is every nano
instruction size reduces to 8 bits and every micro-instruction size reduces to 2 bits(for
identifying 4 different types of instruction and for 2×4 decoder) i.e advantage of vertical micro-
instruction also we can produce multiple control signal for a particular instruction type
simultaneously which is an advantage of horizontal instruction.
Increased memory access time:- The main disadvantage of the two level memory approaches is
the loss of speed due to theextra memory access required for Nano control memory.