The Research of Key Technique on Instruction Control Unit in the X-Microprocessor

Author
DaiZuo
Advisor
LiGuoKuan
School
National University of Defense Science and Technology
Major
Software Engineering
Classification
TP332 Arithmetic unit and the controller (CPU)
Degree
Master's thesis
Year
2004
Downloads
109
Citations
3

Request the full text

Abstract

In this paper, we give a design of a two-issue superscalar processor’s(X processor) instruction control unit, basing on analysis and research of x86 processor instructions. The verification of key units is also given.Instruction control unit in X general microprocessor will perform following functions:1. Select 2 instructions from instruction streams which get from instruction cache;2. Perform instruction decoding, paring, dependency checking, dispatching.X general microprocessor adopt complex instruction set, the instruction vary in length . So it is very difficult for us to select two proper instructions from instruction stream. To solve this problem, first we must decode instruction length. Over the entire process of instruction controller’s design, we put instruction length decoding stage before instruction fetching. This is to say, instruction length decoding and fetching, is performed simultaneously. ? This design method is more accurate than the method based on length guess.Accurate branch prediction is required to achieve high performancd in deeply pipelined wide-issue processors. To improve branch prediction accuracy, we introduced branch prediction buffer based on two level adaptive branch prediction algorithm in X processor. Its main consideration is to break branch history information into two level table: the first level table is actual branch history information table; the second level table is prediction branch history information table, formed by two level adaptive branch prediction algorithm.In the end, the verification of main module of our design is performed.

Table of contents

Directory 4-7 the diagram directory 7-9 table directory 9-10 summary 10-11 ABSTRACT 11-12 first chapter 12-14 § 1.1 Background 12 § 1.2 research tasks 12 § 1.3 major research 12-13 the meaning of § 1.4 research 13 the § 1.5 papers structures 13-14 X processor architecture overview 14-19 the § 2.1 Directive introduced 14-16 2.1.1 instruction prefix 14-15 2.1.2 operation code (Opcode) 15 2.1.3 MODR / M byte 15-16 2.1.4 SIB (scale, index, base) byte 16 2.1.5 offset (Displacement) 16 2.1.6 immediate (Immediate) 16 § 2.2 X Universal microprocessor architecture overview 16-19 command control parts 19-28 § 3.1 command control components overall structural design 19-22 3.1.1 instruction control unit functions Overview 19 3.1.2 commands to control the flow of execution of the components 19-21 3.1.3 instruction control part of the overall structure 21-22 § 3.2 prefetch instruction 22 § 3.3 Fetch module 22-23 the § 3.4 Instruction Decode design to achieve 23-26 3.4.1 first decoding paragraph (D1) 24-25 3.4.1.1 opcode decoding 24 3.4.1.2 instruction pairing correlation check design 24-25 3.4.2 second decoding segment (D2) 25-26 the § 3.5 Complex Instruction microcode control 26-27 § 3.6 Chapter Summary 27-28 Chapter Research and Design of the separation of two complex instruction 28-49 the § 4.1 to determine two instruction length and Design 28-31 4.1.1 instruction length analysis 28-29 4.1.2 flow calculation instruction length 29-30 4.1.3 to determine the length of the flow of two instructions 30-31 § 4.2 separation of two complex instruction design 31-34 4.2.1 separation of two complex instruction process design 31-32 4.2.2 separation of two complex command structure designed 32-34 4.2.3 instructions separation structure overview of the module's 34 § 4.3 instruction length calculated design to achieve 34-41 4.3.1 instruction length decoding (Length Decoder) module 34-36 4.3.2 Attribute-bit decoder the (Attribute Decoder) module 36-37 4.3.3 prefetch buffer, the length of the message buffer, 0F buffer and attributes bit buffer 37-41 the § the 4.4 two instructions separation design to achieve 41-47 the shift module 4.4.1 41-43 4.4.2 shift control module 43-45 4.4.3 instruction prefix decoding module 45-46 4.4.4 FIFO queue FIFO 46-47 § 4.5 Chapter Summary 47-49 Chapter branch prediction mechanism design 49-64 the § 5.1 two adaptive prediction algorithm 49-51 § 5.2 prediction algorithm improvements - two history table prediction algorithm 51-56 5.2.1 improved algorithm proposed 51-52 5.2.2 Grade II historic table algorithm 52-56 5.2.2.1 two historical tables predicted branch instruction judgment process 53-54 5.2.2.2 prediction history table to modify the process 54-55 5.2.2.3 true history table modify 55-56 § 5.3 BTB's overall design 56-57 the § 5.4 BTB Cache Design 57-61 5.4.1 BTB Cache line allocation update and modify 59-61 5.4.1.1 branch instruction classification 59-60 5.4.1.2 BTB allocation, update and modify 60-61 § 5.5 two historical table design 61-62 § 5.6 the return stack RSB 62-63 § 5.7 Chapter Summary 63-64 The Instruction 6 control components function simulation 64-69 § 6.1 instruction length decoder module function to verify 64-66 6.1.1 instruction length decoder module under test functions 64- 6.1.2 authentication methods and implementation steps 64 6.1.3 Analysis of 64-66 1) a single length of the simulation results of the decoding unit part of the waveform graph, such as 6.1 shown. 64-65 2) 16 instruction length decoding unit simulation results 65-66 the § 6.2 two instructions separation module functional verification 66-67 6.2.1 two instructions separation module under test features 66 6.2.2 authentication methods and implementation steps 66 6.2.3 the results of the analysis 66-67 the § 6.3 BTB module functions to verify 67-69 6.3.1 module under test function 67 6.3.2 authentication methods and implementation steps 67-68 6.3.3 the results of the analysis 68-69 Chapter VII Summary and Outlook 69-71 the § 7.1 work summarizes 69 § 7.2 Job Outlook 69-71 studying for a master's degree during the thesis 71-72 Acknowledgements 72-73 the References 73-76 Appendix A 76-80 the § attached A.1 00H operation code table 76-78 the § attached A.2 0F operation code table 78-80 the Appendix B BTB test program 80

Related dissertations

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