Microprocessor using combined actual and speculative branch history prediction
Abstract
A pipelined microprocessor (10) and system (2) incorporating the same, utilizing combined actual branch history and speculative branch history to predict branches, is disclosed. The microprocessor (10) includes a branch target buffer, or BTB, (56) having a plurality of entries (63) that are associated with previously branching instructions. Each entry (63) has a tag field (TAG) for storing an identifier for its branching instruction based upon the logical address therefore, and a target field (TARGET) for storing the target address for the branching instruction if the branch is taken. Each entry (63) also includes a branch history field (BH), the most-recent bits of which are applied to a pattern history table, or PHT, (53) as an index thereto to retrieve a prediction for the branch. A count field (CT) is also provided with each entry (63), to count the number of positions in the branch history field (BH) that correspond to speculative history, such as may arise in closely-packed programs where multiple instances of the branching instruction are encountered before resolution of an earlier instance. Upon resolution of the branching instruction, correct predictions are indicated by d
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 86.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A microprocessor, comprising: an instruction execution pipeline, comprising an execution unit, and an instruction decode unit for decoding instructions for execution by the execution unit, the instruction execution pipeline having a plurality of stages for processing instructions in sequence; an instruction memory for storing instruction codes according to instruction addresses; and a fetch unit, for addressing the instruction memory with an instruction address to retrieve instruction codes for application to the instruction pipeline, comprising: a branch target memory comprised of a plura
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗