Method and apparatus for high performance branching in pipelined microsystems
Abstract
A pipelined processor includes a branch acceleration technique which is based on an improved branch cache. The improved branch cache minimizes or eliminates delays caused by branch instructions, especially data-dependent unpredictable branches. In pipelined and multiply pipelined machines, branches can potentially cause the pipeline to stall because the branch alters the instruction flow, leaving the prefetch buffer and first pipeline stages with discarded instructions. This has the effect of reducing system performance by making the branch instruction appear to require multiple cycles to execute. The improved branch cache differs from conventional branch caches. In particular, the improved cache is not used for branch prediction, but rather, the improved branch cache avoids stalls by providing data that will be inserted into the pipeline stages that would otherwise have stalled when a branch is taken. Special architectural features and control structures are supplied to minimize the amount of information that must be cached by recognizing that only selected types of branches should be cached and by making use of available cycles that would otherwise be wasted. The improved branch
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 20 · Forward citations: 6.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method comprising: determining that an instruction is a branch instruction in a pipeline stage prior to a pipeline decode stage; and pre-fetching a set of branch target instructions associated with the branch instruction from a cache memory, wherein the set of branch target instructions comprise decoded instructions.
- Claim 2Depends on #1
The method of claim 1 , comprising transferring the set of branch target instructions from the cache memory to a shadow dispatch unit comprising an output arranged in parallel with an output of a dispatch unit in the pipeline.
- Claim 3Depends on #2
The method of claim 2 , comprising transferring the set of branch target instructions from the cache memory to an execution stage, wherein transferring is configured to bypass the decode stage.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗