DOI QR코드

DOI QR Code

2-Level Adaptive Branch Prediction Based on Set-Associative Cache

세트 연관 캐쉬를 사용한 2단계 적응적 분기 예측

  • 심원 (서울산업대학교 컴퓨터공학과)
  • Published : 2002.12.01

Abstract

Conditional branches can severely limit the performance of instruction level parallelism by causing branch penalties. 2-level adaptive branch predictors were developed to get accurate branch prediction in high performance superscalar processors. Although 2 level adaptive branch predictors achieve very high prediction accuracy, they tend to be very costly. In this paper, set-associative cached correlated 2-level branch predictors are proposed to overcome the cost problem in conventional 2-level adaptive branch predictors. According to simulation results, cached correlated predictors deliver higher prediction accuracy than conventional predictors at a significantly lower cost. The best misprediction rates of global and local cached correlated predictors using set-associative caches are 5.99% and 6.28% respectively. They achieve 54% and 17% improvements over those of the conventional 2-level adaptive branch predictors.

조건부 분기 명령어는 분기 벌칙을 야기함으로써 명령어 수준의 병렬도 향상에 제약을 가한다. 고성능 슈퍼스칼라 프로세서의 등장으로 인해, 정확한 분기 예측의 중요성은 더욱 높아지고, 이를 위해 동적 분기 예측의 일종인 2단계 적응적 분기 예측(2-level adaptive branch prediction) 방식이 개발되었다. 그러나 2단계 적응적 분기 예측이 상당히 높은 예측 정확도를 보여주고 있음에도 불구하고, 정확도에 따른 비용이 기하급수적으로 증가하는 등의 문제점을 가지고 있다. 본 논문에서는 2단계 적응적 분기 예측의 이러한 문제점을 개선하기 위하여 세트 연관 캐쉬를 이용한 캐쉬 상관 분기 예측기(cached correlated branch predictor)를 제안하고, 기존의 방식에 비해 예측의 정확도는 증가하고, 비용은 줄어든 것을 시뮬레이션을 통하여 확인한다. 세트 연관 예측기의 경우 전역과 지역 방식의 가장 좋은 예측 실패율은 각각 5.99%, 6.28%이며, 이는 종래의 2단계 적응적 분기 예측 방식에서의 가장 좋은 결과인 9.23%, 7.35%에 비해 각각 54%, 17% 향상된 결과이다.

Keywords

References

  1. J. L. Hennessy and D. A. Pattern, Computer Architecture, Morgan Kaufmann, 1996
  2. T. Yeh, Y. Patt, 'Alternative Implementations of Two-Level Adaptive Branch Prediction,' ISCA-19, pp.124-134, 1992 https://doi.org/10.1145/139669.139709
  3. S. Pan, K. So and J. T. Rahmeh, 'Improving the Accuracy of Dynamic Branch Prediction Using Branch Correlation,' ASPLOS-V, pp.76-84, 1992 https://doi.org/10.1145/143365.143490
  4. G. B. Steven, C. Egan and L. Vintan, 'A Cost Effective Cached Correlated Two-Level Adaptive Branch Predictor,' International Conf. on Applied Informatics, pp.208-212, Feb., 2000
  5. C. Egan, 'Dynamic Branch Prediction in High Performance Superscalar Processors,' PhD Thesis, Univ. of Hertfordshire, pp.125-140, Aug., 2000
  6. T. Yeh and Y. Patt, 'Two-Level Adaptive Training Branch Prediction,' Micro-24, pp.51-61, Nov., 1991 https://doi.org/10.1145/123465.123475
  7. T. Yeh and Y. Patt, 'A Comparison of Dynamic Branch Predictors that use Two Levels of Branch History,' ISCA-20, pp.257-266, May, 1993 https://doi.org/10.1145/165123.165161
  8. S. McFarling. Combining Branch Predictors, Western Research Lab. Technical Report TN-36, Jun., 1993
  9. P. Chang, E. Hao and Y. Patt, 'Alternative Implementation of Hybrid Branch Predictors,' Micro-28, pp.252-257, Nov., 1995 https://doi.org/10.1109/MICRO.1995.476833
  10. G. B. Steven, D. B. Christianson, R. Collins, R. D. Potter and F. L. Steven, 'A Superscalar Architecture to Exploit Instruction Level Parallelism,' Microprocessors and Microsystems, pp.391-400, 1997 https://doi.org/10.1016/S0141-9331(96)01101-5
  11. F. L. Steven, An Introduction to the Hatfield Superscalar Scheduler, Univ. of Hertfordshire Technical Report 316, 1998