Method and system for instruction branch prediction

A branch prediction and instruction technology, which is applied in the direction of concurrent instruction execution and machine execution devices, can solve the problems that the processor has no instruction branch prediction function, the processor execution efficiency is reduced, and the processor pipeline stalls, etc., to solve the problem of processor pipeline stalls , Eliminate the effect of reducing the efficiency of processor execution

Active Publication Date: 2018-07-31
SHENZHEN CHIPSBANK TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, small-scale processors do not have instruction branch prediction function or only have unidirectional static branch prediction function. If there is a jump instruction in a non-sequential execution direction, the processor pipeline will stall, which will lead to the insertion of branch delay gaps and reduce the execution efficiency of the processor.

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
  • Method and system for instruction branch prediction
  • Method and system for instruction branch prediction
  • Method and system for instruction branch prediction

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0032] The invention provides an instruction branch prediction method, figure 1 A flow chart of Embodiment 1 of the instruction branch prediction method of the present invention is shown, including:

[0033] Step S101: Execute the current instruction, obtain and cache a preset number of instructions to be executed in the sequential execution direction;

[0034] Take the instruction being executed by the processor as the reference point, take the sequential ex...

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 an instruction branch prediction method and system. After the current instruction is executed, a preset number of instructions to be executed in the sequential execution direction are obtained and cached, and it is judged whether the first cached instruction is a jump instruction type. If If it is, calculate the jump target address and cache the target jump instruction. When the jump condition is met, it directly reads the cache of the target jump instruction to execute the jump instruction. If the jump condition cannot be met, it directly reads the cache for sequential execution. The second instruction in the direction, when the jump instruction is executed, no matter whether the jump condition is met or not, the subsequent instructions to be executed have been obtained and can be directly read from the cache for execution, through jump instruction prediction, instruction prefetch, instruction The mode of cache and direct read cache realizes bidirectional instruction branch prediction, solves the processor pipeline stall caused by jump instructions, and eliminates the reduction in processor execution efficiency caused by inserting branch delay gaps.

Description

technical field [0001] The invention relates to the field of processors, in particular to an instruction branch prediction method and system. Background technique [0002] When a processor with pipeline technology processes a branch instruction, depending on the true / false of the judgment condition, a jump may occur, which will interrupt the processing of the instruction in the pipeline, because the processor cannot determine the next step of the instruction. instructions until the branch is executed. The longer the pipeline, the longer the processor waits, because it must wait for the branch instruction to be processed before it can determine the next instruction to enter the pipeline. [0003] At present, small-scale processors do not have instruction branch prediction function or only have unidirectional static branch prediction function. If there is a jump instruction in a non-sequential execution direction, the processor pipeline will stall, which will lead to the inse...

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 Patents(China)
IPC IPC(8): G06F9/38
Inventor 谢长华
Owner SHENZHEN CHIPSBANK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products