1 / 10

NPC

+. +. IF stage. ID stage. 2. PC. 4. 1. NPC. taken target. Imm. Actual T/NT. A op 0 ?. taken?. decode. is a branch. Always predict NT. 1. Recovery: Redirect fetch unit to T path if actually T. 2. IF stage. ID stage. PC. +. +. 4. NPC. taken target. Imm. target.

Télécharger la présentation

NPC

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. + + IF stage ID stage 2 PC 4 1 NPC taken target Imm Actual T/NT A op 0? taken? decode is a branch Always predict NT. 1 Recovery: Redirect fetch unit to T path if actually T. 2

  2. IF stage ID stage PC + + 4 NPC taken target Imm target read port BTB t/nt Predicted T/NT T/NTpred. mispredicted? hit == Actual T/NT A op 0? write port decode is a branch PC

  3. IF stage ID stage PC + + 4 NPC taken target Imm target read port BTB t/nt Predicted T/NT T/NTpred. mispredicted? hit == Actual T/NT A op 0? write port decode is a branch PC 1 Predict NT if: BTB miss OR (BTB hit & prev. outcome = NT) 1

  4. IF stage ID stage PC + + 4 NPC taken target Imm target read port BTB t/nt Predicted T/NT T/NTpred. mispredicted? hit == Actual T/NT A op 0? write port decode is a branch PC 2 Predict T if: (BTB hit & prev. outcome = T) 2

  5. IF stage ID stage PC + + 4 NPC taken target Imm target read port BTB t/nt Predicted T/NT T/NTpred. mispredicted? hit == Actual T/NT A op 0? write port decode is a branch PC 3 Recovery: Redirect fetch unit to NT path if: (Predicted T & Actually NT) 3

  6. IF stage ID stage PC + + 4 NPC taken target Imm target read port BTB t/nt Predicted T/NT T/NTpred. mispredicted? hit == Actual T/NT A op 0? write port decode is a branch PC 4 Recovery: Redirect fetch unit to T path if: (Predicted NT & Actually T) 4

  7. IF stage ID stage PC + + 4 NPC taken target Imm target read port BTB t/nt Predicted T/NT T/NTpred. mispredicted? hit == Actual T/NT A op 0? write port decode is a branch PC 5 • Update BTB: • If branch missed in BTB, add it to BTB. • Whether branch missed or hit in BTB, always update prev. outcome field. 5

  8. Backup Slides

  9. + + Training BTB IF stage ID stage PC 4 NPC Taken Target Imm read port BTB T / NT direction A op 0? is a branch decode write port PC

  10. + + Using BTB IF stage ID stage PC 4 NPC Taken Target Imm target read port BTB t/nt A op 0? Actual T/NT hit T/NTpred. == Predicted T/NT mispredicted? is a branch decode write port PC

More Related