Hardwired and Microprogrammed Control Unit (original) (raw)

Hardwired and Micro-programmed Control Unit

Last Updated : 9 Sep, 2025

The control unit is the part of the CPU responsible for directing operations. It manages the flow of instructions and data within the processor, ensuring that tasks are carried out in the correct order. There are two main types: hardwired and microprogrammed.

The control hardware can be viewed as a state machine that changes from one state to another in every clock cycle, depending on the contents of the instruction register, the condition codes, and the external inputs. The outputs of the state machine are the control signals. The sequence of the operation carried out by this machine is determined by the wiring of the logic elements and hence is named “hardwired”.

1

**Micro-programmed Control Unit

2

**Some Important Terms

  1. **Control Word: A control word is a word whose individual bits represent various control signals.
  2. **Micro-routine: A sequence of control words corresponding to the control sequence of a machine instruction constitutes the micro-routine for that instruction.
  3. **Micro-instruction: Individual control words in this micro-routine are referred to as microinstructions.
  4. **Micro-program: A sequence of micro-instructions is called a micro-program, which is stored in a ROM or RAM called a Control Memory (CM).
  5. **Control Store: the micro-routines for all instructions in the instruction set of a computer are stored in a special memory called the Control Store.

**Types of Micro-programmed Control Unit

Based on the type of Control Word stored in the Control Memory (CM), it is classified into two types :

**1. Horizontal Micro-programmed Control Unit :
The control signals are represented in the decoded binary format that is 1 bit/CS. Example: If 53 Control signals are present in the processor then 53 bits are required. More than 1 control signal can be enabled at a time.

**2. Vertical Micro-programmed Control Unit :
The control signals are represented in the encoded binary format. For N control signals- Log2(N) bits are required.

**Note: Types of Control Unit in descending order of speed :

**Hardwired control unit > Horizontal microprogrammed CU > Vertical microprogrammed CU

**GATE CS Corner Questions
Practicing the following questions will help you test your knowledge. All questions have been asked in GATE in previous years or in GATE Mock Tests. It is highly recommended that you practice them.

  1. GATE CS 2004, Question 66
  2. GATE CS 2002, Question 32