Instructing method and execution system

Abstract: An instructing method for specifying an instruction which is to be executed in an information processing apparatus, forms each of instruction words from at least an instruction code (OPa, OPb, OPC) and an operand specifying part (Ra1-Ra3, Rb1-Rb3, Rc1-Rc3) for specifying a single instruction, forms each of long instruction words having a fixed length from a type code (Type) and one or plurality of the instruction words, where the type code specifies a structure of the one or plurality of the instruction words included in the long instruction word, and specifies one or plurality of instructions by a the long instruction word.

Description: BACKGROUND OF THE INVENTION The present invention generally relates to instructing methods and execution systems, and more particularly to an instructing method which specifies an instruction which is to be executed in an information processing apparatus and an execution system for executing an instruction in the information processing apparatus. Recently, the performance of a processor improved considerably owing to improvements in the integration density of semiconductor devices and operation speeds of the semiconductor devices. However, there is a demand to further improve the performance of the processor. In order to meet this demand, an architecture called reduced instruction set computer (RISC) has been proposed. According to this RISC, an instruction word has a fixed length of 32 bits and the operation is carried out only between registers. In addition, a memory access is restricted only to a transfer between a memory and a register, and the RISC only has instructions with a high frequency of use of programs. By the restrictions described above, it is possible to simplify the hardware which is required to execute the instructions and also simplify the control of the hardware. Hence, the performance of the processor can be improved by increasing the operation clock frequency and reducing the number of cycles required to execute one instruction. On the other hand, there are proposals to simultaneously execute a plurality of instructions so as to further improve the performance of the processor. FIGS.1A, 1B and 1C show examples of instruction formats used in the conventional RISC architecture. FIG.1A shows an instruction having a first format. Based on an instruction code OP, this instruction instructs an operation between a register content specified by a second register instruction field R2X and a register content specified by a third register instruction field R3X and a storage of an operation result in a register specified by a first register instruction field R1X. FIG.1B shows an instruction having a second format. When this instruction is an operation instruction, this instruction instructs an operation between the register content specified by the second register instruction field R2X and 16-bit immediate data IMM16 and a storage of an operation result in the register specified by the first register instruction field R1X. On the other hand, when this instruction is a load instruction, this instruction instructs an addition of an address which is the register content specified by the second register instruction field R2X and a deviation which is given as the immediate data IMM16 and a storage of the data of the address of the memory obtained by the addition in the register specified by the first register specifying field R1X. FIG.1C shows an instruction having a third format. This instruction instructs a storage of a 21-bit immediate data IMM21 in the register specified by the first register specifying field R1X. According to the instruction having the first format, the twenty-first through thirty-first bits are unused and there is a problem in that the bit utilization efficiency is poor. On the other hand, according to the instruction having the second format, there is a problem in that a plurality of instructions must be used when large immediate data and deviation are required, such as the case where the immediate data exceeds 16 bits. Similarly, according to the instruction having the third format, there is a problem in that a plurality of instructions must be used when a large immediate data is required, such as the case where the immediate data exceeds 21 bits. Furthermore, when executing a plurality of instructions in parallel, the control of the hardware becomes complex and the scale of the hardware structure required to execute the instructions in parallel becomes large because there exist a large number of combinations of instructions which must be executed in parallel. In the Conference Proceedings of the 13th annual international symposium on computer architecture, Tokyo, 2nd-5th June 1986, pages 280-289, Computer Society Press, New York, US; S. TOMITA et al. : "A computer with low-level parallelism QA-2 - Its applications to 3-D graphics and prolog/lisp machines", the use of a long instruction word made up of a plurality of instruction words is described. The structure of each instruction word included in the long instruction word is fixed. EP-A-0 363 222 is an example of how to improve bit utilisation in a non-RISC architecture. SUMMARY OF THE INVENTION Accordingly, it is a general object of the present invention to provide a novel and useful instructing method and execution system in which the problems described above are eliminated. According to a first aspect of the invention there is provided an instructing method, for specifying an instruction which is to be executed in an information processing apparatus, comprising the steps of: forming one or more instruction words, each specifying a single instruction, from at least an instruction code and an operand specifying part; forming one or more long instruction words each having a fixed length, from a type code (Type) and one or more of the said instruction words, said type code specifying a structure with which the one or more said instruction words are included in the long instruction word and being capable of indicating mutually different structures of the instruction words when a plurality of said instruction words are included in the long instruction word; and specifying one or a plurality of instructions by a said long instruction word and wherein the length and format of the instruction word is variable. According to a second aspect of the invention there is provided an execution system for executing instructions in an information processing apparatus, wherein there are provided: input means for inputting a long instruction word which has a fixed length, said long instruction word being made up of a type code (Type) and one or more instruction words, each of said instruction words being of a variable length and format and including at least an instruction code (OPa, OPb, OPc) and an operand specify part (Ra1-Ra3, Rb1-Rb3), Rc1-Rc3) for specifying a single instruction, said type code specifying a structure with which the one or more instruction words are included in the long instruction word; judging means coupled to said input means adapted to identify, from the type code, the combination and number of instruction words included in the long instruction word and for outputting a judgement result; a plurality of operation means coupled to said judging means for independently carrying out operations specified by the instruction words included in the long instruction word; and assigning means coupled to said judging means for assigning an operation specified by each instruction word included in the long instruction word to one of said operation means depending on the judgement result output from said judging means. According to the execution system of the present invention, it is possible to simplify both the control of hardware and hardware structure. For a better understanding of the invention and to show how the same may be carried into effect, reference will now be made, purely by way of example, to the accompanying drawings, in which:- FIGS. 1A, 1B and 1C respectively are diagrams showing examples of instruction formats used in the conventional RISC architecture; FIGS. 2A, 2B, 2C and 2D respectively are diagrams showing embodiments of instruction formats used in the present invention; FIG. 3 is a system block diagram showing an essential part of an information processing apparatus which is applied with the present invention; FIG.4 is a system block diagram showing an embodiment of a control circuit shown in FIG.3 together with an instruction register; FIG.5 is a timing chart for explaining a pipeline operation of a processor shown in FIG.3; FIG.6 is a system block diagram showing an embodiment of a register file shown in FIG.3; and FIG.7, 8 and 9 are block diagrams respectively showing embodiments of operation circuits shown in FIG.3. DESCRIPTION OF THE PREFERRED EMBODIMENTS First, a description will be given of embodiments of instruction formats which may be used in the present invention, by referring to FIGS.2A through 2D. FIG.2A shows a 64-bit long instruction word having a first instruction format. This long instruction word is made up of a type code Type arranged at bit numbers "0" through "3", and three instruction words having a format A and respectively arranged at bit numbers "4" through "23", "24" through "43", and "44" through "63". The instruction word having the format A and arranged at the bit numbers "4" through "23" includes a 5-bit instruction code OPa, a 5-bit first register specifying field Ra1, a 5-bit second register specifying field Ra2 and a 5-bit third register specifying field Ra3. The register specifying fields Ra1, Ra2 and Ra3 are provided as an operand specifying part. This instruction word instructs an operation between a register content specified by the first register specifying field Ra1 and a register content specified by the second register specifying field Ra2 and a storage of an operation result in a register specified by the third register specifying field Ra3 depending on the instruction code OPa. The instruction word having the format A and arranged at the bit numbers "24" through "43" includes a 5-bit instruction code OPb, a 5-bit first register specifying field Rb1, a 5-bit second register specifying field Rb2 and a 5-bit third register specifying field Rb3. The register specifying fields Rb1, Rb2 and Rb3 are provided as an operand specifying part. This instruction word instructs an operation between a register content specified by the first register specifying field Rb1 and a register content specified by the second register specifying field Rb2 and a storage of an operation result in a register specified by the third register specifying field Rb3 depending on the instruction code OPb. Similarly, the instruction word having the format A and arranged at the bit numbers "44" through "63" includes a 5-bit instruction code OPc, a 5-bit first register specifying field Rc1, a 5-bit second register specifying field Rc2 and a 5-bit third register specifying field Rc3. The register specifying fields Rc1, Rc2 and Rc3 are provided as an operand specifying part. This instruction word instructs an operation between a register content specified by the first register specifying field Rc1 and a register content specified by the second register specifying field Rc2 and a storage of an operation result in a register specified by the third register specifying field Rc3 depending on the instruction code OPc. The kind of operation to be carried out is specified by a combination of the 4-bit type code Type and one of the 5-bit instruction codes OPa, OPb and OPc. The kind of operation to be carried out is similarly specified for the long instruction words shown in FIGS.2B through 2D which will be described hereunder. FIG.2B shows a 64-bit long instruction word having a second instruction format. This long instruction word is made up of a type code Type arranged at bit numbers "0" through "3", an instruction word having the format A and arranged at bit numbers "4" through "23", and an instruction word having a format B and arranged at bit numbers "24" through "63". The instruction word having the format A and arranged at the bit numbers "4" through "23" includes the 5-bit instruction code OPa, the 5-bit first register specifying field Ra1, the 5-bit second register specifying field Ra2 and the 5-bit third register specifying field Ra3. The register specifying fields Ra1, Ra2 and Ra3 are provided as the operand specifying part. This instruction word instructs an operation between the register content specified by the first register specifying field Ra1 and the register content specified by the second register specifying field Ra2 and a storage of an operation result in the register specified by the third register specifying field Ra3 depending on the instruction code OPa. The instruction word having the format B and arranged at the bit numbers "24" through "63" includes the 5-bit instruction code OPb, the 5-bit first register specifying field Rb1, a 25-bit immediate data IMM25 and the 5-bit third register specifying field Rb3. The first register specifying field Rb1 is arranged at the bit numbers "29" through "33", the immediate data IMM25 is arranged at the bit numbers "34" through "58", and the third register specifying field Rb3 is arranged at the bit numbers "59" through "63". When the instruction code OPb represents an operation instruction, this instruction word instructs an operation between the register content specified by the first register specifying field Rb1 and the immediate data IMM25 and a storage of an operation result in the register specified by the third register specifying field Rb3 depending on the instruction code OPb. On the other hand, when the instruction code OPb represents a load instruction, this instruction word instructs an addition of an address which is the register content specified by the first register specifying field Rb1 and a deviation which is given as the immediate data IMM25 and a storage of the data of the address of the memory obtained by the addition in the register specified by the third register specifying field Rb3 depending on the instruction code OPb. FIG.2C shows a 64-bit long instruction word having a third instruction format. This long instruction word is made up of a type code Type arranged at bit numbers "0" through "3", an instruction word having the format A and arranged at bit numbers "4" through "23", and an instruction word having a format C and arranged at bit numbers "24" through "63". The instruction word having the format A and arranged at the bit numbers "4" through "23" includes the 5-bit instruction code OPa, the 5-bit first register specifying field Ra1, the 5-bit second register specifying field Ra2 and the 5-bit third register specifying field Ra3. The register specifying fields Ra1, Ra2 and Ra3 are provided as the operand specifying part. This instruction word instructs an operation between the register content specified by the first register specifying field Ra1 and the register content specified by the second register specifying field Ra2 and a storage of an operation result in the register specified by the third register specifying field Ra3 depending on the instruction code OPa. The instruction word having the format C and arranged at the bit numbers "24" through "63" includes the 5-bit instruction code OPb, a 32-bit immediate data IMM32 and the 5-bit third register specifying field Rb3. The immediate data IMM32 is arranged at the bit numbers "27" through "58", and the third register specifying field Rb3 is arranged at the bit numbers "59" through "63". This instruction word instructs a storage of immediate data IMM32 in the register specified by the third register specifying field Rb3 depending on the instruction code OPb. FIG.2D shows a 64-bit long instruction word having a fourth instruction format. This long instruction word is made up of a type code Type arranged at bit numbers "0" through "3", and a 60-bit instruction word having the format D and arranged at bit numbers "4" through "23" through "63". The instruction word having the format D and arranged at the bit numbers "4" through "63" includes the 5-bit instruction code OPa, the 32-bit immediate data IMM32 and the 5-bit third register specifying field Rb3. The immediate data IMM32 is arranged at the bit numbers "9" through "40", and the third register specifying field Rb3 is arranged at the bit numbers "59" through "63". This instruction word instructs a storage of immediate data IMM32 in the register specified by the third register specifying field Rb3 depending on the instruction code OPa. In the long instruction words shown in FIGS.2A through 2D, the formats A through D of the instruction words are distinguished from the value of the type code Type. Next, a description will be given of an information processing apparatus which is applied with an embodiment of the instructing method according to the present invention and an embodiment of the execution system according to the present invention, by referring to FIG.3. FIG.3 shows an essential part of the information processing apparatus. The information processing apparatus includes an instruction memory 20, a processor 21 and an operand memory 70. A 64-bit long instruction word which is read from the instruction memory 20 is stored in an instruction memory 22 within the processor 21. Each bit of the long instruction word stored in the instruction memory 22 is supplied to a control circuit 23 within the processor 21. FIG.4 shows an embodiment of the control circuit 23 together with the instruction register 22. A decoder 25 decodes the bit numbers "0" through "3" of the instruction word stored in the instruction register 22, that is, the type code Type. A decoder 26 decodes the bit numbers "4" through "8" of the instruction word together with the type code Type and generates a first operation circuit control signal CNT1. A decoder 27 decodes the bit numbers "24" through "28" of the instruction word together with the type code Type and generates a second operation circuit control signal CNT2. Similarly, a decoder 28 decodes the bit numbers "44" through "48" of the instruction word together with the type code Type and generates a third operation circuit control signal CNT3. The bit numbers decoded in the decoders 26, 27 and 28 excluding the type code Type respectively correspond to the instruction codes OPa, OPb and OPc of the long instruction word having the first instruction format. A selector 24 selects the bit numbers "19" through "23" or the bit numbers "59" through "63" of the instruction word which is stored in the instruction register 22 in response to an output signal of the decoder 25. The bits selected by the selector 24 are latched in a latch circuit 29 during an execute cycle. The bit numbers "59" through "63" of the instruction word which is stored in the instruction register 22 are latched in a latch circuit 30 during the execute cycle. A selector 31 selects the bit numbers "59" through "63" or the bit numbers "39" through "43" of the instruction word which is stored in the instruction register 22 in response to the output signal of the decoder 25. The bits selected by the selector 31 are latched in a latch circuit 32 during the execute cycle. Outputs of the latch circuits 29, 32 and 30 are respectively latched in latch circuits 35, 36 and 37 during a write cycle, and outputs of the latch circuits 35, 36 and 37 are respectively decoded in decoders 40, 41 and 42. In addition, the output of the latch circuit 36 is latched in a latch circuit 43 during an access cycle, and an output of the latch circuit 43 is decoded in a decoder 44. The decoders 40, 41, 42 and 44 are controlled by portions of the control signals CNT1, CNT2 and CNT3 which are output from the decoders 26, 27 and 28. Particularly, the decoder 40 is enabled in response to an enable signal ENBLA which is obtained by passing the control signal CNT1 through two latch circuits 47 and 48. Similarly, the decoder 41 is enabled in response to an enable signal ENBLB which is obtained by passing the control signal CNT2 through two latch circuits (not shown), and the decoder 42 is enabled in response to an enable signal ENBLC which is obtained by passing the control signal CNT3 through two latch circuits (not shown). The decoder 44 is enabled in response to an enable signal ENBLL which is obtained by passing the control signal CNT2 through one latch circuit (not shown). The illustration of the latch circuits which are used to obtain the enable signals ENBLB, ENBLC and ENBLL is omitted in FIG.4 in order to simplify the interconnections. Thirty-two OR circuits 45 0 through 45 31 respectively generate clock gate enable signals CGEO through CGE31 based on the outputs of the decoders 40, 41, 42 and 44. The processor 21 shown in FIG.3 carries out a pipeline operation. In this case, a fetch (F) cycle, a decode (D) cycle, an execute (E) cycle and a write (W) cycle of the first long instruction word are carried out as shown in FIG.5(B) in synchronism with a clock signal shown in FIG.5(A). The F, D, E and W cycles of the second and third long instruction words are respectively carried out similarly as shown in FIG.5(C) and (D). In other words, the cycles of two successive long instruction words are shifted by one cycle. However, in the case of the load instruction within the long instruction word, an address calculation is carried out in place of the E cycle and a memory access (access (A) cycle) is made in place of the W cycle. 5(A) is supplied The clock signal shown in FIG.5(A) is supplied to the latch circuits and the like of the processor 21 shown in FIG.3. When the long instruction word of the first format is stored in the instruction register 22, the decoder 25 decodes the type code Type, and the decoders 26, 27 and 28 respectively decode the instructions codes OPa, OPb and OPc together with the type code Type. In addition, the third register specifying fields Ta3, Rb3 and Rc3 are respectively latched in the latch circuits 29, 32 and 30 during the E cycle. The third register specifying fields Ra3, Rb3 and Rc3 are respectively latched in the latch circuits 35, 36 and 37 during the W cycle and decoded in the respective decoders 40, 41 and 42. When the long instruction word of the second format is stored in the instruction register 22, the decoder 25 decodes the type code Type, and the decoders 26 and 27 respectively decode the instruction codes OPa and OPb together with the type code Type. In addition, the selector 31 selects the bit numbers "59" through "63" of the instruction word which is stored in the instruction register 22 in response to the output signal of the decoder 25, and the third register specifying fields Ra3 and Rb3 are respectively latched in the latch circuits 29 and 32 during the E cycle. Furthermore, the bits which are latched in the latch circuits 29 and 32 are respectively latched in the latch circuits 35 and 36 during the W cycle and decoded in the respective decoders 40 and 41. The decoder 42 is disabled in response to the enable signal ENBLC. Moreover, the third register specifying field Rb3 which is output from the latch circuit 36 is latched in the latch circuit 43 during the A cycle and is decoded by the decoder 44. This decoder 44 is enabled in response to the enable signal ENBLL only when the instruction word having the format B is a load instruction. When the long instruction word having the third format is stored in the instruction register 22, the decoder 25 decodes the type code Type, and the decoders 26 and 27 respectively decode the instruction codes OPa and OPb together with the type code Type. In addition, the selector 31 selects the bit numbers "59" through "63" of the instruction word which is stored in the instruction register 22 in response to the output signal of the decoder 25, and the third register specifying fields Ra3 and Rb3 are respectively latched in the latch circuits 29 and 32 during the E cycle. Furthermore, the bits which are latched in the latch circuits 29 and 32 are respectively latched in the latch circuits 35 and 36 during the W cycle and decoded in the respective decoders 40 and 41. The decoder 42 is disabled in response to the enable signal ENBLC. Moreover, the third register specifying field Rb3 which is output from the latch circuit 36 is latched in the latch circuit 43 during the A cycle and is decoded by the decoder 44. This decoder 44 is enabled in response to the enable signal ENBLL only when the instruction word having the format C is a load instruction. When the long instruction word having the fourth format is stored in the instruction register 22, the decoder 25 decodes the type code Type, and the decoder 26 decodes the instruction code OPa together wit the type code Type. In addition, the selector 24 selects the bit numbers "59" through "63" of the instruction word which is stored in the instruction register 22 in response to the output signal of the decoder 25, and the third register specifying field Ra3 is latched in the latch circuit 29 during the E cycle. Furthermore, the bits which are latched in the latch circuit 29 are latched in the latch circuit 35 during the W cycle and decoded by the decoder 40. The decoders 41, 42 and 44 are disabled by the respective enable signals ENBLB, ENBLC and ENBLL. FIG.6 shows an embodiment of a register file 50 shown in FIG.3. In FIG.6, 32-bit data applied to each of terminals RIa3, RIb3, RIc3 and RI1 are supplied to all selectors 51 0 through 51 31 . The selectors 51 0 through 51 31 are all controlled by the outputs of the decoders 40, 41, 42 and 44 shown in FIG.4, and select one of the 32-bit data received from the terminals RIa3, RIb3, RIc3 and RI1. Outputs of the selectors 51 0 through 51 31 are respectively supplied to registers R0 through R31. The registers R0 through R31 respectively latch the incoming data when the respective clock gate enable signals CGEO through CGE31 are received from the OR circuits 45 0 through 45 31 . Outputs of the registers R0 through R31 are supplied to all six selectors 52a through 52f. The selector 52a is controlled by the bit numbers "9" through "13" of the instruction word which is stored in the instruction register 22, that is, by the first register specifying field Ra1. The selector 52b is controlled by the bit numbers "14" through "18" of the instruction word which is stored in the instruction register 22, that is, by the second register specifying field Ra2. The selector 52c is controlled by the bit numbers "29" through "33" of the instruction word which is stored in the instruction register 22, that is, by the first register specifying field Rb1. The selector 52d is controlled by the bit numbers "34" through "38" of the instruction word which is stored in the instruction register 22, that is, by the second register specifying field Rb2. The selector 52e is controlled by the bit numbers "49" through "53" of the instruction word which is stored in the instruction register 22, that is, by the first register specifying field Rc1. The selector 52f is controlled by the bit numbers "54" through "58" of the instruction word which is stored in the instruction register 22, that is, by the second register specifying field Rc2. The data in the registers R0 through R31 are output from terminals R0a1, R0a2, R0b1, R0b2, R0c1 and R0c2 via the respective selectors 52a through 52f which are selected by the bits of the instruction word stored in the instruction register 22. Returning now to the description of FIG.3, the data received from the terminal R0a1 of the register file 50 is latched in a latch circuit 55a. On the other hand, one of the data received from the terminal R0a2 of the register file 50 and the immediate data IMM32 which corresponds to the bit numbers "9" through "40" of the instruction word which is stored in the instruction register 22 is selected by a selector 54 and latched in a latch circuit 55b. The data which are latched in the latch circuits 55a and 55b are subjected to an operation in a first operation circuit 56. A result of the operation in the first operation circuit 56 is latched in a latch circuit 57. The data received from the terminal R0b1 of the register file 50 is latched in a latch circuit 59a. On the other hand, one of the data received from the terminal R0b2 of the register file 50, the immediate data IMM25 which corresponds to the bit numbers "34" through "58" of the instruction word which is stored in the instruction register 22 and the immediate data IMM32 which corresponds to the bit numbers "27" through "58" of the instruction word which is stored in the instruction register 22 is selected by a selector 58 and latched in a latch circuit 59b. The data which are latched in the latch circuits 59a and 59b are subjected to an operation in a second operation circuit 60. A result of the operation in the second operation circuit 60 is latched in a latch circuit 61. The data received from the terminals R0c1 and R0c2 of the register file 50 are respectively latched in latch circuits 62a and 62b. The data which are latched in the latch circuits 62a and 62b are subjected to an operation in a third operation circuit 63. A result of the operation in the third operation circuit 63 is latched in a latch circuit 64. When executing the long instruction word having the first format, the stored data of the registers R0 through R31 which are specified by the register specifying fields Ra1, Ra2, Rb1, Rb2, Rc1 and Rc2 are output from the terminals R0a1, R0a2, R0b1, R0b2, R0c1 and R0c2 of the register file 50. In addition, by the selection of the output data from the terminal R0b2 by the selector 58, the data described above are latched in the latch circuits 55a, 55b, 59a, 59b, 62a and 62b, and operations are simultaneously carried out in the operation circuits 56, 60 and 63. The results of the operations are respectively applied to the terminals RIa3, RIb3 and RIc3 of the register file 50. When executing the long instruction word having the second format, the stored data of the registers R0 through R31 which are specified by the register specifying fields Ra1, Ra2 and Rb1 are output from the terminals R0a1, R0a2, Rob1 and R0b2 of the register file 50. In addition, by the selection of the immediate data IMM25 by the selector 58, the data described above are latched in the latch circuits 55a, 55b, 59a and 59b, and operations are simultaneously carried out in the operation circuits 56 and 60. The results of the operations are respectively applied to the terminals RIa3 and RIb3 of the register file 50. However, when the instruction word which has the format B is a load instruction, the result of the address calculation carried out in the operation circuit 60 is supplied to the operand memory 70, and the load data is supplied from the operand memory 70 to the terminal RI1 of the register file 50. When executing the long instruction word having the third format, the stored data of the registers R0 through R31 which are specified by the register specifying fields Ra1, Ra2 and Rb1 are output from the terminals R0a1, R0a2, R0b1 and R0b2 of the register file 50. In addition, by the selection of the immediate data IMM32 by the selector 58, the data described above are latched in the latch circuits 55a, 55b, 59a and 59b, and operations are simultaneously carried out in the operation circuits 56 and 60. The results of the operations are respectively applied to the terminals RIa3 and RIb3 of the register file 50. However, when the instruction word which has the format B is a load instruction, the result of the address calculation carried out in the operation circuit 60 is supplied to the operand memory 70, and the load data is supplied from the operand memory 70 to the terminal RI1 of the register file 50. When executing the long instruction word having the fourth format, the stored data of the registers R0 through R31 which are specified by the register specifying field Ra1 is output from the terminal R0a1 of the register file 50. In addition, by the selection of the immediate data IMM32 by the selector 54, the data described above are latched in the latch circuits 55a and 55b, and an operation is carried out in the operation circuit 56. The result of the operation is applied to the terminal RIa3 of the register file 50. However, when the instruction word which has the format B is a load instruction, the result of the address calculation carried out in the operation circuit 60 is supplied to the operand memory 70, and the load data is supplied from the operand memory 70 to the terminal RIl of the register file 50. In this embodiment, the processor 21 has a 32-bit structure. For this reason, the bit numbers "41" through "58" of the long instruction word having the third format are unused. But when the processor 21 has a 64-bit structure, all of the bit numbers "9" through "58" of the long instruction word having the third format can be used as an immediate data IMM51. An instruction address output from a program counter 71 or a branch address output from the latch circuit 61 is selected by a selector 72 and is supplied to the instruction memory 20, so as to read the next long instruction word. FIG.7 shows an embodiment of the operation circuit 56 shown in FIG.3. The operation circuit 56 includes an arithmetic logic unit (ALU) 56a and a multiplier 56b which are connected as shown. FIG.8 shows an embodiment of the operation circuit 60 shown in FIG.3. The operation circuit 60 includes an ALU 60a and a shift circuit 60b which are connected as shown. FIG.9 shows an embodiment of the operation circuit 63 shown in FIG.3. The operation circuit 63 includes an ALU 63a. By restricting the instruction codes OPa, OPb and OPc of the long instruction words having the first through fourth formats to only those instructions which can be carried out in the operation circuits 56, 60 and 63, it becomes possible to facilitate the parallel execution of instructions. Therefore, according to the present invention, the unused bits of the long instruction word are eliminated and the bit utilization efficiency is improved by forming the long instruction word which has the fixed length from the type code and one or more instruction words. In addition, it becomes possible to specify a large immediate data by reducing the number of instruction words included in the long instruction word. Furthermore, since the structure of the instruction words forming the long instruction word, that is, the combination of the instruction words forming the long instruction word, is defined by the type code, it becomes possible to simplify both the control of hardware and hardware structure when executing a plurality of instructions in parallel depending on the combination of the instruction words.

Claims: An instructing method, for specifying an instruction which is to be executed in an information processing apparatus, comprising the steps of: forming one or more instruction words, each specifying a single instruction, from at least an instruction code (OPa, OPb, OPc) and an operand specifying part (Ra1-Ra3, Rb1-Rb3, Rc1-Rc3); forming one or more long instruction words each having a fixed length, from a type code (Type) and one or more of the said instruction words, said type code specifying a structure with which the one or more said instruction words are included in the long instruction word and being capable of indicating mutually different structures of the instruction words when a plurality of said instruction words are included in the long instruction word; and specifying one or a plurality of instructions by a said long instruction word and wherein the length and format of the instruction word is variable. The instructing method as claimed in claim 1, wherein said instruction words include a first instruction word having a first format (A), a second instruction word having a second format (B) and a third instruction word having a third format (C, D), said first instruction word instructing an operation between contents of first and second registers and the storage of the operation result in a third register, said second instruction word instructing an operation between the content of the first register and immediate data, and the storage of the operation result in the third register, said third instruction word instructing the storage of the immediate data into the third register. The instructing method as claimed in claim 2, wherein said long instruction words include a first long instruction word having a first word format (FIG.2A), a second long instruction word having a second word format (FIG.2B), a third long instruction word having a third word format (FIG.2C) and a fourth long instruction word having a fourth word format (FIG.2D), said first long instruction word being made up of said type code and three said first instruction words, said second long instruction word being made up of said type code, a said first instruction word and a said second instruction word, said third long instruction word being made up of said type code, a said first instruction word and a said third instruction word, said fourth long instruction word being made up of said type code and a said third instruction word. The instructing method as claimed in claim 2 or claim 3, wherein said type code is made up of four bits, said first instruction word is made up of twenty bits, said second instruction word is made up of forty bits, said third instruction word is made up of forty or sixty bits, and the fixed length of said long instruction words is sixty-four bits. An execution system for executing instructions in an information processing apparatus, wherein there are provided: input means (22) for inputting a long instruction word which has a fixed length, said long instruction word being made up of a type code (Type) and one or more instruction words, each of said instruction words being of a variable length and format and including at least an instruction code (OPa, OPb, OPc) and an operand specify part (Ra1-Ra3,Rb1-Rb3, Rc1-Rc3) for specifying a single instruction, said type code specifying a structure with which the one or more instruction words are included in the long instruction word; judging means (23), coupled to said input means, adapted to identify, from the type code, the combination and number of instruction words included in the long instruction word and for outputting a judgement result; a plurality of operation means (56, 60, 63) coupled to said judging means for independently carrying out operations specified by the instruction words included in the long instruction word; and assigning means (43 , 58) coupled to said judging means for assigning an operation specified by each instruction word included in the long instruction word to one of said operation means depending on the judgement result output from said judging means. The execution system as claimed in claim 5, wherein said operation means (56, 60, 63) simultaneously carry out operations in parallel when the long instruction word includes a plurality of said instruction words. The execution system as claimed in claim 5 or 6, wherein there are further provided a plurality of operand register means (50) coupled to said judging means, and said judging means (23) includes means for specifying said operand register means depending on the operand specifying part of each instruction word for each of the instruction words included in the long instruction word. The execution system as claimed in claim 7, wherein said instruction words include a first instruction word having a first format (A), a second instruction word having a second format (B) and a third instruction word having a third format (C, D), said first instruction word instructing an operation between contents of first and second registers andthe storage of the operation result in a third register, said second instruction word instructing an operation between the content of the first register and immediate data and the storage of the operation result in the third register, said third instruction word instructingthe storage of immediate data into the third register, said first through third registers being included in said operand register means (50). The execution system as claimed in claim 8, wherein said long instruction words include a first long instruction word having a first word format (FIG.2A), a second long instruction word having a second word format (FIG.2B), a third long instruction word having a third word format (FIG.2C) and a fourth long instruction word having a fourth word format (FIG.2D), said first long instruction word being made up of said type code and three said first instruction words, said second long instruction word being made up of said type code, a said first instruction word and a said second instruction word, said third long instruction word being made up of said type code, a said first instruction word and a said third instruction word, said fourth long instruction word being made up of said type code and a said third instruction word. The execution system as claimed in claim 9, wherein said type code is made up of four bits, said first instruction word is made up of twenty bits, said second instruction word is made up of forty bits, said third instruction word is made up of forty or sixty bits, and the fixed length of said long instruction words is sixty-four bits. An execution system as claimed in any one of claims 5 to 10 wherein said type code is capable of indicating mutually different structures of the instruction words when a plurality of said instruction words are included in the long instruction word; and the judging means (23) is additionally adapted to identify from the type code, the structure of each instruction word and to include such identification in the judgement result.

Inventors: KATO TAKAO, TAMURA HIDEO, KATO, TAKAO, TAMURA, HIDEO
Applicants: FUJITSU LTD, FUJITSU LIMITED
Application year: 1990
Main classification: G06F9
IPC codes: G06F9