×

Branch prediction using multi-way pattern history table (PHT) and global path vector (GPV)

  • US 10,642,619 B2
  • Filed: 10/30/2014
  • Issued: 05/05/2020
  • Est. Priority Date: 07/31/2014
  • Status: Active Grant
First Claim
Patent Images

1. A computer implemented method for branch prediction using a multi-way pattern history table (PHT) that is indexed using a global path vector (GPV), the method comprising:

  • receiving a search address by a branch prediction logic that is in communication with the PHT and the GPV, wherein the branch prediction logic comprises a branch target buffer (BTB) and a plurality of hit detection modules that each determine a respective branch prediction,wherein a number N of the plurality of hit detection modules is equal to a number N of ways in the BTB, and wherein each of the plurality of hit detection modules receives an input from a single respective way in the BTB; and

    wherein the plurality of hit detection modules receives at least one input from the PHT;

    starting with the search address, simultaneously determining a plurality of branch predictions by the branch prediction logic based on the PHT and the BTB, wherein the plurality of branch predictions comprises one of;

    (i) N−

    1 not taken predictions and a single taken prediction, and (ii) N not taken predictions;

    providing the plurality of branch predictions to the processor;

    updating the GPV by shifting an instruction identifier of a branch instruction associated with a taken prediction into the GPV, wherein the GPV is not updated based on any not taken prediction, wherein the GPV is updated at prediction time to generate a PHT read index and at a completion time to generate a PHT write index; and

    inputting a target address of the branch instruction associated with the taken prediction into the branch prediction logic as the search address and repeating each of the previous steps using the updated search address.

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