JPS6359664A - Information processor - Google Patents

Information processor

Info

Publication number
JPS6359664A
JPS6359664A JP20265786A JP20265786A JPS6359664A JP S6359664 A JPS6359664 A JP S6359664A JP 20265786 A JP20265786 A JP 20265786A JP 20265786 A JP20265786 A JP 20265786A JP S6359664 A JPS6359664 A JP S6359664A
Authority
JP
Japan
Prior art keywords
instruction
vector
register
output
vector register
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.)
Granted
Application number
JP20265786A
Other languages
Japanese (ja)
Other versions
JPH06103493B2 (en
Inventor
Takeshi Nishikawa
西川 岳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP61202657A priority Critical patent/JPH06103493B2/en
Publication of JPS6359664A publication Critical patent/JPS6359664A/en
Publication of JPH06103493B2 publication Critical patent/JPH06103493B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/80Architectures of general purpose stored program computers comprising an array of processing units with common control, e.g. single instruction multiple data processors
    • G06F15/8053Vector processors

Abstract

PURPOSE:To immediately start a following instruction when read start elements are not superposed so as to reduce a useless waiting by providing a means which detects that the region on a vector register for a leading instruction and the read start element on the vector register for the following instruction are not superposed. CONSTITUTION:A comparator 16 compares the sizes of a storage start number n1 with operated data read start number n2 and an overflow detection circuit 15 detects whether n1+vL (vector length) exceeds a maximum vector length (MaxVL). When the output from the comparator 16 is n2<n1, and the output from the overflow detection circuit 15 is n1+vL>MaxVL, if the output from an adder 14 is the residual of a divisional formula such as dividing n1+vL by MaxVL, that is, [n1+VL]modMaxVL<n2, a following instruction starting signal is transmitted.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置に関し、任意のタイミングで書込
み読出し可能なベクトルレジスタヲ複数個備える情報処
理装置における村りトル演算の制御、特に演算開始要素
を指定する命令の動作起動制御に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an information processing device, and more particularly, to control of village calculations in an information processing device equipped with a plurality of vector registers that can be written to and read from at any timing. Related to operation activation control of commands that specify elements.

〔従来の技術〕[Conventional technology]

従来、読出し書込みが任意のタイミングで実行できるベ
クトルレジスタ金複数個備えた情報処理装置において、
命令で指定した開始要素から順次ベクトル長しノスタで
指定される要素数だけ演算を行なう際、先行する命令に
よる演算結果の格納レジスタが後続命令の演算光レジス
タに力っていると、後続命令による演算の演算開始要素
が第0要素(0オリジン、最初の要素を意味する)の場
合。
Conventionally, in an information processing device equipped with a plurality of vector registers that can be read and written at any timing,
When calculating the vector length sequentially from the start element specified by the instruction and calculating the number of elements specified by the nostar, if the storage register of the calculation result by the preceding instruction is input to the calculation light register of the subsequent instruction, the calculation result by the subsequent instruction When the operation start element of the operation is the 0th element (0 origin, meaning the first element).

第4図(a)に示すように先行する演算命令における最
初の要素の演算結果が4クトルレジスタに書かれると同
時にこの演算結果を読出して後続の命令に使用できるよ
う後続命令に対して起動をかける。
As shown in FIG. 4(a), the operation result of the first element in the preceding operation instruction is written to the 4-bit register, and at the same time this operation result is read out and activated for the subsequent instruction so that it can be used in the subsequent instruction. put on.

一方、演算開始要素が第O要素でない場合、第4図(b
)に示すように先行演算命令によるベクトルレジスタの
書込みが終った時、すなわち先行演算命令が完了した時
点で後続の命令の起動をかけている。この場合、後続命
令の演算器要素に先行命令の演算結果が格納されてから
演算全実行することを保証するものである。このように
、演算開始要素が命令で指定された不定値(命令によっ
て異なる)でちるため、開始要素が第0要素以外の場合
は、先行命令の完了を待つ必要がある。
On the other hand, if the calculation start element is not the O-th element, then
), the subsequent instruction is activated when the writing of the vector register by the preceding operation instruction is completed, that is, when the preceding operation instruction is completed. In this case, it is guaranteed that all operations are executed after the operation result of the preceding instruction is stored in the arithmetic unit element of the subsequent instruction. In this way, since the operation start element is an undefined value (varies depending on the instruction) specified by the instruction, if the start element is other than the 0th element, it is necessary to wait for the completion of the preceding instruction.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

このように、上述した従来の情報処理装置では。 In this way, in the conventional information processing apparatus described above.

演算開始要素が第0要素以外の場合は、命令実行の順序
性全保証するため、演算器レジスタへ演算結果を格納す
る先行扁令が完全に終了するのを待って、演算を開始す
るよう制御している。
If the operation start element is other than the 0th element, in order to fully guarantee the order of instruction execution, control is performed so that the operation is started after waiting for the preceding instruction that stores the operation result in the operation unit register to be completely completed. are doing.

ところが上述のように制御すると、先行命令に゛よるレ
ジスタの内容の書き換えが後続命令の演算に影響企及ぼ
さない場合、つまシ命令の順序性とは無関係の場合にも
、先行命令の終了を待ち合わせるため、イクトル処理性
能の向上を妨げる一要因と力ってしまうという問題点が
ある。
However, when controlling as described above, if the rewriting of register contents by the preceding instruction does not affect the operation of the succeeding instruction, even if it is unrelated to the order of the preceding instruction, the completion of the preceding instruction is waited for. Therefore, there is a problem that this becomes a factor that hinders the improvement of vector processing performance.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は複数のベクトルレジスタと、該ベクトルレジス
タからのデータを受けて、所定の演算を行い、該演算結
果全命令で指定した前記ベクトルレジスタに預次書き込
むベクトル演算器とを有し。
The present invention includes a plurality of vector registers, and a vector arithmetic unit that receives data from the vector registers, performs a predetermined operation, and deposits the results of the operation into the vector register specified by all instructions.

命令で指定したベクトルレジスタの任意のベクトル要素
から演算を開始することができるようにした情報処理装
置において、先行命令による演算結果が書き込まれるベ
クトルレジスタと、後続命令による演算の際、データが
読み出されるベクトルレジスタが同一の場合、上記の先
行命令による演算結果が書き込まれるベクトルレジスタ
上の領域と上記の後続命令による演算の際、データが読
み出されるベクトルレジスタ上の読み出し開始要素が重
力ら力いことを検出する検出手段を備え、この検出手段
で上記の領域と読み出し開始要素との重なシが検出され
ない場合、上記の後続命令による演算を直ちに開始する
ようにしたことを特徴としている。
In an information processing device that allows an operation to be started from any vector element of a vector register specified by an instruction, there is a vector register in which the results of the operation by the preceding instruction are written, and a vector register from which data is read during the operation by the subsequent instruction. If the vector registers are the same, there is a gravitational force between the area on the vector register where the operation result by the above preceding instruction is written and the read start element on the vector register from which data is read during the operation by the above subsequent instruction. The present invention is characterized in that it includes a detecting means for detecting, and if the detecting means does not detect an overlap between the above-mentioned area and the read start element, the operation according to the above-mentioned subsequent instruction is immediately started.

〔実施例〕〔Example〕

以下本発明について実施例によって説明する。 The present invention will be explained below with reference to Examples.

第1図は本発明による情報処理装置の一実施例を示すブ
ロック図、第2図は本発明に用いられる制御部の一実施
例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of an information processing apparatus according to the present invention, and FIG. 2 is a block diagram showing an embodiment of a control section used in the present invention.

まず、第1図を参照して1本発明による情報処理装置は
複数のベクトルレジスタ1a〜In、複数の演算器2a
〜2n+及び制御部3を備えており。
First, referring to FIG. 1, an information processing apparatus according to the present invention includes a plurality of vector registers 1a to In, a plurality of arithmetic units 2a
~2n+ and a control section 3.

ベクトルレジスタ18〜1nはデータ転送パス4を介し
て演算器2a〜2nに接続されている。上記の制御部3
は後述する後続命令起動可能信号を送出する。
Vector registers 18-1n are connected to arithmetic units 2a-2n via data transfer path 4. The above control unit 3
sends out a subsequent instruction activation enable signal, which will be described later.

第2図を参照して、制御部の構成について説明する。1
1は演算起動がかけられるかどうか全判定すべき命令全
保持する命令レジスタ、12は命令レジスター1に保持
された命令のベクトル長データを保持するベクトル長レ
ジスタ(VL) 、 13はすでに演算起動がかけられ
実行中のベクトル命令の演算結果格納開始要素番号を格
納するレジスタ。
The configuration of the control section will be explained with reference to FIG. 1
1 is an instruction register that holds all instructions to be determined whether or not an operation is started; 12 is a vector length register (VL) that holds the vector length data of the instruction held in instruction register 1; A register that stores the starting element number for storing the operation results of the vector instruction that is being multiplied and executed.

14はレジスター3に格納されている実行中のベクトル
命令の演算結果格納開始要素番号n1とそのベクトル命
令のベクトル長vLとの最大ベクトル長を法とする利金
計算する加算器、15は加算器14のオーバーフロー検
出回路で、このオーバーフロー検出回路15は上記のn
1+vLが最大ベクトル長(Max VL) f超えて
いることを検出する手段として用いる。16及び17は
比較回路で、それぞれ(起動をかけようとしている命令
の演算データ読み出し開始番号n2) > (実行中の
命令演算結果格納開始要素番号J )及びnl +vL
<nz ffi検出する。18は組み合わせ回路で、オ
ーバーフロー検出回路15.比較回路16及び17から
の信号を受け、後続命令の起動可能条件を検出し、後続
命令起動可能信号を出力する。
14 is an adder that calculates an interest rate modulo the maximum vector length between the calculation result storage start element number n1 of the vector instruction being executed stored in register 3 and the vector length vL of the vector instruction; 15 is an adder 14 overflow detection circuits, and this overflow detection circuit 15 is the above-mentioned n
It is used as a means to detect that 1+vL exceeds the maximum vector length (Max VL) f. 16 and 17 are comparison circuits, respectively (calculation data read start number n2 of the instruction about to be activated) > (computational result storage start element number J of the instruction being executed) and nl +vL
<nz ffi detected. 18 is a combinational circuit, which includes an overflow detection circuit 15. It receives the signals from the comparison circuits 16 and 17, detects the activation enable condition for the subsequent instruction, and outputs the subsequent instruction activation enable signal.

ここで、演算結果格納開始要素n11ベクトル長vLの
ベクトル命令が先行して実行されており、その後、続い
て演算データ読み出し開始要素番号n2の宿今金実行す
る場合について説明する。
Here, a case will be described in which a vector instruction with an operation result storage start element n11 and a vector length vL is executed first, and then a calculation data read start element number n2 is executed.

まず、演算結果格納開始要素番号n1 +ベクトル長v
Lのベクトル命令が命令保持レジスタ11に格納されて
、演算の起動がかけられ、演算が開始される。そして1
次のタイミングで上記の演算結果格納開始要素番号n、
はレジスタ13に移送、格納される。同時に演算データ
読み出し開始要素番号n2のベクトル命令が命令保持レ
ジスタ1工に格納される。そして、演算データ読み出し
開始要素番号n2のベクトル命令(後続ベクトル命令)
の演算起動が可能かどうかのチェックを行う。
First, calculation result storage start element number n1 + vector length v
The L vector instructions are stored in the instruction holding register 11, the operation is activated, and the operation is started. and 1
At the next timing, the above calculation result storage start element number n,
is transferred to and stored in the register 13. At the same time, the vector instruction with the calculation data read start element number n2 is stored in the instruction holding register 1. Then, the vector instruction with the calculation data read start element number n2 (subsequent vector instruction)
Check whether it is possible to start the calculation.

比較回路16では格納開始番号n1と演算データ読み出
し開始番号n2との大小が比較さn、オーバーフロー検
出回路15ではnl−1−vL(ベクトル長)が最大ベ
クトル長(Max ML ) k超えているかどうかを
検出する。また、比較回路17ではn1+vL(ベクト
ル長)と演算データ読み出し開始番号n2との大小が比
較される。上述のオーバーフロー検出回路15の検出結
果、比較回路16及び17の比較結果は組み合わせ回路
18に入力さnる。
The comparison circuit 16 compares the storage start number n1 and the calculated data readout start number n2, and the overflow detection circuit 15 compares whether nl-1-vL (vector length) exceeds the maximum vector length (Max ML) k. Detect. Further, the comparison circuit 17 compares n1+vL (vector length) with the calculated data read start number n2. The detection result of the overflow detection circuit 15 and the comparison result of the comparison circuits 16 and 17 described above are input to the combinational circuit 18.

組み合せ回路18では第3図(a) 、 (b)及び(
e)に示す条件が満さ九るかどうか全調べる。つまり、
第3図(a)に示すように比較回路16の出力がn2>
+g。
In the combinational circuit 18, FIGS. 3(a), (b) and (
Check whether the conditions shown in e) are satisfied. In other words,
As shown in FIG. 3(a), the output of the comparison circuit 16 is n2>
+g.

比較回路17の出力が11 +vL< 12  であれ
ば先行命令による演算結果が書き込まれる領域と後続命
令による演算のだめのデータが読み出される読み出し開
始要素とが重ならないとして組み合せ回路18は後続命
令起動可能信号を送出する。同様に。
If the output of the comparison circuit 17 is 11 +vL<12, it is assumed that the area where the operation result by the preceding instruction is written does not overlap with the read start element from which the data for the operation by the subsequent instruction is read, and the combinational circuit 18 issues a subsequent instruction activation enable signal. Send out. Similarly.

第3図(b)に示すように比較回路16の出力がn2<
nl 、オーバーフロー検出回路15の出力がnl−1
−vL≦MaxVLであれば9組み合せ回路18は後述
命令起動可能信号全送出する。
As shown in FIG. 3(b), the output of the comparison circuit 16 is n2<
nl, the output of the overflow detection circuit 15 is nl-1
If -vL≦MaxVL, the nine combinational circuit 18 sends out all command activation enable signals, which will be described later.

一方、第3図(C)に示すように、比較回路16の出力
がn2<nl、オーバーフロー検出回路15の出力がn
 1 + vL ) Max VLである場合、前述の
ようにオーバーフロー検出回路15からの出力はnl 
+vL>MaxVLであるから、加算器14の出力はn
1+vLf Max VLで割った余I)が出力される
。即ち。
On the other hand, as shown in FIG. 3(C), the output of the comparison circuit 16 is n2<nl, and the output of the overflow detection circuit 15 is n
1 + vL ) Max VL, the output from the overflow detection circuit 15 is nl as described above.
Since +vL>MaxVL, the output of the adder 14 is n
The remainder I) divided by 1+vLf Max VL is output. That is.

Cn 1 + VL ]。。dMaxVLが出力される
。従って2組み合せ回路18は比較回路17の出力が 〔”1+v”)mod MaxVL<n2であれば、後
続命令起動可能信号全送出する。
Cn 1 + VL]. . dMaxVL is output. Therefore, if the output of the comparison circuit 17 is ["1+v") mod MaxVL<n2, the two-combination circuit 18 sends out all subsequent instruction enable signals.

この後続命令起動可能信号によって演算データ読み出し
開始要素番号n2の命令に対して命令起動がかけらnる
This subsequent instruction activation enable signal causes the instruction activation to be applied to the instruction with the calculation data read start element number n2.

〔発明の効果〕〔Effect of the invention〕

以上説明したように2本発明では、先行命令が演算結果
全格納するベクトルレジスタを後続命令がデータ読み出
しレジスタとして使用する場合。
As explained above, in the second aspect of the present invention, a vector register in which a preceding instruction stores all operation results is used as a data read register by a subsequent instruction.

先行命令が演算結果を書き込むベクトルレジスタ上の領
域と後続命令が演算のだめのデータ音読み出すベクトル
レジスタ上の読み出し開始要素とが重ならないことを検
出する手段を設け、上記の領域と読み出し開始要素が重
ならないケースでは。
A means is provided for detecting that the area on the vector register where the preceding instruction writes the operation result and the read start element on the vector register where the subsequent instruction reads the data sound for the operation do not overlap, and the above area and the read start element overlap. In cases where it doesn't.

後続の命令を直ちに起動できるようにしだから。This allows subsequent instructions to be activated immediately.

4クトル命令起動時の無駄な待ち合せを減少させ。Reduced unnecessary waiting when starting 4 vector commands.

効率よい被りトル性能を実現でさるという効果がある。This has the effect of achieving efficient covering torque performance.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明による情報処理装置の要部を示すブロッ
ク図、第2図は第1図に示す制御部の一実施例を示すブ
ロック図、第3図(a) 、 (b)及び(C)はそれ
ぞれ制御部が後続命令起動可能信号を送出するケース′
f:、説明するための図、第4図(a)及び(b)は従
来の先行命令及び後続命令の起動について説明するだめ
の図である。 1a、1b、・・・、In・・・ベクトルレジスタ。 2 a +・・・、2n・・・演算器、3・・・制御部
、11・・・命令保持レジスタ、12・・・ベクトル長
保持レジスター。 13・・・演算結果格納開始要素番号保持レジスター。 14・・・加算器、15・・・オーバーフロー検出回路
。 16.17・・・比較器、18・・・組み合わせ回路。 後読命+起動可能 序3図
FIG. 1 is a block diagram showing main parts of an information processing apparatus according to the present invention, FIG. 2 is a block diagram showing an embodiment of the control section shown in FIG. 1, and FIGS. 3(a), (b) and ( C) is a case in which the control unit sends a subsequent command activation enable signal.'
Figure 4 (a) and (b) are diagrams for explaining the activation of conventional preceding and succeeding instructions. 1a, 1b,..., In... Vector register. 2 a +..., 2n... Arithmetic unit, 3... Control unit, 11... Instruction holding register, 12... Vector length holding register. 13...Arithmetic result storage start element number holding register. 14... Adder, 15... Overflow detection circuit. 16.17...Comparator, 18...Combination circuit. Look-ahead order + activation possible sequence 3 diagrams

Claims (1)

【特許請求の範囲】[Claims] 1、複数のベクトルレジスタと、該ベクトルレジスタか
らのデータを受けて、所定の演算を行い、該演算結果を
命令で指定した前記ベクトルレジスタに順次書き込むベ
クトル演算器とを有し、命令で指定したベクトルレジス
タの任意のベクトル要素から演算を開始することができ
るようにした情報処理装置において、先行命令による演
算結果が書き込まれるベクトルレジスタと、後続命令に
よる演算の際データが読み出されるベクトルレジスタが
同一の場合、前記先行命令による演算結果が書き込まれ
るベクトルレジスタ上の領域と、前記後続命令による演
算の際データが読み出されるベクトルレジスタ上の読み
出し開始要素とが重ならないことを検出する検出手段を
備え、該検出手段で前記領域と前記読み出し開始要素と
の重なりが検出されない場合、前記後続命令による演算
を直ちに開始するようにしたことを特徴とする情報処理
装置。
1. It has a plurality of vector registers and a vector arithmetic unit that receives data from the vector registers, performs predetermined operations, and sequentially writes the results of the operations to the vector registers specified by the instruction. In an information processing device in which an operation can be started from any vector element of a vector register, the vector register to which the operation result by the preceding instruction is written is the same as the vector register from which data is read during the operation by the subsequent instruction. In the case of the present invention, there is provided a detecting means for detecting that an area on the vector register into which the operation result by the preceding instruction is written does not overlap with a read start element on the vector register from which data is read during the operation by the subsequent instruction, An information processing apparatus characterized in that, if the detecting means does not detect an overlap between the area and the read start element, an operation by the subsequent instruction is immediately started.
JP61202657A 1986-08-30 1986-08-30 Information processing equipment Expired - Lifetime JPH06103493B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61202657A JPH06103493B2 (en) 1986-08-30 1986-08-30 Information processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61202657A JPH06103493B2 (en) 1986-08-30 1986-08-30 Information processing equipment

Publications (2)

Publication Number Publication Date
JPS6359664A true JPS6359664A (en) 1988-03-15
JPH06103493B2 JPH06103493B2 (en) 1994-12-14

Family

ID=16460978

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61202657A Expired - Lifetime JPH06103493B2 (en) 1986-08-30 1986-08-30 Information processing equipment

Country Status (1)

Country Link
JP (1) JPH06103493B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57206982A (en) * 1981-06-15 1982-12-18 Fujitsu Ltd Instruction controlling system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57206982A (en) * 1981-06-15 1982-12-18 Fujitsu Ltd Instruction controlling system

Also Published As

Publication number Publication date
JPH06103493B2 (en) 1994-12-14

Similar Documents

Publication Publication Date Title
JP2539199B2 (en) Digital processor controller
EP0223150B1 (en) Information processing apparatus
JPH04188229A (en) Floating-point arithmetic processing unit
EP0497485A2 (en) Computer for implementing two-operand instructions
JPS6359664A (en) Information processor
JPS6236575B2 (en)
JP2503223B2 (en) Prior control method
JP2636566B2 (en) Pipeline control method
JPH06139071A (en) Parallel computers
JPH10154072A (en) Pipeline processor
JPH0228828A (en) Maximum value and minimum value detecting circuit
JPH0248733A (en) Information processor
JP3475861B2 (en) Data processing device
JP2693930B2 (en) Vector processing equipment
JPH10320380A (en) Vector processor
JP2741717B2 (en) Vector processing equipment
JP2622026B2 (en) Register writing control method in central processing unit
JPH07113891B2 (en) Pipeline processing equipment
JP2583614B2 (en) Vector arithmetic unit
JPH0228724A (en) System for controlling branching instruction
JP3124361B2 (en) Memory data loading device
JPS63174173A (en) Information processor
JPS61143850A (en) Processor
JPS6149695B2 (en)
JPH02206836A (en) Data processor