IP Library Granted Patent US 8,533,441
Granted Patent B2
US 8,533,441 · App. 12/190,291 · Granted Sep 10, 2013

Method for managing branch instructions and a device having branch instruction management capabilities

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,533,441
App. No.
12/190,291
Granted
Sep 10, 2013
Kind
B2
Abstract

A method for managing branch instructions, the method includes: providing, to pipeline stages of a processor, multiple variable length groups of instructions; wherein each pipeline stage executes a group of instruction during a single execution cycle; receiving, at a certain execution cycle, multiple instruction fetch requests from multiple pipeline stages, each pipeline stage that generates an instruction fetch request stores a variable length group of instructions that comprises a branch instruction; sending to the fetch unit an instruction fetch command that is responsive to a first in order branch instruction in the pipeline stages; wherein if the first in order fetch command is a conditional fetch command then the instruction fetch command comprises a resolved target address; wherein the sending of the instruction fetch command is restricted to a single instruction fetch command per a single execution cycle.

Claims (53)

1. A method for managing branch instructions, the method comprising:

providing, to pipeline stages of a processor, multiple variable length groups of instructions; wherein each pipeline stage executes a group of instructions during a single execution cycle;

receiving, at a controller during a certain execution cycle, multiple instruction fetch requests from multiple pipeline stages, each pipeline stage of the multiple pipeline stages that provides an instruction fetch request to the controller stores a variable length group of instructions that comprises a branch instruction;

updating status information indicative of an order of branch instructions stored in the multiple pipeline stages based on an executed branch instruction of an immediately preceding execution cycle, wherein the status information for each of the multiple branch instructions includes a bit set for each branch instruction that precedes that branch instruction;

determining a first in order branch instruction based on the status information wherein the first in order branch instruction has zero bits set in the status information; and

sending, from the controller, to a fetch unit a certain instruction fetch command that is responsive to the first in order branch instruction of the multiple instruction fetch requests from the multiple pipeline stages, wherein the controller will always send an instruction fetch command responsive to the first in order branch instruction of the multiple instruction fetch requests for a cycle during which the controller receives the multiple instruction fetch requests.

2. The method according to claim 1 comprising sending to the fetch unit a resolved target address and a branch prediction indication that is indicative of a correctness of a predicted target address that was generated by a branch prediction unit.

3. The method according to claim 2 comprising:

receiving, at a certain execution cycle, a plurality of instruction fetch requests from a plurality of pipeline stages that store a plurality of branch requests; wherein the plurality of branch instruction fetch requests are associated with the same condition; and

storing a resolved condition indication until all branch instructions exit the pipeline stages.

4. The method according to claim 2 comprising associating with each branch instruction in the pipeline stages a number of preceding branch instructions that are stored in the branch prediction unit.

5. The method according to claim 2 comprising restricting each variable length group of instructions to include less than two branch instructions.

6. The method according to claim 1 comprising sending the certain instruction fetch command to the fetch unit if a predicted target address associated with the first in order branch command was erroneous.

7. The method according to claim 6 comprising:

receiving, at a certain execution cycle, a plurality of instruction fetch requests from a plurality of pipeline stages that store a plurality of branch requests; wherein the plurality of branch instruction fetch requests are associated with the same condition; and

storing a resolved condition indication until all branch instructions exit the pipeline stages.

8. The method according to claim 1 comprising associating with each branch instruction in the pipeline stages a number of preceding branch instructions that are stored in the branch prediction unit.

9. The method according to claim 1 comprising restricting each variable length group of instructions to include less than two branch instructions.

10. The method according to claim 1 comprising:

receiving, at a certain execution cycle, a plurality of instruction fetch requests from a plurality of pipeline stages that store a plurality of branch requests; wherein the plurality of branch instruction fetch requests are associated with the same condition; and

storing a resolved condition indication until all branch instructions exit the pipeline stages.

11. The method according to claim 1 wherein the first in order branch instruction is determined by monitoring and updating status vectors that indicate a number of branch instructions that precede each branch instruction.

12. The method according to claim 1 further comprising:

determining that the first in order branch instruction is a mispredicted branch instruction;

flushing instructions in the pipeline stages that follow the mispredicted branch instruction; and

storing results of the execution of the flushed instructions that follow the mispredicted branch instruction for later use when the flushed instructions are later retrieved by the fetch unit.

13. A system for managing branch instructions, the system comprising:

multiple pipeline stages of a processor, each adapted to execute a single variable length group of instructions per execution cycle;

a fetch unit adapted to fetch groups of variable length instructions from a memory unit; and

a controller, configured to:

receive, at a certain execution cycle, multiple instruction fetch requests from multiple pipeline stages, each pipeline stage of the multiple pipeline stages that provides an instruction fetch request to the controller stores a variable length group of instructions that comprises a branch instruction;

update status information indicative of an order of branch instructions stored in the multiple pipeline stages based on an executed branch instruction of an immediately preceding execution cycle, wherein the status information for each of the multiple branch instructions includes a bit set for each branch instruction that precedes that branch instruction;

determine a first in order branch instruction based on the status information, wherein the first in order branch instruction has zero bits set in the status information; and

send to the fetch unit an instruction fetch command that is responsive to the first in order branch instruction of the multiple instruction fetch requests from the pipeline stages, wherein the controller always executes the first in order branch instruction during each execution cycle;

wherein only if the first in order fetch command is a conditional fetch command then the instruction fetch command comprises a resolved target address;

wherein the controller is restricted to send up to a single instruction fetch command per a single execution cycle.

14. The system according to claim 13 wherein the controller is adapted to send to the fetch unit the resolved target address and a branch prediction indication that is indicative of a correctness of a predicted target address that was generated by a branch prediction unit.

15. The system according to claim 13 wherein the controller is adapted to send the instruction fetch command to the fetch unit if a predicted target address associated with the first in order branch command was erroneous.

16. The system according to claim 13 wherein the controller is adapted to associate with each branch instruction in the pipeline stages a number of preceding branch instructions that are stored in the branch prediction unit.

17. The system according to claim 13 wherein each variable length group of instructions is restricted to include less than two branch instructions.

18. The system according to claim 13 wherein the pipeline stages are adapted to be flushed of instructions that followed a mispredicted conditional branch command while send to storage intermediate results of executions of the flushed groups of instructions.

19. The system according to claim 13 wherein the controller is adapted to:

receive, at a certain execution cycle, a plurality of instruction fetch requests from a plurality of pipeline stages that store a plurality of branch requests; wherein the plurality of branch instruction fetch requests are associated with the same condition; and

store a resolved condition indication until all branch instructions exit the pipeline stages.

20. A method for managing branch instructions, the method comprising:

providing, to pipeline stages of a processor, multiple variable length groups of instructions; wherein each pipeline stage executes a group of instructions during a single execution cycle;

receiving, at a controller during a certain execution cycle, multiple instruction fetch requests from multiple pipeline stages, each pipeline stage of the multiple pipeline stages that provides an instruction fetch request to the controller stores a variable length group of instructions that comprises a branch instruction;

updating status information indicative of an order of branch instructions stored in the multiple pipeline stages based on an executed branch instruction of an immediately preceding execution cycle, wherein the status information for each of the multiple branch instructions includes a bit set for each branch instruction that precedes that branch instruction;

determining a first in order branch instruction based on the status information, wherein the first in order branch instruction has zero bits set in the status information;

sending, from the controller, to the fetch unit an instruction fetch command that is responsive to the first in order branch instruction in the pipeline stages;

determining that the first in order branch instruction is a mispredicted branch instruction;

flushing instructions in the pipeline stages that follow the mispredicted branch instruction; and

storing results of the execution of the flushed instructions that follow the mispredicted branch instruction for later use when the flushed instructions are later retrieved by the fetch unit.

Assignments (20)
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 11759915 AND REPLACE IT WITH APPLICATION 11759935 PREVIOUSLY RECORDED ON REEL 040925 FRAME 0001. ASSIGNOR(S) HEREBY CONFIRMS THE RELEASE OF SECURITY INTEREST. Recorded Feb 17, 2020
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP, B.V. F/K/A FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 052917/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 11759915 AND REPLACE IT WITH APPLICATION 11759935 PREVIOUSLY RECORDED ON REEL 040928 FRAME 0001. ASSIGNOR(S) HEREBY CONFIRMS THE RELEASE OF SECURITY INTEREST. Recorded Jan 17, 2020
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 052915/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 11759915 AND REPLACE IT WITH APPLICATION 11759935 PREVIOUSLY RECORDED ON REEL 037486 FRAME 0517. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS. Recorded Dec 10, 2019
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 053547/0421 →
RELEASE OF SECURITY INTEREST Recorded Sep 10, 2019
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 050744/0097 →
CORRECTIVE ASSIGNMENT TO CORRECT THE TO CORRECT THE APPLICATION NO. FROM 13,883,290 TO 13,833,290 PREVIOUSLY RECORDED ON REEL 041703 FRAME 0536. ASSIGNOR(S) HEREBY CONFIRMS THE THE ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS.. Recorded Feb 20, 2019
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: SHENZHEN XINGUODU TECHNOLOGY CO., LTD.
Reel/Frame 048734/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE PATENTS 8108266 AND 8062324 AND REPLACE THEM WITH 6108266 AND 8060324 PREVIOUSLY RECORDED ON REEL 037518 FRAME 0292. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS. Recorded Feb 1, 2017
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 041703/0536 →
CORRECTIVE ASSIGNMENT TO CORRECT THE NATURE OF CONVEYANCE PREVIOUSLY RECORDED AT REEL: 040652 FRAME: 0241. ASSIGNOR(S) HEREBY CONFIRMS THE MERGER AND CHANGE OF NAME. Recorded Jan 5, 2017
From: FREESCALE SEMICONDUCTOR, INC.
To: NXP USA, INC.
Reel/Frame 041260/0850 →
MERGER Recorded Nov 8, 2016
From: FREESCALE SEMICONDUCTOR, INC.
To: NXP USA, INC.
Reel/Frame 040652/0241 →
RELEASE OF SECURITY INTEREST Recorded Nov 7, 2016
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 040928/0001 →
RELEASE OF SECURITY INTEREST Recorded Sep 21, 2016
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP, B.V., F/K/A FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 040925/0001 →
SUPPLEMENT TO THE SECURITY AGREEMENT Recorded Jun 16, 2016
From: FREESCALE SEMICONDUCTOR, INC.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 039138/0001 →
ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS Recorded Jan 13, 2016
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 037518/0292 →
ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS Recorded Jan 12, 2016
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 037486/0517 →
PATENT RELEASE Recorded Dec 21, 2015
From: CITIBANK, N.A., AS COLLATERAL AGENT
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 037354/0757 →
PATENT RELEASE Recorded Dec 21, 2015
From: CITIBANK, N.A., AS COLLATERAL AGENT
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 037356/0553 →
SECURITY AGREEMENT Recorded Nov 6, 2013
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 031591/0266 →
SECURITY AGREEMENT Recorded Jun 18, 2013
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 030633/0424 →
SECURITY AGREEMENT Recorded May 13, 2010
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A., AS COLLATERAL AGENT
Reel/Frame 024397/0001 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 2, 2010
From: PELED, YUVAL; BARAK, ITSHAK; DAYAN, URI; ROZENBERG, IDAN; SALANT, YORAM
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 024014/0399 →
SECURITY AGREEMENT Recorded Dec 9, 2008
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A.
Reel/Frame 021936/0772 →