Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH077386B2 - Information processing equipment - Google Patents
[go: Go Back, main page]

JPH077386B2 - Information processing equipment - Google Patents

Information processing equipment

Info

Publication number
JPH077386B2
JPH077386B2 JP61274743A JP27474386A JPH077386B2 JP H077386 B2 JPH077386 B2 JP H077386B2 JP 61274743 A JP61274743 A JP 61274743A JP 27474386 A JP27474386 A JP 27474386A JP H077386 B2 JPH077386 B2 JP H077386B2
Authority
JP
Japan
Prior art keywords
vector
instruction
register
information processing
match
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.)
Expired - Lifetime
Application number
JP61274743A
Other languages
Japanese (ja)
Other versions
JPS63127369A (en
Inventor
岳 西川
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 JP61274743A priority Critical patent/JPH077386B2/en
Publication of JPS63127369A publication Critical patent/JPS63127369A/en
Publication of JPH077386B2 publication Critical patent/JPH077386B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Complex Calculations (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は任意のタイミングで書込み/読出し可能な複数
個のベクトルレジスタを有するベクトル演算の制御に関
し、特に命令で演算開始要素を指定する命令の動作起動
制御に関する。
Description: TECHNICAL FIELD The present invention relates to control of a vector operation having a plurality of vector registers writable / readable at arbitrary timing, and particularly to an instruction specifying an operation start element by an instruction. Regarding operation start control.

(従来の技術) 従来、読出し/書込みが任意のタイミングで実行できる
複数個のベクトルレジスタを備えた情報処理装置におい
ては、命令によつて指定された開始要素から順次、ベク
トル長レジスタによつて指定される要素数だけ演算が行
われる。この場合、先行する命令の演算結果の格納レジ
スタが後続命令の演算元レジスタになつているならば、
演算開始要素が第0要素(0オリジン:最初の要素を意
味する。)のときには、第3図(a)に示すように他の
演算と同様に先行する演算命令の最初の要素の演算結果
がベクトルレジスタに書込まれる。同時に、上記演算結
果が読出され、後続する命令に使用できるように後続命
令に対して起動がかけられる。しかし、演算開始要素が
第0要素ではないときには、第3図(b)に示すよう
に、先行演算命令によるベクトルレジスタへの演算結果
の書込みが終つたとき、すなわち先行演算命令が完了し
た時点で後続の命令に起動がかけられている。
(Prior Art) Conventionally, in an information processing apparatus having a plurality of vector registers that can be read / written at arbitrary timing, the start element designated by an instruction is sequentially designated by a vector length register. The number of elements to be calculated is calculated. In this case, if the storage register of the operation result of the preceding instruction is the operation source register of the subsequent instruction,
When the operation start element is the 0th element (0 origin: means the first element), the operation result of the first element of the preceding operation instruction is the same as the other operation as shown in FIG. Written to vector register. At the same time, the operation result is read out, and the subsequent instruction is activated so that it can be used for the subsequent instruction. However, when the operation start element is not the 0th element, as shown in FIG. 3 (b), when the operation result is completely written to the vector register by the preceding operation instruction, that is, when the preceding operation instruction is completed. The subsequent instruction is being activated.

上記動作では、後続命令の演算元要素に先行命令の演算
結果が格納されてから演算を実行することを保証するも
ので、演算開始要素が命令によつて指定され、命令によ
つて異なる不定値となるため、開始要素が第0要素以外
の場合には先行命令の完了を待つ必要があつた。
In the above operation, it is guaranteed that the operation result of the preceding instruction is stored in the operation source element of the subsequent instruction before the operation is executed. The operation start element is specified by the instruction, and the indefinite value that differs depending on the instruction. Therefore, when the start element is other than the 0th element, it is necessary to wait for the completion of the preceding instruction.

(発明が解決しようとする問題点) 上述した従来の情報処理装置は第3図(b)からも容易
に理解されるように、演算開始要素が0以外の場合に
は、命令実行の順序性を保証するため、演算元レジスタ
へ演算結果を格納する先行命令が完全に終了するのを待
つて演算を開始するように制御している、ところが、各
ベクトル要素の観点からは、既に先行演算結果が格納さ
れ、後続命令による演算が可能となつている要素につい
ても、先行演算の実行が完了するまで待たされるため、
性能の向上が妨げられると云う欠点がある。
(Problems to be Solved by the Invention) As can be easily understood from FIG. 3 (b), the above-described conventional information processing apparatus has a sequence of instruction execution when the operation start element is other than 0. In order to guarantee the above, the control is performed so as to start the operation after waiting for the preceding instruction that stores the operation result in the operation source register to be completely completed. Is stored, and even for the elements that can be operated by the subsequent instructions, it is waited until the execution of the preceding operation is completed.
There is a drawback that the improvement of performance is hindered.

本発明の目的は、任意のタイミングで読出し/書込みが
可能な複数のベクトルレジスタ、ベクトルレジスタから
のデータを受けて演算し、演算結果を命令により指定さ
れたベクトルレジスタに順次書込むためのベクトル演算
器、およびデータ転送パスを備え、命令で指定されたベ
クトルレジスタの任意のベクトル要素から演算を開始す
ることができ、且つ、後続命令で指定した演算開始要素
に先行命令の演算結果が書込まれたことを検出し、書込
みが検出された場合には直ちに後続命令の動作を開始す
ることにより上記欠点を除去し、先行演算の実行が完了
するまで待つ必要がないように構成した情報処理装置を
提供することにある。
An object of the present invention is to perform a vector operation for receiving a plurality of vector registers which can be read / written at arbitrary timings, data from the vector register and performing an operation and sequentially writing the operation result to a vector register designated by an instruction. And a data transfer path, the operation can be started from any vector element of the vector register specified by the instruction, and the operation result of the preceding instruction is written to the operation start element specified by the subsequent instruction. It is possible to eliminate the above-mentioned drawbacks by immediately starting the operation of the subsequent instruction when a write is detected, and to eliminate the need to wait until the execution of the preceding operation is completed. To provide.

(問題点を解決するための手段) 本発明による情報処理装置は、任意のタイミングでベク
トルデータの読出し/書込みが可能な複数のベクトルレ
ジスタと、前記複数のベクトルレジスタに前記ベクトル
データを順次書込むためのベクトル演算器と、該当する
命令で指定されたベクトルレジスタに格納された任意の
ベクトル要素から演算を開始するためのデータ転送パス
を備えた情報処理装置において、先行するベクトル命令
が使用する演算器のマシンサイクル数とベクトル要素数
との加算値をセットし、前記マシンサイクル毎に前記加
算値のカウントダウンを行い、この値と後続命令で指定
された演算開始要素番号との一致を検出する一致検出手
段を設け、前記一致検出手段が一致を検出したとき、直
ちに前記後続命令の実行を開始させるように命令起動制
御を行う制御部を具備したものである。
(Means for Solving Problems) An information processing apparatus according to the present invention sequentially writes the vector data to a plurality of vector registers capable of reading / writing vector data at arbitrary timings and the plurality of vector registers. In the information processing device having a vector arithmetic unit for data processing and a data transfer path for starting an arithmetic operation from an arbitrary vector element stored in the vector register designated by the corresponding instruction, the arithmetic operation used by the preceding vector instruction Matching value is set by setting the added value of the machine cycle number and the number of vector elements of the device, counting down the added value for each machine cycle, and detecting the match between this value and the operation start element number specified by the subsequent instruction. A detection means is provided, and when the match detection means detects a match, the execution of the subsequent instruction is immediately started. As described above, a control unit for performing instruction activation control is provided.

(実 施 例) 次に、本発明について図面を参照して説明する。(Example) Next, the present invention will be described with reference to the drawings.

第1図は、本発明による情報処理装置の一実施例を示す
ブロツク図である。第1図において、11,12……1nはそ
れぞれ任意のタイミングでベクトルデータの読出し/書
込みが可能な複数のベクトルレジスタ、21……2nはベク
トルレジスタ11,12……1nに格納されているベクトルデ
ータを順次読出し、演算を実行し、命令で指定されたベ
クトルレジスタ11,12……1nに格納するための演算器、
3はベクトルレジスタ間でベクトルデータを転送するた
めのデータ転送パス、4は上記構成要素を動作させる命
令の起動を制御するための制御部である。制御部4にお
いて、41は命令を一時格納するための命令レジスタ、42
はベクトル命令を実行する際のベクトル長を指定するた
めのベクトル長レジスタ、43は命令レジスタ41に保持さ
れている命令情報を解読し、この命令がベクトルデータ
の一要素を処理するのに必要なマシンサイクル数(fut:
Function Unit Time)を出力するための命令解読部、44
はfutとベクトル長レジスタ42から読出されたベクトル
長の値(vl:Vector Length)とを加算するための加算
器、46はベクトルレジスタと一対一に対応し、ベクトル
レジスタへのベクトルデータの書込みを実行する命令に
起動をかける際、上記加算結果をセツトし、その後、マ
シンサイクルごとにカウントダウンを続け、ベクルレジ
スタの書込みビジーフラグをリセツトするタイミングを
検出するタイミングを検出するためのカウンタ、45はベ
クトル長レジスタ42から読出されたベクトル長の値(v
l)と、命令レジスタ41から読出されたベクトル開始要
素syとの差を計算するための減算器、47はカウンタ46の
値が減算器45の出力値に等しいか、あるいは小さい場合
に検出出力を送出するための一致検出回路である。
FIG. 1 is a block diagram showing an embodiment of an information processing apparatus according to the present invention. In FIG. 1, 11, 12 ... 1n are a plurality of vector registers capable of reading / writing vector data at arbitrary timings, and 21 ... 2n are vectors stored in the vector registers 11, 12 ... 1n. An arithmetic unit for sequentially reading out data, executing an arithmetic operation, and storing it in the vector register 11, 12 ... 1n designated by the instruction,
Reference numeral 3 is a data transfer path for transferring vector data between the vector registers, and 4 is a control unit for controlling activation of an instruction for operating the above-mentioned components. In the control unit 4, 41 is an instruction register for temporarily storing an instruction, 42
Is a vector length register for specifying the vector length when executing a vector instruction, 43 is the instruction information held in the instruction register 41, and this instruction is necessary for processing one element of vector data. Machine cycle count (fut:
Function Unit Time) output instruction decoding unit, 44
Is an adder for adding fut and the vector length value (vl: Vector Length) read from the vector length register 42, and 46 is a one-to-one correspondence with the vector register, and writes vector data to the vector register. When the instruction to be executed is activated, the above addition result is set, then the countdown is continued for each machine cycle, and the counter for detecting the timing for resetting the write busy flag of the Vecule register, 45 is the vector length register The value of the vector length read from 42 (v
l) and a vector start element sy read from the instruction register 41, a subtracter 47 calculates a detection output when the value of the counter 46 is equal to or smaller than the output value of the subtractor 45. It is a coincidence detection circuit for sending.

一致検出手段は、加算器44,減算器45,減算カウンタ46お
よび一致検出回路47よりなる部分に対応する。
The coincidence detecting means corresponds to a portion including the adder 44, the subtractor 45, the subtraction counter 46, and the coincidence detecting circuit 47.

次に、第1図の実例を参照して本発明の動作について説
明する。
Next, the operation of the present invention will be described with reference to the example of FIG.

いま、V2←V0+V1,V3←V2(sy)と云う演算を実行する
ものとする。すなわち、V0とV1とに格納されたベクトル
データを要素0からベクトル長レジスタ42によつて示さ
れる要素数だけ加算してV2に格納し、V2のベクトルデー
タを要素syから順にベクトル長レジスタ42によつて示さ
れる要素数だけV3に転送する動作を実行するものとす
る。
Now, it is assumed that the calculation of V2 ← V0 + V1, V3 ← V2 (sy) is executed. That is, the vector data stored in V0 and V1 are added to the vector length register 42 from the element 0 by the number of elements indicated by the vector length register 42, and stored in V2. The operation of transferring to V3 by the number of elements indicated by the above shall be executed.

第2図は、上記第1図の実例を実行するタイムチヤート
である。時刻t0では、加算器44から出力されているvl+
futの値を減算カウンタ46にセツトし、同時に先行命令V
2←V0+V1に起動をかける。その後、1マシンサイクル
ごとにカウンタ46の値をカウントダウンしながら、V2←
V0+V1の演算を要素0から順に1要素ずつ実行する。時
刻t1、すなわち演算開始から(fut+sy)マシンサイク
ルの後には、減算カウンタ46の値は(fut+vl)−(fut
+sy)=vl−syとなり、減算器45からの出力結果と等し
くなつて一致検出回路47によつて一致を検出する。この
一致信号によつて、後続する転送命令V3←V2(sy)に起
動をかけるようにする。
FIG. 2 is a time chart for executing the example of FIG. At time t 0 , vl + output from the adder 44
The value of fut is set in the subtraction counter 46, and at the same time the preceding instruction V
2 ← Activate V0 + V1. After that, while counting down the value of the counter 46 for each machine cycle, V2 ←
The operation of V0 + V1 is executed one element at a time starting from element 0. At time t 1 , that is, after the (fut + sy) machine cycles from the start of the calculation, the value of the subtraction counter 46 is (fut + vl) − (fut
+ Sy) = vl-sy, and the output of the subtractor 45 is equalized, and the coincidence detection circuit 47 detects the coincidence. This match signal activates the subsequent transfer instruction V3 ← V2 (sy).

これにより、先行演算命令の要素syの結果が目的のレジ
スタV2に書込まれるタイミングで、同要素を読出して転
送先レジスタV3への転送を開始することができる。
As a result, at the timing when the result of the element sy of the preceding operation instruction is written in the target register V2, the element can be read and the transfer to the transfer destination register V3 can be started.

(発明の効果) 以上説明したように本発明は、先行演算命令の実行結果
の演算を後続命令で指定された演算開始位置から開始す
るに際して命令の順序性を保証するため、演算開始要素
に先行演算の結果が書込まれた時点で後続命令を開始す
ることができるように制御することにより、命令起動時
の無駄な待合せを減少させて、ベクトル処理効率を向上
させることができると云う効果がある。
(Effect of the invention) As described above, according to the present invention, when the operation of the execution result of the preceding operation instruction is started from the operation start position designated by the subsequent instruction, the order of the instructions is guaranteed, and therefore the operation start element is preceded by the operation start element. By controlling so that the subsequent instruction can be started at the time when the result of the operation is written, it is possible to reduce wasteful waiting at the time of activating an instruction and improve the vector processing efficiency. is there.

【図面の簡単な説明】[Brief description of drawings]

第1図は、本発明による情報処理装置の一実施例を示す
ブロツク図である。 第2図は、第1図の実施例の動作を示すタイムチヤート
である。 第3図は、従来技術による先行命令の演算結果を要素
0、またはsyから開始して転送する動作を説明するタイ
ムチヤートである。 11,12,1n……ベクトルレジスタ 21,2n……演算器 3……ベクトルデータ転送パス 4……ベクトル命令制御部 41……命令レジスタ 42……ベクトル長レジスタ 43……命令デコーダ 44……加算器 45……減算器 46……減算カウンタ 47……一致検出回路
FIG. 1 is a block diagram showing an embodiment of an information processing apparatus according to the present invention. FIG. 2 is a time chart showing the operation of the embodiment shown in FIG. FIG. 3 is a time chart for explaining the operation of transferring the operation result of the preceding instruction according to the prior art starting from element 0 or sy. 11,12,1n …… Vector register 21,2n …… Calculator 3 …… Vector data transfer path 4 …… Vector instruction control unit 41 …… Instruction register 42 …… Vector length register 43 …… Instruction decoder 44 …… Addition Unit 45 …… Subtractor 46 …… Subtraction counter 47 …… Match detection circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】任意のタイミングでベクトルデータの読出
し/書込みが可能な複数のベクトルレジスタと、 前記複数のベクトルレジスタに前記ベクトルデータを順
次書込むためのベクトル演算器と、 該当する命令で指定されたベクトルレジスタに格納され
た任意のベクトル要素から演算を開始するためのデータ
転送パスを備えた情報処理装置において、 先行するベクトル命令が使用する演算器のマシンサイク
ル数とベクトル要素数との加算値をセットし、前記マシ
ンサイクル毎に前記加算値のカウントダウンを行い、こ
の値と後続命令で指定された演算開始要素番号との一致
を検出する一致検出手段を設け、 前記一致検出手段が一致を検出したとき、直ちに前記後
続命令の実行を開始させるように命令起動制御を行う制
御部を具備したことを特徴とする情報処理装置。
1. A plurality of vector registers capable of reading / writing vector data at an arbitrary timing, a vector arithmetic unit for sequentially writing the vector data in the plurality of vector registers, and designated by a corresponding instruction. In an information processing device equipped with a data transfer path for starting an operation from an arbitrary vector element stored in a vector register, the added value of the machine cycle number of the arithmetic unit used by the preceding vector instruction and the number of vector elements Is set, count-down of the added value is performed for each machine cycle, and a match detection unit for detecting a match between this value and the operation start element number designated by the subsequent instruction is provided, and the match detection unit detects a match. When it does, it is equipped with a control unit for performing instruction activation control so as to immediately start the execution of the subsequent instruction. A characteristic information processing device.
JP61274743A 1986-11-18 1986-11-18 Information processing equipment Expired - Lifetime JPH077386B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61274743A JPH077386B2 (en) 1986-11-18 1986-11-18 Information processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61274743A JPH077386B2 (en) 1986-11-18 1986-11-18 Information processing equipment

Publications (2)

Publication Number Publication Date
JPS63127369A JPS63127369A (en) 1988-05-31
JPH077386B2 true JPH077386B2 (en) 1995-01-30

Family

ID=17545969

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61274743A Expired - Lifetime JPH077386B2 (en) 1986-11-18 1986-11-18 Information processing equipment

Country Status (1)

Country Link
JP (1) JPH077386B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58134365A (en) * 1982-02-03 1983-08-10 Hitachi Ltd Vector processor

Also Published As

Publication number Publication date
JPS63127369A (en) 1988-05-31

Similar Documents

Publication Publication Date Title
US5043868A (en) System for by-pass control in pipeline operation of computer
EP0213842A2 (en) Mechanism for performing data references to storage in parallel with instruction execution on a reduced instruction-set processor
JPS58149541A (en) Data processing device
US3480917A (en) Arrangement for transferring between program sequences in a data processor
JPH077386B2 (en) Information processing equipment
US4566062A (en) Timing control system in data processor
JPS5731049A (en) Information processing equipment
JPS6236575B2 (en)
JPS5890247A (en) Pipeline controlling system of information processor
JPS6120893B2 (en)
JPH0326862B2 (en)
JP3011166B2 (en) Debug circuit
JPH06103495B2 (en) Information processing equipment
JP3084953B2 (en) Information processing device
JPS6134188B2 (en)
JPS595932B2 (en) Data processing method
JPH06103493B2 (en) Information processing equipment
JPS63214856A (en) Data protection control system for data processing unit
JPS61143850A (en) Processor
US5050073A (en) Microinstruction execution system for reducing execution time for calculating microinstruction
JPH01147723A (en) Pipe line processing system for information processor
JPH0424731B2 (en)
JPS61187044A (en) Information processor
JPS63197233A (en) Information processor
JPH0243626A (en) Apparatus for controlling execution speed of computer processor