The present invention generally relates to computer architecture. More particularly, the present invention relates to the field of increasing an instruction set by using one or more address bits and an instruction.
The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the present invention.
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings. While the invention will be described in conjunction with these embodiments, it will be understood that they are not intended to limit the invention to these embodiments. On the contrary, the invention is intended to cover alternatives, modifications and equivalents, which may be included within the spirit and scope of the invention as defined by the appended claims. Furthermore, in the following detailed description of the present invention, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be recognized by one of ordinary skill in the art that the present invention may be practiced without these specific details.
At any point in time, a processor executes a particular function chosen from a set of functions. The particular function chosen is determined by how the processor decodes each instruction in memory. Thus, the “meaning” of an instruction is the selection of particular function as a result of the instruction decoding. Traditionally, the meaning of an instruction depends solely on the bits forming the instruction word stored in memory. In accordance with one embodiment of the present invention, the meaning of an instruction is additionally dependent on some or all of the address at which the instruction is stored.
The instruction 10 has m bits. Exemplary values for m are 16, 32, 64, and 128. The instruction 10 includes an opcode portion 5 and a portion 7 for register identifiers, an immediate, etc.
The corresponding address 20 is provided to memory to access the instruction 10. The corresponding address 20 has k bits. Exemplary values for k are 16, 32, 64, and 128.
In accordance with the present invention, a plurality of possible meanings is associated with instruction 10. That is, the same bit pattern of the instruction 10 can lead to any one of several meanings which then controls instruction execution by a processor. The desired meaning is determined by concatenating one or more bits from the corresponding address 20 to the instruction 10. As shown in
In one embodiment, the concatenation 40 is comprised of b2b1 from the corresponding address 20 concatenated to the instruction 10. Hence, if b2b1=00, the instruction 10 obtains the meaning1. If b2b1=01, the instruction 10 obtains the meaning2. Moreover, if b2b1=10, the instruction 10 obtains the meaning3. Similarly, if b2b1=11, the instruction 10 obtains the meaning4. It should be understood that other bits from the corresponding address 20 can be concatenated to the instruction 10.
The one or more bits from the corresponding address 20 can affect the meaning of the opcode portion 5 and the portion 7 for register identifiers, an immediate, etc. Moreover, the instruction set is increased without increasing the size of the instruction 10 in memory, or storing additional instructions.
The memory unit 230 stores a plurality of instructions at a plurality of addresses. A plurality of possible meanings can be associated with each instruction. The compiler 240 generates the plurality of instructions and stores each instruction at an appropriate address in the memory unit 230 to facilitate the concatenation operation that determines the meaning of the instruction. For example, if an instruction needs to be stored at an even address to obtain a desired meaning, the compiler or translator ensures that it is stored at an even address. The compiler or translator does similar work for other alignments.
The processor 210 includes a front-end portion 212 and a backend pipeline portion 214. The front-end portion 212 includes a program counter 216 and a concatenation unit for concatenating a portion of the address to the instruction. Moreover, the front-end portion 212 provides the address to the memory unit 230 and receives the instruction from the memory unit 230. The backend pipeline portion 214 executes the concatenation comprised of a portion of the address and the instruction.
As described above, any portion of the address can be concatenated to the instruction to determine its meaning. Here, one bit from the address (32 bits) is concatenated to the instruction1 (32 bits) to form a concatenation (or extended instruction) having 33 bits. The concatenation (33 bits) is sent to the backend pipeline portion 214. The value of the bit from the address determines the meaning of the instruction.
At Step 310, the processor 210 fetches the instruction using a corresponding address from the memory unit 230. A plurality of possible meanings is associated with the instruction.
Continuing, at Step 320, the processor 210 receives the instruction. Moreover, the processor concatenates a portion of the corresponding address to the instruction to form a concatenation (or extended instruction). One or more bits of the corresponding address can be concatenated to the instruction.
At Step 330, the processor 210 executes the concatenation (or extended instruction). The portion of the corresponding address contributes to determining the meaning for the extended instruction from the possible meanings.
The foregoing descriptions of specific embodiments of the present invention have been presented for purposes of illustration and description. They are not intended to be exhaustive or to limit the invention to the precise forms disclosed, and many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the Claims appended hereto and their equivalents.
Number | Name | Date | Kind |
---|---|---|---|
4259718 | Kaman et al. | Mar 1981 | A |
4312036 | Porter et al. | Jan 1982 | A |
4314331 | Porter et al. | Feb 1982 | A |
4371927 | Wilhite et al. | Feb 1983 | A |
4491908 | Woods et al. | Jan 1985 | A |
5057837 | Colwell et al. | Oct 1991 | A |
5115500 | Larsen | May 1992 | A |
5129066 | Schmookler | Jul 1992 | A |
5179680 | Colwell et al. | Jan 1993 | A |
5301341 | Vassiliadis et al. | Apr 1994 | A |
5325495 | McLellan | Jun 1994 | A |
5418970 | Gifford | May 1995 | A |
5485629 | Dulong | Jan 1996 | A |
5555428 | Radigan et al. | Sep 1996 | A |
5649135 | Pechanek et al. | Jul 1997 | A |
5832205 | Kelly et al. | Nov 1998 | A |
5857103 | Grove | Jan 1999 | A |
5862398 | Hampapuram et al. | Jan 1999 | A |
5925123 | Tremblay et al. | Jul 1999 | A |
5974539 | Guttag et al. | Oct 1999 | A |
6041399 | Terada et al. | Mar 2000 | A |
6065106 | Deao et al. | May 2000 | A |
6101592 | Pechanek et al. | Aug 2000 | A |
6112299 | Ebcioglu et al. | Aug 2000 | A |
6202142 | Narayan et al. | Mar 2001 | B1 |
6202143 | Rim | Mar 2001 | B1 |
6230260 | Luick | May 2001 | B1 |
6282633 | Killian et al. | Aug 2001 | B1 |
6317872 | Gee et al. | Nov 2001 | B1 |
6343373 | Koizumi et al. | Jan 2002 | B1 |
6397379 | Yates, Jr. et al. | May 2002 | B1 |
6442701 | Hurd | Aug 2002 | B1 |
6453407 | Lavi et al. | Sep 2002 | B1 |
6571386 | Figurin et al. | May 2003 | B1 |
6618804 | Steele, Jr. et al. | Sep 2003 | B1 |
6658551 | Berenbaum et al. | Dec 2003 | B1 |
6871274 | Nunomura | Mar 2005 | B2 |