Unlock instant, AI-driven research and patent intelligence for your innovation.

BTB fusion method under prefetching mechanism

A mechanism and prefetching technology, which is applied in the direction of machine execution devices, program control design, instruments, etc., can solve problems such as performance loss, increased instruction scheduling pressure, and difficult branch prediction, so as to reduce impact, relieve instruction scheduling pressure, and reduce Effect of Risk of Performance Loss

Active Publication Date: 2019-04-16
HUAXIA GENERAL PROCESSOR TECH INC
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a method for merging BTB under the prefetching mechanism to solve the problem that the extreme instruction sequence proposed in the above-mentioned background technology will make the branch difficult to predict, and no matter the direction or the prediction error of the jump address will bring A large performance loss, and increase the pressure of instruction scheduling, and provide another design idea: define a class of branch address calculation instructions, and have their own architecture registers, and initiate instruction fetches every time the address calculation is performed Request, and store the cache line in advance, associate the branch instruction that needs to jump to the address with the cache line prefetched by address calculation through renaming, and apply BTB technology to make up for the lack of instruction scheduling. The address calculation instruction and the branch instruction are too close together Come to the front end bubble

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
  • BTB fusion method under prefetching mechanism
  • BTB fusion method under prefetching mechanism
  • BTB fusion method under prefetching mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] 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.

[0021] see Figure 1-3 , the present invention provides a technical solution: a method for fusing BTB under a prefetch mechanism, the method for fusing BTB under this prefetch mechanism, the specific steps are as follows:

[0022] S1: Disptach executes to address calculation instructions;

[0023] S2: Return to the front-end value stage to perform prefetch operations and store in the prefetch structure: N prefetch structures associated with address architectu...

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 belongs to the technical field of central processing units. The invention relates to a BTB fusion method, in particular to a BTB fusion method under a prefetching mechanism. The method comprises the following steps of: S1, executing an address calculation instruction by Dispatch, S2, returning to the front-end value taking stage to carry out pre-taking operation and storing the pre-taking operation into a pre-taking structure; S3, the Dispach executes the jump instruction; The BTB fusion method under a prefetching mechanism is reaseable in design, the performance gain brought bythe instruction scheduling of the prefetching mechanism can be exerted; the insufficient front-end instruction fetching performance caused by untimely prefetching under an extreme instruction sequencecan be made up through BTB. The method has the advantages that the risk of performance loss caused by BTB prediction errors is reduced, the advantages of a compiler and hardware collaborative optimization are brought into play, the influence of the BTB prediction errors on front-end fetch bandwidth is reduced through a fusion structure, and meanwhile instruction scheduling pressure is fully relieved.

Description

technical field [0001] The invention relates to the technical field of central processing units, in particular to a method for merging BTBs under a prefetching mechanism. Background technique [0002] The front-end instruction fetch bandwidth of a traditional CPU depends on branch direction prediction and branch address prediction, and the cache miss during the instruction fetch process or front-end bubbles caused by branch prediction jumps are covered by the instruction fetch buffer. Therefore, the prediction accuracy determines the entire front-end instruction fetch. Energy-efficiency ratio, the extreme instruction sequence will make the branch difficult to predict, whether it is the direction or the jump address prediction error will bring a lot of performance loss, and increase the pressure of instruction scheduling, for this reason, we propose a predictive Take the method of fusing BTB under the mechanism. Contents of the invention [0003] The purpose of the present...

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
IPC IPC(8): G06F9/38
CPCG06F9/3804Y02D10/00
Inventor 谢卓费晓龙
Owner HUAXIA GENERAL PROCESSOR TECH INC