Interoperability with multiple instruction sets
Data processing apparatus comprising: a processor core having means for executing successive program instruction words of a predetermined plurality of instruction sets; a data memory for storing program instruction words to be executed; a program counter register for indicating the address of a next program instruction word in the data memory; means for modifying the contents of the program counter register in response to a current program instruction word; and control means, responsive to one or more predetermined indicator bits of the program counter register, for controlling the processor core to execute program instruction words of a current instruction set selected from the predetermined plurality of instruction sets and specified by the state of the one or more indicator bits of the program counter register.
Latest ARM Limited Patents:
This is a divisional of application Ser. No. 08/477,781 filed on Jun. 7, 1995 now U.S. Pat. No. 5,758,115.
BACKGROUND OF THE INVENTION1. Field of the Invention
This invention relates to the field of data processing, and in particular to data processing using multiple sets of program instruction words.
2. Description of the Prior Art
Data processing systems operate with a processor core acting under control of program instruction words which when decoded serve to generate core control signals to control the different elements in the processor to perform the necessary operations to achieve the processing specified in the program instruction word.
It is known to provide systems that execute program instruction words from two or more instruction sets, with means being provided to switch between use of the different instruction sets. The VAX11 computers of Digital Equipment Corporation have a VAX instruction mode and a compatibility mode that enables them to decode the instructions for the earlier PDP11 computers.
In order to switch between the different instruction sets, an instruction set switch may be hard-wired into the processor core necessitating a physical rewiring of the processor to switch instruction sets. Alternatively, a processor register may be used to specify the current instruction set to be used. In this case, the current instruction set can be selected by the operating software, by writing an instruction set-specifying value to that processor register. However, as described below, this technique requires additional program instruction words, which in turn require extra time during preparation of the software and extra memory space to store the program instruction words.
In order to execute a piece of code, a processor capable of using two or more instruction sets must have two pieces of information:
1) The address of the code in memory; and
2) The instruction set to use (i.e. the instruction set in which the code is written)
Typically, in the previously proposed processors, a call to a routine in a different instruction must be performed as described below.
1) The subroutine call is diverted from its original destination to an automatically generated instruction set selection sequence or veneer.
2) The veneer must then accomplish the following
-
- Save the context of the caller
- Select the correct instruction set
- Call the original routine
- On return from the original routine, select the original instruction set
- Restore the callers context.
This process can be made relatively transparent to the programmer by use of a conventional software tool called a Linker. However, the process has a five instruction overhead per routine which is called from a different instruction set, and it also introduces a significant processing overhead.
SUMMARY OF THE INVENTIONIt is an object of the invention to improve the capabilities of data processing apparatus to switch between multiple instruction sets.
This invention provides a data processing apparatus comprising:
-
- a processor core having means for executing successive program instruction words of a predetermined plurality of instruction sets;
- a data memory for storing program instruction words to be executed;
- a program counter register for indicating the address of a next program instruction word in the data memory;
- means for modifying the contents of the program counter register in response to a current program instruction word; and
- control means, responsive to one or more predetermined indicator bits of the program counter register, for controlling the processor core to execute program instruction words of a current instruction set selected from the predetermined plurality of instruction sets and specified by the state of the one or more indicator bits of the program counter register.
With the invention, a control flag or flags to select a current instruction set is provided in the program counter register. This allows the current instruction set to be changed when a new value is written into the program counter register, for example as part of the execution of a branch instruction.
The invention recognises that if the required instruction set and the next instruction address are encoded in separate processor registers as in the previously proposed processors described above (an instruction set register and a program counter register), it becomes difficult to change between instruction sets as the two separate registers have to be updated to accomplish a call to a section of code written in a different instruction set.
As an example, consider a program which is to perform a sorting or collation function. Typically this will call a generic sort routine to perform the sort. As this sort routine is generic, it must be capable of sorting in any given sequence. For example, it may be called to sort items in numerical order, alphabetical order, case insensitive alphabetical order, or any other order specified by the programmer. The means by which the programmer specifies the sorting order is to pass the address of a routine (called a compare routine) to the sort routine. This compare routine will then be called by the sort routine and will return a value to indicate whether, given two items of data, the first should be placed before or after the second in the sorted sequence.
If just the address of the compare routine is passed to the sort routine then the sort routine has no way of knowing which instruction set should be selected when the routine is to be called. If the wrong instruction set is current when an attempt is made to execute the compare routine, the results can be dramatically unsuccessful. Extra information must be passed to the sort routine to tell it what instruction set should be in force when the compare routine is called. However, many existing programs written in high level languages such as C & C++ make assumptions that all the information necessary to uniquely identify a target routine (in this case the address and the instruction set information) can be represented in a single machine word.
The invention addresses these problems by defining a predetermined bit or bits of the program counter register (PC) to indicate the instruction set to be used. In the specific example given above, the address of the compare routine passed to the sort routine can have the required instruction set encoded in the predetermined bit or bits of that address. The address, including the indicator bit or bits, is then simply moved to the program counter register when the compare routine is called.
Although certain bits of the program counter register can be reserved for use as the indicator bits, an alternative approach is to store portions of code to be executed using the various instruction sets in corresponding memory areas, so that while those memory areas are being accessed the program counter will contain a particular range of values specifying the appropriate instruction set to be used.
In order to decode instructions from the different instruction sets, it is preferred that the apparatus comprises a first instruction decoder for decoding program instruction words of the first instruction set; and a second instruction decoder for decoding program instruction words of the second instruction set; and that the control means is operable to control either the first instruction decoder or the second instruction decoder to decode a current program instruction word.
Preferably, program instruction words of the first instruction set are X-bit program instruction words; and program instruction words of the second instruction set are Y-bit program instruction words; where Y is different to X. In this way, a common processor core can be programmed with either an instruction set having longer program instruction words and allowing potentially more powerful and involved instructions, or an instruction set having shorter program instruction words, thus saving memory space where a potentially more limited instruction set can be tolerated.
In one preferred embodiment, the one or more bits of the program counter register are one or more most significant bits of the program counter register. In a program counter register of say, 32 bits, the highest order bits are seldom required since the maximum memory space that can be addressed by such a large program counter register is much more than the memory space normally used.
Alternatively, in another preferred embodiment, the one or more bits of the program counter register are one or more least significant bits of the program counter register. In this case, these bits are often not used where the minimum length of program instruction words or data words is at least two bytes.
In order to avoid invalid addresses in the data memory being accessed, it is preferred that means are provided for accessing a program instruction word stored in the data memory, the accessing means not being responsive to the one or more bits of the program counter register.
The above and other objects, features and advantages of the invention will be apparent from the following detailed description of illustrative embodiments which is to be read in connection with the accompanying drawings, in which:
The processor core 10 includes a register bank 30, a Booths multiplier 40, a barrel shifter 50, a 32-bit arithmetic logic unit (ALU) 60 and a write data register 70. Between the processor core 10 and the memory system 20 are: an instruction pipeline 80, a multiplexer 90, a first instruction decoder 100, a second instruction decoder 110, and a read data register 120.
A program counter (PC) register 130, which is part of the processor core 10, is shown addressing the memory system 20. A program counter controller 140 serves to increment the program counter value within the program counter register 130 as each instruction is executed and a new instruction must be fetched for the instruction pipeline 80. Also, when a branch instruction is executed, the target address of the branch instruction is loaded into the program counter 130 by the program counter controller 140.
The processor core 10 incorporates 32-bit data pathways between the various functional units. In operation, instructions within the instruction pipeline 80 are decoded by either the first instruction decoder 100 or the second instruction decoder 110 (under the control of the multiplexer 90) to produce various core control signals that are passed to the different functional elements of the processor core 10. In response to these core control signals, the different portions of the processor core conduct 32-bit processing operations, such as 32-bit multiplication, 32-bit addition and 32-bit logical operations.
The register bank 30 includes a current programming status register (CPSR) 150 and a saved programming status register (SPSR) 160. The current programming status register 150 holds various condition and status flags for the processor core 10. These flags may include processing mode flags (e.g. system mode, user mode, memory abort mode, etc.) as well as flags indicating the occurrence of zero results in arithmetic operations, carries and the like. The saved programming status register 160 (which may be one of a banked plurality of such saved programming status registers) is used to store temporarily the contents of the current programming status register 150 if an exception occurs that triggers a processing mode switch.
The program counter register 130 includes an instruction set flag, T. This instruction set flag is used to control the operation of the multiplexer 90, and therefore to control whether the first instruction decoder 100 or the second instruction decoder 110 is used to decode a current data processing instruction. In the present embodiment, two instruction sets are used: a first instruction set comprises 32-bit program instruction words and is decoded by the first instruction decoder 100, and a second instruction set comprises 16-bit program instruction words and is decoded by the second instruction decoder 110. The core control signals generated by the first instruction decoder 100 and the second instruction decoder 110 are compatible with the various functional units of the core 10.
The use of two instruction sets of different program instruction word length allows a common processing core 10 to be programmed with either the first instruction set having longer words and allowing potentially more powerful and involved instructions, or the second instruction set having shorter program instruction words, thus saving memory space where a potentially more limited instruction set can be tolerated.
The provision of an instruction set flag T enables the second instruction set to be non-orthogonal to the first instruction set. This is particularly useful in circumstances where the first instruction set is an existing instruction set without any free bits that could be used to enable an orthogonal further instruction set to be detected and decoded.
The instruction set flag T is “hidden” in normally unused bits of the program counter register. This means that the T flag can be set or reset by the program counter controller 140, but the state of the T flag need have no direct effect on the operation of the memory system 20 and the instruction pipeline 80.
The program counter register is a 32-bit register, which allows 232 bytes to be addressed in the memory system 20. However, since this equates to 4 gigabytes of addressable memory space, it is extremely unlikely that the full address range made possible by the 21-bit program counter register will be required.
Accordingly, the T bit in
A problem which must be overcome is that when the T bit is set, the program counter register 130′ may well point to a memory address which is far in excess of the address range of the memory system 20. In other words, the memory address pointed to by the 32-bits of the program counter register 130 is an invalid address as far as the memory system 20 is concerned.
This problem can be overcome in two straightforward ways. In one technique, the highest order bit (the T bit) of the program counter register 130′ is simply not supplied as an address bit o the memory system 20. Alternatively, the address decoding within the memory system 20 may detect only a certain number of lowest order bits (e.g. the lowest order 24 bits to address a 16 megabyte address space), with the state of the remaining higher order bits being irrelevant to the decoded address. This is a standard technique in memory address decoding when it is known in advance that only a certain number of address bits will be required.
As described above, the T bit is passed from the program counter register 130′ to the multiplexer 90, and determines the routing of instructions to either the first instruction decoder 100 or the second instruction decoder 110.
The lowest order bit of the program counter register is normally unused in a processor in which the minimum instruction or data word size is at least two bytes (16 bits in this case). Accordingly, in the present embodiment the instruction program words may be either 32 bits long (4 bytes) or 16 bits long (2 bytes) so the addresses supplied from the program counter 130 to the memory system 20 will always be a multiple of two and will therefore have a zero as the least significant bit of the address.
The least significant bit of the program counter register 130″ is used to store the T bit, which is supplied to the multiplexer 90 as described above. Also as described above, the lowest order bit of the program counter register 130″ is not supplied to the memory system, in order that invalid addresses are not accessed by the memory system 20.
The fact that the program counter 130 is controlled by the program counter controller 140 means that the T bit can be set as part of a branch instruction carried out by the core 10. For example, if the T bit is currently set to indicate the use of the first (32-bit) instruction set and it is desired to branch to a portion of a code employing the second (16-bit) instruction set, then a branch instruction can be executed to jump to the address of the 16-bit code to be executed and simultaneously to change the T bit in the program counter register, in particular, in the arrangement shown in
This process is illustrated schematically in
Referring to
When a switch is made between the two instruction sets by changing the T bit in the program counter 130, the actual switch-over by the multiplexer 90 may be delayed to allow for existing instructions currently stored in the pipeline 80.
In summary, the switch between different processing modes (in particular, the use of different instruction sets) can be made by writing a target address and a mode flag (T) to the program counter as part of the execution of a branch instruction.
In an alternative case where the first instruction set is pre-defined and used in existing processors, there may be logical restrictions within the existing first instruction set preventing the normally unused bits of the program counter register 130 from being changed by the instruction set. For backwards compatibility of processors incorporating the second alternative, instruction set, it may be necessary to employ a short instruction set selection sequence of code to switch in one direction from the first (existing) instruction set to the second instruction set. Since the second instruction set would generally be added at the same time that the switching mechanism is being added, the second instruction set can be defined without the restrictions on accessing normally unused bits of the program counter register 130. This means that the branching mechanism described above can be used to switch back from the second instruction set to the first instruction set.
An example of an instruction set selection sequence (known as a “veneer”) is as follows:
In this routine, the current contents of the program counter register 130″ of
In an alternative veneer routine, a subtract operation could be used instead of an exclusive-OR operation to change the T-bit of the program counter register 130″. This has the advantage that in some processors, the subtract operation also flushes or clears the instruction pipeline 80.
The following example assumes that the program counter 130″ points 8 bytes beyond the current instruction, and that the current instruction is a 32 bit (4 byte) instruction. Accordingly, to change the least significant bit of the program counter register 130″ to 1, it is necessary to add or subtract the following amounts to the current program counter register contents:
The instruction sequence used is therefore:
In summary, the use of the program counter to store the instruction-set-specifying bit or bits has at least the following advantages:
1. It provides a single, uniform method of identifying a target routine by representing both the target address and the corresponding instruction set in a single machine word.
2. The code size is reduced as fewer veneers are required.
3. The processor performance can be improved as there is no longer a need to execute a veneer on each inter-instruction set routine call.
Although illustrative embodiments of the invention have been described in detail herein with reference to the accompanying drawings, it is to be understood that the invention is not limited to those precise embodiments, and that various changes and modifications can be effected therein by one skilled in the art without departing from the scope and spirit of the invention as defined by the appended claims.
Claims
1. Data processing apparatus comprising:
- (i) a processor core operable to execute successive program instruction words of a predetermined plurality of instruction sets stored in a data memory;
- (ii) a program counter register for indicating an address of a next program instruction word in said data memory;
- (iii) logic operable to modify the contents of said program counter register in response to a current program instruction word;
- (iv) a processor core controller, responsive to one or more predetermined indicator bits of said program counter register, operable to control said processor core to execute program instruction words of a current instruction set selected from said predetermined plurality of instruction sets and specified by the state of said one or more indicator bits of said program counter register; and
- (v) a memory access controller operable to access program instruction words stored in said data memory, said access controller not being responsive to said one or more indicator bits of said program counter register.
2. Apparatus according to claim 1, comprising:
- a first instruction decoder for decoding program instruction words of a first instruction set; and a second instruction decoder for decoding program instruction words of a second instruction set; and in which said processor core controller is operable to control either said first instruction decoder or said second instruction decoder to decode a current program instruction word.
3. Apparatus according to claim 2, in which:
- program instruction words of said first instruction set are X-bit program instruction words; and
- program instruction words of said second instruction set are Y-bit program instruction words;
- Y being different to X.
4. Apparatus according to claim 1, in which:
- program instruction words of a first instruction set are X-bit program instruction words; and
- program instruction words of a second instruction set are Y-bit program instruction words;
- Y being different to X.
5. Apparatus according to claim 3, in which Y is 16 and X is 32.
6. Apparatus according to claim 4, in which Y is 16 and X is 32.
7. Apparatus according to claim 1, in which said one or more indicator bits of said program counter register are one or more most significant bits of said program counter register.
8. Apparatus according to claim 1, in which said one or more indicator bits of said program counter register are one or more least significant bits of said program counter register.
9. Apparatus according to claim 2, in which said one or more indicator bits of said program counter register are one or more least significant bits of said program counter register.
10. Apparatus according to claim 3, in which said one or more indicator bits of said program counter register are one or more least significant bits of said program counter register.
11. Apparatus according to claim 4, in which said one or more indicator bits of said program counter register are one or more least significant bits of said program counter register.
12. Apparatus according to claim 5, in which said one or more indicator bits of said program counter register are one or more least significant bits of said program counter register.
13. Apparatus according to claim 6, in which said one or more indicator bits of said program counter register are one or more least significant bits of said program counter register.
14. Apparatus according to claim 1, comprising a data memory for storing program instruction words to be executed.
15. A method of switching between a predetermined plurality of instruction sets used by a data processing apparatus, the method comprising:
- in response to a first instruction: (i) accessing a sequence of bits, the sequence of bits having an address portion that identifies the location of a second instruction in a memory and an instruction set indicator portion; (ii) identifying an instruction set selected from the predetermined plurality of instruction sets based on the instruction set indicator portion of the sequence of bits; (iii) setting one or more control flags to indicate that a current instruction set for the data processing apparatus is the instruction set identified based on the instruction set indicator portion of the sequence of bits; and
- retrieving the second instruction from the location specified by the address portion of the sequence of bits,
- wherein the instruction set identified by the instruction set indicator portion of the sequence of bits is identifiable without regard to the address specified by the address portion of the sequence of bits.
16. The method of claim 15, further comprising executing the second instruction as an instruction of the current instruction set.
17. The method of claim 15 in which the predetermined plurality of instruction sets comprises a first instruction set and a second instruction set, and wherein instructions of the first instruction set are X-bit instructions and instructions of the second instruction set are Y-bit instructions, where Y is different from X.
18. The method of claim 17 wherein X is 32 and Y is 16.
19. The method of claim 15 wherein the instruction set indicator portion of the sequence of bits comprises one or more least significant bits of the sequence of bits.
20. The method of claim 15 wherein the instruction set indicator portion of the sequence of bits comprises one or more most significant bits of the sequence of bits.
21. A method of switching between a predetermined plurality of instruction sets used by a data processing apparatus, the method comprising:
- in response to a first instruction: (i) accessing a sequence of bits, the sequence of bits having an address portion that identifies the location of a second instruction in a memory and an instruction set indicator portion, the instruction set indicator portion having at least one bit that is not part of the address portion of the sequence of bits; (ii) identifying an instruction set selected from the predetermined plurality of instruction sets based on the instruction set indicator portion of the sequence of bits; (iii) setting one or more control flags to indicate that a current instruction set for the data processing apparatus is the instruction set identified based on the instruction set indicator portion of the sequence of bits; and
- retrieving the second instruction from the location specified by the address portion of the sequence of bits.
22. The method of claim 21, further comprising executing the second instruction as an instruction of the current instruction set.
23. The method of claim 21 in which the predetermined plurality of instruction sets comprises a first instruction set and a second instruction set, and wherein instructions of the first instruction set are X-bit instructions and instructions of the second instruction set are Y-bit instructions, where Y is different from X.
24. The method of claim 23 wherein X is 32 and Y is 16.
25. The method of claim 21 wherein the instruction set indicator portion of the sequence of bits comprises one or more least significant bits of the sequence of bits.
26. The method of claim 21 wherein the instruction set indicator portion of the sequence of bits comprises one or more most significant bits of the sequence of bits.
27. A data processing apparatus capable of operating using instructions from a predetermined plurality of instruction sets, the data processing apparatus comprising:
- (i) a processor core responsive to a first instruction to access a sequence of bits, the sequence of bits having an address portion that specifies the location of a second instruction in a memory and an instruction set indicator portion, the processor core using the instruction set indicator portion of the sequence of bits to set one or more control flags; and
- (ii) a controller responsive to the one or more control flags, the state of the one or more control flags specifying a current instruction set selected from the predetermined plurality of instruction sets, to cause the processor core to execute the second instruction as an instruction from the current instruction set,
- wherein the one or more control flags are set without regard to the location of the second instruction.
28. The apparatus of claim 27 wherein the one or more control flags comprise one or more predetermined bits in a program counter.
29. The apparatus of claim 27, further comprising a memory system, wherein the memory system is not responsive to the one or more control flags.
30. The apparatus of claim 27, further comprising a memory system wherein the one or more control flags are not provided to the memory system.
31. The apparatus of claim 27 in which the predetermined plurality of instruction sets comprises a first instruction set and a second instruction set, and wherein instructions of the first instruction set are X-bit instructions and instructions of the second instruction set are Y-bit instructions, where Y is different from X.
32. The apparatus of claim 31 wherein X is 32 and Y is 16.
33. A data processing apparatus capable of operating using instructions from a predetermined plurality of instruction sets, the data processing apparatus comprising:
- (i) a processor core responsive to a first instruction to access a sequence of bits, the sequence of bits having an address portion that specifies the location of a second instruction in a memory and an instruction set indicator portion and the instruction set indicator portion having at least one bit that is not part of the address portion of the sequence of bits;
- (ii) the processor core using the instruction set indicator portion of the sequence of bits to set one or more control flags, the state of the one or more control flags specifying a current instruction set selected from the predetermined plurality of instruction sets; and
- (iii) a controller responsive to the one or more control flags to cause the processor core to execute the second instruction as an instruction from the current instruction set.
34. The apparatus of claim 33 wherein the one or more control flags comprise one or more predetermined bits in a program counter.
35. The apparatus of claim 33, further comprising a memory system, wherein the memory system is not responsive to the one or more control flags.
36. The apparatus of claim 33, further comprising a memory system wherein the one or more control flags are not provided to the memory system.
37. The apparatus of claim 33 in which the predetermined plurality of instruction sets comprises a first instruction set and a second instruction set, and wherein instructions of the first instruction set are X-bit instructions and instructions of the second instruction set are Y-bit instructions, where Y is different from X.
38. The apparatus of claim 37 wherein X is 32 and Y is 16.
39. A data processing architecture capable of operating using instructions from a predetermined plurality of instruction sets, the data processing architecture comprising:
- (i) a processor core responsive to a first instruction to access a sequence of bits, the sequence of bits having an address portion that specifies the location of a second instruction in a memory and an instruction set indicator portion, the processor core using the instruction set indicator portion of the sequence of bits to set one or more control flags; and
- (ii) a controller responsive to the one or more control flags, the state of the one or more control flags specifying a current instruction set selected from the predetermined plurality of instruction sets, to cause the processor core to execute the second instruction as an instruction from the current instruction set,
- wherein the one or more control flags are set without regard to location of the second instruction.
40. The data processing architecture of claim 39 wherein the one or more control flags comprise one or more predetermined bits in a program counter.
41. The data processing architecture of claim 39, further comprising a memory system, wherein the memory system is not responsive to the one or more control flags.
42. The data processing architecture of claim 39, further comprising a memory system wherein the one or more control flags are not provided to the memory system.
43. The data processing architecture of claim 39 in which the predetermined plurality of instruction sets comprises a first instruction set and a second instruction set, and wherein instructions of the first instruction set are X-bit instructions and instructions of the second instruction set are Y-bit instructions, where Y is different from X.
44. The data processing architecture of claim 43 wherein X is 32 and Y is 16.
45. A data processing architecture capable of operating using instructions from a predetermined plurality of instruction sets, the data processing architecture comprising:
- (i) a processor core responsive to a first instruction to access a sequence of bits, the sequence of bits having an address portion that specifies the location of a second instruction in a memory and an instruction set indicator portion and the instruction set indicator portion having at least one bit that is not part of the address portion of the sequence of bits;
- (ii) the processor core using the instruction set indicator portion of the sequence of bits to set one or more control flags, the state of the one or more control flags specifying a current instruction set selected from the predetermined plurality of instruction sets; and
- (iii) a controller responsive to the one or more control flags to cause the processor core to execute the second instruction as an instruction from the current instruction set.
46. The data processing architecture of claim 45 wherein the one or more control flags comprise one or more predetermined bits in a program counter.
47. The data processing architecture of claim 45, further comprising a memory system, wherein the memory system is not responsive to the one or more control flags.
48. The data processing architecture of claim 45, further comprising a memory system wherein the one or more control flags are not provided to the memory system.
49. The data processing architecture of claim 45 in which the predetermined plurality of instruction sets comprises a first instruction set and a second instruction set, and wherein instructions of the first instruction set are X-bit instructions and instructions of the second instruction set are Y-bit instructions, where Y is different from X.
50. The data processing architecture of claim 49 wherein X is 32 and Y is 16.
51. A data processing apparatus capable of switching between a predetermined plurality of instruction sets, the data processing apparatus comprising:
- (i) means for accessing a sequence of bits in response to a first instruction, the sequence of bits having an address portion that specifies the location of a second instruction in a memory and an instruction set indicator portion;
- (ii) means for identifying an instruction set selected from the predetermined plurality of instruction sets based on the instruction set indicator portion of the sequence of bits in response to the first instruction;
- (iii) means for setting one or more control flags to indicate that a current instruction set for the data processing apparatus is the instruction set identified based on the instruction set indicator portion of the sequence of bits in response to the first instruction; and
- (iv) means for retrieving the second instruction from the location specified by the address portion of the sequence of bits in response to the first instruction,
- wherein the instruction set identified by the instruction set portion of the sequence of bits is identifiable without regard to the location of the second instruction.
52. The data processing architecture of claim 51 wherein the one or more control flags comprise one or more predetermined bits in a program counter.
53. The data processing architecture of claim 51, further comprising a memory system, wherein the memory system is not responsive to the one or more control flags.
54. The data processing architecture of claim 51, further comprising a memory system wherein the one or more control flags are not provided to the memory system.
55. The data processing architecture of claim 51 in which the predetermined plurality of instruction sets comprises a first instruction set and a second instruction set, and wherein instructions of the first instruction set are X-bit instructions and instructions of the second instruction set are Y-bit instructions, where Y is different from X.
56. The apparatus of claim 55 wherein X is 32 and Y is 16.
57. A method of operating a data processing apparatus, the method comprising:
- (i) receiving a first instruction from a first instruction set selected from a predetermined plurality of instruction sets;
- (ii) translating the first instruction to generate a first set of one or more control signals;
- (iii) accessing a sequence of bits comprising an address portion that specifies the location of a second instruction in a memory and an instruction set indicator portion in response to the first set of one or more control signals, the instruction set indicator portion having at least one bit that is not part of the address portion of the sequence of bits;
- (iv) setting one or more control flags based upon the value of the instruction set indicator portion of the sequence of bits to specify that a current instruction set is a second instruction set selected from a predetermined plurality of instruction sets;
- (v) retrieving the second instruction from the location specified by the address portion of the sequence of bits; and
- (vi) translating the second instruction as an instruction from the current instruction set to generate a second set of one or more control signals.
58. The method of claim 57 wherein the predetermined plurality of instruction sets consists of two instruction sets.
59. The method of claim 58 wherein the first instruction set consists of X-bit instructions and the second instruction set consists of Y-bit instructions, Y being different from X.
60. The method of claim 59 wherein X is 32 and Y is 16.
61. The method of claim 59 wherein X is 16 and Y is 32.
62. The method of claim 57 wherein the first instruction set consists of X-bit instructions and the second instruction set consists of Y-bit instructions, Y being different from X.
63. The method of claim 62 wherein X is 32 and Y is 16.
64. The method of claim 62 wherein X is 16 and Y is 32.
65. A method of selecting an instruction set comprising the steps of:
- receiving a branching instruction written in a first instruction set of a plurality of instruction sets;
- in response to the branching instruction, inserting an address of a second instruction, which specifies the location of the second instruction in a memory, into a register and setting the value of a flag, where the value of the flag is not dependent upon the address of the location of the second instruction in the memory;
- selecting an instruction set based upon the value of the flag; and
- acquiring the second instruction.
66. The apparatus of claim 65, wherein:
- the first instruction set is different from the second instruction set.
67. The apparatus of claim 65, wherein:
- the pointer and the flag are located in a single register.
68. The apparatus of claim 65, wherein:
- the pointer and the flag are not located in a single register, yet are written to as if portions of a single register.
69. A processing apparatus comprising:
- a pointer for identifying an address, which specifies the location in a memory of a next instruction that is written in a first instruction set of a plurality of instruction sets; and
- a flag for identifying the first instruction set;
- wherein: the pointer and the flag are both written in response to an instruction from a second instruction set of the plurality of instruction sets, and the value of the flag is not dependent upon the address that specifies the location in the memory of the next instruction.
4217638 | August 12, 1980 | Namimoto et al. |
4236204 | November 25, 1980 | Groves |
4274138 | June 16, 1981 | Shimokawa |
4338663 | July 6, 1982 | Strecker et al. |
4346437 | August 24, 1982 | Blahut et al. |
4398243 | August 9, 1983 | Holberger et al. |
4434459 | February 28, 1984 | Holland et al. |
4434461 | February 28, 1984 | Puhl |
4459657 | July 10, 1984 | Murao |
4511966 | April 16, 1985 | Hamada |
4514803 | April 30, 1985 | Agnew et al. |
4554627 | November 19, 1985 | Holland et al. |
4685080 | August 4, 1987 | Rhodes, Jr. et al. |
4695943 | September 22, 1987 | Keeley et al. |
4839797 | June 13, 1989 | Katori et al. |
4849922 | July 18, 1989 | Riolfo |
4870614 | September 26, 1989 | Quatse |
4876639 | October 24, 1989 | Mensch, Jr. |
4905196 | February 27, 1990 | Kirrmann |
4930068 | May 29, 1990 | Katayose et al. |
4931989 | June 5, 1990 | Rhodes, Jr. et al. |
5077659 | December 31, 1991 | Nagata |
5115500 | May 19, 1992 | Larsen |
5148536 | September 15, 1992 | Witek et al. |
5187791 | February 16, 1993 | Baum |
5193158 | March 9, 1993 | Kinney et al. |
5276824 | January 4, 1994 | Skruhak et al. |
5303378 | April 12, 1994 | Cohen |
5327566 | July 5, 1994 | Forsyth |
5335331 | August 2, 1994 | Murao et al. |
5353420 | October 4, 1994 | Zaidi |
5363322 | November 8, 1994 | Gergen et al. |
5386563 | January 31, 1995 | Thomas |
5392408 | February 21, 1995 | Fitch |
5404472 | April 4, 1995 | Kurosawa et al. |
5416739 | May 16, 1995 | Wong |
5420992 | May 30, 1995 | Killian et al. |
5475824 | December 12, 1995 | Grochowski et al. |
5481684 | January 2, 1996 | Richter et al. |
5481693 | January 2, 1996 | Blomgren et al. |
5524211 | June 4, 1996 | Woods et al. |
5542059 | July 30, 1996 | Blomgren |
5561810 | October 1, 1996 | Ohtomo |
5568646 | October 22, 1996 | Jagger |
5574928 | November 12, 1996 | White et al. |
5583804 | December 10, 1996 | Seal et al. |
5598546 | January 28, 1997 | Blomgren |
5600845 | February 4, 1997 | Gilson |
5606714 | February 25, 1997 | Intrater et al. |
5630083 | May 13, 1997 | Carbine et al. |
5630153 | May 13, 1997 | Intrater et al. |
5638525 | June 10, 1997 | Hammond et al. |
5642516 | June 24, 1997 | Hedayat et al. |
5664147 | September 2, 1997 | Mayfield |
5666355 | September 9, 1997 | Huah et al. |
5671422 | September 23, 1997 | Datta |
5689672 | November 18, 1997 | Witt et al. |
5692152 | November 25, 1997 | Cohen et al. |
5701493 | December 23, 1997 | Jaggar |
5740461 | April 14, 1998 | Jaggar |
5758115 | May 26, 1998 | Nevill |
5781750 | July 14, 1998 | Blomgren et al. |
5784585 | July 21, 1998 | Denman |
5784636 | July 21, 1998 | Rupp |
5796973 | August 18, 1998 | Witt et al. |
5968161 | October 19, 1999 | Southgate |
5970254 | October 19, 1999 | Cooke et al. |
6496922 | December 17, 2002 | Borrill |
109567 | October 1983 | EP |
0109567 | October 1983 | EP |
169565 | July 1985 | EP |
0169565 | July 1985 | EP |
0199173 | October 1986 | EP |
199173 | October 1986 | EP |
306920 | March 1989 | EP |
0306920 | March 1989 | EP |
324308 | July 1989 | EP |
0324308 | July 1989 | EP |
758464 | April 1998 | EP |
2016755 | September 1979 | GB |
20167550 | September 1979 | GB |
2284492 | June 1995 | GB |
52-40826 | October 1977 | JP |
58-3040 | June 1981 | JP |
58-155457 | September 1983 | JP |
62-25334 | February 1987 | JP |
62-151938 | July 1987 | JP |
62-262146 | November 1987 | JP |
63111533 | May 1988 | JP |
1007129 | January 1989 | JP |
A-03-150633 | June 1991 | JP |
4-76626 | March 1992 | JP |
5-265751 | October 1993 | JP |
6-83615 | March 1994 | JP |
6083615 | March 1994 | JP |
7-281890 | October 1995 | JP |
52-68340 | July 1997 | JP |
9724660 | July 1997 | WO |
- Order Construing Disputed Claims and Terms, ARM Limited v. picoTurbo, Inc., Case No. C-00-00957 (N.D. Calif., Jun. 15, 2001)(Wilken, J.).
- Defendant picoTurbo's Civil L.R. 16-9(b)(1)-(4) Response Chart Concerning U.S. Patent No. 6,021,265, ARM Limited v. picoTurbo, Inc., Case No. C-00-00957 (N.D. Calif., Dec. 22, 2000).
- Initial Disclosure by Defendant picoTurbo, Inc. of Prior Art Under Local Rule 16-7, Case C00-00957CW, Aug. 14, 2000.
- Defendant picoTurbo's Civil L.R. 16-9(b)(1)-(4) Supplemental Responses U.S. Patent Nos. 5,740,461, 5,568,646, 5,758,115, 6,021,265, and 5,583,804, May 17, 2001.
- Second Supplement to Defendant picoTurbo's Civil L.R. 16-9(b)(1) Response Charts, Jun. 6, 2001.
- picoTurbo's Third Supplemental Response Charts, Aug. 31, 2001.
- Joint Designation of Disputed Terms for Claim Construction, Feb. 5, 2001.
- Plaintiff ARM's Opening Brief on Claim Construction, Mar. 1, 2001.
- Defendant picoTurbo's Response Brief on Claim Construction, Mar. 15, 2001.
- Plaintiff ARM's Reply Brief on Claim Construction, Mar. 22, 2001.
- Expert Report: Professor Alan Jay Smith, Aug. 31, 2001.
- Rebuttal Expert Report of Dr. Earl E. Swartzlander, Jr., Sep. 20, 2001.
- Plaintiff ARM's Response to picoTurbo, Inc.'s First Set of Interrogatories to ARM, Limited, Aug. 14, 2000 (Interrogatories 1 and 2 only).
- Defendant picoTurbo, Inc.'s Response to Plaintiff ARM's Second Set of Interrogatories, Aug. 18, 2000.
- Defendant picoTurbo's Motion for Summary Judgment on Issues of Patent Invalidity, Oct. 23, 2001.
- Memorandum of Points and Authorities in Support of Plaintiff ARM's Opposition and Cross Motion for Summary Judgment that the Patents-in-Suit are not Invalid, Nov. 2, 2001.
- Plaintiff ARM's Reply in Support of its Opposition and Cross Motion for Summary Judgment that the Patents-in-Suit are not Invalid.
- picoTurbo's Reply in Support of Motion for Summary Judgment on Invalidity and Opposition to ARM's Cross-Motion, Nov. 9, 2001.
- Declaration of Professor Alan Jay Smith, Oct. 17, 2001.
- Supplemental Declaration of Professor Alan Jay Smith, Nov. 8, 2001.
- Declaration of Dr. Earl E. Swartzlander, Jr., Nov. 1, 2001.
- “Instruction-Processing Optimization Techniques for VSLI Microprocessors”, by John David Bunda, Ph.D. Dissertation, University of Texas at Austin, May 1993.
- Clark et al., IEEE Transactions on Computers, vol. 30, (10) 1981, “Memory System of a High-Performance Personal Computer”, 715-722.
- IBM Technical Disclosure Bulletin by P.F. Smith, entitled: “Extended Control for Microprocessors” vol. 17 No. 11 published Apr. 1975, pp. 3438-3441.
- IBM Technical Disclosure Bulletin entitled: “Oncode Remap and Compression in Hard-Wired Risc Microprocessor” vol. 32 No. 10A published Mar. 1990, p. 349.
- IBM Technical Disclosure Bulletin by J.C. Kemp, entitled: “Instruction Translator” vol. 15, No. 3 published Aug. 1972, p. 920.
Type: Grant
Filed: Feb 1, 2002
Date of Patent: Mar 13, 2012
Assignee: ARM Limited (Cambridge)
Inventor: Edward Colles Nevill (Huntingdon)
Primary Examiner: Kenneth R Coulter
Attorney: White & Case LLP
Application Number: 10/066,475
International Classification: G06F 9/30 (20060101);