Consider a5-stage IF, ID, EX, MEM and WB pipeline as specified in Figure 4.46. Data forward isused. In the case of data hazard, weneed to stall the execution. (a) (4 pts)How many stalls are needed for...




Consider a
5-stage IF, ID, EX, MEM and WB pipeline as specified in
Figure 4.46. Data forward is
used. In the case of data hazard, we
need to stall the execution.














(a)


(4 pts)
How many stalls are needed for the following 10 instructions? Specify between which instructions (i.e.,
between Instruction x and Instruction y) that a stall is needed.







(b)


(4 pts)
Data is forwarded between I4 to I5.
Specify the control signals (i.e., ForwardA, ForwardB) for this forward. Use the figure (shown below) to analyze the
control signals.
















Note:



You need to use the attached spreadsheet to
analyze the execution sequence. To
receive partial credit, you need to show your work using this spreadsheet. If it is easier for you to print this sheet
out and write in ink, then submit a photo of your analysis.






















I1:


addi
$s0, $zero, 2








I2:


addi $s1, $s0, 100








I3:


loop: lw

$t0, 0($s1)








I4:


lw $t1, 10($t0)








I5:


add

$s1, $t0, $t1








I6:


sw $t0, 0($s1)








I7:


add $t0, $s1, $zero








I8:


addi $s0, $s0, -1








I9:


sll $s0, $s0, 5








I10:


add $v0, $s1, $zero


Dec 14, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here