JPH0315977A - Vector operation processor - Google Patents

Vector operation processor

Info

Publication number
JPH0315977A
JPH0315977A JP14968389A JP14968389A JPH0315977A JP H0315977 A JPH0315977 A JP H0315977A JP 14968389 A JP14968389 A JP 14968389A JP 14968389 A JP14968389 A JP 14968389A JP H0315977 A JPH0315977 A JP H0315977A
Authority
JP
Japan
Prior art keywords
register
vector
adder
multiplier
exception
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
Application number
JP14968389A
Other languages
Japanese (ja)
Inventor
Hisayoshi Kato
久佳 加藤
Hatataka Yamada
山田 秦任
Katsumi Hayashida
克己 林田
Seisuke Takeshima
竹島 靖祐
Toru Yoshida
亨 吉田
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.)
Hitachi Ltd
Hitachi Computer Engineering Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Computer Engineering Co Ltd
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 Hitachi Ltd, Hitachi Computer Engineering Co Ltd filed Critical Hitachi Ltd
Priority to JP14968389A priority Critical patent/JPH0315977A/en
Publication of JPH0315977A publication Critical patent/JPH0315977A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the efficiency of vector operation by providing a bypass processing means which bypasses on adder part and writes a multiplication result in a vector register when a multiplier part detects an index overflow exception. CONSTITUTION:An element control circuit 11 is removed, the adder 8 is bypassed by a selector 12 at the time of generating an arithmetic operation exception, and the output of a register 7 is stored in the register 9. Then, in case where the index overflow exception is detected by the multiplier 5, '1' meaning the index overflow exception is set in the register 10. When '1' is set in the register 10, the selector 12 inputs the stored contents of the register 7 directly to the register 9 by bypassing the adder 8 without sending them to the adder 8. Thus, data can be secured without disturbing the flow of a pipeline.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は乗算結果に対する加算結果をベクトルレジスタ
に書き込むためのベクトル演算処理技術、特に、乗算部
で指数オーバーフロー例外を発生した場合の処理を効率
的に行うために用いて効果のある技術に閲するものであ
る。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention provides a vector arithmetic processing technique for writing addition results to a multiplication result into a vector register, and in particular, efficient processing when an exponent overflow exception occurs in the multiplication section. This is a review of effective techniques that can be used to carry out specific tasks.

〔従来の技術〕[Conventional technology]

従来のパイプライン型のベクトル演算処理装置の一例と
しては第3図のブロック図に示されるようなものがある
An example of a conventional pipeline type vector processing device is shown in the block diagram of FIG.

このベクトル演算処理装置において、ベクトルレジスタ
(VR)1には、夫々オペランドが書き込まれるレジス
タ2、3、4が接続され、レジスタ3及び4には両者の
出力を乗算する乗算器5が接続されている。また、レジ
スタ2にはディレイレジスタ6が接続されている。乗算
器5には、その乗算結果を格納するレジスタ7が接続さ
れ、このレジスタ7とディレイレジスタ6の出力の加算
を行うために加算器8が設けられている。加算器8には
レジスタ9が接続され、その出力はベクトルレジスタ1
へ印加される。また、乗算器5には、レジスタ10が接
続され、指数オーバーフローの検出時に“l1がセット
される。このレジスタIOにはエレメント制御回路l1
が接続されている。
In this vector arithmetic processing device, a vector register (VR) 1 is connected to registers 2, 3, and 4 in which operands are written, and a multiplier 5 is connected to registers 3 and 4 to multiply the outputs of both registers. There is. Further, a delay register 6 is connected to the register 2. A register 7 for storing the multiplication result is connected to the multiplier 5, and an adder 8 is provided to add the outputs of the register 7 and the delay register 6. A register 9 is connected to the adder 8, and its output is sent to the vector register 1.
is applied to. Further, a register 10 is connected to the multiplier 5, and "l1" is set when an exponent overflow is detected.This register IO contains an element control circuit l1.
is connected.

次に、以上の構戊によるベクトル演算処理装置の動作に
ついて説明する。
Next, the operation of the vector arithmetic processing device with the above structure will be explained.

ここでは、ベクトル命令の1つのマルチプライ・アンド
・アド(Multiply and add)  命令
による指数オーバーフロー例外処理について説明する。
Here, exponent overflow exception handling using one of the vector instructions, Multiply and add, will be described.

マルチプライ・アンド・アド命令は、複合命令であり、
エレメントごとに3オペランドの内の2つを乗算し、そ
の結果に他の1つのオペランドを加算するものである。
The multiply-and-add instruction is a compound instruction,
Two of the three operands are multiplied for each element, and one other operand is added to the result.

ベクトルレジスタlからエレメント番号順に3つのオペ
ランドが読み出され、レジスタ2〜4に格納される。レ
ジスタ3及び4に格納された2つのオペランドが乗算器
5に人力され、2人力に対する乗算処理が行われ、その
演算結果がレジスタ7に格納される。
Three operands are read from vector register l in the order of element numbers and stored in registers 2-4. The two operands stored in registers 3 and 4 are manually input to multiplier 5, multiplication processing is performed on the two operands, and the result of the operation is stored in register 7.

一方、レジスタ2に格納された残る1つのオペランドは
、ディレイレジスタ6に格納される。このディレイレジ
スタ6のオペランドと、レジスタ7に格納された演算結
果とが加算器8によって加算され、その結果がレジスタ
9に格納される。
On the other hand, the remaining operand stored in register 2 is stored in delay register 6. The operand of delay register 6 and the operation result stored in register 7 are added by adder 8, and the result is stored in register 9.

ここで、乗算器5が指数オーバーフロー例外を検出した
場合、レジスタ9には加算後の値が入力され、この値を
ベクトルレジスタ1に入力することはできない。このと
き、レジスタ10には、指数オーバーフロー例外の検出
を意味する“1″がセットされる。このセット値を入力
とするエレメント制御回路11は、演算例外t主じたエ
レメントのオペランドを再度レジスタ3及び4に入力し
、その乗算を乗算器5によって行い、この結果をレジス
タ7を介してベクトルレジスタ1に書き込ム。
Here, if the multiplier 5 detects an exponent overflow exception, the value after addition is input to the register 9, and this value cannot be input to the vector register 1. At this time, "1" is set in the register 10, which means that an exponent overflow exception has been detected. The element control circuit 11 that receives this set value inputs the operand of the main element of the operation exception t again to registers 3 and 4, multiplies them by the multiplier 5, and sends the result to the vector via the register 7. Write to register 1.

なお、この種の装置に関するものとして、例えば、特開
昭57−97169号がある。
Note that, for example, Japanese Patent Laid-Open No. 57-97169 relates to this type of device.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ところが、前記のように指数オーバーフロー例外の検出
時に加算処理を行わずに乗算結果をベクトルレジスタに
書き込む構戒のベクトル演算処理装置においては、この
処理によってオーバーランが発生し、例外時のエレメン
トの演算処理に多大な時間がかかるという問題が本発明
者によって見出された。
However, in the vector arithmetic processing device described above, which writes the multiplication result to the vector register without performing addition processing when an exponential overflow exception is detected, an overrun occurs due to this processing, and the operation of the element at the time of the exception is interrupted. The inventor discovered a problem in that the processing takes a lot of time.

一ランを生じないベクトル演算処理装置を提供すること
にある。
An object of the present invention is to provide a vector arithmetic processing device that does not generate one run.

本発明の前記目的と新規な特徴は、本明細書の記述及び
添付図面から明らかになるであろう。
The above objects and novel features of the present invention will become apparent from the description of this specification and the accompanying drawings.

〔課題を解決するための手段〕[Means to solve the problem]

本願において開示される発明のうち、代表的なものの概
要を簡単に説明すれば、以下の通りである。
A brief overview of typical inventions disclosed in this application is as follows.

すなわち、ベクトルレジスタより読み出した複数のオペ
ランドのうちの少なくとも2つを乗算部で乗算し、その
乗算結果と残るオペランドの少なくとも1つを加算部で
加算し、その加算結果を前記ベクトルレジスタに書き込
むベクトル演算処理装置において、前記乗算部が指数オ
ーバーフロー例外を検出したときに前記加算部をバイパ
スし、前記乗算結果を前記ベクトルレジスタに書き込む
バイパス処理手段を設けるものである。
That is, a vector that multiplies at least two of a plurality of operands read from a vector register in a multiplier, adds the multiplication result and at least one of the remaining operands in an adder, and writes the addition result to the vector register. The arithmetic processing device is provided with bypass processing means for bypassing the addition section and writing the multiplication result into the vector register when the multiplication section detects an exponent overflow exception.

或いは、前記乗算部が指数オーバーフロー例外を検出し
たときに前記加算部のデータ出力を強制て前記ベクトル
レジスタに書き込む加算処理手段を設けるようにしても
よい。
Alternatively, addition processing means may be provided that forces data output from the addition section and writes it into the vector register when the multiplication section detects an exponent overflow exception.

〔作用〕[Effect]

上記した手段によれば、乗算部が指数オーバーフロー例
外を検出したときに、その乗算結果は加算部を通らずに
ベクトルレジスタに書き込まれる。
According to the above means, when the multiplication section detects an exponent overflow exception, the multiplication result is written to the vector register without passing through the addition section.

したがって、加算処理の行われなかった乗算結果のみが
ベクトルレジスタに書き込まれるので、パイプラインの
流れを乱さず、その流れに沿った処理がなされ、誤動作
を招くことがない。
Therefore, only the multiplication results that have not been subjected to addition processing are written to the vector register, so that the flow of the pipeline is not disturbed, processing is performed in accordance with the flow, and malfunctions do not occur.

〔実施例■〕[Example ■]

第1図は本発明によるベクトル演算処理装置のー実施例
を示すブロック図である。本実施例においては、第3図
と同一であるものには同一引用数字を用いたので、以下
においては重複する説明を省略する。
FIG. 1 is a block diagram showing an embodiment of a vector arithmetic processing device according to the present invention. In this embodiment, the same reference numerals are used for the same parts as in FIG. 3, and therefore, redundant explanation will be omitted below.

本実施例が第3図と異なるところは、エレメント制御回
路11を除去し、演算例外(オーバーフロー例外〉の発
生時にセレクタl2によって加算器8をバイパスさせ、
レジスタ7の出力をレジスタ9に格納するようにした構
成にある。
This embodiment differs from FIG. 3 in that the element control circuit 11 is removed and the adder 8 is bypassed by the selector l2 when an arithmetic exception (overflow exception) occurs.
The configuration is such that the output of register 7 is stored in register 9.

以上の構或において、指数オーバーフロー例外が検出さ
れない場合の処理は、前記第3図で説明した通りである
ので、ここでは重複する説明を省略する。乗算器5で指
数オーバーフロー例外が検出された場合、レジスタ10
に指数オーバーフロー例外を意味する“l”がセットさ
れる。セレクタ12は、レジスタ10に“1″がセット
されると、レジスタ7の格納内容を加算器8に送ること
なく、加算器8をバイパスしてレジスタ9に直接に人力
する。
In the above structure, the processing when an exponent overflow exception is not detected is the same as described in FIG. 3 above, so a redundant explanation will be omitted here. If an exponential overflow exception is detected in multiplier 5, register 10
"l" is set to indicate an exponent overflow exception. When "1" is set in the register 10, the selector 12 directly inputs the contents stored in the register 7 to the register 9, bypassing the adder 8, without sending the contents stored in the register 7 to the adder 8.

このように、指数オーバーフロー例外発生時に、加算器
8をバイパスすることにより、パイプラインの流れを乱
すことなくデータの保証を行うことが可能になる。
In this manner, by bypassing the adder 8 when an exponent overflow exception occurs, data can be guaranteed without disturbing the flow of the pipeline.

〔実施例2〕 第2図は本発明の他の実施例を示すブロック図である。[Example 2] FIG. 2 is a block diagram showing another embodiment of the invention.

この実施例においても、前記第3図で用いたと同一であ
るものには同一引用数字を用いたので、以下においては
重複する説明を省略する。
In this embodiment as well, the same reference numerals are used for the same parts as used in FIG. 3, so the repeated explanation will be omitted below.

この実施例が前記の実施例と異なるところは、レジスタ
10に“12がセットされたときに、ディレイレジスタ
6のデータ出力を強制的に“0”にするセレクタ13を
設けるようにした構戊にある。
This embodiment differs from the previous embodiment in that a selector 13 is provided which forcibly sets the data output of the delay register 6 to "0" when "12" is set in the register 10. be.

この実施例においては、指数オーバーフロー例外が発生
してレジスタ10に“1″がセットされると、このセッ
トを検知したセレクタl3がディレイレジスタ6のデー
タ出力を強制的に“0”にする。これにより、加算器8
では、レジスタ7の内容にディレイレジスタ6のデータ
出力“0”が加算され、レジスタ7の内容そのままがレ
ジスタ9に格納される。したがって、指数オーバーフロ
ー例外発生時においても、パイプラインの流れを乱すこ
となくデータの保証を行うことが可能になる。
In this embodiment, when an exponent overflow exception occurs and "1" is set in the register 10, the selector l3 detecting this setting forces the data output of the delay register 6 to "0". As a result, adder 8
Then, the data output "0" of the delay register 6 is added to the contents of the register 7, and the contents of the register 7 are stored in the register 9 as they are. Therefore, even when an exponential overflow exception occurs, data can be guaranteed without disturbing the flow of the pipeline.

以上、本発明者によってなされた発明を実施例に基づき
具体的に説明したが、本発明は前記実施例に限定される
ものでは無く、その要旨を逸脱しない範囲で、種々変更
可能であることは言うまでもない。
Although the invention made by the present inventor has been specifically explained based on examples, the present invention is not limited to the above-mentioned examples, and it is understood that various changes can be made without departing from the gist of the invention. Needless to say.

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

本願において開示された発明のうち、代表的なものによ
って得られる効果を簡単に説明すれば、下記の通りであ
る。
Among the inventions disclosed in this application, the effects obtained by typical ones are as follows.

すなわち、ベクトルレジスタより読み出した複数のオペ
ランドのうちの少なくとも2つを乗算部で乗算し、その
乗算結果と残るオペランドの少なくとも1つを加算部で
加算し、その加算結果を前記ベクトルレジスタに書き込
むベクトル演算処理装置において、前記乗算部が指数オ
ーバーフロー例外を検出したときに前記加算部をバイパ
スし、前記乗算結果を前記ベクトルレジスタに書き込む
バイパス処理手段を設け、或いは、前記乗算部が指数オ
ーバーフロー例外を検出したときに前記加算部のデータ
出力を強制的に零にし、この零値と前記乗算結果とを加
算して前記ベクトルレジスタに書き込む加算処理手段を
設けるようにしたので、ベクトル命令の複号演算命令の
演算例外発生時にデータ回復処理が不要となり、ベクト
ル演算の効率向上を図ることができる。
That is, a vector that multiplies at least two of a plurality of operands read from a vector register in a multiplier, adds the multiplication result and at least one of the remaining operands in an adder, and writes the addition result to the vector register. In the arithmetic processing device, bypass processing means is provided for bypassing the addition unit and writing the multiplication result to the vector register when the multiplication unit detects an exponent overflow exception, or the multiplication unit detects an exponent overflow exception. When the data output of the adder is executed, the data output of the adder is forcibly set to zero, and this zero value is added to the multiplication result, and an addition processing means is provided for writing the result to the vector register. Data recovery processing is not required when an operation exception occurs, and the efficiency of vector operations can be improved.

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

第1図は本発明によるベクトル演算処理装置の一実施例
を示すブロック図、 第2図は本発明によるベクトル演算処理装置の他の実施
例を示すブロック図、 第3図は従来のパイプライン型のベクトル演算処理装置
の一例を示すブロック図である。 I・・・ヘクトルレジスタ、2,3,4,7.9.10
・・・レジスタ、5・・・乗算器、6・・・ディレイレ
ジスタ、8・・・加算器、12.13・・・セレクタ。 第 1 図 12:セレクタ
FIG. 1 is a block diagram showing one embodiment of the vector arithmetic processing device according to the present invention, FIG. 2 is a block diagram showing another embodiment of the vector arithmetic processing device according to the present invention, and FIG. 3 is a block diagram showing a conventional pipeline type vector arithmetic processing device. FIG. 2 is a block diagram showing an example of a vector arithmetic processing device. I... Hector register, 2, 3, 4, 7.9.10
...Register, 5...Multiplier, 6...Delay register, 8...Adder, 12.13...Selector. 1st Figure 12: Selector

Claims (1)

【特許請求の範囲】[Claims] 1.ベクトルレジスタより読み出した複数のオペランド
のうちの少なくとも2つを乗算部で乗算し、その乗算結
果と残るオペランドの少なくとも1つを加算部で加算し
、その加算結果を前記ベクトルレジスタに書き込むベク
トル演算処理装置において、前記乗算部が指数オーバー
フロー例外を検出したときに前記加算部をバイパスし、
前記乗算結果を前記ベクトルレジスタに書き込むバイパ
ス処理手段を設けたことを特徴とするベクトル演算処理
装置。
1. A vector operation process in which at least two of a plurality of operands read from a vector register are multiplied by a multiplier, the multiplication result and at least one of the remaining operands are added by an adder, and the addition result is written to the vector register. In the apparatus, when the multiplier detects an exponent overflow exception, the adder is bypassed;
A vector arithmetic processing device, further comprising bypass processing means for writing the multiplication result into the vector register.
JP14968389A 1989-06-14 1989-06-14 Vector operation processor Pending JPH0315977A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14968389A JPH0315977A (en) 1989-06-14 1989-06-14 Vector operation processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14968389A JPH0315977A (en) 1989-06-14 1989-06-14 Vector operation processor

Publications (1)

Publication Number Publication Date
JPH0315977A true JPH0315977A (en) 1991-01-24

Family

ID=15480534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14968389A Pending JPH0315977A (en) 1989-06-14 1989-06-14 Vector operation processor

Country Status (1)

Country Link
JP (1) JPH0315977A (en)

Similar Documents

Publication Publication Date Title
CA2400647C (en) Digital signal processor with coupled multiply-accumulate units
JP3983857B2 (en) Single instruction multiple data processing using multiple banks of vector registers
US5212662A (en) Floating point arithmetic two cycle data flow
JPH03653B2 (en)
JPH0792739B2 (en) Floating point data normalization method
JPH02226420A (en) Floating point computation execution apparatus
JP2683488B2 (en) 3-1 Logical operation device
US6606700B1 (en) DSP with dual-mac processor and dual-mac coprocessor
US4631672A (en) Arithmetic control apparatus for a pipeline processing system
JPS6057467A (en) Vector data processor
JP2617974B2 (en) Data processing device
US4956767A (en) Data processing system with model for status accumulating operation by simulating sequence of arithmetic steps performed by arithmetic processor
JPH0315977A (en) Vector operation processor
JPH1091432A (en) Program execution method and device therefor
JP3691538B2 (en) Vector data addition method and vector data multiplication method
JPH03129523A (en) Method and device for processing data
JPS61235985A (en) Vector processor
KR100246465B1 (en) Apparatus and method for reducing cycle of microprocessor stack order
JPS61296435A (en) Microprogram control system
JP2654062B2 (en) Information processing device
JPH09319453A (en) Low power consumption microprocessor
JP3532026B2 (en) Arithmetic unit
JPH0588893A (en) Parallel operation processor
JPS61143850A (en) Processor
JPS60132237A (en) Floating-point arithmetic unit