You have learned three types of Hazards and the data hazard is further divided into WAR, RAW, and RAR. Further we talked about stalls (noOp), forwarding, placing an unrelated instruction between...


You have learned three types of Hazards and the data hazard is further divided into WAR, RAW, and<br>RAR. Further we talked about stalls (noOp), forwarding, placing an unrelated instruction between<br>dependent instructions, and flushing the pipeline to solve these hazards. Complete the following table:<br>1.<br>Code<br>Hazard<br>Registers<br>How to handle<br>In case of forwarding place arrows<br>affected<br>the Hazard<br>where it can be forwarded<br>Add $t0,$t1,$t2<br>Sub $t3,$t0,$t1<br>Or $t4,$t0,$t2<br>Code<br>Hazard<br>Registers affected<br>How to handle<br>In case of<br>Hazard<br>forwarding place<br>arrows<br>Lw $t2, 60($t1)<br>Lw $t1,40($t2)<br>Add $t1,$t1,$t2<br>Sw $t1,20($t2)<br>Please not load word and store word instructions use memory calculated by adding contents of the<br>register indicated with the number given. Just to let you know that CPU is involved in calculating the<br>memory location.<br>

Extracted text: You have learned three types of Hazards and the data hazard is further divided into WAR, RAW, and RAR. Further we talked about stalls (noOp), forwarding, placing an unrelated instruction between dependent instructions, and flushing the pipeline to solve these hazards. Complete the following table: 1. Code Hazard Registers How to handle In case of forwarding place arrows affected the Hazard where it can be forwarded Add $t0,$t1,$t2 Sub $t3,$t0,$t1 Or $t4,$t0,$t2 Code Hazard Registers affected How to handle In case of Hazard forwarding place arrows Lw $t2, 60($t1) Lw $t1,40($t2) Add $t1,$t1,$t2 Sw $t1,20($t2) Please not load word and store word instructions use memory calculated by adding contents of the register indicated with the number given. Just to let you know that CPU is involved in calculating the memory location.

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here