Question: Question 0 2 [ 4 + 4 + 2 = 1 0 marks, CLO 1 ] Consider the following RISC - V Assembly code that
Question marks, CLO
Consider the following RISCV Assembly code that is required to be executed on a classical stage pipelined
processor.
add
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?
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
