首页> 外国专利> Microprocessor using combined actual and speculative branch history prediction

Microprocessor using combined actual and speculative branch history prediction

机译:结合实际和推测分支历史预测的微处理器

摘要

A pipelined microprocessor (10) and system (2) incorporating the same, utilizing combined actual branch history and speculative branch history to predict branches, is disclosed. The microprocessor (10) includes a branch target buffer, or BTB, (56) having a plurality of entries (63) that are associated with previously branching instructions. Each entry (63) has a tag field (TAG) for storing an identifier for its branching instruction based upon the logical address therefore, and a target field (TARGET) for storing the target address for the branching instruction if the branch is taken. Each entry (63) also includes a branch history field (BH), the most-recent bits of which are applied to a pattern history table, or PHT, (53) as an index thereto to retrieve a prediction for the branch. A count field (CT) is also provided with each entry (63), to count the number of positions in the branch history field (BH) that correspond to speculative history, such as may arise in closely- packed programs where multiple instances of the branching instruction are encountered before resolution of an earlier instance. Upon resolution of the branching instruction, correct predictions are indicated by decrementing the count field (CT) for its entry. Mispredictions are reflected in the BTB (56) by the corresponding entry having its count field (CT) reset to reflect that no speculative history remains, by shifting the branch history field (BH) downward, and by including the actual result of the mispredicted branch therein. This arrangement allows more actual branch history to be used in predicting the next instance of the branching instruction, while maintaining the storage requirements of the BTB (56) relatively low.
机译:公开了一种流水线微处理器(10)和结合了流水线微处理器(10)的系统(2),利用组合的实际分支历史和推测分支历史来预测分支。微处理器(10)包括分支目标缓冲器或BTB(56),其具有与先前分支指令相关联的多个条目(63)。每个条目(63)具有标签字段(TAG),用于基于逻辑地址存储用于其分支指令的标识符;以及目标字段(TARGET),用于存储分支指令的目标地址(如果采用分支)。每个条目(63)还包括分支历史字段(BH),该分支历史字段的最近位被应用于模式历史表或PHT(53),作为其索引以检索对该分支的预测。每个条目(63)中还提供了一个计数字段(CT),以对分支历史字段(BH)中与推测历史相对应的位置数量进行计数,例如在紧密封装的程序中可能会出现的多个实例在解析较早的实例之前会遇到分支指令。解决分支指令后,通过递减计数字段(CT)的输入来指示正确的预测。通过将其计数字段(CT)重置为反映没有推测的历史记录的相应条目,通过向下移动分支历史记录字段(BH)以及通过包括错误预测的分支的实际结果,在BTB(56)中反映了错误预测在其中。这种布置允许更多实际的分支历史用于预测分支指令的下一个实例,同时保持BTB(56)的存储需求相对较低。

著录项

  • 公开/公告号US5864697A

    专利类型

  • 公开/公告日1999-01-26

    原文格式PDF

  • 申请/专利权人 TEXAS INSTRUMENTS INCORPORATED;

    申请/专利号US19970883928

  • 发明设计人 JONATHAN H. SHIELL;

    申请日1997-06-27

  • 分类号G06F9/32;

  • 国家 US

  • 入库时间 2022-08-22 02:08:48

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号