III. Complete the table below utilizing the typical 5-stage (IF, ID, EX, MEM, WB) RISC-V design
for the set of instructions below. Write "X" when a stall is needed at a specific clock cycle. Assume
forwarding is used to solve the stall. Place an arrow between the instructions at the needed stages
to perform forwarding (if needed). [20 Points]
A) Complete the table with the information provided above. Also, highlight either the left, right,
or the whole box if a reading, writing, or utilization is being done: [13 Points]
add x3, x1
Io
addi x1
I
CC1 CC2 CC3 CC4 CC5 CC6 CC7 CC8 CC
sub x9, x3,
B) Was there a stall needed? Why or why not? [5 Points]
Yes, It has load data hazard and
(I0 to I4)
data hazard so I had to stall and forwarding
C) How many clock cycles was needed to complete the instructions with forwarding and without
forwarding? [2 Points]
9 cycles
(18 required with forwarding and
(C9 require without forwarding