IP Library Granted Patent US 8,924,691
Granted Patent B2
US 8,924,691 · App. 12/280,478 · Granted Dec 30, 2014

Software pipelining

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,924,691
App. No.
12/280,478
Granted
Dec 30, 2014
Kind
B2
Abstract

A software pipelining method for generating a schedule for executing a plurality of instructions on a processor, the plurality of instructions involving one or more variables, the processor having one or more physical registers, the method comprising the step of scheduling each of the plurality of instructions, determining whether there is a variable for which there is less than a threshold number of physical registers to which that variable may be allocated, and unscheduling a currently scheduled instruction when there is a variable for which there is less than the threshold number of a physical registers to which that that variable may be allocated.

Claims (44)

1. A software pipelining method for generating a schedule for executing a plurality of instructions on a processor, the plurality of instructions involving one or more virtual registers, the processor having one or more physical registers, the method comprising the steps of:

scheduling each of the plurality of instructions;

determining, dynamically on an instruction by instruction basis for each of the instructions in the plurality of instructions, whether there is a virtual register for which there is less than a threshold number of physical registers to which the virtual register may be allocated in a currently scheduled instruction; and

unscheduling the currently scheduled instruction associated with the virtual register while leaving other instructions of the plurality of instructions as scheduled when there is less than the threshold number of physical registers to which that the virtual register may be allocated.

2. A method according to claim 1 , in which the step of determining whether there is the virtual register for which there is less than the threshold number of physical registers to which the virtual register may be allocated comprises determining whether there is no physical register to which the virtual register may be allocated.

3. A method according to claim 1 , in which the step of determining is performed each time an instruction is scheduled.

4. A method according to claim 1 , comprising the step of:

for each of the one or more virtual registers, storing an indicator associated with the virtual register, the indicator indicating which of the one or more physical registers the virtual register may be allocated to;

wherein the step of determining is dependent upon the indicator associated with each of the one or more virtual registers.

5. A method according to claim 4 , comprising the step of:

initializing the indicator associated with the virtual register to indicate that the virtual register may be allocated to a physical register only if, for each instruction involving that virtual register, that instruction may use the physical register for the virtual register.

6. A method according to claim 4 , comprising the step of:

updating the indicator associated with the virtual register in accordance with a constraint on the one or more physical registers to which the virtual register may be allocated, the constraint resulting from two or more instructions being scheduled for execution at a same time, at least one of the instructions involving the virtual register.

7. A method according to claim 6 , comprising the step of:

when an instruction is unscheduled, re-initializing the indicator associated with the virtual register and updating the indicator in accordance with the constraint on the one or more physical registers to which the virtual register may be allocated, the constraint resulting from two or more instructions being scheduled for execution at a same time, at least one of the instructions involving the virtual register.

8. A method according to claim 1 , comprising the steps of:

having generated a schedule, determining whether each of the one or more virtual registers may be allocated to a physical register to which no other virtual register is to be allocated; and

generating a different schedule when the virtual register cannot be allocated to the physical register to which no other virtual register is to be allocated.

9. A method according to claim 1 , in which the software pipelining method is performed in accordance with iterative modulo scheduling.

10. A method according to claim 9 , in which the iterative modulo scheduling comprises detecting whether there is a resource conflict between two or more instructions that have been scheduled and unscheduling the currently scheduled instruction when the resource conflict has been detected, wherein simulating the resource conflict when there is less than the threshold number of physical registers to which the virtual register may be allocated.

11. A non-transitory computer readable medium comprising a plurality of instructions to manipulate a processor, the plurality of instructions when executed by the processor cause the processor to perform the steps comprising:

scheduling each of a plurality of instructions;

determining, dynamically on an instruction by instruction basis for each of the instructions in the plurality of instructions, whether there is a virtual register for which there is less than a threshold number of physical registers to which the virtual register may be allocated in a currently scheduled instruction; and

unscheduling the currently scheduled instruction associated with the virtual register while leaving other instructions of the plurality of instructions as scheduled when there is less than the threshold number of physical registers to which that the virtual register may be allocated.

12. A method according to claim 2 , in which the step of determining is performed each time an instruction is scheduled.

13. A method according to claim 2 , comprising the step of:

for each of the one or more virtual registers, storing an indicator associated with the virtual register, the indicator indicating which of the one or more physical registers that the virtual register may be allocated to;

wherein the step of determining is dependent upon the indicator associated with each of the one or more virtual registers.

14. A method according to claim 3 , comprising the step of:

for each of the one or more virtual registers, storing an indicator associated with the virtual register, the indicator indicating which of the one or more physical registers that the virtual register may be allocated to;

wherein the step of determining is dependent upon the indicator associated with each of the one or more virtual registers.

15. A method according to claim 5 , comprising the step of:

updating the indicator associated with the virtual register in accordance with a constraint on the one or more physical registers to which the virtual register may be allocated, the constraint resulting from two or more instructions being scheduled for execution at a same time, at least one of the instructions involving the virtual register.

16. A method according to claim 2 , comprising the steps of:

having generated a schedule, determining whether each of the one or more virtual registers may be allocated to a physical register to which no other virtual register is to be allocated; and

generating a different schedule when the virtual register cannot be allocated to the physical register to which no other virtual register is to be allocated.

17. A method according to claim 3 , comprising the steps of:

having generated a schedule, determining whether each of the one or more virtual registers may be allocated to a physical register to which no other virtual register is to be allocated; and

generating a different schedule when the virtual register cannot be allocated to the physical register to which no other virtual register is to be allocated.

18. A method according to claim 4 , comprising the steps of:

having generated a schedule, determining whether each of the one or more virtual registers may be allocated to a physical register to which no other virtual register is to be allocated; and

generating a different schedule when the virtual register cannot be allocated to the physical register to which no other virtual register is to be allocated.

19. A method according to claim 2 , in which the software pipelining method is performed in accordance with iterative modulo scheduling.

20. A method according to claim 3 , in which the software pipelining method is performed in accordance with iterative modulo scheduling.

Assignments (32)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 13, 2025
From: NXP USA, INC.
To: TAIWAN SEMICONDUCTOR MANUFACTURING COMPANY LIMITED
Reel/Frame 072889/0939 →
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 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 039361 FRAME 0212. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded Oct 22, 2019
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 051029/0387 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 042762 FRAME 0145. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded Oct 22, 2019
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 051145/0184 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 038017 FRAME 0058. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded Oct 22, 2019
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 051030/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 042985 FRAME 0001. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded Oct 22, 2019
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 051029/0001 →
RELEASE OF SECURITY INTEREST Recorded Sep 10, 2019
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 050745/0001 →
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 APPLICATION 12681366 PREVIOUSLY RECORDED ON REEL 038017 FRAME 0058. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded May 9, 2017
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 042985/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12681366 PREVIOUSLY RECORDED ON REEL 039361 FRAME 0212. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded May 9, 2017
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 042762/0145 →
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 LISTED CHANGE OF NAME SHOULD BE MERGER AND CHANGE PREVIOUSLY RECORDED AT REEL: 040652 FRAME: 0180. ASSIGNOR(S) HEREBY CONFIRMS THE MERGER AND CHANGE OF NAME. Recorded Jan 12, 2017
From: FREESCALE SEMICONDUCTOR INC.
To: NXP USA, INC.
Reel/Frame 041354/0148 →
CHANGE OF NAME Recorded Nov 8, 2016
From: FREESCALE SEMICONDUCTOR INC.
To: NXP USA, INC.
Reel/Frame 040652/0180 →
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 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12092129 PREVIOUSLY RECORDED ON REEL 038017 FRAME 0058. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded Jul 14, 2016
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 039361/0212 →
SUPPLEMENT TO THE SECURITY AGREEMENT Recorded Jun 16, 2016
From: FREESCALE SEMICONDUCTOR, INC.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 039138/0001 →
SECURITY AGREEMENT SUPPLEMENT Recorded Mar 7, 2016
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 038017/0058 →
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 →
PATENT RELEASE Recorded Dec 21, 2015
From: CITIBANK, N.A., AS COLLATERAL AGENT
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 037356/0143 →
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 →
SECURITY AGREEMENT Recorded Mar 15, 2010
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A.
Reel/Frame 024085/0001 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 26, 2010
From: BATOG, BOGDAN; BADEA, DRAGOS
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 023850/0334 →
SECURITY AGREEMENT Recorded Dec 9, 2008
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A.
Reel/Frame 021936/0772 →