processor pipeline controlling techniques are described which take advantage of the variation in critical path lengths of different instructions to achieve increased performance. By examining a processor's instruction set and execution unit implementation's critical timing paths, instructions are classified into speed classes. Based on these speed classes, one pipeline is presented where hold signals are used to dynamically control the pipeline based on the instruction class in execution. An alternative pipeline supporting multiple classes of instructions is presented where the pipeline clocking is dynamically changed as a result of decoded instruction class signals. A single pass synthesis methodology for multi-class execution stage logic is also described. For dynamic class variable pipeline processors, the mix of instructions can have a great effect on processor performance and power utilization since both can vary by the program mix of instruction classes. application code can be given new degrees of optimization freedom where instruction class and the mix of instructions can be chosen based on performance and power requirements.
|
1. A method for changing execution latency for performance and power optimization of an instruction class adaptable pipeline processor, the method comprising:
creating, by use of a computer, an application program for the instruction class adaptable pipeline processor, the application program containing class one instructions each executable with a first latency in a class one pipeline and class two instructions each executable with a second latency in a class two pipeline, wherein the first latency is shorter than the second latency;
changing an encoding of an original class one instruction of the class one instructions to a second encoded class one instruction that specifies a function of the original class one instruction is to be executed with the second latency to minimize power use while still meeting performance requirements and to create a modified application program; and
executing the modified application program on the instruction class adaptable pipeline processor, wherein the second encoded class one instruction is executed and the original class one instruction is not executed.
8. An apparatus providing performance and power optimization capabilities to an instruction class adaptable pipeline processor, the apparatus comprising:
a program storage unit storing a plurality of class one instructions each executable at a first latency and a plurality of class two instructions each executable at a second latency, wherein the first latency is shorter than the second latency;
a fetch stage and a decode stage for fetching an instruction from the program storage unit and decoding the fetched instruction to determine an instruction class indication, wherein the fetch stage and the decode stage operate at the first latency or the second latency and the decoded instruction being a class one instruction or a class two instruction; and
an adaptable execution stage for execution of the decoded instruction at the first latency or at the second latency according to the instruction class indication, wherein under program control, a class encoding field in one or more of the plurality of class one instructions is changed from a class one encoding to a class two encoding to reduce power utilization when the program is executed.
5. A method for changing execution latency for performance and power optimization of an instruction class adaptable pipeline processor, the method comprising:
creating, by use of a computer, an application program for the instruction class adaptable pipeline processor, the application program containing class one instructions each executable with a first latency in a class one pipeline and class two instructions each executable with a second latency in a class two pipeline, wherein the first latency is shorter than the second latency;
changing an encoding of an original class one instruction of the class one instructions to a second encoded class one instruction that specifies a function of the original class one instruction is to be executed with the second latency to minimize power use while still meeting performance requirements and to create a modified application program; and
executing the modified application program on the instruction class adaptable pipeline processor, wherein the second encoded class one instruction is executed and the original class one instruction is not executed, wherein the application program is initially created with each instruction specified at its highest frequency class.
15. A method for changing execution latency for performance and power optimization of an instruction class adaptable pipeline processor, the method comprising:
storing a program containing class one instructions encoded to specify execution with a first latency and class two instructions encoded to specify execution with a second latency in a memory from which a first class one instruction, a class two instruction, and a second class one instruction are fetched in sequence to be decoded by the instruction class adaptable pipeline processor;
decoding the first class one instruction to generate a class one indication which controls execution of the first class one instruction with the first latency;
decoding the class two instruction to generate a class two indication which controls execution of the class two instruction with the second latency, wherein the second latency is longer than the first latency; and
decoding the second class one instruction, encoded to specify execution with the first latency, to dynamically reclassify the second class one instruction to specify execution with the second latency and to generate the class two indication which controls execution of the second class one instruction with the second latency to minimize power use of the instruction class adaptable pipeline processor while still meeting performance requirements.
12. An apparatus providing performance and power optimization capabilities to an instruction class adaptable pipeline processor, the apparatus comprising:
a program storage unit storing a plurality of class one instructions each executable at a first latency and a plurality of class two instructions each executable at a second latency, wherein the first latency is shorter than the second latency;
a fetch stage and a decode stage for fetching an instruction from the program storage unit and decoding the fetched instruction to determine an instruction class indication, wherein the fetch stage and the decode stage operate at the first latency or the second latency and the decoded instruction being a class one instruction or a class two instruction;
an adaptable execution stage for execution of the decoded instruction at the first latency or at the second latency according to the instruction class indication, wherein under program control, a class encoding field in one or more of the plurality of class one instructions is changed from a class one encoding to a class two encoding to reduce power utilization when the program is executed, wherein the adaptable execution stage comprises:
class one execution logic having a worst-case signal propagation time that is less than or equal to a first class time period; and
class two execution logic having a worst-case signal propagation time that is greater than the first class time period and less than or equal to a second class time period.
18. A method for changing execution latency for performance and power optimization of an instruction class adaptable pipeline processor, the method comprising:
storing a program containing class one instructions encoded to specify execution with a first latency and class two instructions encoded to specify execution with a second latency in a memory from which a first class one instruction, a class two instruction, and a second class one instruction are fetched in sequence to be decoded by the instruction class adaptable pipeline processor;
decoding the first class one instruction to generate a class one indication which controls execution of the first class one instruction with the first latency;
decoding the class two instruction to generate a class two indication which controls execution of the class two instruction with the second latency, wherein the second latency is longer than the first latency; and
decoding the second class one instruction, encoded to specify execution with the first latency, to dynamically reclassify the second class one instruction to specify execution with the second latency and to generate the class two indication which controls execution of the second class one instruction with the second latency to minimize power use of the instruction class adaptable pipeline processor while still meeting performance requirements, wherein a first portion of the class one instructions are dynamically encoded to indicate the second latency and the remaining portion of the class one instructions indicate the first latency to balance performance of the program and power used during execution of the program.
2. The method of
appropriately programming a programmable clock gating mode to cause a specifiable majority of the instructions of the instruction class adaptable pipeline processor to execute at a longer latency than the second latency associated with the class two instructions, to further minimize power use while still meeting performance requirements of the modified application program.
3. The method of
a first fetch stage;
a first decode stage; and
a first execute stage, wherein each stage is executable at the first latency or the second latency.
4. The method of
a second fetch stage;
a second decode stage; and
a second execute stage, wherein the second fetch stage and the second decode stage are executable at the first latency or the second latency and the second execute stage is executable at the second latency.
6. The method of
issuing a class one instruction in parallel with a class two instruction; and
executing both the class one instruction and the class two instruction in parallel with the second latency.
7. The method of
issuing a class one instruction in parallel with another class one instruction; and
executing both of the class one instructions in parallel with the first latency.
9. The apparatus of
an adaptable pipeline control unit responsive to the instruction class indication for adapting a duration of latency of the adaptable execution stage to the first latency for a class one instruction or to the second latency for a class two instruction.
10. The apparatus of
11. The apparatus of
13. The apparatus of
14. The apparatus of
16. The method of
17. The method of
19. The method of
20. The method of
storing in the program class three instructions each executable with a third latency in the memory from which a class three instruction is fetched, wherein the third latency is longer than the second latency; and
decoding the class three instruction to generate a class three indication which controls execution of the class three instruction with the third latency.
|
The present application is a divisional of and claims the benefit of U.S. Ser. No. 12/861,896 filed Aug. 24, 2010 which is a divisional of and claims the benefit of U.S. Ser. No. 10/805,803 filed Mar. 22, 2004 issued as U.S. Pat. No. 7,809,932 all of which are incorporated herein by reference in their entirety.
The present invention relates generally to techniques to improve processor performance through improvements in the processor pipeline. More particularly, the present invention provides advantageous techniques which in a typical application may provide higher instruction throughput for a given pipeline depth with minimal affects on hardware costs, with minimal, if any, change to the programming model when applied to an existing pipeline, and without an increase in the number of pipeline stages.
Application programs can generally be divided into two broad categories: a first category having sequential code segments with low levels of instruction level parallelism (ILP), such as control code, and a second category having code segments with high levels of ILP, which is referred to herein as parallel code. Both of these code types are often intermixed in an application program and both need to be efficiently processed to achieve high performance for the whole program.
Sequential code may be defined as an ordered sequence of instructions that when executed on a processor completes the instructions in the order specified. Given an existing processor with a fixed instruction set and operating at a maximum clock frequency, one of the primary means available for executing instructions faster is to increase the clock frequency in a new processor implementation. This increased clock frequency requires a larger number of processing stages so that each stage has a smaller latency, in effect increasing temporal parallelism through deeper pipelining. Since sequential code often has a relatively high number of branch instructions, increasing the pipeline depth can lead to longer branch latencies. To address such long latencies, prior techniques have included the use of conditional or predicated execution to minimize the use of branches, or complex branch prediction strategies, or some combination of such approaches, which for all of these techniques there is increased hardware complexity. Adding stages to an existing pipeline potentially has the additional, and possibly most serious problem of changing the programming model. Adding pipeline stages in a new processor implementation while avoiding programming model changes can result in much higher hardware complexity and power consumption, reduced performance gain, or both.
A processor architecture can be considered to consist of a variety of executable function instructions, such as addition, subtraction, multiplication, division, compares, ANDs, ORs, ExclusiveORs, NOTs, shifts, rotates, permutes, bit operations, moves, loads, stores, communications and variations and combinations of the like. The execution of these diverse instructions also will have a wide diversity of execution delays. In developing a processor pipeline, the execution delays for each instruction, as it flows through the pipeline, are examined and typically the longest delay path through any stage sets the pipeline clock period and consequent operating frequency. The longest delay path is a worst case path and is typically referred to as a critical timing path. A pipeline stage logic path typically begins with output signals from a previous stage's storage device, such as a latch, register, or memory. The signals then flow through function specific combinatorial logic defining the functional portion of the pipeline stage. Then the pipeline stage ends with saving that stage's output in a storage device. Increasing the clock frequency reduces the clock period and typically causes the addition of pipeline stages since there is less time to accomplish the longest path function specific combinatorial logic.
Given such observations, a need exists for the development of a processor pipeline that takes advantage of the variation in critical path lengths of different processor instructions, and the tendency for different processor instructions to be used together in different contexts in order to achieve increased instruction throughput. Further, a need exists that any advantageous changes to the pipeline minimally, if at all, affect the programming model, implementation silicon area and power for such an implementation.
To address these needs, the present invention takes advantage of the differences between simple and complex instructions' critical path delays and the tendency for decision-intensive sequential code to consist largely of simpler instructions. Further, when considering a mix of simple and complex instructions in an application program, the program throughput will improve if the simple instructions' execution latency is improved by use of the techniques of the present invention compared to the execution latency of more complex instructions.
Among its several aspects, the present invention addresses a method for partitioning a processor's operations into “speed classes” based on their critical paths in each pipeline stage. A processor with an instruction class controllable fetch, decode, and execute pipeline is described. With an instruction set architecture split into a class one set of instructions that require a short execution latency and a class two set of instructions that require a longer execution latency, a program consists of a diverse mix of class one and class two instructions that are stored in the processor's program memory. The class controllable pipeline processor fetches instructions from the program memory and stores each fetched instruction in an instruction register during the fetch stage of the pipeline. The instruction stored in the instruction register is classified as a class one or a class two instruction and further decoded in preparation for execution with the decoded instruction stored in a decode register during the decode pipeline stage. The instruction classification causes an adaptable pipeline control unit to adapt the pipeline to the instruction class in execution. The instruction stored in the decode register is then executed in a short execution latency if it is a class one instruction or executed in a longer execution latency if it is a class two instruction, in the adaptable execute pipeline stage.
In another aspect, the invention addresses methods and apparatus for achieving higher average instruction throughput in a processor pipeline by varying the effective pipeline clock frequency based on the instruction type. In particular, for high-performance parallel processor architectures, this approach can provide a significant level of sequential code performance improvement.
More specifically, such an approach may provide for higher instruction throughput for a given pipeline depth at minimal or no change to the programming model when applied to an existing pipeline and at no increase in the number of pipeline stages and consequently minimal additional hardware cost and minimal affect on power consumption due to any additional hardware.
The instruction adaptable pipeline processor also supports optimization techniques to improve the performance and power characteristics of the adaptable pipeline processor when executing a program containing a mix of instruction classes.
A more complete understanding of the present invention, as well as other features and advantages of the invention, will be apparent from the following detailed description and the accompanying drawings.
Various general observations concerning processors and application programs may be made as follows:
In order to teach the concepts in the invention, an exemplary three-stage pipeline is described and then transformed according to the methods of this invention to achieve higher performance. For this example, the instructions are first classified by their critical paths in order to create speed classes, then it is shown how the critical paths can be separated and the pipeline controlled to vary pipeline cycle time on an instruction by instruction basis.
A three-stage basic pipeline 100 is shown in
In pipeline 100, an instruction I may be executed each cycle, while the next instruction I+1 is being decoded, and instruction I+2 is being fetched. All pipeline stages typically advance with the same timing. The maximum clock frequency is limited by the longest latency logic path, the critical path, which corresponds to a particular instruction being processed at some stage. Often, this path will occur during the execute stage. However, the longest path can be in another stage, such as the decode stage, for example, if an address calculation for a load or store instruction is done there. In order to describe the basic inventive concepts, it is not unreasonable to assume that the longest latency path is in the execute stage for a processor with complex instructions and further that the fetch and decode stages are significantly faster. In other words, that the fetch and decode stages have a significantly shorter critical path. The discussion which follows makes this assumption.
For purposes of discussion, consider two instructions to be executed where all registers are 32-bit registers. One is a simple 32-bit compare (CMP) implemented with a subtract which sets flags and does not update a target register and the other is a 32-bit multiply (MPY) that executes a 32-bit×32-bit multiplication:
CMP R1, R2; R1 compare R2 and set flags as appropriate
MPY R6∥R7,R3,R4; R6∥R7=R3*R4
The compare instruction takes two 32-bit registers as operands, compares them and sets flags. The MPY operation takes two 32-bit register source operands and produces a 64-bit output. The target operand R6∥R7 in the above MPY syntax refers to the register pair R6 and R7 while R3 and R4 are treated as registers containing 32-bit word values. R3 is multiplied by R4, and the result is then stored in register pair R6∥R7.
It is easy to see that the MPY instruction requires significantly more data path gates than the CMP compare instruction. From a timing perspective, in a typical processor design, the MPY instruction will therefore limit the maximum pipeline clock frequency.
Next consider that the CMP instruction is representative of a class of instructions, class 1, that have relatively simple data paths and short execution path timing, while the MPY is representative of a second class of instructions, class 2, which have relatively complex data paths and therefore longer execution path timing. The pipeline stages preceding the execution stage, such as a fetch stage and a decode stage, typically are of the same order of complexity as a class 1 execution function and can operate at the class 1 execution rate. If class 1 instructions form a set of instructions which are used together frequently, the present invention recognizes that it is possible to create more efficient and higher performance programs by using a new pipeline organization and modified pipeline control that more optimally supports the two classes of instructions. In order to group the instructions by classes, the instructions are first ordered by their critical paths in ascending order. Then, depending upon implementation constraints and performance and algorithm requirements, the classes of instructions are selected.
Although the present example addresses only two classes of instructions as exemplary, it will be recognized that the invention is not limited to only two classes and may be extended to any number, though increasing the number of classes also increases the hardware design and synthesis complexity. For example,
For the pipeline 400 of
If a class 2 instruction is detected during the decode stage, then on the next cycle, the class 2 execute stage is extended by an additional MCLK cycle by holding all other pipeline stages constant using the feedback paths 462 and 465 to multiplexers 467 and 469 respectively, and holding the PCntr 470 constant. After the two MCLK cycles, the pipeline advances again. If subsequent instructions are class 1 instructions, then the pipeline resumes processing an instruction every MCLK cycle. If the subsequent instructions are class 2 instructions, then instructions in the pipeline advance one stage every two MCLK cycles. Note that for class 2 instructions, the execute stage is simply allocated more master clock cycles, one additional cycle in this case, and no additional pipeline stages are used for execution, which means improved performance is obtained with minimum impact to power and logic area. In this fashion, the pipeline controller advances the pipeline according to the types of instructions being processed. The effective throughput of an application is now governed by the relative numbers of class 1 and class 2 instructions processed.
A(1),B(1),C(1),D(2),E(1),F(1),G(2),H(2),I(2),J(1),K(1),L(1), . . . [1]
and this can be seen in the second column 510 labeled “Fetch”.
If all of the instructions in this exemplary sequence were to be executed in a pipeline 100 such as shown in
In the pipeline 400, as shown in
The exemplary pipelines 100 of
A presently preferred embodiment of a pipeline and pipeline control circuit 600 supporting two classes of instructions is illustrated in
Since a slower instruction can hold back a faster instruction, pipelines with a larger number of stages increase the probability that a slower instruction will be active in the pipeline along with faster instructions. Consequently, it can be seen that this invention tends to favor, and even enhance the benefits of, shorter pipelines which would have a fewer number of different classes of instructions being processed in the pipeline during any one cycle.
The presently preferred pipeline and pipeline control circuit 600 of
The register contents, for example, the contents of registers 625 and 640, are retained by selecting feedback paths, for example, paths 642 and 644, through multiplexers 627 and 645, respectively, allowing MCLK′ 647 and MCLK″ 648 to reload the existing contents of registers 625 and 640 back into registers 625 and 640. A master clock (MCLK) 649 is used to provide the clock for the program flow and pipeline control logic 610. MCLK′ 647 and MCLK″ 648 provide functionally similar timing to MCLK 649 but variations may exist due to wiring delays, clock buffers, and the like depending on an implementation. As shown in
The exemplary instruction execution sequence 500 shown in
During the next MCLK, MCLK cycle 4 551, a class 2 instruction D(2) 552 is being fetched and the pipeline advances such that by the end of the fourth MCLK cycle 551, the class 2 instruction D(2) is loaded into the IR 625 replacing instruction C(1), the decoded and classified instruction C(1) 553 is loaded into the DR 640, and instruction B(1) 554 completes its execution in execute class 1 logic block 652. It is during the next MCLK cycle that we see the use of the hold signals. During the fifth MCLK cycle 555, instruction E(1) is being fetched, instruction D(2) 557 is being decoded and classified as a class 2 instruction and instruction C(1) 558 is in execute class 1 logic block 652. Since instruction D(2) is a class 2 instruction, hold signals are generated. It is assumed that the instruction E(1) being fetched will be allowed to complete loading E(1) into IR 625 at the end of the fifth MCLK cycle 555. Also, at the end of the fifth MCLK cycle 555, the decoded and classified instruction D(2) is loaded into the DR 640 and instruction C(1) completes its execution in execute class 1 logic block 652. It is during the sixth MCLK cycle 559 that the pipeline is in a hold condition. The PCtr 615 may be updated to point to instruction F(1) in the program instruction word memory 620, but the fetch operation is on hold and no fetch occurs. The previously fetched instruction E(1) is maintained in the IR 625 by hold IR signals 560, 630, the decoded and classified instruction D(2) is maintained in the DR 640 by hold DR signal 561, 639, and the instruction D(2) 562 is in its first period of execution in execute class 2 logic block 656.
The hold signals are then released allowing the pipeline to continue with the seventh MCLK period 563. The instruction F(1) 564 is now fetched, the instruction E(1) 565 is decoded and classified as a class 1 instruction and instruction D(2) 566 is in its second period of execution in execute class 2 logic block 656. The pipeline has returned to normal operation so that by the end of the seventh MCLK cycle 563, the instruction F(1) is loaded into the IR 625 replacing the previously held instruction E(1), the decoded and classified instruction E(1) is loaded into DR 640, and the class 2 instruction D(2) completes its execution having had two MCLK periods to do so. Instruction D(2) completes its execution in execute class 2 logic block 656 and results are written through multiplexer 654 whose class 2 path is selected based on the decoded class 2 instruction D(2). The pipeline control and operation continues in a similar fashion for each class 2 instruction it receives, decodes and classifies and executes as shown in
Instruction processing begins with the program flow and pipeline control unit 702 generating a program short instruction word memory address and control signals 750 to read an instruction from SIM 705. The IR1 708 receives the fetched SIW 751 through multiplexer 714. The instruction in IR1 is predecoded by the VMC 706 as an early simple decode test for indirect VLIW instructions which require a VIM 707 access. If a VIM fetch instruction is predecoded, the VMC 706 generates the appropriate address and control signals 753 to fetch a VLIW, consisting of up to five SIWs 755-759 in this embodiment, from VIM 707 and stores the fetched VLIW in the VIR 712. The PFC 702 also decodes and classifies the instructions in IR1 708 to determine the pipeline's next state as discussed in conjunction with
The PCSM 800 controls the general instruction sequencing and which instruction register, IR1 708, IR2 710 or VIR 712, contents are to be sent to the decode and execution units. The PCSM 800 is designed to expand the pipeline to allow for a VIM 707 access cycle. Once the pipeline is expanded it remains expanded until one of several possible instruction types is decoded in which it is permissible to compress the pipeline, removing the additional pipeline stage that was added for the VIM access. Compressing the pipeline is permissible when a branch type instruction is detected or when a write-access-to-VIM instruction type is detected.
State S1 810 is the normal operating state the processor is in after reset 801 has occurred, and it indicates the pipeline is in a compressed state. In the compressed state, the IR1 708 output 765 is decoded and selected by signal 762 to pass through multiplexer 719 to bus 767 making the IR1 SIW instruction available as one of the inputs to the multiplexers 720. With appropriate decoding and control logic, the appropriate multiplexer, from the multiplexer group 720 that is associated with the desired IR1 SIW decode-and-execute unit, is enabled through use of one of the five multiplexer path-select control lines 764.
State S3 814 corresponds to
State S2 812 corresponds to
A transition from one state to the next is determined by decoding the IR1 708 and IR2 710 register outputs. The
In
It is noted that in
In accordance with the present invention, the PFC 702 receives classified signals 777, one from each decode unit 722, 726, 730, 734 and 738. These classified signals are used in conjunction with the PCSM 800 to generate hold signals using a further level of pipeline control state machine as shown in
The hold signals are 779, 781, 783 and 785 to select the IR1 708, IR2 710, VIR 712 and decode registers 723, 727, 731, 735 and 739 feedback paths, respectively, to maintain state in a hold situation. Note that the state maintaining multiplexers 717 may use a hold signal for each multiplexer where the decode register hold signals are represented as a single line 785 in
It is noted that as an alternative to the use of hold signals and feedback multiplexers to maintain state, gated pipeline stage clocks can be used where the gate control is provided by the instruction class indication determined in the decode stage for each instruction. State is maintained in a pipeline register by not clocking new input values into it thereby maintaining the previously clocked state. The indication that the classification logic produces for a program flow and pipeline controller may contain an encoded form of the number of MCLK cycles required to execute the instruction. For example, consider a processor with three classes of instructions as shown in graph 300 of
For example, consider
Note that an instructions data type specification, such as the 3-bit Dtype field 914 of
A(1),B(2),C(3),D(1),E(1),F(1) . . . [2]
The exemplary instruction sequence [2] in adaptable pipeline sequence 925 of
During the next PCLK, PCLK cycle 4 950, instruction D(1) is being fetched and the pipeline advances at a class 2 four MCLK rate such that by the end of the fourth PCLK cycle 950, the instruction D(1) 951 is loaded into the IR 1010 replacing instruction C(3), the pipeline controller was notified of a pending class 3 instruction, the decoded and classified instruction C(3) 952 is loaded into the DR 1012, and the instruction B(2) 953 completes its execution in execute class 2 unit 1004 in four elapsed MCLK cycles 954-957. During the fifth PCLK cycle 958, instruction E(1) is being fetched and the pipeline advances at the class 3 six MCLK rate such that by the end of the fifth PCLK cycle 958, the instruction E(1) 959 is loaded into the IR 1010 replacing instruction D(1), the pipeline controller was notified of a pending class 1 instruction, the decoded and classified instruction D(1) 960 is loaded into the DR 1012, and the instruction C(3) 961 completes its execution in execute class 3 unit 1006 in six elapsed MCLK cycles 962-967. During the sixth PCLK cycle 968, instruction F(1) is being fetched and the pipeline now advances at the class 1 three MCLK rate, such that by the end of the sixth PCLK cycle 968 the instruction F(1) 969 is loaded into the IR 1010 replacing instruction E(1), the pipeline controller was notified of a pending class 1 instruction, the decoded and classified instruction E(1) 970 is loaded into the DR 1012, and the instruction D(1) 971 completes its execution in execute class 1 unit 1002 in three elapsed MCLK cycles 972-974. The pipeline control and operation continues in a similar fashion for each class instruction it receives, decodes and classifies, and executes. Note that based on the decoded class of the instruction being executed, the appropriate path through multiplexer 1024 is selected.
If instructions A(1) through D(1) of sequence [2] were to be executed in a pipeline 100 such as shown in
At a first glance, a multiple class architecture seems like it would be best built with a full custom design approach. However, the following section describes a basic approach to a single pass synthesis methodology that can be used to obtain timing closure all the way through the back end flow for the execution units of a multiple class instruction set architecture (ISA) such as illustrated in graph 300 of
The synthesized logic is then placed and routed and the necessary files are generated for static timing, as illustrated in program flow 1300 of
Before extracting timing information for the next step, reread the database with typical buffer timing information used for the 3 new cells. It is suggested that each class instruction path be timed with their respective minimum clock periods. At step 1330 replace the appropriate BUFCx cells with the timing associated with a typical buffer cell, to make sure that no timing paths have been accidentally unaccounted for. At step 1340, static timing can be readily performed at the class 1, 2, and 3 maximum frequencies. Timing at the 10 ns clock period requires no special methodology.
Although this example shows only three classes of instructions, this method is not limited to only three classes and may be extended to any number. This methodology easily scales to as many different instruction classes as are desired. One of its strengths is that it also applies to designs that use resource sharing.
As an example a high level three-class execution logic circuit 1400 is shown in
The synthesis and timing methodology for the three-class execution logic circuit 1400 is no different than the one used with the three-class execution logic circuit 1100 of
There are a number of aspects to a processor capable of executing at least 2 speed classes of instructions. One of these aspects concerns the instruction fetch (IF) process which, through various techniques known to those skilled in the art, the rate at which instructions can be issued to the decoder can be increased. Note that an increased instruction fetch rate does not limit the general applicability of the present invention. In one example, the possibility exists that up to two fetched instructions might need to be stored in the IF unit at a time. With one or two fetched instructions in the pipe there are plenty of opportunities which arises from this situation to further improve performance, ranging from aggressive branch prediction during a hold cycle to additional pre-processing of the instruction being held in IF.
Another aspect is that the total time needed for branch resolution in the proposed pipeline is potentially smaller than in a traditional fixed pipeline architecture. Even though the number of steps for branch resolution may be the same, there is a high probability that instructions involved in this resolution are members of a class 1, fast group. On the average, this probability means less wait time due to conditional branch resolution. This aspect is particularly important for deeper pipelines.
The inventive approach is particularly applicable to processor architectures, which, in addition to having simpler instructions involving simple data types, for example, adds, compares, and shifts/rotates of small amounts, also support complex instructions with a broad range of data types, from byte to double-word, 64-bit or larger, including packed data extensions. The simpler instructions have shorter critical paths relative to the complex instructions, and could therefore support a higher pipeline frequency, if they were the only instructions executed in the pipeline. Based on an application driven analysis, if the simpler instructions form a useful class, such that they can often be used in a processing context together, then an opportunity for performance improvement exists. For example, by forming a class of instructions which are typically used in sequential code, it is possible to create a subset of simpler instructions that can be executed faster than other, more complex instructions. Then, for a new processor implementation, an existing pipeline can be modified or a new pipeline designed to support this faster operation.
For processor architectures with programmer visible pipelines, adding stages to the execution phase of instruction processing can have the greatest impact on altering the programming model and/or increasing the implementation area, and this invention avoids those problems. For processor architectures where the pipeline is not visible to a programmer, the present invention provides a technique for improved instruction throughput without increasing the pipeline depth and operating clock frequency for all instructions.
New processor designs may use this invention to provide greater flexibility in choosing a pipeline architecture since this approach allows a given pipeline the potential for achieving higher average throughput while minimizing gate count and therefore power consumption. This invention makes shorter pipelines more attractive. A shorter pipeline has advantages in providing a simpler programming model along with simpler implementation, resulting in lower implementation area and power.
For dynamic class adaptable pipeline processors, such as processors using adaptable pipeline 1000 or the like, the mix of instructions can have a great effect on processor performance and power utilization since both performance and power can vary by the program mix of instruction classes. Consequently, application code can be given new degrees of optimization freedom where instruction class and the mix of instructions can be chosen based on performance and power requirements. It is noted that depending upon the frequency of use of instructions in an application program and the performance and power characteristics of the program when executed on the adaptable pipeline processor, a select set of class 1 instructions could be reclassified as class 2 instructions to meet requirements. The reclassification is easily accomplished by changing a class 1 instruction encoding, such as 906
For example, a program that optimizes performance and power can be developed, see adaptable pipeline processor program optimization flow chart 1500 of
Further, a programmatic approach with a programmable mode control mechanism could be developed to control an adaptable pipeline to be either in a dynamic mode, as described in the present invention, or in a slow speed mode which can extend the optimization of programs for both performance and power characteristics. The slow speed mode when active changes the operating clock frequency of the adaptable pipeline processor to a frequency lower than the lowest class instruction frequency, for a specifiable majority of the instructions.
While the present invention has been disclosed in a presently preferred context, it will be recognized that the present teachings may be adapted to a variety of contexts consistent with this disclosure and the claims that follow.
Marchand, Patrick R., Pechanek, Gerald George, Barry, Edwin Franklin
Patent | Priority | Assignee | Title |
10198268, | Jun 15 2015 | BluWireless Technology Limited | Data processing |
Patent | Priority | Assignee | Title |
3623017, | |||
5872948, | Mar 15 1996 | Freescale Semiconductor, Inc | Processor and method for out-of-order execution of instructions based upon an instruction parameter |
20040039896, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Feb 28 2013 | Altera Corporation | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Oct 17 2019 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Dec 25 2023 | REM: Maintenance Fee Reminder Mailed. |
Jun 10 2024 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
May 03 2019 | 4 years fee payment window open |
Nov 03 2019 | 6 months grace period start (w surcharge) |
May 03 2020 | patent expiry (for year 4) |
May 03 2022 | 2 years to revive unintentionally abandoned end. (for year 4) |
May 03 2023 | 8 years fee payment window open |
Nov 03 2023 | 6 months grace period start (w surcharge) |
May 03 2024 | patent expiry (for year 8) |
May 03 2026 | 2 years to revive unintentionally abandoned end. (for year 8) |
May 03 2027 | 12 years fee payment window open |
Nov 03 2027 | 6 months grace period start (w surcharge) |
May 03 2028 | patent expiry (for year 12) |
May 03 2030 | 2 years to revive unintentionally abandoned end. (for year 12) |