Question: We have the following program segment executed on a three stage ( I , E . D ) RISC pipeline. The pipeline allows two simultaneous

We have the following program segment executed on a three stage (I, E. D) RISC pipeline. The pipeline allows two simultaneous memory accesses.
100 LOAD R1. X
101 LOAD R2. Y
102 INC R1(2)
103 DEC R2(2)
104 BRANCH 107-
105 ADD R1,5
106 SUB R2,2
107 STORE R2, Z.
# Load from Address X
# Load from Address Y
# Increment R1
# Decrement R2
# Branch to Address 107
# Add 5 to R1
# Subtract 2 from R2
# Store R2 at Address Z
Using delayed branch in pipeline operation in the above program, draw the pipeline timing diagrams:
i-using NOOPs
after rearranging the instructions (optimized delayed branch)9
Calculate the clock cycles required to execute the above program in each case.

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 Databases Questions!