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.
LOAD R X
LOAD R Y
INC R
DEC R
BRANCH
ADD R
SUB R
STORE R Z
# Load from Address X
# Load from Address Y
# Increment R
# Decrement R
# Branch to Address
# Add to R
# Subtract from R
# Store R at Address Z
Using delayed branch in pipeline operation in the above program, draw the pipeline timing diagrams:
iusing NOOPs
after rearranging the instructions optimized delayed branch
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
