340 Computer Architecture and Organization
Figure 10.30 Data flow and timing diagram for Step 5
from C-Bus
from Z to SP using C-Bus. The data flow and related timing diagram for this cycle are shown in
Figure 10.31 .
The reader may verify that after Step 6, all required operation are completed by the control unit. The
address of the subroutine to be called is presently within PC and the next instruction has to be fetched
from this address itself. The return address is stored on stack-top as was indicated by SP and the value
of SP is decremented by one as per the requirement so that it indicates the present stack-top. This com-
pletes all requirements for a subroutine call operation with necessary micro-steps.
At this point, the reader may note that like all other design problem, the present solution is also not
the only solution and several variations are possible to implement the same end-effect in different ways.
In the present solution, the rst external memory bus cycle was used for external memory read operation
to get the branch address. The second external memory bus cycle was used for saving the return address
over stack-top. This order may by itself be reversed by rst storing the return address on stack-top and
then reading the branch address from external memory.
However, as it was pointed before, the change of sequence should not hamper the intended effect.
M10_GHOS1557_01_SE_C10.indd 340M10_GHOS1557_01_SE_C10.indd 340 4/29/11 5:20 PM4/29/11 5:20 PM