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

Branch processing method and system

A processing method and branching technology, which is applied in the direction of electrical digital data processing, program control design, instruments, etc., can solve problems such as performance loss, branch prediction error, etc., and achieve the effect of eliminating performance loss and saving chip area

Inactive Publication Date: 2018-11-20
SHANGHAI XINHAO MICROELECTRONICS
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] But branch prediction has unavoidable prediction errors
If the branch decision (branch decision) generated by the processor core executing the branch instruction is not the same as the branch prediction, the processing results of each pipeline segment before the pipeline segment that generates the branch decision in the processor pipeline must be cleared, and an instruction selected from the branch decision must be cleared. Start re-execution, resulting in performance loss

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 processing method and system
  • Branch processing method and system
  • Branch processing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] figure 2 It is an embodiment of processing branches by branch judgment according to the present invention. In this embodiment, 115 is a BTB storing the branch instruction address / branch target instruction pair, 105 is an instruction memory (memory), 116 is a selector, and 108 is a processor core. Processor core 108 generates branch predicate 110 to control selector 116. 108 generates instruction address 106. 106 addresses instruction memory 105, 105 provides sequential instruction 111. 106 is also compared with branch instruction address stored in BTB 115. If a branch instruction address in 115 matches instruction address 106, BTB 115 provides the branch target instruction 112 corresponding to the branch instruction address.

[0015] After sending the address of the branch instruction, 108 sends the address (sequence address) of the first instruction after the branch instruction through the instruction address 106 to address the instruction memory 105, and 105 sends t...

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 provides a branch processing method suitable for an electronic computer / microprocessor. The method is characterized in that a sequential instruction is provided according to an instruction address provided by a processor core, the instruction address is mapped by a BTB to provide a branch target instruction, one of the above two instructions is selected by a branch judgment generatedby the processor core to be executed by the processor core, and thus no branch loss exists. Branch prediction is not used, and the performance loss of the processor caused by a branch prediction error is excluded.

Description

technical field [0001] The present invention relates to the field of electronic computers and microprocessors. Background technique [0002] Control hazards, also known as branches, are a major cause of performance loss in processor pipelines. Current mainstream microprocessors use branch prediction to eliminate branch penalties. figure 1 It is an embodiment of the existing microprocessor processing conditional branching method. 101 is a branch target buffer (BranchTarget Buffer, BTB), 105 is an instruction cache, and 108 is a processor core. A typical BTB stores branch instruction addresses, corresponding branch target instruction addresses, and their branch predictions. The plurality of branch instruction addresses stored in the BTB 101 are compared with the instruction address 106 generated by 108 . If there is a match, a control signal 103 is output to control the selector 104 according to the branch prediction 102 stored in the matching BTB row. If the branch is pr...

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/3842G06F9/38
Inventor 林正浩
Owner SHANGHAI XINHAO MICROELECTRONICS
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