0% found this document useful (0 votes)
121 views5 pages

Hardwired vs Microprogrammed Control Units

The document compares Hardwired and Microprogrammed Control Units, highlighting that hardwired units use circuitry for RISC instruction sets while microprogrammed units utilize programming for CISC instruction sets. Hardwired units are faster but harder to modify, whereas microprogrammed units are easier to change and work well with complex instructions. Additionally, hardwired units do not require control memory, while microprogrammed units do, and the cost implications differ between the two approaches.

Uploaded by

jlu08082
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
121 views5 pages

Hardwired vs Microprogrammed Control Units

The document compares Hardwired and Microprogrammed Control Units, highlighting that hardwired units use circuitry for RISC instruction sets while microprogrammed units utilize programming for CISC instruction sets. Hardwired units are faster but harder to modify, whereas microprogrammed units are easier to change and work well with complex instructions. Additionally, hardwired units do not require control memory, while microprogrammed units do, and the cost implications differ between the two approaches.

Uploaded by

jlu08082
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Difference Between Hardwired and

Microprogrammed Control Unit


The Hardwired and Microprogrammed control unit generates the control
signals to fetch and execute instructions. The fundamental difference between
hardwired and microprogrammed control unit is that hardwired is
a circuitry approach whereas, the microprogram control unit is implemented
by programming.

The hardwired control unit is designed for the RISC style instruction set. On
the other hand, the microprogrammed control unit was designed for
the CISC style instruction set.

These control units can be distinguished on the several parameters which we


have discussed below. We will also discuss the design of both the control unit.

Hardwired Vs Microprogrammed Control


Difference Chart
Basis of
Hardwired Control Unit Microprogrammed Control Unit
Differentiation

Basic It is a circuitry approach. This control unit is implemented by

programming

Design RISC style instructions CISC style instructions

Modification Modification is difficult as the Modifications are easy in case of

control unit is hardwired. microprogrammed control unit as it will

Modifying it will require the require the in change in the code only.

change in hardware.
Basis of
Hardwired Control Unit Microprogrammed Control Unit
Differentiation

Instructions It works well for simple It works well for complex instructions

instructions. also.

Costing Implementing hardwired Implementing microprograms is not

structure requires a cost. costly.

Control memory No control memory is required Control memory is required

Execution Speed Faster execution Comparatively slow

What are Control Signals?


Both Hardwired and Microprogrammed control unit was designed to ‘generate’
the control signals. The control signals operate the functioning of the
processor’s hardware. It decides what operation has to be performed, what
must be the sequence of the operations performed by the processor, in what
time an operation must be executed and so on.

What is Hardwired Control Unit?


In simple words, the hardwired control unit generates the control signals to
execute the instructions in a proper sequence and at the correct time. The
hardwired control unit is created with the hardware; it is a circuitry approach. It
is designed for the RISC style instruction set.

A hardwired circuit organization is shown in the figure below. Let us discuss


all the components one by one, in order to understand the “generation of
control signals” from this circuitry organization.
 The instruction register is a processors register that has the ‘instruction’ which
is currently in execution. The instruction register generates the OP-code
bits respective of the operation and the addressing modes of the operands,
mentioned in the instruction.
 Instruction decoder receives the Op-code bits generated by the instruction
register and interprets the operation and addressing modes of the instruction.
Now, based on operation and addressing mode of the instruction in instruction
register it set the corresponding Instruction signal INSi to 1.
Each instruction is executed in step-like, instruction fetch, decode, operand
fetch, ALU, memory store. These steps may vary in different books. But in
general, five steps are enough to for the execution of an instruction.
 Now, the control unit must be aware of the current step, the instruction is in.
For this, a Step Counter is implemented which has signals from T1, …, T5.
The step counter sets one of the signals T1 to T5 to 1 on the basis of the step,
the instruction is in.
 Here, the question arises how step counter knows the current step of the
instruction? For this, a Clock is implemented. This clock is designed such that
for each step the clock must complete its one clock cycle.
So, consider if the step counter has set T3 signal 1 then after a clock cycle
completes step counter will set T4 to 1.
 What if the execution of instruction has is interrupted due to some reason?
Will the clock still continue to trigger step counter? The answer is No.
The Counter Enable ‘disables’ the step counter to increment to the next step
signal, till the execution of the current step is completed.
 Now, suppose the execution of an instruction depends on some condition or if
it is branch instruction. This is determined with the help of the Condition
signals. 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 affects the execution of the instruction.

On an, all the Control Signal Generator generates the control signals, based
on the inputs obtained by the Instruction register, Step counter, Condition
signals and External inputs.

What is Microprogrammed Control Unit?


Microprogrammed control unit also produces the control signal but using
the programs. This approach was very popular in past during the evolution
of CISC architecture. The program that creates the ‘control signals’ is
called Microprogram. This microprogram is placed on the processor chip which
is fast memory, it is also called control memory or control store.

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 as we have seen above. So, 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.

In the figure below, you can understand the organization of a control word/
microinstruction, microroutine and microprogram.

Common questions

Powered by AI

Microprogram routines, or microroutines, are sequences of microinstructions that define the control signals for each step in executing a machine-level instruction. Unlike regular programming, which involves high-level code that is compiled or interpreted into machine instructions for various general purposes, microprogram routines are specifically tailored sequences that directly translate to control signals used to manage the processor's execution of individual instructions. They provide a precise, step-by-step control over the processor’s functions at a lower level, impacting how instructions are processed in a systematic, repeatable manner, essential for handling complex CISC instructions .

Control signals are crucial for defining the operations of a processor's hardware, determining the sequence and timing of instruction execution. In the Hardwired control unit, control signals are generated through a fixed circuitry that follows the instruction register, decoder, and step counter, marking each step like instruction fetch or operand fetch with signals such as T1 to T5. In the Microprogrammed control unit, control signals are produced by executing microinstructions stored in control memory, each microinstruction representing a set of control signals needed for a specific step in instruction execution. The design of these control signals dictates the pace and order of operations, influencing overall performance and flexibility .

Condition signals play a crucial role in affecting instruction execution by generating signals based on specific conditions, such as greater than, less than, or equal checks. These signals allow the control unit to perform branching and decision-making operations within instruction execution. For instance, in both Hardwired and Microprogrammed control units, condition signals determine the path of execution, deciding whether to continue sequentially or branch out depending on the evaluated conditions. This capability is essential for implementing conditional instructions like IF statements or loops .

Modifying control signals in a Hardwired control unit presents significant challenges as it requires physical alterations to the circuitry. Since the control signals are directly tied to hardware components, changes demand redesigning and rebuilding parts of the control unit, which can be costly and time-consuming. This inflexibility makes it difficult to update or optimize the system for new instructions or technological advances, contrasting with the software adaptability of Microprogrammed units .

A Hardwired control unit might be preferred over a Microprogrammed control unit in scenarios where execution speed is a critical priority and the instruction set is simple and fixed, such as in systems using a RISC architecture. The circuitry approach of Hardwired control ensures faster execution by minimizing the additional time overhead associated with fetching and interpreting microinstructions in Microprogrammed units. This makes hardwired designs ideal for applications requiring high performance and less frequent changes or updates to the instruction set .

Both Hardwired and Microprogrammed control units engage with external inputs by adjusting or generating control signals to accommodate interruptions or changes dictated by outside events. External inputs often indicate interrupts or conditions affecting instruction execution. In the Hardwired control unit, it involves modifying the sequence and timing of the pre-defined hardware-based process. In contrast, in the Microprogrammed control unit, the microinstructions are designed to include responses to such interrupts, offering a programmatic approach to handling external influences, resulting in more agility in adjusting to new execution paths .

The Step Counter and Clock are critical in managing the sequential steps involved in instruction execution. The Step Counter keeps track of which step the execution process is in, using step signals such as T1 to T5. The Clock synchronizes these steps by indicating when each step should proceed, completing one clock cycle per step. If an execution is interrupted, the Counter Enable can disable further counting until the current step concludes, ensuring continuity without premature progression. Together, they ensure instructions are executed systematically and in the correct order .

The speed of execution differs between Hardwired and Microprogrammed control units primarily due to their differing mechanisms of control signal generation. Hardwired control units use fixed circuitry, enabling faster response as the control logic is directly implemented in hardware, leading to higher execution speeds. In contrast, a Microprogrammed control unit retrieves and processes microinstructions stored in control memory for each step, which inherently introduces slower execution times due to the additional memory fetch cycle. This disparity affects system performance such that Hardwired units are more suitable for applications demanding rapid processing capacities, while Microprogrammed units support flexible, complex instruction handling at the expense of speed .

Microinstructions enhance flexibility in a microprogrammed control unit by allowing for more adaptable and complex instruction handling. Each microinstruction, part of a broader microprogram, defines specific control signals needed for one of the steps in executing an instruction. The microprogram can be modified or extended easily to accommodate changes or new instructions by updating the control memory with new microinstructions. This facilitates handling a wider array of complex instructions typical in CISC architectures without necessitating hardware changes, unlike the rigid nature of hardwired control designs .

The fundamental differences between Hardwired and Microprogrammed control units lie in their design and function. The Hardwired control unit employs a circuitry approach and is designed for RISC style instructions, delivering faster execution but making modifications difficult due to hardware dependencies. In contrast, the Microprogrammed control unit is implemented through programming, designed for CISC style instructions. It facilitates easier modifications as changes are confined to code adjustments rather than hardware alterations. Moreover, the Hardwired control unit does not require control memory, whereas the Microprogrammed control unit utilizes control memory to store microinstructions, which contributes to its capability to handle complex instructions but results in slower execution speeds .

You might also like