Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question marks, CLO 1 ] Consider the following RISC - V Assembly code that is required to be executed on a classical 5 - stage

Question marks, CLO1]
Consider the following RISC-V Assembly code that is required to be executed on a classical 5-stage pipelined
processor.
add 15,12,11
lw13,4(15)
lw12,(2)
or13,15,13
sw13,(x15)
a) List down all the hazards that are present in assembly code
b) Assume that pipeline implementation does not have any support for stalling and forwarding to resolve the
hazards. Rewrite the program by inserting the appropriate number of NOP instructions after each hazard for
proper execution. How many cycles will be required to execute this code?
c) Now assume that the hardware implements the forwarding from write back to execute, and memory to
execute stage. How many cycles will now be required to execute this code?
image text in transcribed

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

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions