JPS622329A - Arithmetic exception instruction address calculation device - Google Patents

Arithmetic exception instruction address calculation device

Info

Publication number
JPS622329A
JPS622329A JP60140965A JP14096585A JPS622329A JP S622329 A JPS622329 A JP S622329A JP 60140965 A JP60140965 A JP 60140965A JP 14096585 A JP14096585 A JP 14096585A JP S622329 A JPS622329 A JP S622329A
Authority
JP
Japan
Prior art keywords
instruction
arithmetic
address
exception
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
JP60140965A
Other languages
Japanese (ja)
Other versions
JPH0580690B2 (en
Inventor
Hideo Hayashi
英男 林
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 JP60140965A priority Critical patent/JPS622329A/en
Publication of JPS622329A publication Critical patent/JPS622329A/en
Publication of JPH0580690B2 publication Critical patent/JPH0580690B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To calculate correctly an exception generating instruction address even when the following instruction is being executed before the preceding instruction is ended, by bringing an instruction address stack to an access by the contents of the second counter corresponding to an arithmetic unit which has generated an arithmetic exception. CONSTITUTION:At every instruction executing indication, an address of its instruction is stored in an address of an instruction address register 1, based on the contents of counters 13-15 corresponding to arithmetic units 3-5 to which an instruction executing indication is executed, and when the arithmetic is ended without an exception by the units 3-5. counters 23-25 are brought to count-up by synchronizing with the counters 13-15. However, when an arithmetic exception is generated in the units 3-5, the counters 23-25 are not brought to count-up, but held in a state that the address of the register 1 which has generated its arithmetic exception remains indicated, and from the register 1, the address of the instruction which has caused the arithmetic exception remains outputted.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置における演算例外処理に関し、特
に演算例外を発生した命令のアドレスを割出す装置に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to arithmetic exception handling in an information processing device, and particularly to a device for determining the address of an instruction that causes an arithmetic exception.

情報処理装置において、演算の実行時にオーバーフロー
、アンダーフロー、ゼロディバイド等の演算例外が発生
した場合、その後の演算の実行を中止して割込みを発生
させ、演算例外に応じた処理が必要となる。
In an information processing device, when an arithmetic exception such as overflow, underflow, or zero divide occurs during the execution of an arithmetic operation, it is necessary to stop the execution of the subsequent arithmetic operation, generate an interrupt, and perform processing according to the arithmetic exception.

このような処理を行なうためには、どの命令で演算例外
が発生したかを先ず知ることが必要である。
In order to perform such processing, it is first necessary to know in which instruction an operation exception has occurred.

〔従来の技術〕[Conventional technology]

従来、演算例外を発生した命令のアドレスは、例えば第
3図(a)に示すようにある種の演算(1,1の実行終
了時に演算例外が発生したことが演算ユニットから報告
されると、割込み処理を開始して演算+11に続く演算
(2)の実行を行なわないようにし、割込み時における
命令アドレスレジスタの内容が演算例外を起こした命令
の次のアドレスを示すことから割出していた。
Conventionally, the address of the instruction that generated the operation exception was determined by the address of the instruction that generated the operation exception, for example, as shown in FIG. Interrupt processing is started to prevent the execution of operation (2) following operation +11, and the content of the instruction address register at the time of the interrupt indicates the next address of the instruction that caused the operation exception.

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

しかし、上述した従来の割出しは、先行する命令の演算
実行が終了してから後続命令の実行が開始されるシステ
ム構成を前提とするものであり、そうでないシステムで
は演算例外命令アドレスを割出すことは困難である。
However, the conventional indexing method described above assumes a system configuration in which the execution of the subsequent instruction starts after the execution of the preceding instruction is completed; in other systems, the address of the operation exception instruction is determined. That is difficult.

即ち、性能を向上させるため、演算ユニットを例えば加
算器9乗算器、シフター等の如く複数個設け、これらの
演算ユニットを例えば第3図(b)或いは同図(C)に
示すように並行に動作させる装置では、ある時点で割込
みによりその後の命令実行を中止しても命令アドレスレ
ジスタは演算例外を発生した命令の次の命令を示さない
。従って、ソフトウェアに演算例外を起こした命令のア
ドレスを通知できず、演算例外発生後の必要な処理をソ
フトウェアに行なわせることが困難となる。
That is, in order to improve performance, a plurality of arithmetic units such as an adder, a multiplier, a shifter, etc. are provided, and these arithmetic units are arranged in parallel as shown in FIG. 3(b) or FIG. 3(C), for example. In an operating device, even if subsequent instruction execution is stopped due to an interrupt at a certain point, the instruction address register does not indicate the instruction following the instruction that caused the operation exception. Therefore, it is not possible to notify the software of the address of the instruction that caused the arithmetic exception, making it difficult to have the software perform necessary processing after the arithmetic exception occurs.

本発明はこのような従来の問題点を解決したもので、そ
の目的は、後続命令が先行命令の終了前に実行開始され
ても演算例外を起こした命令のアドレスを正しく割出す
ことができる装置を提供することにある。
The present invention solves these conventional problems, and its purpose is to provide a device that can correctly determine the address of an instruction that causes an operation exception even if a subsequent instruction starts executing before the preceding instruction ends. Our goal is to provide the following.

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

本発明は上記問題点を解決するために、異なる演算機能
を持つ複数の演算ユニットを有する情報処理装置におい
て、 前記各々の演算ユニットに対応して設けられ、対応する
演算ユニットへの命令実行指示時に歩進される複数個の
第1のカウンタと、 前記演算ユニットの各々に対応して設けられ、対応する
演算ユニットで演算が演算例外なしに終了したときにそ
の演算ユニットからの信号で歩進される複数個の第2の
カウンタと、 命令実行指示が為された前記演算ユニ7)に対応する前
記第1のカウンタの示す値に基づいたアドレスを発生す
る第1のセレクタと、 前記演算ユニットの各々に対応して設けられ、対応する
演算ユニットで演算例外が発生したときセットされる複
数個の例外発生レジスタと、該例外発生レジスタがセッ
トされた前記演算ユニットに対応する前記第2のレジス
タの示す値に基づいたアドレスを発生する第2のセレク
タと、前記第1のセレクタから送られたアドレスにその
ときの命令アドレスレジスタの内容を格納し、前記第2
のセレクタから送られたアドレスに格納された内容を演
算例外を起こした命令のアドレスとして出力する命令ア
ドレススタックとを設ける。
In order to solve the above-mentioned problems, the present invention provides an information processing apparatus having a plurality of arithmetic units having different arithmetic functions. a plurality of first counters that are incremented; and a plurality of first counters that are provided corresponding to each of the arithmetic units and that are incremented by a signal from the corresponding arithmetic unit when the arithmetic operation is completed without an arithmetic exception; a first selector that generates an address based on a value indicated by the first counter corresponding to the arithmetic unit 7) to which an instruction execution instruction has been issued; a plurality of exception generation registers that are provided corresponding to each of the arithmetic units and are set when an arithmetic exception occurs in the corresponding arithmetic unit; and the second register that corresponds to the arithmetic unit in which the exception occurrence register is set. a second selector that generates an address based on the indicated value; a second selector that stores the contents of the instruction address register at that time in the address sent from the first selector;
An instruction address stack is provided that outputs the contents stored in the address sent from the selector as the address of the instruction that caused the operation exception.

〔作用〕[Effect]

命令実行指示毎に、命令実行指示が為された演算ユニッ
トに対応する第1のカウンタの内容に基づく命令アドレ
スレジスタのアドレスにその命令のアドレスが格納され
、演算ユニットで演算が例外なく終了すると第2のカウ
ンタは対応する第1のカウンタと同期してカウントアツ
プされる。しかし、演算ユニットで演算例外が発生する
と第2のカウンタはカウントアツプされず、その演算例
外を発生した命令のアドレスが格納されている命令アド
レスレジスタのアドレスを指したまま保持され、命令ア
ドレスレジスタからは演算例外を起こした命令のアドレ
スが出力されたままとなる。
For each instruction to execute an instruction, the address of that instruction is stored in the address of the instruction address register based on the contents of the first counter corresponding to the arithmetic unit to which the instruction execution instruction was issued. The second counter is counted up in synchronization with the corresponding first counter. However, when an arithmetic exception occurs in the arithmetic unit, the second counter is not incremented, but remains pointing to the address of the instruction address register where the address of the instruction that caused the arithmetic exception is stored. The address of the instruction that caused the operation exception remains output.

〔実施例〕〔Example〕

第1図は本発明の実施例のブロック図である。 FIG. 1 is a block diagram of an embodiment of the invention.

同図において、命令アドレスレジスタlは実行する命令
語が格納されている主記憶装置上のアドレス(命令アド
レス)を格納し、命令レジスタ2は実行する命令語を格
納する。また、複数の演算ユニット3〜5のうち例えば
演算ユニット3は加算器、演算ユニット4ば乗算器、演
算ユニット5はシフターとして働く。各演算ユニット3
〜5には、その各々に対応してカウンタ13〜15.カ
ウンタ23〜25が設けられている。なお、これらのカ
ウンタはカウント値が例えば9になったら零に戻るよう
になっている。
In the figure, an instruction address register 1 stores an address (instruction address) on the main memory where an instruction to be executed is stored, and an instruction register 2 stores an instruction to be executed. Further, among the plurality of arithmetic units 3 to 5, for example, the arithmetic unit 3 functions as an adder, the arithmetic unit 4 functions as a multiplier, and the arithmetic unit 5 functions as a shifter. Each calculation unit 3
-5 have counters 13-15 . Counters 23-25 are provided. Note that these counters are designed to return to zero when the count value reaches 9, for example.

上記カウンタのうち、カウンタ13は命令レジスタ2に
含まれる命令が演算ユニット3を使用する命令のときそ
の命令実行指示時にカウントアツプされ、カウンタ14
は同様に演算ユニット4を使用する命令のときその命令
実行指示時にカウントアツプされ、カウンタ15は演算
ユニット5を使用する命令のときその命令実行指示時に
カウントアツプされる。また、カウンタ23は演算ユニ
ット3の演算終了時に演算例外の発生がなければカウン
トアツプされ、カウンタ24は演算ユニット4の演算終
了時に演算例外の発生がなければカウントアツプされ、
カウンタ25は演算ユニット5の演算終了時に演算例外
の発生がなければカウントアツプされるよう制御される
Among the above-mentioned counters, the counter 13 is incremented when the instruction included in the instruction register 2 is an instruction that uses the arithmetic unit 3, and the counter 13 is incremented when the instruction is instructed to be executed.
Similarly, when the instruction uses the arithmetic unit 4, the counter 15 is counted up when the instruction is instructed to execute the instruction, and when the instruction uses the arithmetic unit 5, the counter 15 is counted up when the instruction is instructed to execute the instruction. Further, the counter 23 is incremented if no arithmetic exception occurs when the arithmetic unit 3 finishes the arithmetic operation, and the counter 24 is incremented if no arithmetic exception occurs when the arithmetic unit 4 finishes the arithmetic operation.
The counter 25 is controlled to count up if no operation exception occurs when the operation of the operation unit 5 is completed.

セレクタ6は、命令レジスタ2に含まれる演算ユニット
3〜5の使用種別情報等によりカウンタ13〜15の何
れかを選択するもので、命令実行指示時、加算命令なら
カウンタ13の内容を、乗算命令ならカウンタ14の内
容を、シフト命令ならカウンタ15の内容をそれぞれ命
令アドレススタック7の書込みアドレスとてスタック7
に送出する。
The selector 6 selects one of the counters 13 to 15 based on usage type information of the arithmetic units 3 to 5 included in the instruction register 2. When an instruction is given to execute an instruction, the contents of the counter 13 are changed to the contents of the counter 13 in the case of an addition instruction. If so, set the contents of the counter 14 as the write address of the instruction address stack 7, and if the shift instruction, set the contents of the counter 15 as the write address of the stack 7.
Send to.

命令アドレススタック7は、命令アドレスレジスタlの
内容をセレクタ6より指定されたアドレスに格納する。
The instruction address stack 7 stores the contents of the instruction address register 1 at the address specified by the selector 6.

尚、セレクタ6では命令アドレススタック7のアドレス
がカウンタ13〜15間で同じにならないようカウンタ
13〜15の値の上位にある定数例えばカウンタ13を
選択するときは「1」。
Note that the selector 6 sets a constant higher than the values of the counters 13 to 15, such as "1" when selecting the counter 13, so that the addresses of the instruction address stack 7 are not the same among the counters 13 to 15.

カウンタ14を選択するときは「2」、カウンタ15を
選択するときは「3」等の定数等を付加する。
When selecting the counter 14, add a constant such as "2" and when selecting the counter 15, add a constant such as "3".

一方、命令実行指示により指示された演算ユニット3〜
5は、演算例外を発生することなく演算を終了すると演
算終了時にその旨を示す信号をアンド回路9を介してカ
ウンタ23〜25にカウントアツプ信号として送出する
。しかし、反対に演算例外が発生するとそのような信号
を送出せず、各演算ユニット3〜5に対応して設けられ
た例外発生レジスタ33〜35にアンド回路12を介し
てセント信号を送出する。例外発生レジスタ33〜35
の出力はオア回路8を介して図示しない割込制御部へ例
外発生を通知する信号となり、且つオア回路8の反転出
力によりアンド回路9.12が閉じられる。従って、他
の演算ユニットに対応するカウンタ23〜25のカウン
トアツプは禁止され、且つ他の例外発生レジスタのセッ
トも禁止される。
On the other hand, the arithmetic units 3 to 3 instructed by the instruction execution instruction
When the calculation is completed without generating an exception, the circuit 5 sends a signal indicating the completion of the calculation to the counters 23 to 25 via the AND circuit 9 as a count-up signal. However, when an arithmetic exception occurs, on the other hand, such a signal cannot be sent out, and a cent signal is sent out via the AND circuit 12 to exception generation registers 33-35 provided corresponding to each arithmetic unit 3-5. Exception occurrence registers 33 to 35
The output becomes a signal that notifies an interrupt control unit (not shown) of the occurrence of an exception via the OR circuit 8, and the inverted output of the OR circuit 8 closes the AND circuit 9.12. Therefore, counting up of the counters 23 to 25 corresponding to other arithmetic units is prohibited, and setting of other exception generation registers is also prohibited.

各”例外発生レジスタ33〜35の出力は選択決定回路
10にも入力され、この選択決定回路10で演算例外が
発生した演算ユニットに対応するカウンタ23〜25の
出力をセレクタ11が選択するようにセレクタ11が制
御される。なお、レジスタ33〜35のうち2個以上が
同時にセントされた場合、選択決定回路10は予め定め
られた順序例えば演算ユニットの実行時間の長い方を優
先して選択する。
The outputs of the respective exception occurrence registers 33 to 35 are also input to the selection determining circuit 10, and the selector 11 selects the output of the counters 23 to 25 corresponding to the arithmetic unit in which the arithmetic exception has occurred in the selection determining circuit 10. The selector 11 is controlled.If two or more of the registers 33 to 35 are sent at the same time, the selection determining circuit 10 selects the registers in a predetermined order, for example, giving priority to the one with the longer execution time of the arithmetic unit. .

セレクタ11の出力は読出しアドレスとして命令アドレ
ススタック7に入力される。上記セレクタ11もセレク
タ6と同様にカウンタ23〜25の値の上位にある定数
(この定数はカウンタ13〜15と同じである)を付加
し、命令アドレススタック7のエントリアドレスがカウ
ンタ23〜25間で同じにならないようにしている。
The output of the selector 11 is input to the instruction address stack 7 as a read address. Similar to the selector 6, the selector 11 also adds a constant (this constant is the same as the counters 13 to 15) above the values of the counters 23 to 25, and the entry address of the instruction address stack 7 is between the counters 23 to 25. I try not to be the same.

第2図(a)は、命令アドレス100の加算命令(11
が実行指示された後、命令アドレスlO1の乗算命令(
1)が実行指示され、乗算命令(11の実行終了前に加
算命令(11の実行が終了し命令アドレス102の加算
命令(2)の実行指示とその実行終了が行なわれるよう
な命令シーケンスにおいて、加算命令(2)で例えばフ
ローティングオーバーフローの演算例外が発生したとき
の第1図各部の状態の一例を示したタイムチャートであ
る。また第2図(b)は命令アドレススタック7の内容
の一例を示す図である。
FIG. 2(a) shows an addition instruction (11
is instructed to execute, the multiplication instruction (
In an instruction sequence in which the execution instruction (1) is instructed, the execution of the addition instruction (11) is completed before the execution of the multiplication instruction (11), and the execution instruction and completion of the addition instruction (2) at the instruction address 102 are performed. This is a time chart showing an example of the state of each part in FIG. 1 when, for example, a floating overflow operation exception occurs in addition instruction (2). FIG. FIG.

カウンタ13〜15.カウンタ23〜25の内容は当初
零であり、加算命令111の実讐テ指示が為されると、
セレクタ6はカウンタ13の値rOJに定数rlJを付
加したアドレス「lO」を命令アドレススタック7に送
出し、スタック7は命令アドレスレジスタlの内容rl
oOJをアドレス「10」に格納する。その後、カウン
タ13はカウントアツプされ、その内容はrlJとなる
Counters 13-15. The contents of the counters 23 to 25 are initially zero, and when the real enemy instruction of the addition instruction 111 is given,
The selector 6 sends the address "lO" obtained by adding the constant rlJ to the value rOJ of the counter 13 to the instruction address stack 7, and the stack 7 receives the contents rl of the instruction address register l.
Store oOJ at address "10". Thereafter, the counter 13 is counted up and its content becomes rlJ.

次に、乗算命令(1)の実行指示が為されると、セレク
タ6はカウンタ14の値「0」に定数「2」を付加した
アドレス「20」を命令アドレススタック7に送出し、
スタック7は命令アドレスレジスタ1の内容r101 
Jをアドレス「20」に格納する。その後、カウンタ1
4はカウントアツプされ、「1」となる。
Next, when an instruction to execute the multiplication instruction (1) is given, the selector 6 sends the address "20", which is the value "0" of the counter 14 and the constant "2" added to the instruction address stack 7, and
Stack 7 is the contents of instruction address register 1 r101
Store J at address "20". Then counter 1
4 is counted up and becomes "1".

加算命令+11の実行が終了すると、演算例外が発生し
ていないことからカウンタ23はカウントアンプされて
「1」となる、また、例外発生レジスタ33はセットさ
れない。
When the execution of the addition instruction +11 is completed, the counter 23 is counted up and becomes "1" since no operation exception has occurred, and the exception occurrence register 33 is not set.

次に加算命令(2)の実行が指示されると、セレクタ6
はカウンタ13の値「1」に定数rlJを付加したアド
レス「11」を命令アドレススタック7に送出し、スタ
ック7はアドレス「11」にそのときの命令アドレスレ
ジスタ1の内容r102 Jを格納する。その後、カウ
ンタ13は「2」に変更される。
Next, when execution of addition instruction (2) is instructed, selector 6
sends the address "11" obtained by adding the constant rlJ to the value "1" of the counter 13 to the instruction address stack 7, and the stack 7 stores the contents r102J of the instruction address register 1 at that time in the address "11". Thereafter, the counter 13 is changed to "2".

加算命令(2)の実行が終了すると、この場合演算例外
が発生しているので、演算例外レジスタ33がセットさ
れ、図示しない割込制御部へ演算例外が発生したことが
通知される。このとき、カウンタ23はカウントアンプ
されないのでその内容は「1」のままとなる。また、選
択決定回路10では、カウンタ23の内容「1」に定数
「1」を付加したアドレスrl IJが続出しアドレス
として命令アドレススタック7に送出され、命令アドレ
ススタック7からは演算例外を起こした命令(加算命令
(2))のアドレスr102 Jが続出される。
When the execution of addition instruction (2) is completed, since an arithmetic exception has occurred in this case, the arithmetic exception register 33 is set, and an interrupt control section (not shown) is notified of the occurrence of an arithmetic exception. At this time, the counter 23 is not counted and amplified, so its content remains at "1". In addition, in the selection decision circuit 10, the address rlIJ, which is the content "1" of the counter 23 and the constant "1" added thereto, is sent to the instruction address stack 7 as a continuous address, and an operation exception occurs from the instruction address stack 7. The address r102J of the instruction (addition instruction (2)) is issued one after another.

なお、レジスタ33がセットされるとオア回路8の出力
によりアンド回路9,12が閉じられるため、他の演算
で例外が発生しても演算例外レジスタはセットされず、
カウンタもカウントアツプされない。
Note that when the register 33 is set, the AND circuits 9 and 12 are closed by the output of the OR circuit 8, so even if an exception occurs in another operation, the operation exception register is not set.
The counter is not counted up either.

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

以上説明したように、本発明は、命令実行指示時に演算
ユニットに対応して順次命令アドレスを命令アドレスス
タックに格納しておき、演算ユニットからの例外発生な
し信号に応答して演算ユニット対応の第2のカウンタを
カウントアツプし、例外発生有りを示す信号に応答して
それ以降の第2のカウンタのカウントアンプを禁止し、
例外を発生した演算ユニットに対応する第2のカウンタ
の内容で命令アドレススタックをアクセスするようにし
たので、後続命令が先行命令の終了前に実行開始されて
も演算例外を起こした命令のアドレスを正しく割出すこ
とができる効果がある。
As explained above, the present invention sequentially stores instruction addresses in the instruction address stack corresponding to the arithmetic unit when an instruction is instructed to execute, and in response to a no-exception signal from the arithmetic unit, the instruction address is stored in the instruction address stack corresponding to the arithmetic unit. 2 counter is counted up, and in response to a signal indicating that an exception has occurred, the subsequent count amplification of the second counter is prohibited;
Since the instruction address stack is accessed using the contents of the second counter corresponding to the arithmetic unit that caused the exception, even if the subsequent instruction starts executing before the preceding instruction ends, the address of the instruction that caused the arithmetic exception cannot be accessed. It has the effect of being able to calculate correctly.

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

第1図は本発明の実施例のブロック図、第2図は第1図
の動作説明図および、 第3図は従来の問題点の説明図である。 図において、1は命令アドレスレジスタ、2は命令レジ
スタ、3〜5は演算ユニット、6.11はセレクタ、7
は命令アドレススタック、8はオア回路、9はアンド回
路、10は選択決定回路、13゜14、15は第1のカ
ウンタ、23.24.25は第2のカウンタ、33.3
4.35は例外発生レジスタである。 う 主記憶装置へ 本発明の実施例のブロック図 第1図 (C1) 命令アドレススタック7              
   II          10Σ=二二の出力 (b) 実施例の動作説明図 従来の問題点の説明図 第3図
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is an explanatory diagram of the operation of FIG. 1, and FIG. 3 is an explanatory diagram of conventional problems. In the figure, 1 is an instruction address register, 2 is an instruction register, 3 to 5 are arithmetic units, 6.11 is a selector, and 7
is an instruction address stack, 8 is an OR circuit, 9 is an AND circuit, 10 is a selection decision circuit, 13° 14, 15 is a first counter, 23.24.25 is a second counter, 33.3
4.35 is an exception occurrence register. Block diagram of an embodiment of the present invention to the main memory FIG. 1 (C1) Instruction address stack 7
II 10Σ=22 output (b) Diagram for explaining the operation of the embodiment Diagram for explaining the problems of the conventional method Fig. 3

Claims (1)

【特許請求の範囲】 異なる演算機能を持つ複数の演算ユニットを有する情報
処理装置において、 前記各々の演算ユニットに対応して設けられ、対応する
演算ユニットへの命令実行指示時に歩進される複数個の
第1のカウンタと、 前記演算ユニットの各々に対応して設けられ、対応する
演算ユニットで演算が演算例外なしに終了したときにそ
の演算ユニットからの信号で歩進される複数個の第2の
カウンタと、 命令実行指示が為された前記演算ユニットに対応する前
記第1のカウンタの示す値に基づいたアドレスを発生す
る第1のセレクタと、 前記演算ユニットの各々に対応して設けられ、対応する
演算ユニットで演算例外が発生したときセットされる複
数個の例外発生レジスタと、該例外発生レジスタがセッ
トされた前記演算ユニットに対応する前記第2のレジス
タの示す値に基づいたアドレスを発生する第2のセレク
タと、前記第1のセレクタから送られたアドレスにその
ときの命令アドレスレジスタの内容を格納し、前記第2
のセレクタから送られたアドレスに格納された内容を演
算例外を起こした命令のアドレスとして出力する命令ア
ドレススタックとを具備したことを特徴とする演算例外
命令アドレス割出装置。
[Claims] In an information processing device having a plurality of arithmetic units having different arithmetic functions, a plurality of arithmetic units provided corresponding to each of the arithmetic units and incremented when an instruction execution instruction is given to the corresponding arithmetic unit. a first counter provided corresponding to each of the arithmetic units, and a plurality of second counters that are incremented by a signal from the arithmetic unit when the arithmetic operation in the corresponding arithmetic unit is completed without an arithmetic exception. a first selector that generates an address based on a value indicated by the first counter corresponding to the arithmetic unit to which an instruction execution instruction has been issued, and a first selector provided corresponding to each of the arithmetic units; Generates an address based on a plurality of exception occurrence registers that are set when an arithmetic exception occurs in a corresponding arithmetic unit, and a value indicated by the second register corresponding to the arithmetic unit in which the exception occurrence register is set. the contents of the instruction address register at that time are stored in the address sent from the first selector;
1. An instruction address stack for outputting contents stored in an address sent from a selector of an instruction address stack as an address of an instruction that caused an operation exception.
JP60140965A 1985-06-27 1985-06-27 Arithmetic exception instruction address calculation device Granted JPS622329A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60140965A JPS622329A (en) 1985-06-27 1985-06-27 Arithmetic exception instruction address calculation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60140965A JPS622329A (en) 1985-06-27 1985-06-27 Arithmetic exception instruction address calculation device

Publications (2)

Publication Number Publication Date
JPS622329A true JPS622329A (en) 1987-01-08
JPH0580690B2 JPH0580690B2 (en) 1993-11-10

Family

ID=15280936

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60140965A Granted JPS622329A (en) 1985-06-27 1985-06-27 Arithmetic exception instruction address calculation device

Country Status (1)

Country Link
JP (1) JPS622329A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11731701B2 (en) 2018-08-01 2023-08-22 Toyota Jidosha Kabushiki Kaisha Autonomous driving system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5576446A (en) * 1978-12-06 1980-06-09 Toshiba Corp Pre-fetch control system
JPS55110340A (en) * 1979-02-16 1980-08-25 Fujitsu Ltd Data processing system
JPS5696339A (en) * 1979-12-28 1981-08-04 Fujitsu Ltd Data processing system
JPS56157538A (en) * 1980-05-09 1981-12-04 Fujitsu Ltd Data processing system of advanced mode control
JPS58221447A (en) * 1982-06-18 1983-12-23 Hitachi Ltd Data processor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5576446A (en) * 1978-12-06 1980-06-09 Toshiba Corp Pre-fetch control system
JPS55110340A (en) * 1979-02-16 1980-08-25 Fujitsu Ltd Data processing system
JPS5696339A (en) * 1979-12-28 1981-08-04 Fujitsu Ltd Data processing system
JPS56157538A (en) * 1980-05-09 1981-12-04 Fujitsu Ltd Data processing system of advanced mode control
JPS58221447A (en) * 1982-06-18 1983-12-23 Hitachi Ltd Data processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11731701B2 (en) 2018-08-01 2023-08-22 Toyota Jidosha Kabushiki Kaisha Autonomous driving system

Also Published As

Publication number Publication date
JPH0580690B2 (en) 1993-11-10

Similar Documents

Publication Publication Date Title
EP0208870B1 (en) Vector data processor
US5299320A (en) Program control type vector processor for executing a vector pipeline operation for a series of vector data which is in accordance with a vector pipeline
KR920008280B1 (en) Integrated and programmable processor for word-wise dsp
US4251859A (en) Data processing system with an enhanced pipeline control
JPS61208167A (en) Histogram data generator
US5301331A (en) Interruption handling system
JPH0667851A (en) Multiplier provided with overflow detecting function
JPH03286332A (en) Digital data processor
JPS622329A (en) Arithmetic exception instruction address calculation device
JPH0346024A (en) Floating point computing element
KR930003399B1 (en) Microprogrammed systems software instruction undo
JPS5935451B2 (en) General purpose register access method
JPH0528431B2 (en)
JPH0580691B2 (en)
JPS60213132A (en) Digital signal processor
JPS6125275A (en) Vector instruction processor
JP2511063B2 (en) Pipeline control method
JPH0250220A (en) Summarized arithmetic processing machine
EP0057313A2 (en) Multi-phase subroutine control circuitry
JPS622324A (en) Processing system at tiem of generation of arithmetic exception
JPH01310444A (en) Parallel arithmetic processor
JPH04330519A (en) Multiplier
JPS60178540A (en) By-pass control system of information processor
JPH037971B2 (en)
JPS6353645A (en) Information processing device