[go: up one dir, main page]

JPH0527989A - Exception processing device for computer system - Google Patents

Exception processing device for computer system

Info

Publication number
JPH0527989A
JPH0527989A JP18460191A JP18460191A JPH0527989A JP H0527989 A JPH0527989 A JP H0527989A JP 18460191 A JP18460191 A JP 18460191A JP 18460191 A JP18460191 A JP 18460191A JP H0527989 A JPH0527989 A JP H0527989A
Authority
JP
Japan
Prior art keywords
exception
vectors
cause
access error
vector
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
JP18460191A
Other languages
Japanese (ja)
Inventor
Takayoshi Shimizu
孝祥 清水
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP18460191A priority Critical patent/JPH0527989A/en
Publication of JPH0527989A publication Critical patent/JPH0527989A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To enable a correct exception processing corresponding to the kind of access error by obtaining plural exception vectors by accessing various tables corresponding to the cause of exception. CONSTITUTION:In the case of the access error caused by a cause A, a select signal CS 1 is asserted since a latch 1 is not set, and vectors are conventionally read from a memory 4. When a cause holding latch 1 is set and the vectors are read, a select signal CS 2 in another space is asserted. Therefore, the various vectors can be outputted in respect to the access error due to a cause B. When the vectors are read by the select signal CS 2, the cause holding latch 1 is cleared. In this case, since the exception is processed by causes from the biginning, judgement is not missed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はコンピュータシステムの
例外処理装置に関し、更に詳しくは複数の割り込み要因
がある場合にも例外処理の振り分けを確実に行うことが
可能なコンピュータシステムの例外処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an exception handling device for a computer system, and more particularly to an exception handling device for a computer system capable of reliably distributing exception handling even when there are a plurality of interrupt factors.

【0002】[0002]

【従来の技術】最近多用されているマイクロプロセッサ
は一般的に、各種の異常状態(アクセスエラー,割り込
み,0除算など)に遭遇すると、「例外(Exception
)」処理を行うように設計されている。
2. Description of the Related Art Generally, a microprocessor which has been widely used recently is generally called "Exception" when it encounters various abnormal states (access error, interrupt, division by 0, etc.).
) ”Is designed to do the processing.

【0003】例外が発生すると、例外処理ルーチンのア
ドレス(ベクタ)を示すテーブルから該当するベクタを
読み出してきて、そのルーチンに制御を移すようにす
る。テーブル内でのベクタの位置は、例外毎に予め決ま
っている。
When an exception occurs, the corresponding vector is read from the table indicating the address (vector) of the exception handling routine, and control is transferred to that routine. The position of the vector in the table is predetermined for each exception.

【0004】例外は、その優先度によっていくつかのグ
ループに分けられている。例えば、アクセスエラーは最
高位に属するものであり、該当アクセスの終了後即座に
受け付けられる。
Exceptions are divided into several groups according to their priority. For example, the access error belongs to the highest rank and is accepted immediately after the end of the corresponding access.

【0005】また、バスタイムアウト,メモリフォルト
などもアクセスエラーとなりうる。同じアクセスエラー
であっても、メモリフォルトではリトライを行えばよ
い。そして、I/OのタイムアウトのときはそのI/O
を切り離すことで対処する。
Also, a bus time-out, a memory fault, etc. can cause an access error. Even if it is the same access error, it is sufficient to retry with a memory fault. When the I / O times out, the I / O
To deal with by disconnecting.

【0006】[0006]

【発明が解決しようとする課題】しかし、アクセスエラ
ーに対するベクタの格納場所は単一(=ベクタがひと
つ)であるので、処理ルーチンのなかで外部の情報を基
にしてS/W的に要因を判別しなければならない。
However, since there is only one vector storage location (= one vector) for an access error, the factor is S / W based on external information in the processing routine. You have to determine.

【0007】もし、エラー認識から判別までの間に、次
のアクセスエラーが発生すると、情報が書き換えられて
しまい、正しい処理が実行できなくなる。この様子を図
2を参照して説明する。この図において、1は要因保持
ラッチ、2は要因A及び要因Bを通過させるオアゲー
ト、3はCPU、4はベクタテーブルとしてのメモリ、
5はメモリ4をアクセスするアドレスを発生するアドレ
スデコーダである。
If the next access error occurs between the error recognition and the determination, the information is rewritten, and the correct processing cannot be executed. This situation will be described with reference to FIG. In this figure, 1 is a factor holding latch, 2 is an OR gate for passing factors A and B, 3 is a CPU, 4 is a memory as a vector table,
An address decoder 5 generates an address for accessing the memory 4.

【0008】アクセスエラーが発生すると、その時点で
の要因Bの有無が要因保持ラッチ1に記録される。CP
U3は、オアゲート2を介したアクセスエラーを受け付
けると、そのサイクルを即座に終了した後にアクセスエ
ラーのベクタを得るために読み込みサイクルを行う。
When an access error occurs, the presence or absence of the factor B at that time is recorded in the factor holding latch 1. CP
Upon receiving an access error via the OR gate 2, U3 immediately terminates the cycle and then performs a read cycle to obtain a vector of the access error.

【0009】このときは通常のメモリセレクト信号CS
1がアサートされてメモリが読み出される。CPU3は
例外処理ルーチンの中で要因保持ラッチ1を読み、条件
分岐を行う。例外処理に制御が移ってから、要因保持ラ
ッチ1を読むまでの間に次のアクセスエラーが発生する
と、要因保持ラッチ1の内容が書き換えられてしまい、
判断を誤ることがある。
At this time, the normal memory select signal CS
1 is asserted and the memory is read. The CPU 3 reads the factor holding latch 1 in the exception handling routine and performs a conditional branch. If the next access error occurs between the time when the control is transferred to the exception processing and the time when the factor holding latch 1 is read, the contents of the factor holding latch 1 are rewritten,
You may make a mistake in your judgment.

【0010】また、複数のベクタを使い分けるためにア
クセスエラーの要因毎に別の例外を割り当ててしまう
と、優先度が下がり該当サイクル内で受け付けられなく
なるので問題がある。
Further, if a different exception is assigned to each cause of an access error in order to properly use a plurality of vectors, the priority is lowered and it cannot be accepted in the corresponding cycle, which is a problem.

【0011】本発明は上記従来技術の問題点に鑑みてな
されたものであり、その目的は、コンピュータシステム
において、ある特定の最高位の例外(Exception )を発
生する要因が複数ある場合に、その例外処理の切り分け
を確実に行うことが可能なコンピュータシステムの例外
処理装置を実現することにある。
The present invention has been made in view of the above-mentioned problems of the prior art, and an object of the present invention is to provide a computer system having a plurality of factors that cause a particular highest exception (Exception). An object of the present invention is to realize an exception processing device of a computer system capable of reliably separating exception processing.

【0012】[0012]

【課題を解決するための手段】上記した課題を解決する
手段は、例外処理発生時に、例外処理ルーチンのアドレ
スを示すテーブルから該当するベクタを読み出すコンピ
ュータシステムの例外処理装置において、ある特定の例
外を発生する複数の要因に対応して設けられた複数のベ
クタテーブルと、例外の要因に応じて異なるテーブルを
アクセスすることにより複数の例外ベクタを得るアクセ
ス手段とを備えたことを特徴とするものである。
Means for solving the above-mentioned problem is to provide a specific exception in an exception processing device of a computer system which reads out a corresponding vector from a table showing an address of an exception processing routine when an exception processing occurs. It is characterized by comprising a plurality of vector tables provided corresponding to a plurality of factors that occur, and an access means for obtaining a plurality of exception vectors by accessing different tables depending on the cause of an exception. is there.

【0013】[0013]

【作用】本発明において、ある特定の例外を発生する複
数の要因に対応して複数のベクタテーブルを用意してお
き、例外の要因に応じて異なるテーブルをアクセスする
ことにより複数の例外ベクタを得るようにする。
In the present invention, a plurality of vector tables are prepared corresponding to a plurality of factors that cause a specific exception, and a plurality of exception vectors are obtained by accessing different tables according to the factors of the exception. To do so.

【0014】[0014]

【実施例】以下図面を参照して、本発明の実施例を詳細
に説明する。図1は本発明の第一の実施例を示す構成図
である。この図において、1は要因保持ラッチ、2は要
因A及び要因Bを通過させるオアゲート、3はCPU、
4はベクタテーブルとしてのメモリ、5はメモリ4をア
クセスするアドレスを発生するアドレスデコーダ、6は
他の要因に対応して設けられた第二のベクタテーブルと
してのメモリ(レジスタ)である。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a configuration diagram showing a first embodiment of the present invention. In this figure, 1 is a factor holding latch, 2 is an OR gate for passing factors A and B, 3 is a CPU,
Reference numeral 4 is a memory as a vector table, 5 is an address decoder for generating an address for accessing the memory 4, and 6 is a memory (register) as a second vector table provided corresponding to other factors.

【0015】アクセスエラーが発生すると、その時点で
の要因Bの有無が要因保持ラッチ1に記録される。CP
U3は、オアゲート2を介したアクセスエラーを受け付
けると、そのサイクルを即座に終了した後にアクセスエ
ラーのベクタを得るために読み込みサイクルを行う。
When an access error occurs, the presence / absence of the factor B at that time is recorded in the factor holding latch 1. CP
Upon receiving an access error via the OR gate 2, U3 immediately terminates the cycle and then performs a read cycle to obtain a vector of the access error.

【0016】要因Aによるアクセスエラーの場合には、
ラッチ1がセットされていないので、セレクト信号CS
1がアサートされ、従来通りメモリからベクタが読み出
される。要因保持ラッチ1がセットされていてベクタ読
み出しが行われたときには、別の空間のセレクト信号C
S2がアサートされる。従って、要因Bによるアクセス
エラーに対しては異なるベクタを出力することができ
る。セレクト信号CS2によるベクタ読み出しが行われ
ると、要因保持ラッチ1はクリアされる。
In the case of an access error due to factor A,
Latch 1 is not set, so select signal CS
1 is asserted and the vector is read from the memory as usual. When the factor holding latch 1 is set and the vector reading is performed, the select signal C in another space is selected.
S2 is asserted. Therefore, a different vector can be output for an access error due to factor B. When vector reading is performed by the select signal CS2, the factor holding latch 1 is cleared.

【0017】以上の場合、例外処理の最初から要因別に
分かれるようにしているので、判断を誤ることがない。
また、他の実施例として、別のセレクト信号をアサート
する代わりに、アドレスそのものを数ビット変換しても
同様の効果が得られる。
In the above case, since the exception processing is divided according to factors from the beginning, there is no erroneous judgment.
Further, as another embodiment, the same effect can be obtained by converting the address itself by several bits instead of asserting another select signal.

【0018】以上のように構成することにより、アクセ
スエラーの種類に応じて的確な例外処理(再実行/無視
など)を行うことができる。すなわち、ある特定の最高
位の例外を発生する要因が複数ある場合に、その要因に
応じて異なるアドレス空間をアクセスして、例外の優先
度を変えることなく、複数の例外ベクタを返すことがで
きる。
With the above configuration, it is possible to perform appropriate exception processing (re-execution / ignore, etc.) according to the type of access error. In other words, if there are multiple factors that cause a particular highest exception, different address spaces can be accessed depending on the factors and multiple exception vectors can be returned without changing the priority of the exception. ..

【0019】[0019]

【発明の効果】以上実施例とともに詳細に説明したよう
に、例外の要因に応じて異なるテーブルをアクセスする
ことにより複数の例外ベクタを得ることで、アクセスエ
ラーの種類に応じて的確な例外処理(再実行/無視な
ど)を行うことができる。従って、ある特定の最高位の
例外を発生する要因が複数ある場合に、その要因に応じ
て異なるアドレス空間をアクセスして、例外の優先度を
変えることなく、複数の例外ベクタを返すことができ
る。
As described in detail in connection with the above embodiments, a plurality of exception vectors are obtained by accessing different tables depending on the cause of the exception, so that the appropriate exception handling depending on the type of access error ( Re-execute / ignore) can be performed. Therefore, if there are multiple factors that cause a particular highest-level exception, different address spaces can be accessed depending on the factors, and multiple exception vectors can be returned without changing the priority of the exception. ..

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

【図1】本発明の一実施例の全体の構成を示す構成図で
ある。
FIG. 1 is a configuration diagram showing an overall configuration of an embodiment of the present invention.

【図2】従来の例外処理装置の全体の構成を示す構成図
である。
FIG. 2 is a configuration diagram showing an overall configuration of a conventional exception handling device.

【符号の説明】[Explanation of symbols]

1 要因保持ラッチ 2 オアゲート 3 CPU 4 メモリ 5 アドレスデコーダ 6 メモリ(レジスタ) 1 factor holding latch 2 or gate 3 CPU 4 memory 5 address decoder 6 memory (register)

Claims (1)

【特許請求の範囲】 【請求項1】 例外処理発生時に、例外処理ルーチンの
アドレスを示すテーブルから該当するベクタを読み出す
コンピュータシステムの例外処理装置において、 ある特定の例外を発生する複数の要因に対応して設けら
れた複数のベクタテーブルと、 例外の要因に応じて異なるテーブルをアクセスすること
により複数の例外ベクタを得るアクセス手段とを備えた
ことを特徴とするコンピュータシステムの例外処理装
置。
Claim: What is claimed is: 1. An exception handling device of a computer system, which reads a corresponding vector from a table showing an address of an exception handling routine when an exception handling occurs, responds to a plurality of factors causing a particular exception. An exception handling device for a computer system, comprising: a plurality of vector tables provided as described above; and access means for obtaining a plurality of exception vectors by accessing different tables depending on the cause of the exception.
JP18460191A 1991-07-24 1991-07-24 Exception processing device for computer system Pending JPH0527989A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18460191A JPH0527989A (en) 1991-07-24 1991-07-24 Exception processing device for computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18460191A JPH0527989A (en) 1991-07-24 1991-07-24 Exception processing device for computer system

Publications (1)

Publication Number Publication Date
JPH0527989A true JPH0527989A (en) 1993-02-05

Family

ID=16156066

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18460191A Pending JPH0527989A (en) 1991-07-24 1991-07-24 Exception processing device for computer system

Country Status (1)

Country Link
JP (1) JPH0527989A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100281837B1 (en) * 1995-05-11 2001-02-15 이리마지리 쇼우이치로 Image processing apparatus and game device having same
US6742113B1 (en) 1999-05-31 2004-05-25 Renesas Technology Corp. Microprocessor with EIT, processing capability, and EIT processing method
US7144265B2 (en) 2003-11-28 2006-12-05 Enplas Corporation Socket for electric component

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100281837B1 (en) * 1995-05-11 2001-02-15 이리마지리 쇼우이치로 Image processing apparatus and game device having same
US6878058B1 (en) * 1995-05-11 2005-04-12 Sega Enterprises, Ltd. Image processor and game device with image processor
US6742113B1 (en) 1999-05-31 2004-05-25 Renesas Technology Corp. Microprocessor with EIT, processing capability, and EIT processing method
US7144265B2 (en) 2003-11-28 2006-12-05 Enplas Corporation Socket for electric component

Similar Documents

Publication Publication Date Title
JPH0250499B2 (en)
JPH0527989A (en) Exception processing device for computer system
US5274792A (en) Information processing apparatus with parallel instruction decoding
JPS6319058A (en) memory device
EP0416345B1 (en) Instruction decoder for a pipeline processor
US6742073B1 (en) Bus controller technique to control N buses
US5706471A (en) I-O register lock for PCI bus
KR950000552B1 (en) Microprocessor
JP2727947B2 (en) Address trace method
JPH02297235A (en) Memory data protecting circuit
JPS60214043A (en) pipeline control circuit
JPS6058491B2 (en) Error processing method
JPS59123055A (en) Instruction processing method
JP2636513B2 (en) Storage device and method
JPS60134956A (en) Information processing system
JPS60193046A (en) Instruction exception detection method
JPS62108333A (en) Semiconductor device
JPS5854414B2 (en) Data conversion control method in data processing equipment
JPS6224341A (en) Address converting system
JPS61175731A (en) Microprogram control system
JPH01169639A (en) Memory
JPS6175441A (en) Address history storage device
JPH06309270A (en) Interruption control circuit built in dpram
JPH01191941A (en) Information processor
JPS63228352A (en) virtual computer system