Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following sequence of instructions: ins 1 : lw x 4 , 0 ( x 2 ) ins 2 : add x 4 ,

Consider the following sequence of instructions:
ins1: lw x4,0(x2)
ins2: add x4, x4, x3
ins3: sw x4,0(x2)
ins4: addi x2, x2,0x4
ins5: lw x5,0(x2)
ins6: add x4, x4, x5
ins7: addi x2, x2,0x4
ins8: sw x4,0(x2)
Assume 5-stage RISC-V pipeline (assuming there is no forwarding). Show how the instructions
given above make progress in the pipeline and show the pipeline stalls that would occur. How many
cycles does it take to execute the given instructions?
You can use similar table representation as given below for the pipeline to simplify the depiction
(this is for just illustration purpose, you should show the progression of instructions in the pipeline
for the sequence given above).

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

Building The Data Lakehouse

Authors: Bill Inmon ,Mary Levins ,Ranjeet Srivastava

1st Edition

1634629663, 978-1634629669

More Books

Students also viewed these Databases questions

Question

Describe Balor method and give the chemical reaction.

Answered: 1 week ago

Question

How to prepare washing soda from common salt?

Answered: 1 week ago

Question

7. Identify six intercultural communication dialectics.

Answered: 1 week ago