×

Branch prediction in a data processing apparatus

  • US 20040210749A1
  • Filed: 04/15/2003
  • Published: 10/21/2004
  • Est. Priority Date: 04/15/2003
  • Status: Active Grant
First Claim
Patent Images

1. Branch prediction logic for generating a branch bias providing a prediction as to whether execution of a branch instruction will result in a branch being taken or not taken, the branch prediction logic comprising:

  • a first branch bias storage operable to store for each of a plurality of first address portions a corresponding first branch bias value, the first branch bias storage being operable upon receipt of a first address portion of the branch instruction'"'"'s address to output the corresponding first branch bias value from the first branch bias storage;

    a history storage operable to store history data identifying an outcome for a number of preceding branch instructions;

    a single second branch bias storage having a number of entries, each entry being operable to store a replacement branch bias value and a TAG value indicative of an instance in which the replacement branch bias value should be used as the generated branch bias in preference to the first branch bias value;

    index generation logic operable to generate an index identifying a corresponding entry in the single second branch bias storage, the index being derived from the history data;

    the single second branch bias storage being operable upon receipt of the index to cause the content of the corresponding entry to be output from the single second branch bias storage; and

    selection logic operable to select as the branch bias generated by the branch prediction logic the first branch bias value, unless the TAG value output from the single second branch bias storage corresponds to a comparison TAG value derived from a second address portion of the branch instruction'"'"'s address, in which event, the selection logic is operable to select as the branch bias generated by the branch prediction logic the replacement branch bias value output from the single second branch bias storage.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×