With hazards Instruction sw $s5, 12 ($s3) lw $s5, 8 ($s3) sub $s4, $s2, $s1 beq $s4, $0, label add $s2, $s0, $s1 sub $s2, $s6, $s1 t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 tll t12 t13 IF ID EX MEM WB IF ID EX MEM WB Hazard removed Instruction sw $s5, 12 ($s3) lw $s5, 8 ($s3) sub $s4, $s2, $s1 beq $s4, $0, label add $s2, $s0, $s1 sub $s2, $s6, $s1 t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 tll t12 t13 IF ID EX MEM WB

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter4: Making Decisions
Section: Chapter Questions
Problem 15RQ
icon
Related questions
Question
stalls should be represented by ** , hazard boxes should be yellow two tables, one with hazards one without
With hazards
Instruction
sw $s5, 12 ($s3)
lw $s5, 8 ($s3)
sub $s4, $s2, $s1
beq $s4, $0, label
add $s2, $s0, $s1
sub $s2, $s6, $s1
t1 t2 t3 t4
t5 t6 t7 t8 t9 t10 tll t12 t13
IF ID EX MEM WB
IF ID EX MEM WB
Hazard removed
Instruction
sw $s5, 12 ($s3)
lw $s5, 8 ($s3)
sub $s4, $s2, $s1
beq $s4, $0, label
add $s2, $s0, $s1
sub $s2, $s6, $s1
t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 tll t12 t13
IF ID EX MEM WB
Transcribed Image Text:With hazards Instruction sw $s5, 12 ($s3) lw $s5, 8 ($s3) sub $s4, $s2, $s1 beq $s4, $0, label add $s2, $s0, $s1 sub $s2, $s6, $s1 t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 tll t12 t13 IF ID EX MEM WB IF ID EX MEM WB Hazard removed Instruction sw $s5, 12 ($s3) lw $s5, 8 ($s3) sub $s4, $s2, $s1 beq $s4, $0, label add $s2, $s0, $s1 sub $s2, $s6, $s1 t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 tll t12 t13 IF ID EX MEM WB
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage