Topic11c - Hazards - Computer Architecture Hazards Reading...

Info icon This preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
Computer  Architecture Hazards Reading:  Sections 4.7- 4.8
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
A Glance at the Schedule What's coming in… M2 –Tomorrow Hw5 - Thursday What’s going out…
Image of page 2
Outline Hazards Data Control Structural Hazard detection Hazard prevention
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Riches don't make a man rich, they only make  him busier.  --Christopher Columbus 
Image of page 4
Data Hazards in ALU Instructions Consider this sequence: sub  $2 , $1,$3 and $12, $2 ,$5 or  $13,$6, $2 add $14, $2 , $2 sw  $15,100( $2 )
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Dependencies CAT #1
Image of page 6
Detecting the Need to  Forward Pass register numbers along pipeline e.g., ID/EX.RegisterRs = register number for  Rs sitting in ID/EX pipeline register ALU operand register numbers in EX  stage are given by ID/EX.RegisterRs, ID/EX.RegisterRt Data hazards when 1a.  EX/MEM.RegisterRd = ID/EX.RegisterRs 1b.  EX/MEM.RegisterRd = ID/EX.RegisterRt 2a.  MEM/WB.RegisterRd = ID/EX.RegisterRs Fwd from EX/MEM pipeline reg Fwd from MEM/WB pipeline  reg
Image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Detecting the Need to  Forward Only forward 
Image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern