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

Instruction processing device containing branch prediction loop, processor and processing method thereof

An instruction processing and instruction technology, applied in instruction analysis, concurrent instruction execution, machine execution devices, etc., can solve problems such as efficient processing of branch and jump instructions, meaningless repeated filling of the same loop body, and error-prone subsequent instruction flow, etc. Achieve high accuracy, reduce time, and reduce power consumption

Active Publication Date: 2021-01-15
C SKY MICROSYST CO LTD
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in practical applications, since the previously executed loop body has a high probability of needing to be executed again shortly after exiting the loop, the processing method of the existing scheme causes the same loop body to be filled repeatedly meaninglessly
In addition, in the existing instruction loop body scheme, the processing such as the jump prediction of the branch jump instruction in the loop body is generally not involved. In this way, for the branch jump instruction sent from the loop body buffer, its subsequent The determination of the instruction flow is error-prone and needs to be corrected in the subsequent stages of the pipeline, so that the branch and jump instructions from the loop body buffer can not be processed efficiently

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
  • Instruction processing device containing branch prediction loop, processor and processing method thereof
  • Instruction processing device containing branch prediction loop, processor and processing method thereof
  • Instruction processing device containing branch prediction loop, processor and processing method thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0064] According to one embodiment, the length of the loop body of the candidate instruction can be determined according to the address of the currently read backward conditional branch instruction and the address of the target location where the branch instruction is to jump, for example, it can be determined by the address of the branch instruction and the jump The distance between the target addresses determines the length of the loop body, and the number of instructions in the instruction loop body can also be determined according to the space occupied by each instruction as the length of the loop body.

[0065] The method 500 also includes step S580. In step S580, determine the number of consecutive executions of the candidate loop body indicated by the current conditional branch instruction, and determine whether the number of consecutive executions reaches a number threshold. If the number of consecutive executions does not reach the number threshold, the candidate inst...

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 fetching method. The method comprises the following steps of when a currently read instruction is a backward conditional branch instruction, determining whethera candidate instruction loop body indicated by the backward conditional branch instruction is consistent with an instruction loop body stored in a cache or not; if the candidate instruction loop bodyis consistent with the stored instruction loop body, taking out an instruction to be executed from the instruction loop body stored in the cache; and if the candidate instruction loop body is inconsistent with the stored instruction loop body, storing the candidate instruction loop body in a cache. The invention further discloses an instruction processing device for executing the method and a system-on-chip comprising the instruction processing device.

Description

technical field [0001] The present invention relates to the field of processors, in particular to a processor core and a processor including a loop register. Background technique [0002] Modern processors or processor cores process instructions in a pipelined fashion. A typical pipeline usually includes various pipeline stages such as instruction fetch, instruction decode, instruction issue, instruction execution and instruction retirement. Processors often include dedicated instruction fetch units to fetch instructions and feed them to the next stage of the pipeline. In order to continuously provide instructions to the next stage of the pipeline, the processor usually provides an instruction cache, and the instruction fetch unit usually continuously fetches instructions from the instruction cache to provide to the next stage. In order to fetch instructions from external memory devices or instruction cache, the instruction fetch unit consumes energy. Reducing the power c...

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/30G06F9/38
CPCG06F9/30149G06F9/3806G06F9/3844G06F9/3851Y02D10/00
Inventor 刘东启陈晨
Owner C SKY MICROSYST 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