Text
Text
specifying a routine. Each computer instruction has its own microprogram routine in
control memory to generate the microoperations that execute the instruction. The
hardware that controls the address sequencing of the control memory must be capable
of sequencing the microinstructions within a routine and be able to branch from one
routine to another.
An initial address is loaded into the control address register when power is turned
on in the computer. This address is usually the address of the first
microinstruction that activates the instruction fetch routine. At the end of the
fetch routine, the instruction is in the instruction register of the computer.
www.Jntufastupdates.com 21
The control memory next must go through the routine that determines the
effective address of the operand. A machine instruction may have bits that specify
various addressing modes, such as indirect address and index registers. The
effective address computation routine in control memory can be reached through a
branch microinstruction, which is conditioned on the status of the mode bits of the
instruction. When the effective address computation routine is completed, the
address of the operand is available in the memory address register.
The next step is to generate the microoperations that execute the instruction
fetched from memory. The microoperation steps to be generated in processor
registers depend on the operation code part of the instruction. Each instruction
has its own microprogram routine stored in a given location of control memory. The
transformation from the instruction code bits to an address in control memory where
the routine is located is referred to as a mapping process.
A mapping procedure is a rule that transforms the instruction code into a control
memory address. Once the required routine is reached, the microinstructions that
execute the instruction may be sequenced by incrementing the control address
register. Microprograms that employ subroutines will require an external register
for storing the return address.
When the execution of the instruction is completed, control must return to the
fetch routine. This is accomplished by executing an unconditional branch
microinstruction to the first address of the fetch routine. In summary, the address
sequencing capabilities required in a control memory are:
• Incrementing of the control address register.
• Unconditional branch or conditional branch, depending on status bit conditions.
• A mapping process from the bits of the instruction to an address for control
memory.
• A facility for subroutine call and return.
Following shows a block diagram of a control memory and the associated hardware
needed for selecting the next microinstruction address.
www.Jntufastupdates.com 22