首页|基于蜂鸟E203的多级动态分支预测器

基于蜂鸟E203的多级动态分支预测器

扫码查看
近年来,以蜂鸟E203 为代表的开源RISC-V微处理器由于功耗低、性能好等优势,受到了学术界和工业界的广泛关注和应用。为提高微处理器性能,降低分支指令造成的流水线停顿,指令分支预测技术成为现代微处理器中广泛应用的重要技术之一。然而,蜂鸟 E203 现采用的分支预测器是轻量级的静态分支预测器,面临分支预测准确率较低的挑战。由于使用预测准确率较高的动态分支预测器,可以进一步降低由于预测错误导致的重定向取指所产生的开销,因此,针对上述挑战,在原微架构的基础上探索了多种动态分支预测器的实现,提高了分支预测精度并且兼顾了资源开销。实验结果表明,多种动态分支预测器中获得最优结果的是使用静态分支预测结合基于分支历史寄存器 BHR 的自适应动态分支预测器,在Dhrystone基准测试程序上其分支预测精度可从原来的 84。6%最高提升至 94。8%,分数从原来的1。296 463 提高到 1。314 418,在 Coremark 基准测试程序上其分支预测精度可从原来的 67%提升至78。7%,分数从原来的 2。120 000 提升至 2。138 008。
A multistage dynamic branch predictor based on Hummingbird E203
In recent years,open-source RISC-V microprocessors represented by Hummingbird E203 have received widespread attention and application in both academia and industry due to their low power consumption and good performance.To improve the performance of microprocessors and reduce pipeline stalls caused by branch instructions,branch prediction technology has become one of the important tech-niques widely used in modern microprocessors.However,the branch predictor currently used in the Hummingbird E203 is a lightweight static branch predictor,facing the challenge of low branch predic-tion accuracy.Since using a dynamic branch predictor with higher prediction accuracy can further reduce the overhead caused by mispredictions leading to redirecting fetching,various implementations of dy-namic branch predictors have been explored based on the original microarchitecture to improve branch prediction accuracy while considering resource overhead.Experimental results show that among various dynamic branch predictors,the one achieving the best results is the adaptive dynamic branch predictor combining static branch prediction with Branch History Register(BHR).On the Dhrystone benchmark program,its branch prediction accuracy can be increased from the original 84.6%to 94.8%,and the score from 1.296 463 to 1.314 418.On the Coremark benchmark program,its branch prediction accura-cy can be increased from the original 67%to 78.7%,and the score from 2.120 000 to 2.138 008.

dynamic branch predictionHummingbird E203RISC-Vpipelinemicroarchitecture

魏一、杨智杰、铁俊波、石伟、周理、王耀、王蕾、徐炜遐

展开 >

国防科技大学计算机学院,湖南 长沙 410073

军事科学院国防科技创新研究院,北京 100091

动态分支预测 蜂鸟E203 RISC-V 流水线 微架构

国家自然科学基金科技部科技创新2030课题

620320012020AAA0104602

2024

计算机工程与科学
国防科学技术大学计算机学院

计算机工程与科学

CSTPCD北大核心
影响因子:0.787
ISSN:1007-130X
年,卷(期):2024.46(5)
  • 17