Method and system for predicting branch instructions
AssigneeRealtek Semiconductor Corp.
InventorsChih-Hsien Chu, Yu-Ju Shih
Life of this patent
Estimating the term…
Loading patent…
AssigneeRealtek Semiconductor Corp.
InventorsChih-Hsien Chu, Yu-Ju Shih
Estimating the term…
A method and a system for predicting branch instructions are provided. The method includes reading a branch target buffer that stores a plurality of reference program counter (PC) values and a plurality of prediction target addresses. The reference PC values include plurality of history PC values of a plurality of history instructions that are executed before the branch instructions, and the plurality of prediction target addresses corresponding to the plurality of history PC values are a plurality of target addresses of the branch instructions, respectively. The method then checks that a PC value of a first instruction that enters an instruction fetch stage matches with a history PC value of a history instruction executed before a branch instruction, for obtaining beforehand a branch target address of a second instruction that is executed after the first instruction.
A method for predicting branch instructions, wherein the method is adapted to a processor, the processor executes a plurality of instructions that are in a series by using a pipelined architecture, and the plurality of instructions respectively have a plurality of program counter (PC) values, and wherein the pipelined architecture includes a first instruction fetch stage and a second instruction fetch stage;
A system for predicting branch instructions, wherein the system is adapted to a processor, the processor executes a plurality of instructions that are in a series by using a pipelined architecture, and the plurality of instructions respectively have a plurality of program counter (PC) values, and wherein the pipelined architecture includes a first instruction fetch stage and a second instruction fetch stage;
Dependencies are inferred from the claim text.