System for dynamically allocating processing time to multiple threads
First Claim
1. A processor, comprising:
- a pipeline comprising multiple pipeline stages including an instruction fetch unit operable to fetch instructions associated with a plurality of processor threads, including a first processor thread and a second processor thread;
a set of registers corresponding to each of the plurality of processor threads, including the first processor thread and the second processor thread, the registers being located before and after each pipeline stage in the multiple pipeline stages of the pipeline of the processor;
wherein each pipeline stage includes a first selector in communication with input registers for that pipeline stage, and a second selector in communication with output registers for that pipeline stage, the input registers and the output registers being from the set of registers; and
a programmable controller operable to perform a context switch among the plurality of processor threads, including storing a state of a currently executing processor thread in a corresponding set of registers and loading a state of another processor thread from a corresponding set of registers to allow for processing of the another processor thread, by controlling switching of the first and second selectors such that data associated with the first processor thread pass through the corresponding first set of registers, and the multiple pipeline stages, during a time that the first processor thread is being processed, and data associated with the second processor thread pass through the corresponding second set of registers, and the multiple pipeline stages, during a time that the second processor thread is being processed, wherein the controller includes a plurality of hardware thread allocation counters corresponding to the plurality of processor threads to effect the context switch by the programmable controller within the processor, each thread allocation counter containing a first value representing a respective processor time allocation that controls a period of processor time that is to be dedicated to a respective processor thread, wherein the respective processor time allocation is fixed for and determined prior to the period of processor time, wherein the respective processor thread fully and exclusively uses the respective processor time allocation,wherein the programmable controller is configured to dynamically change subsequent processor time allocations to the plurality of processor threads by changing one or more of the first values of the thread allocation counters to one or more second values based on a received input, the received input defining one or more portions of processor time to be allocated to each of the plurality of processor threads.
8 Assignments
0 Petitions
Accused Products
Abstract
A pipeline processor architecture, processor, and methods are provided. In one implementation, a processor is provided that includes an instruction fetch unit operable to fetch instructions associated with a plurality of processor threads, a decoder responsive to the instruction fetch unit, issue logic responsive to the decoder, and a register file including a plurality of banks corresponding to the plurality of processor threads. Each bank is operable to store data associated with a corresponding processor thread. The processor can include a set of registers corresponding to each of a plurality of processor threads. Each register within a set is located either before or after a pipeline stage of the processor.
-
Citations
34 Claims
-
1. A processor, comprising:
-
a pipeline comprising multiple pipeline stages including an instruction fetch unit operable to fetch instructions associated with a plurality of processor threads, including a first processor thread and a second processor thread; a set of registers corresponding to each of the plurality of processor threads, including the first processor thread and the second processor thread, the registers being located before and after each pipeline stage in the multiple pipeline stages of the pipeline of the processor; wherein each pipeline stage includes a first selector in communication with input registers for that pipeline stage, and a second selector in communication with output registers for that pipeline stage, the input registers and the output registers being from the set of registers; and a programmable controller operable to perform a context switch among the plurality of processor threads, including storing a state of a currently executing processor thread in a corresponding set of registers and loading a state of another processor thread from a corresponding set of registers to allow for processing of the another processor thread, by controlling switching of the first and second selectors such that data associated with the first processor thread pass through the corresponding first set of registers, and the multiple pipeline stages, during a time that the first processor thread is being processed, and data associated with the second processor thread pass through the corresponding second set of registers, and the multiple pipeline stages, during a time that the second processor thread is being processed, wherein the controller includes a plurality of hardware thread allocation counters corresponding to the plurality of processor threads to effect the context switch by the programmable controller within the processor, each thread allocation counter containing a first value representing a respective processor time allocation that controls a period of processor time that is to be dedicated to a respective processor thread, wherein the respective processor time allocation is fixed for and determined prior to the period of processor time, wherein the respective processor thread fully and exclusively uses the respective processor time allocation, wherein the programmable controller is configured to dynamically change subsequent processor time allocations to the plurality of processor threads by changing one or more of the first values of the thread allocation counters to one or more second values based on a received input, the received input defining one or more portions of processor time to be allocated to each of the plurality of processor threads. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 34)
-
-
10. A processor, comprising:
-
a pipeline comprising multiple pipeline stages; a set of registers corresponding to each of a plurality of processor threads, the registers within a set being located before and after each of the multiple pipeline stages of the processor; a programmable controller operable to perform a context switch among the plurality of processor threads, including storing a state of a currently executing processor thread in a corresponding set of registers, and loading a state of another processor thread from a corresponding set of registers to allow for processing of the another processor thread, wherein the controller includes a plurality of thread allocation counters corresponding to the plurality of processor threads to effect the context switch by the programmable controller within the processor, each thread allocation counter containing a value representing a respective processor time allocation that controls a period of processor time that is to be dedicated to a respective processor thread, wherein the respective processor time allocation is fixed for and determined prior to the period of processor time, wherein the respective processor thread fully and exclusively uses the respective processor time allocation; and circuitry configured to cause, based on an exception, a jump to one of a plurality of exception handling routines corresponding to the plurality of processor threads, wherein each of the plurality of exception handling routines handles an exception request associated with a corresponding processor thread. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. A method comprising:
-
providing a first processor thread for instruction execution; providing a second processor thread for instruction execution; processing, on a processor, the first processor thread; performing, on the processor, a context switch from the first processor thread to the second processor thread, wherein the performing comprises (a) storing a state of the first processor thread in a first set of registers corresponding to the first processor thread, the first set of registers comprising first registers located before and after each pipeline stage in multiple pipeline stages of a pipeline of the processor; and
(b) loading a state of the second processor thread from a second set of registers corresponding to the second processor thread, the second set of registers comprising second registers located before and after each pipeline stage in the multiple pipeline stages of the pipeline of the processor, wherein the performing comprises performing the context switch in accordance with signals from a programmable controller including at least first and second thread allocation counters corresponding to the first and second processor threads to effect the context switch by the programmable controller within the processor, each thread allocation counter containing a value representing how much processor time is to be allocated for a respective processor thread, wherein the programmable controller is operable to dynamically change processor time allocations to the first processor thread and the second processor thread;using, on the processor, the first thread allocation counter to determine a weighting that corresponds to a first processor time allocation that controls a first period of processor time that is to be allocated to the first processor thread, wherein the first processor time allocation is fixed for and determined prior to the first period of processor time, wherein the first processor thread fully and exclusively uses the first processor time allocation; and using, on the processor, the second thread allocation counter to determine a weighting that corresponds to a second processor time allocation that controls a second period of processor time that is to be allocated to the second processor thread, wherein the second processor time allocation is fixed for and determined prior to the second period of processor time, wherein the second processor thread fully and exclusively uses the second processor time allocation. - View Dependent Claims (17, 18, 19, 20, 21, 22, 23)
-
-
24. A processor comprising:
-
a pipeline comprising multiple pipeline stages including (a) an instruction fetch unit operable to fetch instructions associated with a plurality of processor threads, (b) a decoder responsive to the instruction fetch unit, (c) issue logic responsive to the decoder, and (d) an execution unit in communication with the issue logic; a set of registers corresponding to each of the plurality of processor threads, including the first processor thread and the second processor thread, the registers being located before and after each pipeline stage in the multiple pipeline stages of the pipeline of the processor; a register file including a plurality of banks corresponding to the plurality of processor threads, each bank operable to only store data associated with a corresponding processor thread, wherein the execution unit is communicatively coupled with each of the banks; and a programmable controller in communication with the instruction fetch unit, the controller operable to determine a processor thread from which a next instruction will be fetched by the instruction fetch unit, wherein the controller includes a plurality of thread allocation counters corresponding to the plurality of processor threads to effect the context switch by the programmable controller within the processor, each thread allocation counter containing a value representing a respective processor time allocation that controls a period of processor time that is to be dedicated to a respective processor thread by the instruction fetch unit, wherein the respective processor time allocation is fixed for and determined prior to the period of processor time, and wherein the respective processor thread fully and exclusively uses the respective processor time allocation. - View Dependent Claims (25, 26, 27, 28, 29, 30, 31, 32, 33)
-
Specification