This invention relates to a computer processor, a method of operating the same, and a computer program product comprising an instruction set for the computer.
In order to increase the speed of computer processors, prior art architectures have used dual execution paths for executing instructions. Dual execution path processors can operate according to a single instruction multiple data (SIMD) principle, using parallelism of operations to increase processor speed.
However, despite use of dual execution paths and SIMD processing, there is an ongoing need to increase processor speed. Typical dual execution path processors use two substantially identical channels, so that each channel handles both control code and datapath code. While known processors support a combination of 32-bit standard encoding and 16-bit “dense” encoding, such schemes suffer from several disadvantages, including a lack of semantic content in the few bits available in a 16-bit format.
Furthermore, conventional general purpose digital signal processors are not able to match application specific algorithms for many purposes, including performing specialized operations such as convolution, Fast Fourier Transforms, Trellis/Viterbi encoding, correlation, finite impulse response filtering, and other operations.
In one embodiment according to the invention, there is provided a computer processor. The computer processor comprises: (a) a decode unit for decoding a stream of instruction packets from a memory, each instruction packet comprising a plurality of instructions; (b) a first processing channel comprising a plurality of functional units and operable to perform control processing operations; and (c) a second processing channel comprising a plurality of functional units and operable to perform data processing operations; wherein the decode unit is operable to receive an instruction packet and to detect if the instruction packet defines (i) a plurality of control instructions or (ii) a plurality of instructions one or more of which is a data processing instruction, and wherein when the decode unit detects that the instruction packet comprises a plurality of control instructions said control instructions are supplied to the first processing channel for execution in program order.
In related embodiments, the decode unit of the computer processor may be operable to detect an instruction packet comprising three control instructions and control the control process to execute each of the three control instructions in the order in which they appear in the instruction packet. The decode unit may also be operable to detect an instruction packet containing a plurality of control instructions of equal length; or to detect, within an instruction packet, a control instruction of a bit length between 18 and 24 bits; and in particular, to detect a plurality of control instructions each having a bit length of 21 bits. The decode unit may be operable to receive and decode instruction packets of a bit length of 64 bits.
In further related embodiments, the decode unit may be operable to detect when there is at least one data processing instruction in the instruction packet and, in response thereto, to cause relevant data to be supplied to the data processing channel. The decode unit may also be operable to detect that the instruction packet comprises at least one data processing instruction and a further instruction selected from one or more of: a memory access instruction; a control instruction; and a data processing instruction. The at least one data processing instruction and said further instruction may be executed simultaneously. The second processing channel may be dedicated to the performance of data processing operations, and data processing instructions may be provided in assembly language. The control processing operations may be performed on operands up to a first pre-determined bit width and the data processing operations may be performed on data up to a second pre-determined bit width, the second pre-determined bit width being larger than the first pre-determined bit width.
In further related embodiments, the first processing channel may comprise units selected from one or more of: a control register file; a control execution unit; a branch execution unit and a load/store unit. The second processing channel may comprise a data execution path including a configurable data execution unit. The second processing channel may also comprise a data execution path including a fixed data execution unit. In use, one or more of the configurable and fixed data execution units may operate according to single instruction multiple data principles. The data processing channel may comprise one or more of a data register file and a load/store unit. A single load/store unit may be accessed by both the control processing channel and the data processing channel through respective ports.
In further related embodiments, the decode unit may be operable to detect an instruction packet comprising at least one data processing instruction, wherein the bit length of the at least one data processing instruction is between 30 and 38 bits; for example, the bit length may be 34 bits. The decode unit may also be operable to detect an instruction packet comprising a data processing operation and a memory access instruction. The bit length of said memory access instruction may be, for example, 28 bits. The decode unit may also be operable to detect an instruction packet comprising a data processing instruction and a control processing instruction. The control processing instruction may be in C code or a variant thereof. The decode unit may also be operable to detect a data processing instruction in assembly language.
In another embodiment according to the invention, there is provided a method of operating a computer processor which comprises first and second processing channels, each having a plurality of functional units, wherein the first processing channel is capable of performing control processing operations and the second processing channel is capable of performing data processing operations. The method comprises: (a) receiving a sequence of instruction packets from a memory, each of said instruction packets comprising a plurality of instructions defining operations; (b) decoding each instruction packet in turn by determining if the instruction packet defines: (i) a plurality of control instructions; or (ii) at least one data processing instruction; and wherein when the decode unit detects that the instruction packet comprises a plurality of control instructions, supplying said plurality of control instructions to said first processing channel for execution in the sequence.
In another embodiment according to the invention, there is provided a computer program product comprising program code means for causing a computer to be operated according to the preceding method.
In a further embodiment according to the invention, there is provided a computer program code, comprising a sequence of instructions for causing a computer to be operated according to the preceding method.
In another embodiment according to the invention, there is disclosed an instruction set for a computer including a first class of instruction packets each comprising a plurality of control instructions for execution sequentially and a second class of instruction packets each comprising at least a data processing instruction and a further instruction for execution contemporaneously, said further instruction being selected from one or more of: a memory access instruction; a control instruction; and a data processing instruction.
Additional advantages and novel features of the invention will be set forth in part in the description which follows, and in part will become apparent to those skilled in the art upon examination of the following and the accompanying drawings; or may be learned by practice of the invention.
For a better understanding of the present invention, and to show how the same may be carried into effect, reference will now be made, by way of example only, to the accompanying drawings, in which:
In the processor of
The data execution path 103 employs SIMD (single instruction multiple data) parallelism, in both a fixed execution unit 109 and a configurable deep execution unit 110. As will be described further below, the configurable deep execution unit 110 provides a depth dimension of processing, to increase work per instruction, in addition to the width dimension used by conventional SIMD processors.
If the decoded instruction defines a control instruction it is applied to the appropriate functional unit on the control execution path of the machine (e.g. branch unit 106, execution unit 107, and load/store unit 108). If the decoded instruction defines an instruction with either a fixed or configurable data processing operation it is supplied to the data processing execution path. Within the data instruction part of the instruction packet designated bits indicate whether the instruction is a fixed or configurable data processing instruction, and in the case of a configurable instruction further designated bits define configuration information. In dependence on the sub-type of decoded data processing instruction, data is supplied to either the fixed or the configurable execution sub-paths of the data processing path of the machine.
Herein, “configurable” signifies the ability to select an operator configuration from amongst a plurality of predefined (“pseudo-static”) operator configurations. A pseudo-static configuration of an operator is effective to cause an operator (i) to perform a certain type of operation, or (ii) to be interconnected with associated elements in a certain manner, or (iii) a combination of (i) or (ii) above. In practice, a selected pseudo-static configuration may determine the behavior and interconnectivity of many operator elements at a time. It can also control switching configurations associated with the data path. In a preferred embodiment, at least some of the plurality of pseudo-static operator configurations are selectable by an operation-code portion of a data processing instruction, as will be illustrated further below. Also in accordance with embodiments herein, a “configurable instruction” allows the performance of customized operations at the level of multibit values; for example, at the level of four or more bit multibit values, or at the level of words.
It is pointed out that both control and data processing instructions, performed on their respective different sides of the machine, can define memory access (load/store) and basic arithmetic operations. The inputs/operands for control operations may be supplied to/from the control register file 104, whereas the data/operands for data processing operations are supplied to/from the register file 105.
In accordance with an embodiment of the invention, at least one input of each data processing operation can be a vector. In this respect, the configurable operators and/or switching circuitry of the configurable data pack can be regarded as configurable to perform vector operations by virture of the nature of operation performed and/or interconnectivity therebetween. For example, a 64-bit vector input to a data processing operation may include four 16-bit scalar operands. Herein, a “vector” is an assembly of scalar operands. Vector arithmetic may be performed on a plurality of scalar operands, and may include steering, movement, and permutation of scalar elements. Not all operands of a vector operation need be vectors; for example, a vector operation may have both a scalar and at least one vector as inputs; and output a result that is either a scalar or a vector.
Herein, “control instructions” include instructions dedicated to program flow, and branch and address generation; but not data processing. “Data processing instructions” include instructions for logical operations, or arithmetic operations for which at least one input is a vector. Data processing instructions may operate on multiple data instructions, for example in SIMD processing, or in processing wider, short vectors of data elements. The essential functions of control instructions and data instructions just mentioned do not overlap; however, a commonality is that both types of code have logic and scalar arithmetic capabilities.
Instruction decode unit 101 of the embodiment of
In order to execute the instruction packets of
In using 21-bit control instructions, the embodiment of
A large variety of instructions may be used, in accordance with an embodiment of the invention. For example, instruction signatures may be any of the following, where C-format, M-format, and D-format signify control, memory access, and data format respectively:
Also in accordance with one embodiment of the invention, the C-format instructions all provide SISD (single instruction single data) operation, while the M-format and D-format instructions provide either SISD or SIMD operation. For example, control instructions may provide general arithmetic, comparison, and logical instructions; control flow instructions; memory loads and store instructions; and others. Data instructions may provide general arithmetic, shift, logical, and comparison instructions; shuffle, sort, byte extend, and permute instructions; linear feedback shift register instructions; and, via the configurable deep execution unit 110 (described further below), user-defined instructions. Memory instructions may provide memory loads and stores; copy selected data registers to control registers; copy broadcast control registers to data registers; and immediate to register instructions.
In accordance with an embodiment of the invention, the processor of
In accordance with the embodiment of
A skilled reader will appreciate that, while the foregoing has described what is considered to be the best mode and where appropriate other modes of performing the invention, the invention should not be limited to specific apparatus configurations or method steps disclosed in this description of the preferred embodiment. Those skilled in the art will also recognize that the invention has a broad range of applications, and that the embodiments admit of a wide range of different implementations and modifications without departing from the inventive concepts. In particular, exemplary bit widths mentioned herein are not intended to be limiting, nor is the arbitrary selection of bit widths referred to as half words, words, long, etc.
Number | Name | Date | Kind |
---|---|---|---|
5423051 | Fuller et al. | Jun 1995 | A |
5600801 | Parks et al. | Feb 1997 | A |
5600810 | Ohkami et al. | Feb 1997 | A |
5737631 | Trimberger | Apr 1998 | A |
5922065 | Hull et al. | Jul 1999 | A |
5956518 | DeHon et al. | Sep 1999 | A |
6061367 | Siemers | May 2000 | A |
6115806 | Yoshida | Sep 2000 | A |
6292845 | Fleck et al. | Sep 2001 | B1 |
6526430 | Hung et al. | Feb 2003 | B1 |
6725357 | Cousin | Apr 2004 | B1 |
6880150 | Takayama et al. | Apr 2005 | B1 |
6976250 | Takayama et al. | Dec 2005 | B2 |
7234042 | Wilson | Jun 2007 | B1 |
20020010852 | Arnold et al. | Jan 2002 | A1 |
20020063577 | Abbott | May 2002 | A1 |
20020174266 | Palem et al. | Nov 2002 | A1 |
20030154358 | Nak-Hee et al. | Aug 2003 | A1 |
20040054876 | Grisenthwaite et al. | Mar 2004 | A1 |
20040215593 | Sharangpani et al. | Oct 2004 | A1 |
20050044434 | Kahle et al. | Feb 2005 | A1 |
20050223196 | Knowles | Oct 2005 | A1 |
Number | Date | Country |
---|---|---|
0789297 | May 1996 | EP |
9212361 | Aug 1997 | JP |
11282674 | Oct 1999 | JP |
2000509528 | Jul 2000 | JP |
2001236496 | Aug 2001 | JP |
2001306321 | Nov 2001 | JP |
2003005958 | Jan 2003 | JP |
2005531848 | Oct 2005 | JP |
Number | Date | Country | |
---|---|---|---|
20050223193 A1 | Oct 2005 | US |