Question: In this architecture the logic and arithmetic instructions, except for mul and div are executed in stage X 2 . The instructions for mul and

In this architecture the logic and arithmetic instructions, except for mul and div are executed in stage X2. The instructions for mul and div require 3 and 4 cycles respectively and hence produce their result in the end of stage X3 and X4 respectively. The instructions of memory access require 2 cycles (stages X2, X3), while the address calculation occurs at stage X2. The resolution of conditional branches takes place at X2 and in case that the branch gets executed, the pipeline is flushed and from the next cycle the correct instruction is fetched. Last, the write to a register occurs at the 1" half of a cycle while the read from the same register occurs at the 2nd half of the same cycle. We are asked to execute the following piece of code:
2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!