Professional Documents
Culture Documents
23EC1202
DIGITAL DESIGN & COMPUTER ARCHITECTURE
Session – 27 & 28
To familiarize students with the basic concept of Hardware Realization Vs Micro Progrmmed Realization and
Mutlicycle Implementation
INSTRUCTIONAL OBJECTIVES
• 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.
• The Hardwired and Microprogrammed control unit generates the control signals to fetch and
execute instructions.
• In the hardwired control unit, the execution of operations is much faster, but the implementation,
modification, and decoding are difficult.
• In contrast, implementing, modifying, decoding micro-programmed control units is very easy. The
microprogrammed control unit is also able to handle complex instructions.
HardWired Control Unit
• In the hardwired control unit, the control logic is implemented with gates, flipflops, decoders, and
• The control signals for each instruction are hardwired into the control unit, so the control unit has
• The hardwired control unit is designed for the RISC style instruction set.
• Hardwired control units are simple and fast, but they can be inflexible and difficult to modify.
Block Diagram of HardWired Control Unit
HardWired Control Unit (Cont.)
• The instruction register is a processors register that has the ‘instruction’ which is currently in execution.
• The instruction register generates the opcode bits w.r.t the operation and the addressing modes of the
• Instruction decoder receives the opcode bits generated by the instruction register and interprets the
operation and addressing modes of the instruction. Based on operation and addressing mode of the
• Each instruction is executed in step-like, instruction fetch, decode, operand fetch, ALU, and memory store.
• The step counter sets one of the signals T1 to T5 to 1 on the basis of the step, the instruction is in.
HardWired Control Unit (Cont.)
• Conditional signals determines the branch instruction or some condition. The Condition signals
generate the signals for the conditions greater than, less than, equal, greater than equal, less than
equal, etc.
• The remaining is external inputs, it acknowledges the control signal generator of interrupts which
• Control Signal Generator generates the control signals, based on the inputs obtained by the
• Microprogrammed control unit also produces the control signal but using the programs.
• The program that creates the ‘control signals’ is called microprogram. This microprogram is stored in a
control memory.
• A microprogram has a set of microinstructions, or it is also termed as control word. Each
microinstruction is ‘n’ bit word.
• Each control signal differs from other control signal depending on the bit pattern of the control word.
Each control word/microinstruction has a different bit pattern.
• Instruction execution is performed in steps. For each step there is a control word/ microinstruction in
the microprogram.
• A sequence of microinstructions required to execute a particular instruction is called microroutine.
Micro-programmed Control Unit
Hardwired Realization Vs Micro-programmed realization
Hardwired Micro-programmed
It is a circuitry approach. This control unit is implemented by programming
Modification is difficult as the control unit is hardwired. Modifying it Modifications are easy in case of microprogrammed control unit as it
will require the change in hardware. will require the in change in the code only.
It works well for simple instructions. It works well for complex instructions also.
Designed for RISC style instruction set. Designed for CISC style instruction set
Multicycle Implementation
• The basic idea of the multicycle implementation is to divide the one long cycle of the single cycle
implementation into 3 to 5 shorter cycles. The number of cycles depends on the instruction.
• Unlike pipelining, where different instructions are executed in parallel stages, a multicycle approach executes
• This approach aims to optimize the use of hardware by reusing the same set of resources for different stages of
instruction execution, rather than dedicating separate hardware for each stage.
• The control unit generates signals for the instruction’s current step and keeps track of the current step.
• Extra registers are required to hold results from one step for use in the next step.
Key Characteristics of Multicycle Implementation
A) Limited flexibility
B) Slower execution speed
C) Requires additional memory
D) Well-suited for evolving instruction sets
REFERENCES FOR FURTHER LEARNING OF THE SESSION
Reference Books:
1. Computer Organization by Carl Hamacher, Zvonko Vranesic and Saftwat Zaky.
2. Computer System Architecture by M. Morris Mano
3. Computer Organization and Architecture by William Stallings