Microprogramming and Microarchitecture 279
designated these control signals as S1, S2, ENX and so on. This control unit is assisted by two separate
functional blocks (inputs). The rst one is related with system timings and is shown at the top of control
unit in Figure 9.5 . Basic input for this block is the system clock, and by using a counter, it generates all
necessary timing signals and feeds the control unit.
The second functional block is shown at the left of the CU. Input for this block is the data from IR,
which holds the current or ongoing instruction. This is decoded by the instruction decoder and the nec-
essary outputs are generated for the control unit. The hardware of the control unit is designed to generate
all necessary control signals for the ongoing instruction in proper sequence.
To clarify some details, let us take the example of execution of an instruction from our set of instruc-
tions presented at the beginning of this chapter. Let us take the instruction Load accumulator by R0 , the
instruction whose control signal details are presented at the top of Table 9.2 . Figure 9.6 shows the timing
diagram of all control signals (only two in this case) to execute this instruction, along with the system
clock timings. This clock timing is used to generate ENA0 and S5, as shown in Figure 9.6 . Observe
from Figure 9.5 that the clock is fed to the counter, whose output is received by the CU along with the
output from instruction decoder.
Referring the opcode for Load accumulator by R0, which is 0000B, its least signi cant two bits may
be used to target the relevant register (one from R0 – R3) and most signi cant two bits may be decoded
to generate the instruction Load accumulator by . With the help of counter output and the decoded
instruction, the control unit generates the required signals in proper sequence, through hardware logic
circuits, which we have explained in Chapter 3. For a complete hardware design of a control unit, please
refer the solved example at the end of this chapter.
Figure 9.6 Timing diagram of control signals for the instruction
load A by R0
Clock
ENA0
S5
9.4.2 Advantages of Hardwired Control
The major advantage of hardwired control is that it works much faster than software control (micro-
programmed control). We shall discuss later why this additional time is necessary for software control.
9.4.3 Disadvantages of Hardwired Control
The major disadvantage of hardwired control is its modi cation. Note that if any minor change has to
be incorporated in any instruction, the necessary hardware design need to be redesigned and changed,
resulting in discarding of the already completed hardware design and related circuit details. Therefore,
once nalized, further modi cations are dif cult and expensive in this case.
M09_GHOS1557_01_SE_C09.indd 279M09_GHOS1557_01_SE_C09.indd 279 4/29/11 5:17 PM4/29/11 5:17 PM