Open In App

Nano programming in Micro Instruction Format

In this article, we will discuss Nano programming in micro-instruction format in detail and also will understand with the help of example and also will discuss the need for Nano programming. Let’s discuss it one by one.

Pre-requisites –Horizontal and vertical microinstruction



Micro instruction format :
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 :
Horizontal micro-instruction :  
Here, we will discuss the horizontal micro-instruction format as follows.



Horizontal micro-instruction format

Type-2 :
Vertical micro-instruction : 
Here, we will discuss the vertical micro-instruction format as follows.

Vertical micro-instruction format

  

Need for nano programming :

Nano programming :

  1. Here we have a two-level control memory.
  2. The instruction is fetched from the main memory into instruction register IR.
  3. Using its opcode we load address of its first micro-instruction into µPC,
  4. Using this address we fetch the micro-instruction from micro control memory (µCM) into micro instruction register µIR.
  5. This is in vertical form and decoded by a decoder.
  6. The decoded output loads a new address in a nano program counter (nPC).
  7. By using this address, the nano-instruction is fetched from nano-control memory (nCM) into nano instruction register (nIR).
  8. This is in horizontal form and can directly generate control signals which can be multiple at a time.
  9. Such a combination gives advantage of both techniques.
  10. The size of the control Memory is small as micro-instructions are vertical.

Nano programming circuit.

Example –

Disadvantage of Nano programming

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.

Article Tags :