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_2

Step: 3

blur-text-image_3

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

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

How does Excel store date and time values?

Answered: 1 week ago

Question

a. Did you express your anger verbally? Physically?

Answered: 1 week ago

Question

What are the classifications of Bank?

Answered: 1 week ago

Question

2. How do they influence my actions?

Answered: 1 week ago

Question

5. If yes, then why?

Answered: 1 week ago