Question: Assume the code sequence give below: add t 6 , s 6 , s 1 slt t 9 , t 1 , s 4 sub

"Assume the code sequence give below:
add t6, s6, s1
slt t9, t1, s4
sub t3, t0, t5
sub s7, t7, t8
nor s XR020, s7, s5
lw s3,61(t3)
beq t6, s2, FOR
FOR:
And assume the 5-stage pipeline discussed in the learning objective:
Instruction Fetch (IF)
Register Read (RR) aka Instruction Decode (ID)
ALU Operation (ALU) aka Execution (EX)
Data Memory (DM)
Register Write (RW) or Write Back (WB)
Practice 1:
Find RAW Data Hazard in the sequence and enter on the designated cell of the sheet:
Register
Producer Instruction
Consumer Instruction
RAW Dependency 1
RAW Dependency 2
RAW Dependency 3
Practice 3:
Considering the data hazard you have found in Practice 1 and the control hazard, show pipeline execution of the sequence when:
There is no Forwarding capability available in the hardware
Prediction as a solution for control hazard and predictor is correct
Show the pipeline execution by completing the table below:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
add t6, s6, s1
IF
RR
EX
DM
RW
slt t9, t1, s4
sub t3, t0, t5
sub s7, t7, t8
nor s0, s7, s5
lw s3,61(t3)
beq t6, s2, FOR"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!