首页> 外国专利> Method and apparatus for implementing a four-stage system for determining program branches (Four Stage Bra

Method and apparatus for implementing a four-stage system for determining program branches (Four Stage Bra

机译:用于实现确定程序分支的四阶段系统的方法和设备(四阶段Bra

摘要

A four stage branch instruction resolution system for a pipelined processor is disclosed. A first stage of the branch instruction resolution system predicts the existence and outcome of branch instructions within an instruction stream such that an instruction fetch unit can continually fetch instructions. A second stage decodes all the instructions fetched. If the decode stage determines that a branch instruction predicted by the first stage is not a branch instruction, the decode stage flushes the pipeline and restarts the processor at a corrected address. The decode stage verifies all branch predictions made by the branch prediction stage. Finally, the decode stage makes branch predictions for branches not predicted by the branch prediction stage. A third stage executes all the branch instructions to determine a final branch outcome and a final branch target address. The branch execution stage compares the final branch outcome and final branch target address with the predicted branch outcome and predicted branch target address to determine if the processor must flush the front-end of the microprocessor pipeline and restart at a corrected address. A final branch resolution stage retires all branch instructions. The retirement stage ensures that any instructions fetched after a mispredicted branch are not committed into permanent state. IMAGE
机译:公开了一种用于流水线处理器的四级分支指令解析系统。分支指令解析系统的第一阶段预测指令流中分支指令的存在和结果,以使得指令获取单元可以连续获取指令。第二阶段对获取的所有指令进行解码。如果解码级确定由第一级预测的分支指令不是分支指令,则解码级将刷新流水线并在更正的地址处重新启动处理器。解码阶段验证分支预测阶段所做的所有分支预测。最后,解码阶段对分支预测阶段未预测的分支进行分支预测。第三阶段执行所有分支指令以确定最终分支结果和最终分支目标地址。分支执行阶段将最终分支结果和最终分支目标地址与预测分支结果和预测分支目标地址进行比较,以确定处理器是否必须刷新微处理器流水线的前端并在更正的地址处重新启动。最后的分支解决阶段将撤消所有分支指令。退出阶段可确保在错误预测的分支之后获取的所有指令都不会提交到永久状态。 <图像>

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号