• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2011, Vol. 33 ›› Issue (10): 80-84.

• 论文 • 上一篇    下一篇

Pshare:两级自适应分支预测算法及实现

张琦滨,李〓强   

  1. (江南计算技术研究所,江苏 无锡 214083)
  • 收稿日期:2010-05-20 修回日期:2010-10-26 出版日期:2011-10-25 发布日期:2011-10-25

Pshare:A TwoLevel Adaptive Branch Predictor Algorithm and Its Implementation

ZHANG Qibin,LI Qiang   

  1. (Jiangnan Institute of Computing Technology,Wuxi 214083,China)
  • Received:2010-05-20 Revised:2010-10-26 Online:2011-10-25 Published:2011-10-25

摘要:

本文提出了一种结合PAs和Gshare两者优点,同时尽可能消除两者缺点的两级自适应分支预测算法及其实现——Pshare分支预测方法。通过使用单独的BHSR来跟踪不同分支指令的历史轨迹,克服了GAs和Gshare机制中统一历史模式带来的缺点;同时,通过使用分支指令部分地址和历史模式位的杂凑运算来索引共享的一维PHT小表,减少了PAs机制中二维PHT大表的面积开销和索引延时开销。Pshare两级自适应分支预测器用接近Gshare的实现代价,达到了近似PAs的预测精度。该分支预测技术适用于强调单核性能的超标量超流水结构的高性能处理器中,有助于减少垂直浪费,提高单核心的性能和效率。

关键词: 分支预测, 动态预测, 两级自适应, Gshare, PA, Pshare

Abstract:

A branch prediction algorithm and predictor called Pshare is proposed, which has the benefit of PAs and the Gshare predictor,and modifies their flaws due to using a global history pattern by using a separate branch history shift register(BHSR).Moreover it also can reduce the area and delay overhead than PAs by accessing a small PHT table using the hash of address and history patterns instead of accessing two dimensions PHT table using the address and history patterns.The Pshare predictor can obtain the branch prediction accuracy of PAs ,but the implementation overhead is near to Gshare.This predictor is applied to high performance processors which have a  superscalar deep pipeline and focuses more on higher core performance.It reduces the pipeline’s vertical waste and improves the core performance and efficiency by using the Pshare predictor.

Key words: branch prediction;dynamic prediction;twoleveladaptive;Gshare;PA;Pshare