Hardwired Control Unit Vs Microprogrammed control unit
Hardwired Control Unit Vs Microprogrammed control unit
In computer architecture, the control unit is responsible for directing the flow of data and instructions
within the CPU. There are two main approaches to implementing a control unit: hardwired and micro-
programmed.
A hardwired control unit is a control unit that uses a fixed set of logic gates and circuits to execute
instructions. The control signals for each instruction are hardwired into the control unit, so the control
unit has a dedicated circuit for each possible instruction. Hardwired control units are simple and fast,
but they can be inflexible and difficult to modify.
On the other hand, a micro-programmed control unit is a control unit that uses a microcode to
execute instructions. The microcode is a set of instructions that can be modified or updated, allowing
for greater flexibility and ease of modification. The control signals for each instruction are generated
by a microprogram that is stored in memory, rather than being hardwired into the control unit.
Hardwired Control Unit: 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 named “hardwired”.
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 memory 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.
Instruction Set Supports limited instruction sets Supports complex instruction sets
Complex design, more difficult to
Simple design, easy to
Complexity of Design implement
implement
CISC
1. CISC uses large no. of instruction typically from 100 to 250 instructions.
2. Only some of of the instruction were used frequently
3. A large variety of addressing modes typically from 5 to 20 are used in CISC
4. Variable length instruction format are used in CISC.
5. Often memory is needed in CISC which makes execution of instruction slower
6. Instructions are more complex as compare to RISC.
7. Execution of instruction may take several clock cycle because the instruction are complex in
nature.
8. CISC uses fewer no of general purpose register (GPR).
9. CISC instruction may take more than one word.
10. CISC generally uses microprogrammed control unit
11. Instruction and data both share same memory space.
RISC
(Reduced Instruction set Computer)