Scoreboard-国立高雄大学-资讯工程学系.PPT

  1. 1、本文档共35页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Scoreboard-国立高雄大学-资讯工程学系

Chap. 3 -ILP 1 A.8 Dynamic Scheduling with a Scoreboard 吳俊興 高雄大學資訊工程學系 October 2004 Dynamic Scheduling Out-of-order execution divides ID stage: 1. Issue—decode instructions, check for structural hazards 2. Read operands—wait until no data hazards, then read operands Scoreboards allow instruction to execute whenever 1 2 hold, not waiting for prior instructions. A scoreboard is a “data structure” that provides the information necessary for all pieces of the processor to work together. responsible for instruction issue and execution and hazard detection sufficient resources and no data dependence We will use In order issue, out of order execution, out of order commit ( also called completion) First used in CDC6600. Our example modified here for MIPS. CDC had 4 FP units, 5 memory reference units, 7 integer units. MIPS has 2 FP multiply, 1 FP adder, 1 FP divider, 1 integer. Figure A.51 Basic structure of a MIPS processor with a scoreboard Scoreboard Implications Out-of-order completion = WAR, WAW hazards? Solutions for WAR Queue both the operation and copies of its operands Read registers only during Read Operands stage For WAW, must detect hazard: stall until other completes Need to have multiple instructions in execution phase = multiple execution units or pipelined execution units Scoreboard keeps track of dependencies, state or operations Scoreboard replaces ID, EX, WB with 4 stages Four Stages of Scoreboard Control 1. Issue —decode instructions check for structural hazards (ID1) If a functional unit for the instruction is free and no other active instruction has the same destination register (WAW), = the scoreboard issues the instruction to the functional unit and updates its internal data structure. If a structural or WAW hazard exists, = then the instruction issue stalls, and no further instructions will issue until these hazards are cleared. Four Stages of Scoreboard Control 2. Read operands —wait until no data hazards, then read operands (ID2) A source

文档评论(0)

ailuojue + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档