Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions