周期与周期的比较指令流线.ppt

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

Well, let’s look at a more complex example so I can show you how different instructions at different stages of execution can be processed by our pipelined datapath simultaneously. Let’s consider the following instruction sequence: Load, R-type, Store, and then Branch on equal to target address 1000. In the next four slides, I will show you the state of the datapath at the end of Cycle 4, Cycle 5, Cycle 6 and Cycle 7. First let’s take a look at the end of Cycle 4 where: (a) The Load instruction has just finished its Mem stage. (b) The R-type instruction has just finished its Exec stage. (c) The Store instruction has just finished its Register Fetch slash Instruction Decode stage. (d) And finally, the Branch instruction has just finish fetching the instruction. Remember now, the next four pictures we will be looking at are at the end of a clock cycle. That is right at the clock tick. +2 = 59 min. (Y:39) So the internal value of the register has just been updated BUT the output of the register, due to the Clock-to-Q delay, has NOT been changed to reflect the new internal value. The output of the register will still has the value from the cycle that has just ended. For example, look at Ifetch stage of the pipeline. The output of PC will still have the values of 12, the location of the Branch instruction even though PC has been updated to 16. Furthermore, the IF/ID register’s internal value have already been updated to the Branch instruction even though its output still contains the Store instruction so that we can read the registers (Ra and Rb) for the store instruction and store their values into the ID/Ex register. In order to get ready for calculating the store address, we also needs to pass the immediate field to the next stage. At the end of Cycle 4, the Exec stage of the pipeline have just completed the ALUOp for the R-type instruction so the ALU output is stored into the Exec/Mem register. Notice that for R-type instruction, the Rd field of the instruction is

文档评论(0)

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

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

1亿VIP精品文档

相关文档