JPH03189728A - Register designating system for double word access instruction - Google Patents
Register designating system for double word access instructionInfo
- Publication number
- JPH03189728A JPH03189728A JP32899489A JP32899489A JPH03189728A JP H03189728 A JPH03189728 A JP H03189728A JP 32899489 A JP32899489 A JP 32899489A JP 32899489 A JP32899489 A JP 32899489A JP H03189728 A JPH03189728 A JP H03189728A
- Authority
- JP
- Japan
- Prior art keywords
- register
- double word
- word access
- access instruction
- instruction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012986 modification Methods 0.000 claims description 12
- 230000004048 modification Effects 0.000 claims description 12
- 238000000034 method Methods 0.000 claims description 5
- 238000012797 qualification Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 2
Landscapes
- Executing Machine-Instructions (AREA)
Abstract
Description
【発明の詳細な説明】
〔概要〕
ダブル・ワード・アクセス命令のレジスタ指定方式に関
し、
ダブル・ワード・アクセス命令の命令コード中に1個の
レジスタ番号しか書けないという制約の下で、より柔軟
なレジスタ番号指定を行い得るようにすることを目的と
し、
ダブル・ワード・アクセス命令を有する計算機において
、命令によって書き換え可能な修飾レジスタと、ダブル
・ワード・アクセス命令の命令コードのレジスタ指定フ
ィールドの値と修飾レジスタの値とに基づいてレジスタ
番号を出力するレジスタ番号生成回路とを設け、ダブル
・ワード・アクセス命令の対象となる2個のレジスタ番
号のうちの1個をダブル・ワード・アクセス命令の命令
コードのレジスタ指定フィールドの値によって指定し、
もう1個のレジスタの番号をレジスタ指定番号生成回路
の出力により指定する
ことを構成としている。[Detailed Description of the Invention] [Summary] Regarding the register specification method for double word access instructions, we have developed a more flexible register specification method under the constraint that only one register number can be written in the instruction code of double word access instructions. The purpose is to enable register number specification, and in computers with double word access instructions, the modified register that can be rewritten by the instruction and the value of the register specification field of the instruction code of the double word access instruction. A register number generation circuit that outputs a register number based on the value of a modified register is provided, and one of the two register numbers that are the target of a double word access instruction is specified by the value of the register specification field in the code,
The configuration is such that the number of the other register is designated by the output of the register designation number generation circuit.
本発明は、ダブル・ワード・アクセス命令を有する計算
機におけるダブル・ワード・アクセス命令のレジスタ指
定方式に関するものである。The present invention relates to a register specification system for double word access instructions in a computer having double word access instructions.
レジスタと他のレジスタ、レジスタとメモリの間でデー
タの送受を行う命令は基本的な命令として普通の計算機
に備えられている。また、送受の対象となるデータ長は
バイト、ワード、ダブル・ワードなど多様なものがサポ
ートされていることが多い。ここで、ダブル・ワード・
アクセス命令に注目した場合、対象となる2個のレジス
タを独立して命令コード中に埋め込めれば理想的である
が、ワード命令との整合性や全体的な命令体系からの制
約により1個のレジスタ番号しか命令中に使用できない
のが現実である。そのため、従来の技術においては、偶
数番号のレジスタを命令コード中に指定して、それより
1多い奇数番号のレジスタとの組合わせにするなど制限
の大きい方式が採用されていた。Instructions for sending and receiving data between registers and other registers, and between registers and memory are provided as basic instructions in ordinary computers. Furthermore, various lengths of data to be sent and received, such as byte, word, and double word, are often supported. Here, double word
When focusing on access instructions, it would be ideal if the two target registers could be embedded independently in the instruction code, but due to consistency with word instructions and constraints from the overall instruction system, The reality is that only register numbers can be used in instructions. Therefore, in the prior art, a highly restrictive method has been adopted, such as specifying even-numbered registers in the instruction code and combining them with odd-numbered registers that are one more.
上述のように、従来の技術においては、ダブル・ワード
・アクセス命令の対象となる2個のレジスタを自由に指
定することが出来ず、延いてはプログラム作成の自由度
が制限されていた。As described above, in the conventional technology, it is not possible to freely designate two registers to be subjected to a double word access instruction, and as a result, the degree of freedom in creating a program is restricted.
本発明は、この点に鑑みて創作されたものであって、命
令コード中に1個のレジスタ番号しか書けないという制
約の下で、より柔軟なレジスタ番号指定を行い得るよう
になったダブル・ワード・アクセス命令のレジスタ指定
方式を提供することを目的としている。The present invention was created in view of this point, and is a double code that allows more flexible register number specification under the constraint that only one register number can be written in an instruction code. The purpose is to provide a register specification method for word access instructions.
第1図は本発明の原理説明図である。本発明では、修飾
レジスタ4とよぶ特殊な内部レジスタを設け、命令コー
ド中のレジスタ指定フィールドの値と修飾レジスタ4の
内容からもう1個のレジスタ番号を生成できるようなレ
ジスタ番号回路5を設ける。このレジスタ番号生成回路
5は排他的論理和がふされしいが、その外のものであっ
てもよい。FIG. 1 is a diagram explaining the principle of the present invention. In the present invention, a special internal register called a modification register 4 is provided, and a register number circuit 5 is provided which can generate another register number from the value of the register designation field in the instruction code and the contents of the modification register 4. The register number generation circuit 5 is preferably an exclusive OR, but other types may be used.
ダブル・ワード・アクセス命令のレジスタ指定フィール
ドの値と修飾レジスタ4の値は、レジスタ番号生成回路
5に入力される。レジスタ番号生成回路5は、これらの
入力に基づいてレジスタ番号を生成する。ダブル・ワー
ド・アクセス命令の対象となる2個のレジスタのうち1
個のレジスタの番号はダブル・ワード・アクセス命令の
レジスタ指定フィールドの値によって指定され、もう1
個のレジスタの番号はレジスタ番号生成回路5の出力に
より指定される。The value of the register designation field of the double word access instruction and the value of the modification register 4 are input to the register number generation circuit 5. The register number generation circuit 5 generates register numbers based on these inputs. One of the two registers targeted by the double word access instruction
The number of registers is specified by the value of the register specification field of the double word access instruction, and
The number of each register is designated by the output of the register number generation circuit 5.
第2図は本発明の1実施例のプロ・ンク図である。 FIG. 2 is a diagram of one embodiment of the present invention.
同図において、1は命令コード中のレジスタ指定フィー
ルド、2−1と2−2はレジスタの2個のポート、3−
1と3−2は各ポートへのアドレス入力信号、4は修飾
レジスタ、5はレジスタ番号生成回路をそれぞれ示す。In the figure, 1 is a register specification field in the instruction code, 2-1 and 2-2 are two ports of the register, and 3-
1 and 3-2 are address input signals to each port, 4 is a modification register, and 5 is a register number generation circuit, respectively.
レジスタの集合として、例えば2ポートのレジスタ・フ
ァイルを使用することが出来る。レジスタ指定フィール
ド1の内容はそのままポート2−1へのアドレス人力3
−1になる。レジスタ番号生成回路5には、レジスタ指
定フィールド1の値と修飾レジスタ4の値とが入力され
る。アドレス人力3−2は、レジスタ番号生成回路5か
ら出力される信号である。For example, a two-port register file can be used as a set of registers. The contents of register specification field 1 remain as they are, and address 3 is sent to port 2-1.
It becomes -1. The value of the register designation field 1 and the value of the modification register 4 are input to the register number generation circuit 5. The address input 3-2 is a signal output from the register number generation circuit 5.
修飾レジスタ4はレジスタ指定フィールド1と同じビッ
ト幅を持つ。例えば、レジスタ指定フィールド1と修飾
レジスタ4の対応するビット同士がレジスタ番号生成回
路5において何らかの演算を施されてアドレス人力3−
2になる。修飾レジスタ4の値は、プログラムによって
設定可能である。レジスタ番号生成回路5で行う演算の
例として排他的論理和を考える。修飾レジスタ4の第i
ビットが“1”であると仮定すると、レジスタ指定フィ
ールド1のビット列の中の第iビットの値は反転される
。仮に、修飾レジスタ4の最下位ビットだけを“1°゛
にしておけば、従来の技術で述べた奇数・偶数方式と同
じになる。Qualification register 4 has the same bit width as register specification field 1. For example, corresponding bits of register designation field 1 and modification register 4 are subjected to some operation in register number generation circuit 5, and address input 3-
It becomes 2. The value of the modification register 4 can be set by a program. As an example of the operation performed by the register number generation circuit 5, consider exclusive OR. i-th of modification register 4
Assuming that the bit is "1", the value of the i-th bit in the bit string of register designation field 1 is inverted. If only the least significant bit of the modification register 4 is set to "1", it will be the same as the odd/even system described in the prior art.
第3図はレジスタ番号生成回路5の構成例を示すブロッ
ク図である。同図において、5−1は選択フラグ、5−
2は演算部をそれぞれ示している。FIG. 3 is a block diagram showing an example of the configuration of the register number generation circuit 5. As shown in FIG. In the same figure, 5-1 is a selection flag, 5-
2 indicates a calculation unit.
演算部5−2は、例えば、排他的論理和、論理積、論理
和、否定、加算、減算などの機能を持つものである。そ
の内の何れの演算を行うかは、選択フラグ5−1によっ
て選択される。選択フラグ5−1の値は、プログラムに
よって設定可能になっている。The arithmetic unit 5-2 has functions such as exclusive OR, logical product, logical sum, negation, addition, and subtraction, for example. Which of these calculations is to be performed is selected by the selection flag 5-1. The value of the selection flag 5-1 can be set by a program.
以上の説明から明らかなように、本発明によれば、ダブ
ル・ワード・アクセス命令において対象となる2個のレ
ジスタ番号の指定を従来よりも柔軟に行うことが可能と
なる。これによって限られたレジスタ資源を効率的に使
用することが可能となり、プログラムの品質向上に寄与
するところが大である。As is clear from the above description, according to the present invention, it is possible to designate two target register numbers in a double word access instruction more flexibly than before. This makes it possible to use limited register resources efficiently, which greatly contributes to improving the quality of programs.
第1図は本発明の原理説明図、第2図は本発明の1実施
例のブロック図、第3図は本発明のレジスタ番号生成回
路の構成例を示すプロ′ツク図である。
l・・・命令コード中のレジスタ指定フィールド、2−
1と2−2・・・レジスタの2個のポート、3−1と3
−2・・・各ポートへのアドレス入力信号、4・・・修
飾レジスタ、5・・・レジスタ番号生成回路、5−1・
・・選択フラグ、5−2・・・演算部。FIG. 1 is a diagram illustrating the principle of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, and FIG. 3 is a block diagram showing an example of the configuration of a register number generation circuit of the present invention. l...Register specification field in instruction code, 2-
1 and 2-2... Two ports of register, 3-1 and 3
-2...Address input signal to each port, 4...Modification register, 5...Register number generation circuit, 5-1.
...Selection flag, 5-2...Arithmetic unit.
Claims (1)
、 命令によって書き換え可能な修飾レジスタ(4)と、ダ
ブル・ワード・アクセス命令の命令コードのレジスタ指
定フィールドの値と修飾レジスタ(4)の値とに基づい
てレジスタ番号を出力するレジスタ番号生成回路(5)
と を設け、 ダブル・ワード・アクセス命令の対象となる2個のレジ
スタ番号のうちの1個をダブル・ワード・アクセス命令
の命令コードのレジスタ指定フィールドの値によって指
定し、もう1個のレジスタの番号をレジスタ指定番号生
成回路(5)の出力により指定する ことを特徴とするダブル・ワード・アクセス命令のレジ
スタ指定方式。[Claims] In a computer having a double word access instruction, a modification register (4) that can be rewritten by the instruction, and a value of a register specification field of an instruction code of the double word access instruction and a modification register (4). A register number generation circuit (5) that outputs a register number based on the value of
One of the two register numbers targeted by the double word access instruction is specified by the value of the register specification field of the instruction code of the double word access instruction, and the number of the other register is specified by the value of the register specification field of the instruction code of the double word access instruction. A register designation method for double word access instructions characterized in that a number is designated by the output of a register designation number generation circuit (5).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP32899489A JPH03189728A (en) | 1989-12-19 | 1989-12-19 | Register designating system for double word access instruction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP32899489A JPH03189728A (en) | 1989-12-19 | 1989-12-19 | Register designating system for double word access instruction |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03189728A true JPH03189728A (en) | 1991-08-19 |
Family
ID=18216419
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP32899489A Pending JPH03189728A (en) | 1989-12-19 | 1989-12-19 | Register designating system for double word access instruction |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03189728A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2930612A3 (en) * | 2014-04-11 | 2015-11-25 | Fujitsu Limited | Rotating register file with bit expansion support |
-
1989
- 1989-12-19 JP JP32899489A patent/JPH03189728A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2930612A3 (en) * | 2014-04-11 | 2015-11-25 | Fujitsu Limited | Rotating register file with bit expansion support |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4943916A (en) | Information processing apparatus for a data flow computer | |
KR950012256A (en) | Computer system for processing vector data and method thereof | |
KR100227277B1 (en) | Computer methods for writing a sclar value to a vector | |
JPH0431411B2 (en) | ||
JPH06111022A (en) | Raster operation device | |
JP4860891B2 (en) | Method and apparatus for connecting a mass parallel processor array to a memory array by bit sequential techniques | |
JPH10161871A (en) | Processor | |
JPH0379736B2 (en) | ||
JPH03189728A (en) | Register designating system for double word access instruction | |
JPS59114677A (en) | Vector processor | |
JP2657947B2 (en) | Data processing device | |
JPS6186839A (en) | Arithmetic processor | |
JPH0625966B2 (en) | Micro program controller | |
JP2001202351A (en) | Simd type processor | |
JPH04184535A (en) | Parallel arithmetic units | |
JP2667810B2 (en) | Vector processing equipment | |
JPH0338613B2 (en) | ||
JPH03218526A (en) | Information processor | |
JPH033047A (en) | Memory with arithmetic function | |
JP2002324060A (en) | Data driven information processor | |
JPS6243775A (en) | Vector arithmetic unit | |
JPS63300288A (en) | Attribute control system | |
JPS62115527A (en) | Logical operation circuit | |
JPS62269235A (en) | Information processor | |
JPS62147545A (en) | Processing system for transfer instruction of information processor |