2081 7

BIT151 ยท 2081 ยท 5 marks

What is micro program? Write symbolic microprogram for FETCH operation.

What is micro program? Write symbolic microprogram for FETCH operation. [5]

Microprocessor and Computer ArchitectureChapter 3: Microoperations and Control Unit DesignSymbolic and binary microprogram representation

Quick answer

A microprogram is a sequence of microinstructions stored in a special memory called control memory (or control store). Each microinstruction specifies one or more micro-operations (elementary hardware operations) to be performed in a single clock cycle.

Microprogram and Symbolic Microprogram for FETCH Operation

What is a Microprogram?

Key points:

  • Microprogramming is a technique used to implement the control unit of a CPU.
  • The concept was introduced by Maurice Wilkes.
  • Each machine instruction is interpreted by executing a corresponding sequence of microinstructions.
  • Microinstructions are stored in ROM-based control memory.
  • A microprogram is analogous to a program, but operates at the register-transfer (hardware) level.

Microprogrammed Control Unit uses control memory to generate control signals, rather than hardwired logic.


Symbolic Microprogram for FETCH Operation

The FETCH cycle retrieves an instruction from memory and places it in the Instruction Register (IR), then increments the Program Counter (PC).

Registers Used:

RegisterPurpose
PCProgram Counter
MARMemory Address Register
MBR / MDRMemory Buffer / Data Register
IRInstruction Register

Symbolic Microprogram (FETCH Cycle):

Step    Micro-operation                     Comment
------  ----------------------------------  ---------------------------
T0:     MAR โ† PC                           Transfer PC content to MAR
T1:     MBR โ† M[MAR], PC โ† PC + 1         Read memory into MBR;
                                            Increment PC simultaneously
T2:     IR โ† MBR                           Load instruction into IR

Explanation of Each Step:

  1. T0: MAR โ† PC

    • The content of the Program Counter is transferred to the Memory Address Register.
    • This tells the memory which address to read from.
  2. T1: MBR โ† M[MAR], PC โ† PC + 1

    • The instruction stored at the address in MAR is fetched from memory into MBR.
    • Simultaneously, PC is incremented to point to the next instruction.
    • These two micro-operations can occur in parallel (same clock cycle).
  3. T2: IR โ† MBR

    • The fetched instruction is transferred from MBR to the Instruction Register (IR).
    • After this, the DECODE phase begins.

Summary Flow:

PC --> MAR --> Memory Read --> MBR --> IR
                                PC + 1 --> PC

The FETCH microprogram typically requires 3 micro-steps (T0, T1, T2) and forms the first part of the instruction cycle in any CPU.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.