Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Branch prediction method and related device

A technology of branch prediction and prediction conditions, which is applied in the field of computer systems and can solve problems affecting the accuracy of branch prediction

Active Publication Date: 2015-03-18
HUAWEI CLOUD COMPUTING TECH CO LTD +1
View PDF4 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] Various aspects of the present invention provide a branch prediction method and related devices, which are used to solve the problem of affecting the accuracy of branch prediction when sharing BTAC

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Branch prediction method and related device
  • Branch prediction method and related device
  • Branch prediction method and related device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] Embodiments of the present invention provide a branch prediction method and a related device.

[0048] In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, various other embodiments obtained by persons of ordinary skill in the art without making creative efforts all belong to the protection scope of the present invention.

[0049] A branch prediction method provided by an embodiment of the present invention is described below. The branch prediction method in the embodiment of the present invention is applied to a processor. The processor inc...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A branch predicting method and a related apparatus. Applied in a server, the processor comprises: a first BTAC that stores information about a mapping between a register identifier and a predicted target jump-to address, and a second BTAC that stores information about a mapping between a field of a program counter and a predicted target jump-to address. The brand predicting method comprises: reading an instruction from an instruction buffer; if determining that the instruction satisfies a register prediction condition, obtaining a predicted target jump-to address of the instruction from the first BTAC according to a register identifier of the instruction; and if determining that the instruction does not satisfy the register prediction condition, obtaining a predicted target jump-to address of the instruction from the second BTAC according to a program counter of the instruction. Therefore, the problem that branch prediction accuracy is affected during BTAC sharing is effectively solved.

Description

technical field [0001] The invention relates to the field of computer systems, in particular to a branch prediction method and a related device. Background technique [0002] Most current processors use a pipeline structure, so that the sequentially executed instruction streams can be executed in parallel. This way of processing instructions greatly improves the execution efficiency of the processor. Ideally, each Stage of the pipeline (that is, the pipeline layer) only takes one clock cycle, so each clock cycle can complete one instruction. But the actual situation is not so ideal, because there may be mutual dependencies between instructions, which will affect the parallelism of instruction execution. Factors such as data dependence, control dependence (such as branch instructions), resource competition, interrupts, etc., will affect the parallelism of instructions. [0003] The actual program includes branch instructions. The branch behavior of the branch instruction i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/38
CPCG06F9/38G06F9/3806
Inventor 侯锐冯煜晶郭旭斌张乾龙
Owner HUAWEI CLOUD COMPUTING TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products