Supercharge Your Innovation With Domain-Expert AI Agents!

Branch prediction control method and branch prediction control device

A technology of branch prediction and control method, which is applied in the direction of program control design, machine execution device, instrument, etc. It can solve the problems of reducing the execution efficiency of branch instructions and the large loss of branch prediction misprediction, so as to reduce the loss of misprediction and improve execution efficiency. Effect

Inactive Publication Date: 2017-06-13
青岛专用集成电路设计工程技术研究中心
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

With this method, the misprediction loss of branch prediction is large during decoding, which reduces the execution efficiency of branch instructions.

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 control method and branch prediction control device
  • Branch prediction control method and branch prediction control device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

[0030] In the prior art, if the result of branch prediction during decoding considers that the instruction fetched on the current pipeline or in the cache is not the target instruction of the branch instruction, these instructions will be flushed and re-fetched, and once the misprediction occurs, the original Correct instruction fetches are forced to repeat operations, reducing processor performance.

[0031] In view of the above problems, the present invention proposes a branch prediction control method. While fetching the branch target predicted during decoding, it does not flush the instructions that have been fetched and issued, but allows them to continue to execute. Only when the final branch instruction judgment result proves that the branch...

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

The invention discloses a branch prediction control method and a branch prediction control device. The branch prediction control method includes subjecting a branch instruction to branch prediction during instruction fetching, and subjecting a branch target to instruction fetching; subjecting the branch instruction to branch prediction again during decoding; when a branch prediction result obtained during decoding needs to be used for correcting a branch prediction result obtained during instruction fetching, recording a current instruction fetching PC to an instruction re-fetching PC register, and subjecting the branch target for branch prediction during decoding to instruction fetching; when the branch instruction completes branch judgment, judging whether correction is correct or not according to a branch judgment result; if yes, continuing the branch target for branch prediction during decoding and subsequent instruction fetching operation, and flushing subsequent instructions of the branch instruction; if not, cancelling the branch target for branch prediction during decoding, and performing instruction fetching according to a PC in the instruction re-fetching PC register. The branch prediction control method is capable of reducing misprediction penalties of the branch prediction during decoding and improving branch instruction execution efficiency.

Description

technical field [0001] The present invention relates to the technical field of processors, in particular to a branch prediction control method and device. Background technique [0002] There are a large number of branch instructions in the program, and branch instructions are also called transfer instructions and jump instructions. Under normal circumstances, the processor fetches instructions in order of instruction addresses. For example, the current instruction fetch PC is the instruction fetch PC+4 of the previous cycle (assuming that each instruction fetch fetches 4 bytes). However, before the branch instruction is executed, the processor cannot determine the address of the next instruction, and even before the instruction is decoded, it cannot determine whether the instruction is a branch instruction. If the instruction fetching unit fetches instructions in an unconditional order, after the branch instruction executes the branch, all subsequent instructions fetched ne...

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/3848
Inventor 周沈刚李任伟
Owner 青岛专用集成电路设计工程技术研究中心
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More