Design and Optimization of X Microprocessor’s Branch Prediction Circuit Structure

Author
LiuXue
Advisor
ChenYueYue
School
National University of Defense Science and Technology
Major
Electronic Science and Technology
Classification
TP332 Arithmetic unit and the controller (CPU)
Degree
Master's thesis
Year
2005
Downloads
69
Citations
0

Request the full text

Abstract

The application of pipeline technology has essentially improved the performance of microprocessor, it has become the basic characteristics of microprocessor. But the uncertainty of branch behavior about instruction stream, influences the performance of pipeline. The emergence of branch prediction technology can solve the problem to a great extent. Excellent branch prediction technology can effectively improve the efficiency of the instruction fetching, and become the basic guarantee of the performance improving. As a result, since 1990s, branch prediction technology has become the focus and difficult issue in the area of microprocessor.As to the static branch prediction technology, dynamic branch prediction technology can effectively adapt to the dynamic behavior of the program and predict the instruction stream more flexibly and accurately. In the current practical branch prediction technology, branch target buffer (BTB) is a common technique used in the branch prediction. According the record of the branch information, BTB can effectively predict the branch behavior and the target address of the latter instruction stream. Compared to other routine branch prediction technologies, BTB is more effective and easier to implement based on VLSI.Based on our in-depth analysis of the X microprocessor structure, this thesis proposed a four-bank and four-set structure BTB, comparing with multiple classical branch prediction technology. The method about allocation and replacement in BTB, lookup and update of the BTB entry, application of BTB branch prediction and dual RSB structure are involved in this thesis. We verify our design on the circuit module level and system level. As a result, the circuit which we designed can be used for the prediction of branch instruction. The validation of the test indicates that X microprocessor can work rightly. In addition, in order to fit the needs of the super pipeline and improve the accuracy of prediction further, we also complete the structural design of a BTB with 4K entries. The testing result of SPEC95 indicates that the miss rate of the BTB with 256 entries is 12.7%, while the BTB with 4K entries is 7.3%. Moreover, as for their prediction accuracy of branch instruction, both of them can reach 90%. By comparison, we found that increasing the volume of BTB to some extent can effectively decrease the miss rate and reduce the branch penalty of the pipeline, consequently improve the performance of the X microprocessor.

Table of contents

List of Figures 7-9 Table catalog 9-10 summary for 10-11 ABSTRACT 11-12 The first chapter the § 1.1 12-17 research background 12 § 1.2 branch prediction technology and branch target buffer BTB About 12-15 < br /> § 1.2.1 branch prediction techniques Introduction 12-13 § 1.2.2 branch target buffer BTB Introduction 13-15 § 1.3 research 15 structure of § 1.4 of this thesis 15-16 the § 1.5 of this thesis research 16-17 the second chapter of the dynamic branch prediction Technical Overview 17-28 § 2.1 typical dynamic branch prediction techniques 17-21 § 2.1.1 one / two branch prediction 17-18 § 2.1.2 Based on relevant branch prediction 18 § 2.1.3 two adaptive branch prediction 18-20 § 2.1.4 gshare and gselect branch prediction 20 § 2.1.5 hybrid branch prediction 20-21 § 2.2, several new branch prediction algorithm 21-25 § 2.2.1 based the Boolean formulas branch prediction to 21-22 § 2.2.2, FAB predictor 22-23 § 2.2.3 perceptron dynamic branch prediction method 23-25 ?? § 2.3 X microprocessor branch prediction mechanism to select 25-27 § 2.4 Summary 27-28 Chapter X microprocessor branch prediction model and BTB structural design 28-55 § 3.1 X microprocessor Profile 28-30 § 3.1.1 X microprocessor the main components 28-29 § 3.1.2 X microprocessor pipeline architecture 29-30 the § 3.2 X microprocessors of the branch instruction processing 30-34 § 3.2.1 does not predict the branch instruction processing 30 § 3.2.2 on predicted branch instruction processing 30-34 § 3.3 BTB structural design and the items set 34-37 multiple BTB § 3.3.1 multi-body structure design 34-36 § 3.3.2 BTB the design of the item 36-37 § 340 BTB entry allocation and replacement methods 37-40 the § 3.4.1 BTB assigned 37-40 < br /> to § 3.4.2 BTB replace 40 § 3.5 BTB lookup and branch instruction predicted 40-44 § 3.5.1 on multi-body the road structure BTB Find forecast 40-42 § 3.5.2 Body priority selection circuit 42 § 3.5.3 really hits 42-44 < br /> § 3.6 BTB prediction method of branch instructions 44-48 of § 3.6.1 BTB pair conditional jump class branch instruction prediction method 44-48 § 3.6.2 BTB branch instruction class of non-conditional jump prediction method 48 to § 3.7 BTB item update 48-51 § 3.7.1 BTB quick update 48-49 § 3.7.2 conditional jump and non-conditional jump instruction entries updated 49-51 § 3.8 return stack RSB 51 - the 54 § 3.8.1 Dual RSB structure for 52-53 § 3.8.2 Dual RSB process 53-54 § 3.9 Summary 54-55 Chapter X microprocessor branch prediction circuit function to verify 55-64 § 4.1 branch prediction circuit functional verification method 55-56 § 4.2 branch prediction circuit simulation module level validation 56-59 § 4.2.1 on module working condition simulation 56-57 § 4.2.2 the module timing simulation 58 57-58 § 4.2.3 relates to a signal related analog 58 § 4.2.4 module-level simulation and verification conclusion -59 § 4.3 branch prediction circuit system-level functional verification 59-63 § 4.3.1 on new items assigned validation 59-60 § 4.3 .2 BTB Find and predicted test 60-62 § 4.3.3 on BTB replace validation nbsp 62 § 4.3.4 system-level functional verification conclusions; 62-63 § 4.4 Summary 63-64 Chapter BTB's realization of large-capacity and capacity BTB performance 64-75 § 5.1 a capacity of 4K-entry BTB structure design the 65-68 § 5.1.1 the BTB bodies, groups, Road determine 65-66 § 5.1.2 new structure BTB the in vivo items set 66-67 § 5.1.3 the new structure of BTB working mechanism 67 § 5.1.4 in two capacities BTB hardware implementation cost 67-68 § 5.2 new structure of BTB module implementations to § 5.2.1 BTB's 68-73 body module 68-71 § 5.2 .2 body control module write 71 § 5.2.3 readout control module body 71-73 § 5.3 BTB's performance in two capacities - 73-74 § 5.4 Summary 74-75 Chapter VI Conclusion 75-77 Acknowledgements 77-78 for Master papers published during 78-79 Reference 79-81

Related dissertations

  1. Implementation of Branch Prediction Mechanism in X-Microprocessor and Research on the Branch Prediction Algorithm Based on Fuzzy Weight
  2. Low Power Branch Target Buffer for Embedded Processors
    ZhangXiangJian ·Harbin Institute of Technology ·2009 ·Master's thesis
  3. Design and Optimization of the Pipeline for the64-bits RISC Stream Core
  4. Research on Kev Techniques of Conditional Branch Processing
    ChenChen ·Zhejiang University ·2013 ·Doctoral dissertation
  5. Design of a 32-Bit Embedded RISC Microprocessor Based on FPGA
  6. Research on Key Techniques of Superscalar Embedded Processor Design
    MengJianZuo ·Zhejiang University ·2009 ·Doctoral dissertation
  7. Research on the Heterogeneous Media Dual-Issue Processor Design
    JiangGuoFan ·Zhejiang University ·2008 ·Master's thesis
  8. Research and Hardware/Software Modeling of MIPS32TM Compatible Processor
    XueBo ·Shanghai Jiaotong University ·2007 ·Master's thesis
  9. Research and Design of Branch Prediction Mechanism Base on MIPS Micro-Processor
    LiJingMei ·Harbin Engineering University ·2007 ·Master's thesis
  10. Multithreaded processor storage structures
  11. EPIC Architecture Study and Pipeline Implementation
  12. 32 5 pipelined embedded processor design
  13. \
  14. A Branch Prediction Scheme Designed for MIPS Instruction Set
    FengLei ·Institute of Computing Technology ·2002 ·Master's thesis
  15. Full Custom Design of the Branch Target Buffer for X Microprocessor
  16. Research & Development of High Performance Embedded Media Processor IP Core
    XiaoZhiBin ·Zhejiang University ·2006 ·Master's thesis
  17. The Research of Key Technique on Instruction Control Unit in the X-Microprocessor
  18. Study and Implement on Code Reordering Technology of I-Cache Optimization
  19. Processor based on neural network technology research branch prediction
    ShaZiYan ·Zhejiang University ·2010 ·Master's thesis
  20. Structure -based branch prediction mode of