JPH05189231A - Error processing system in instruction fetch - Google Patents

Error processing system in instruction fetch

Info

Publication number
JPH05189231A
JPH05189231A JP4005087A JP508792A JPH05189231A JP H05189231 A JPH05189231 A JP H05189231A JP 4005087 A JP4005087 A JP 4005087A JP 508792 A JP508792 A JP 508792A JP H05189231 A JPH05189231 A JP H05189231A
Authority
JP
Japan
Prior art keywords
instruction
error
code
undefined
instruction code
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
JP4005087A
Other languages
Japanese (ja)
Other versions
JP3157242B2 (en
Inventor
Shigeru Yoshida
茂 吉田
Kazuhito Sugino
一仁 杉野
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP00508792A priority Critical patent/JP3157242B2/en
Publication of JPH05189231A publication Critical patent/JPH05189231A/en
Application granted granted Critical
Publication of JP3157242B2 publication Critical patent/JP3157242B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To provide an error processing system in instruction fetch which can simplify an error processing at the time of fetching an instruction in a micro program control system and which can simplify the constitution of hardware. CONSTITUTION:When an error occurs in instruction fetch, an error cause is set in a status 2. An undefined instruction code generation means 3 generates a prescribed undefined instruction code when the error cause is set in the status 2, and gives it to a control storage part 4. It calls an error processing program with the undefined instruction code which the undefined instruction code generation means 3 generates as an address, and executes the error processing. A micro address generation processing for a micro interruption processing becomes unnecessary with such constitution, and the error processing can easily be executed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、マイクロ・プログラム
制御方式の計算機システムに関し、特に、マイクロ・プ
ログラム制御方式における命令フェッチ時のエラー処理
方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a micro program control system computer system, and more particularly to an error processing system at the time of instruction fetch in the micro program control system.

【0002】[0002]

【従来の技術】図5は従来の命令フェッチにおけるエラ
ー処理方式を示す図である。同図において、101はメ
モリ管理ユニット(以下、MMUと略記する)、102
は主記憶装置、103は命令バッファ、103aはオペ
レーション・コード・バッファ(以下、OPコード・バ
ッファと略記する)、103bはステータス・バッフ
ァ、104は制御記憶部、105はマイクロ・プログラ
ム・カウンタ、106はマイクロ命令レジスタ、107
はマルチ・プレクサ(以下、MPXと略記する)、10
8はマイクロ割込回路である。
2. Description of the Related Art FIG. 5 is a diagram showing an error processing method in a conventional instruction fetch. In the figure, 101 is a memory management unit (hereinafter abbreviated as MMU), 102
Is a main storage device, 103 is an instruction buffer, 103a is an operation code buffer (hereinafter abbreviated as OP code buffer), 103b is a status buffer, 104 is a control storage unit, 105 is a micro program counter, 106 Is a micro instruction register, 107
Is a multiplexer (hereinafter abbreviated as MPX), 10
Reference numeral 8 is a micro interrupt circuit.

【0003】同図において、論理アドレスIA(INSTRU
CTION ADDRES)の示すアドレスはMMU101において
実アドレスに変換され、そのアドレスに対応した命令が
主記憶装置102から読み出され命令バッファ103の
OPコード・バッファ103aに格納される。命令バッ
ファ103のOPコード・バッファ103aに格納され
たオペレーション・コード(以下、OPコードと略記す
る)はMPX107を介して制御記憶部104に与えら
れ、OPコードを制御記憶部104のアドレスとしてマ
イクロ命令が読み出される。
In FIG. 1, a logical address IA (INSTRU
The address indicated by (CTION ADDRES) is converted into a real address in the MMU 101, and the instruction corresponding to the address is read from the main storage device 102 and stored in the OP code buffer 103a of the instruction buffer 103. The operation code (hereinafter abbreviated as OP code) stored in the OP code buffer 103a of the instruction buffer 103 is given to the control storage unit 104 via the MPX 107, and the OP code is used as an address of the control storage unit 104 for microinstruction. Is read.

【0004】読み出されたマイクロ命令はマイクロ命令
レジスタ106に与えられて、マイクロ・プログラム制
御が行われる。また、マイクロ・プログラム・カウンタ
105はマイクロ命令が実行されると、制御記憶部10
4のアドレスに1を加えて、MPXを介して制御記憶部
104に与え、次のマイクロ命令が読み出される。ここ
で、主記憶装置102から命令を読み出し命令バッファ
103に格納する際、エラーが発生するとエラー要因が
命令バッファ103のステータス・バッファ103bに
セットされる。マイクロ割込回路108はステータス・
バッファ103bにエラー要因がセットされると、エラ
ー要因に応じたエラー処理ルーチンのマイクロ命令アド
レスを生成して、MPX107を介して制御記憶部10
4に与え、エラー処理のためのマイクロ命令を読み出し
てエラー処理を行なわせる。
The read microinstruction is applied to the microinstruction register 106 to perform microprogram control. In addition, when the micro instruction is executed, the micro program counter 105 controls the control storage unit 10.
1 is added to the address of 4 and is given to the control storage unit 104 via the MPX, and the next micro instruction is read. Here, when an instruction is read from the main memory 102 and stored in the instruction buffer 103, if an error occurs, the error factor is set in the status buffer 103b of the instruction buffer 103. The micro interrupt circuit 108
When the error factor is set in the buffer 103b, a microinstruction address of an error processing routine corresponding to the error factor is generated, and the control storage unit 10 is transmitted via the MPX 107.
4, the microinstruction for error processing is read and error processing is performed.

【0005】ところで、上記した従来のエラー処理方式
においては、エラー発生時、エラー処理のためのマイク
ロ命令格納アドレスを生成する処理およびマイクロ割込
処理が必要であり、エラー発生時の処理が複雑であると
ともに、ハード・ウェア構成が複雑になるという欠点が
あった。
By the way, in the above-mentioned conventional error processing method, when an error occurs, a process for generating a micro instruction storage address for error processing and a micro interrupt process are required, and the process when an error occurs is complicated. At the same time, there is a drawback that the hardware configuration becomes complicated.

【0006】[0006]

【発明が解決しようとする課題】本発明は上記した従来
方式の欠点を改善するためになされたものであって、マ
イクロ・プログラム制御方式における命令フェッチ時の
エラー処理を簡潔にするとともに、そのためのハード・
ウェアの構成を簡単にすることができる命令フェッチに
おけるエラー処理方式を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in order to improve the above-mentioned drawbacks of the conventional method, and simplifies the error processing at the time of instruction fetch in the micro program control method, and for that purpose, hard·
An object of the present invention is to provide an error handling method in instruction fetch that can simplify the hardware configuration.

【0007】[0007]

【課題を解決するための手段】図1および図2は本発明
の原理ブロック図である。本発明の請求項1の発明は、
図1に示すように、主記憶部より読み出した命令を命令
バッファ1に格納し、命令バッファ1に格納されたオペ
レーション・コードをアドレスとして制御記憶部4より
マイクロ命令を読み出しマイクロ処理を実行するマイク
ロ制御方式の命令フェッチにおけるエラー処理方式にお
いて、命令フェッチにおいてエラーが発生し命令バッフ
ァ1のステータス2にエラー要因がセットされたときに
所定の未定義命令コードを発生する未定義命令コード発
生手段3を設ける。
1 and 2 are block diagrams of the principle of the present invention. The invention of claim 1 of the present invention is
As shown in FIG. 1, an instruction read from the main storage unit is stored in the instruction buffer 1, and a micro instruction is read from the control storage unit 4 using the operation code stored in the instruction buffer 1 as an address to execute a micro process. In the error processing method in the instruction fetch of the control method, the undefined instruction code generating means 3 for generating a predetermined undefined instruction code when an error occurs in the instruction fetch and an error factor is set in the status 2 of the instruction buffer 1. Set up.

【0008】そして、命令フェッチにおいて、エラーが
発生し、ステータス2にエラー要因がセットされると未
定義命令コード発生手段3は未定義命令コードを発生す
る。制御記憶部4は未定義命令コード発生手段3が発生
する未定義命令コードをアドレスとして、エラー処理プ
ログラムを呼び出し、エラー処理を行う。請求項2の発
明は請求項1の発明において、命令バッファ1に未定義
命令コードが格納されたことを検出する未定義命令コー
ド検出手段5を設ける。
When an error occurs in the instruction fetch and the error factor is set in the status 2, the undefined instruction code generating means 3 generates the undefined instruction code. The control storage unit 4 calls the error processing program by using the undefined instruction code generated by the undefined instruction code generation means 3 as an address and performs error processing. According to a second aspect of the present invention, in the first aspect of the present invention, an undefined instruction code detecting means 5 for detecting that the undefined instruction code is stored in the instruction buffer 1 is provided.

【0009】そして、未定義命令コード検出手段5によ
り未定義命令コードが検出された場合に未定義命令コー
ド発生手段3より第2の所定の未定義命令コードを発生
し、未定義命令コード発生手段3の出力する第2の未定
義命令コードをアドレスとして、制御記憶部4より所定
の処理プログラムを呼び出し実行する。本発明の請求項
3の発明は、図2に示すように、主記憶部より読み出し
た命令を命令バッファ1に格納し、命令バッファ1に格
納されたオペレーション・コードをアドレスとして制御
記憶部4よりマイクロ命令を読み出しマイクロ処理を実
行するマイクロ制御方式の命令フェッチにおけるエラー
処理方式において、命令フェッチにおいてエラーが発生
したときにエラー要因がセットされるステータス2の出
力信号を制御記憶部4に与える。
Then, when the undefined instruction code detection means 5 detects an undefined instruction code, the undefined instruction code generation means 3 generates a second predetermined undefined instruction code, and the undefined instruction code generation means. A predetermined processing program is called from the control storage unit 4 and executed by using the second undefined instruction code output by 3 as an address. According to a third aspect of the present invention, as shown in FIG. 2, the instruction read from the main storage unit is stored in the instruction buffer 1, and the operation code stored in the instruction buffer 1 is used as an address from the control storage unit 4. In the error processing method in the instruction fetch of the micro control method for reading the micro instruction and executing the micro processing, an output signal of status 2 in which an error factor is set when an error occurs in the instruction fetch is given to the control storage unit 4.

【0010】そして、命令フェッチにおいてエラーが発
生した場合、上記ステータス2の出力信号に基づき制御
記憶部4のエラー処理プログラムを呼び出し、エラー処
理を行う。
When an error occurs in the instruction fetch, the error processing program of the control storage unit 4 is called based on the output signal of the status 2 and the error processing is performed.

【0011】[0011]

【作用】図1の請求項1の発明において、命令フェッチ
において、エラーが発生すると、ステータス2にエラー
要因がセットされる。未定義命令コード発生手段3はス
テータス2にエラー要因がセットされると所定の未定義
命令コードを発生し、制御記憶部4に与える。制御記憶
部4は未定義命令コード発生手段3が発生する未定義命
令コードをアドレスとして、エラー処理プログラムを呼
び出し、エラー処理を行う。
In the invention of claim 1 of FIG. 1, when an error occurs in the instruction fetch, the error factor is set in the status 2. When the error factor is set in the status 2, the undefined instruction code generating means 3 generates a predetermined undefined instruction code and gives it to the control storage unit 4. The control storage unit 4 calls the error processing program by using the undefined instruction code generated by the undefined instruction code generation means 3 as an address and performs error processing.

【0012】図1の請求項1の発明によれば、マイクロ
割込処理を行うためのマイクロ・アドレス生成処理が不
必要となり、エラー処理を簡潔に行うことが出来る。ま
た、OPコードの未使用コード(未定義命令コード)に
制御記憶部14のエラー処理アドレスを対応させている
ので、エラー処理のためのアドレス・ラインを余分に設
ける必要がなく、ハード・ウェアの構成を簡単にするこ
とができる。
According to the first aspect of the invention shown in FIG. 1, the micro address generation process for performing the micro interrupt process is unnecessary, and the error process can be simplified. Further, since the error processing address of the control storage unit 14 is made to correspond to the unused code (undefined instruction code) of the OP code, it is not necessary to provide an additional address line for error processing, and the hardware The configuration can be simplified.

【0013】また、請求項2の発明のように、未定義命
令コード検出部5を設け、未定義命令コード検出時、第
2の未定義命令コードを発生しそれに対応した処理を実
行するように構成することにより、エラーの発生により
未定義命令コード発生部3が未定義命令コードを発生し
た場合と、プログラムの暴走などにより命令バッファ1
が未定義命令コードを出力した場合を弁別することがで
きる。
Further, as in the invention of claim 2, the undefined instruction code detecting section 5 is provided, and when the undefined instruction code is detected, the second undefined instruction code is generated and the corresponding processing is executed. With the configuration, when the undefined instruction code generation unit 3 generates an undefined instruction code due to an error, and when the instruction buffer 1 runs due to a program runaway or the like.
Can output the undefined instruction code.

【0014】図2の請求項3の発明によれば、命令フェ
ッチにおいてエラーが発生したときにエラー要因がセッ
トされるステータス2の出力信号を制御記憶部4に与
え、エラー処理を行っているので、マイクロ割込処理を
行うためのマイクロ・アドレス生成処理が不必要とな
り、エラー処理を簡潔に行うことが出来る。
According to the invention of claim 3 of FIG. 2, when the error occurs in the instruction fetch, the output signal of the status 2 in which the error factor is set is given to the control storage unit 4 to perform the error processing. The micro address generation process for performing the micro interrupt process is unnecessary, and the error process can be simplified.

【0015】[0015]

【実施例】図3は本発明の第1の実施例を示す図であ
る。同図において、11はMMU、12は主記憶装置、
13は命令バッファ、13aはOPコード・バッファ、
13bはステータス・バッファ、14は制御記憶部、1
5はマイクロ・プログラム・カウンタ、16はマイクロ
命令レジスタ、17はMPX、18は未定義命令コード
検出部、19は未定義命令コード発生部である。
FIG. 3 is a diagram showing a first embodiment of the present invention. In the figure, 11 is an MMU, 12 is a main memory,
13 is an instruction buffer, 13a is an OP code buffer,
13b is a status buffer, 14 is a control storage unit, 1
Reference numeral 5 is a micro program counter, 16 is a micro instruction register, 17 is MPX, 18 is an undefined instruction code detector, and 19 is an undefined instruction code generator.

【0016】図3は図5の従来例と較べ、マイクロ割込
回路108が除去されており、未定義命令コード検出部
18、未定義命令コード発生部19が付加されている点
で相違しその他は図5とほぼ同様の構成を持っている。
図3における未定義命令コード検出部18はOPコード
・バッファ13aより読み出されたOPコードが未定義
命令コードである場合を検出する手段である。ここで、
未定義命令コードとはOPコードとして定義されていな
いコード、すなわち、OPコードとして使用されていな
いコードを意味し、通常は、例えば、プログラムが暴走
した場合などに発生する。
3 is different from the conventional example of FIG. 5 in that the micro interrupt circuit 108 is removed, and an undefined instruction code detection section 18 and an undefined instruction code generation section 19 are added. Has a configuration similar to that of FIG.
The undefined instruction code detector 18 in FIG. 3 is means for detecting the case where the OP code read from the OP code buffer 13a is an undefined instruction code. here,
The undefined instruction code means a code that is not defined as an OP code, that is, a code that is not used as an OP code, and usually occurs, for example, when a program runs out of control.

【0017】また、未定義命令コード発生部19は、エ
ラーが発生しエラー要因が命令バッファ13のステータ
ス・バッファ13bにセットされている場合および未定
義命令コード検出部18が未定義命令コードを検出した
場合、それぞれ第1および第2の所定の未定義命令コー
ド信号を発生する手段であり、エラーが発生していない
場合あるいは、未定義命令コードが検出されない場合に
は、OPコード・バッファ13aより読み出されたOP
コードをそのままMPX17を介して制御記憶部14に
与える。
The undefined instruction code generation unit 19 detects an undefined instruction code when an error occurs and the error factor is set in the status buffer 13b of the instruction buffer 13. In this case, the means for generating the first and second predetermined undefined instruction code signals respectively, and when no error occurs or the undefined instruction code is not detected, the OP code buffer 13a OP read
The code is given as it is to the control storage unit 14 via the MPX 17.

【0018】また、図3の制御記憶部14の上記第1の
所定の未定義命令コードに対応したアドレスにはエラー
処理プログラムが格納されている。また、制御記憶部1
4の上記第2の所定の未定義命令コードに対応したアド
レスには未定義命令コード検出時の処理プログラムが格
納されている。例えば、OPコードが8ビットで構成さ
れ、OPコードとして定義されていない未定義命令コー
ドが、16進表記で{’03’,’80’,’FF’}
の3種類存在する場合、これらの未定義命令コードの内
{’FF’}をエラー処理に割り当てる。そして、エラ
ーが発生しエラー要因が命令バッファ13のステータス
・バッファ13bにセットされると、未定義命令コード
発生部19は上記未定義命令コード{’FF’}を発生
する。
An error processing program is stored in the control storage unit 14 of FIG. 3 at an address corresponding to the first predetermined undefined instruction code. In addition, the control storage unit 1
A processing program at the time of detecting an undefined instruction code is stored in the address of No. 4 corresponding to the second predetermined undefined instruction code. For example, an undefined instruction code that is composed of 8 bits and is not defined as an OP code is {'03', '80', 'FF'} in hexadecimal notation.
When there are three types of undefined instruction codes, {'FF'} is assigned to the error processing. Then, when an error occurs and the error factor is set in the status buffer 13b of the instruction buffer 13, the undefined instruction code generator 19 generates the undefined instruction code {'FF'}.

【0019】また、未定義命令コード検出部18が未定
義命令コードを検出した場合には、未定義命令コード発
生部19は上記未定義命令コードの内{’80’}を発
生する。一方、制御記憶部14のアドレス{’FF’}
にはエラー処理プログラムが格納されており、未定義命
令コード発生部19が上記未定義命令コード{’F
F’}を発生すると、アドレス{’FF’}のエラー処
理プログラムが呼び出され実行される。また、制御記憶
部14のアドレス{’80’}には未定義命令コード検
出時の処理プログラムが格納されており、未定義命令コ
ード発生部19が上記未定義命令コード{’80’}を
発生すると、アドレス{’80’}の処理プログラムが
呼び出され実行される。
When the undefined instruction code detector 18 detects an undefined instruction code, the undefined instruction code generator 19 generates {'80'} among the undefined instruction codes. On the other hand, the address of control storage unit 14 {'FF'}
Stores an error processing program, and the undefined instruction code generation unit 19 causes the undefined instruction code {'F
When F '} is generated, the error processing program at the address {' FF '} is called and executed. Further, a processing program at the time of detecting an undefined instruction code is stored in the address {'80'} of the control storage unit 14, and the undefined instruction code generation unit 19 generates the undefined instruction code {'80'}. Then, the processing program at the address {'80'} is called and executed.

【0020】次ぎに図3の実施例に動作について説明す
る。命令のフェッチ時にエラーが発生していない場合
は、図5に示した従来例と同様に、論理アドレスIA
(INSTRUCTION ADDRES)の示すアドレスはMMU11に
おいて実アドレスに変換され、そのアドレスに対応した
命令が主記憶装置12から読み出され命令バッファ13
のOPコード・バッファ13aに格納される。
Next, the operation of the embodiment shown in FIG. 3 will be described. If no error has occurred when fetching the instruction, the logical address IA is used as in the conventional example shown in FIG.
The address indicated by (INSTRUCTION ADDRES) is converted into a real address in the MMU 11, and the instruction corresponding to the address is read from the main storage device 12 and the instruction buffer 13
Is stored in the OP code buffer 13a.

【0021】命令バッファ13のOPコード・バッファ
13aに格納されたOPコードはMPX17を介して制
御記憶部14に与えられ、OPコードを制御記憶部14
のアドレスとしてマイクロ命令が読み出される。読み出
されたマイクロ命令はマイクロ命令レジスタ16に与え
られて、マイクロ・プログラム制御が行われる。また、
マイクロ・プログラム・カウンタ15はマイクロ命令が
実行されると、制御記憶部14のアドレスに1を加え
て、MPXを介して制御記憶部14に与え、次のマイク
ロ命令が読み出される。
The OP code stored in the OP code buffer 13a of the instruction buffer 13 is given to the control storage unit 14 via the MPX 17, and the OP code is stored in the control storage unit 14.
The micro instruction is read as the address of. The read microinstruction is given to the microinstruction register 16 and microprogram control is performed. Also,
When a microinstruction is executed, the micro program counter 15 adds 1 to the address of the control storage unit 14 and gives it to the control storage unit 14 via MPX, and the next microinstruction is read.

【0022】ここで、主記憶装置12から命令を読み出
し命令バッファ13に格納する際、エラーが発生すると
エラー要因が命令バッファ13のステータス・バッファ
13bにセットされる。未定義命令コード発生部19は
ステータス・バッファ13bにエラー要因がセットされ
ると、第1の所定の未定義命令コード(例えば、{’F
F’})を発生する。この未定義命令コードはMPX1
7を介して制御記憶部14に与えられ、上記した第1の
未定義命令コードに対応したアドレスのエラー処理プロ
グラムが呼び出されて実行される。
Here, when an instruction is read from the main memory 12 and stored in the instruction buffer 13, when an error occurs, the error factor is set in the status buffer 13b of the instruction buffer 13. When an error factor is set in the status buffer 13b, the undefined instruction code generator 19 causes a first predetermined undefined instruction code (for example, {'F
F ′}) is generated. This undefined instruction code is MPX1
The error processing program of the address given to the control storage unit 14 via 7 and called at the address corresponding to the first undefined instruction code is called and executed.

【0023】また、プログラムの暴走などにより、命令
バッファ13のOPコード・バッファ13aに未定義命
令コードがセットされると、未定義命令コード検出部1
8が出力を発生し、未定義命令コード発生部19は第2
の所定の未定義命令コード(例えば{’80’})を発
生する。この未定義命令コードはMPX17を介して制
御記憶部14に与えられ、上記した第2の未定義命令コ
ードに対応したアドレスの処理プログラムが呼び出され
て実行される。
When an undefined instruction code is set in the OP code buffer 13a of the instruction buffer 13 due to a program runaway or the like, the undefined instruction code detection unit 1
8 generates an output, and the undefined instruction code generator 19 outputs the second
A predetermined undefined instruction code (eg, {'80'}) of This undefined instruction code is given to the control storage unit 14 via the MPX 17, and the processing program of the address corresponding to the above-mentioned second undefined instruction code is called and executed.

【0024】未定義命令コード検出部18を設け、未定
義命令コード検出時、第2の未定義命令コードを発生し
それに対応した処理を実行するように構成することによ
り、エラーの発生により未定義命令コード発生部19が
未定義命令コードを発生した場合と、プログラムの暴走
などによりOPコード・バッファ13aより未定義命令
コードが出力された場合を弁別することができる。
By providing the undefined instruction code detection unit 18 and generating a second undefined instruction code when an undefined instruction code is detected and executing a process corresponding to the second undefined instruction code, an undefined instruction code is generated when an error occurs. It is possible to discriminate between the case where the instruction code generator 19 generates an undefined instruction code and the case where the undefined instruction code is output from the OP code buffer 13a due to a program runaway or the like.

【0025】本実施例は上記のようにエラー検出時、未
定義命令コードを制御記憶部に出力しエラー処理を行う
ように構成したので、従来例におけるマイクロ割込回路
が不必要となるとともに、マイクロ割込処理を行うため
のマイクロ・アドレス生成処理が不必要となり、エラー
処理を簡潔に行うことが出来る。また、OPコードの未
使用コード(未定義命令コード)に制御記憶部14のエ
ラー処理アドレスを対応させているので、エラー処理の
ためのアドレス・ラインを設けることなくエラー処理を
行うことができ、ハード・ウェアの構成を簡単にするこ
とができる。
In this embodiment, as described above, when an error is detected, the undefined instruction code is output to the control storage unit to perform the error processing. Therefore, the micro interrupt circuit in the conventional example is not necessary, and The micro address generation process for performing the micro interrupt process is unnecessary, and the error process can be simplified. Further, since the error processing address of the control storage unit 14 is associated with the unused code (undefined instruction code) of the OP code, error processing can be performed without providing an address line for error processing. The hardware configuration can be simplified.

【0026】なお、上記実施例においては、エラー発生
時に出力される未定義命令コードが1種類である場合に
ついて説明したが、ステータス・バッファ13bに複数
のエラー要因がセットされる場合には、それに応じて複
数の未定義命令コードを割り当て、エラー要因に対応し
た処理を実行することができる。図4は本発明の第2の
実施例を示す図である。同図aはその構成の一部を示し
たものであり、同図aに示した部分以外の構成は図3に
示したものと同様の構成を持ち、図3と同一の構成要素
には同一の符号が付されている。また、同図bは同図a
の動作を説明する図である。
In the above embodiment, the case where there is only one type of undefined instruction code output when an error occurs has been described. However, when a plurality of error factors are set in the status buffer 13b, Accordingly, a plurality of undefined instruction codes can be assigned and the processing corresponding to the error factor can be executed. FIG. 4 is a diagram showing a second embodiment of the present invention. The figure a shows a part of the configuration, and the configuration other than the part shown in the figure a has the same configuration as that shown in FIG. 3, and the same components as those in FIG. 3 are the same. Is attached. In addition, FIG.
FIG. 6 is a diagram illustrating the operation of FIG.

【0027】本実施例は、OPコード・バッファ13a
の出力に加えて、ステータス・バッファ13bの出力を
MPX17に加えるように構成したものであり、例え
ば、OPコードが8ビットで、ステータス・バッファ1
3bの出力が1ビットの場合には、同図に示すように、
MPX17には、9ビットの信号が加わる。そして、命
令フェッチ時にエラーが発生し、エラー要因がステータ
ス・バッファ13bにセットされると、図4bに示すよ
うに、制御記憶部14のアドレス(図4bのCSアドレ
ス)の先頭ビットにエラー信号がセットされる。
In this embodiment, the OP code buffer 13a is used.
In addition to the output of the status buffer 13b, the output of the status buffer 13b is added to the MPX17. For example, the OP code is 8 bits and the status buffer 1
When the output of 3b is 1 bit, as shown in FIG.
A 9-bit signal is added to the MPX 17. Then, when an error occurs at the time of instruction fetch and the error factor is set in the status buffer 13b, as shown in FIG. 4b, an error signal is sent to the first bit of the address (CS address in FIG. 4b) of the control storage unit 14. Is set.

【0028】一方、制御記憶部14の対応したアドレス
には、エラー処理プログラムが格納されており、図4b
のCSアドレスの先頭ビットにエラー信号がセットされ
ると、エラー処理プログラムが呼び出されエラー処理が
実行される。本実施例においては、上記のように構成し
たので、従来例におけるマイクロ割込回路が不必要とな
るとともに、マイクロ割込処理を行うためのマイクロ・
アドレス生成処理が不必要となり、エラー処理を簡潔に
行うことが出来る。
On the other hand, an error processing program is stored in the corresponding address of the control storage unit 14, as shown in FIG.
When the error signal is set to the first bit of the CS address of, the error processing program is called and the error processing is executed. In the present embodiment, since it is configured as described above, the micro interrupt circuit in the conventional example becomes unnecessary, and the micro interrupt circuit for performing the micro interrupt processing is not required.
Address generation processing is unnecessary and error processing can be simplified.

【0029】なお、ステータス・バッファ13bに複数
のエラー要因がセットされる場合には、それに応じて制
御記憶部14のアドレスのビット数を増加し、エラー要
因に対応したエラー処理を行うことができる。
When a plurality of error factors are set in the status buffer 13b, the number of bits of the address of the control storage unit 14 can be increased accordingly and error processing corresponding to the error factors can be performed. ..

【0030】[0030]

【発明の効果】以上説明したことから明らかなように、
本発明においては、従来例におけるマイクロ割込回路が
不必要となるとともに、マイクロ割込処理を行うための
マイクロ・アドレス生成処理が不必要となり、エラー処
理を簡潔に行うことが出来る。特に、本発明の請求項1
の発明によれば、OPコードの未使用コード(未定義命
令コード)に制御記憶部14のエラー処理アドレスを対
応させているので、制御記憶部14にエラー処理のため
のアドレス・ラインを余分に設けることなくエラー処理
を行うことができ、ハード・ウェアの構成を簡単にする
ことができる。
As is clear from the above description,
In the present invention, the micro interrupt circuit in the conventional example is not necessary, and the micro address generation process for performing the micro interrupt process is unnecessary, so that the error process can be simply performed. In particular, claim 1 of the present invention
According to the invention, since the error processing address of the control storage unit 14 is associated with the unused code (undefined instruction code) of the OP code, an extra address line for error processing is added to the control storage unit 14. Error processing can be performed without providing, and the hardware configuration can be simplified.

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

【図1】本発明の原理図である。FIG. 1 is a principle diagram of the present invention.

【図2】本発明の原理図である。FIG. 2 is a principle view of the present invention.

【図3】本発明の第1の実施例を示す図である。FIG. 3 is a diagram showing a first embodiment of the present invention.

【図4】本発明の第2の実施例を示す図である。FIG. 4 is a diagram showing a second embodiment of the present invention.

【図5】従来例を示す図である。FIG. 5 is a diagram showing a conventional example.

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

11 MMU 12 主記憶装置 1,13 命令バッファ 13a OPコード・バッファ 13b ステータス・バッファ 4,14 制御記憶部 15 マイクロ・プログラム・カウンタ 16 マイクロ命令レジスタ 17 MPX 5.18 未定義命令コード検出部 3,19 未定義命令コード発生部 11 MMU 12 Main memory 1, 13 Instruction buffer 13a OP code buffer 13b Status buffer 4,14 Control memory 15 Micro program counter 16 Micro instruction register 17 MPX 5.18 Undefined instruction code detector 3,19 Undefined instruction code generator

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 主記憶部より読み出した命令を命令バッ
ファ(1) に格納し、命令バッファ(1) に格納されたオペ
レーション・コードをアドレスとして制御記憶部(4) よ
りマイクロ命令を読み出しマイクロ処理を実行するマイ
クロ制御方式の命令フェッチにおけるエラー処理方式に
おいて、 命令フェッチにおいてエラーが発生し命令バッファ(1)
のステータス(2) にエラー要因がセットされたときに所
定の未定義命令コードを発生する未定義命令コード発生
手段(3) を設け、 未定義命令コード発生手段(3) の出力する未定義命令コ
ードをアドレスとして、制御記憶部(4) よりエラー処理
プログラムを呼び出し実行することにより、エラー処理
を行うことを特徴とする命令フェッチにおけるエラー処
理方式。
1. A micro-process in which an instruction read from a main memory is stored in an instruction buffer (1), and a micro-instruction is read from a control memory (4) using an operation code stored in the instruction buffer (1) as an address. In the error processing method of the instruction fetch of the micro control method that executes
An undefined instruction code generation means (3) that generates a predetermined undefined instruction code when an error factor is set in the status (2) of is provided, and the undefined instruction output by the undefined instruction code generation means (3) An error processing method in an instruction fetch characterized in that error processing is performed by calling an error processing program from the control storage unit (4) and executing it using a code as an address.
【請求項2】 命令バッファ(1) に未定義命令コードが
格納されたことを検出する未定義命令コード検出手段
(5) を設け、 未定義命令コード検出手段(5) により未定義命令コード
が検出されたとき、未定義命令コード発生手段(3) より
第2の所定の未定義命令コードを発生し、 未定義命令コード発生手段(3) の出力する第2の未定義
命令コードをアドレスとして、制御記憶部(4) より所定
の処理プログラムを呼び出し実行することを特徴とする
請求項1の命令フェッチにおけるエラー処理方式。
2. An undefined instruction code detecting means for detecting that an undefined instruction code is stored in the instruction buffer (1).
(5) is provided, and when the undefined instruction code detection means (5) detects an undefined instruction code, the undefined instruction code generation means (3) generates a second predetermined undefined instruction code, The instruction fetch error according to claim 1, wherein a predetermined processing program is called from the control storage unit (4) and executed by using the second undefined instruction code output from the defined instruction code generation means (3) as an address. Processing method.
【請求項3】 主記憶部より読み出した命令を命令バッ
ファ(1) に格納し、命令バッファ(1) に格納されたオペ
レーション・コードをアドレスとして制御記憶部(4) よ
りマイクロ命令を読み出しマイクロ処理を実行するマイ
クロ制御方式の命令フェッチにおけるエラー処理方式に
おいて、 命令フェッチにおいてエラーが発生したときにエラー要
因がセットされるステータス(2) の出力信号を制御記憶
部(4) に与え、 命令フェッチにおいてエラーが発生した場合、上記ステ
ータス(2) の出力信号に基づき制御記憶部(4) のエラー
処理プログラムを呼び出し実行することにより、エラー
処理を行うことを特徴とする命令フェッチにおけるエラ
ー処理方式。
3. The instruction read from the main memory is stored in the instruction buffer (1), and the microcode is read from the control memory (4) by using the operation code stored in the instruction buffer (1) as an address. In the error processing method for the instruction fetch of the micro control method that executes the, the output signal of the status (2), which sets the error factor when an error occurs in the instruction fetch, is given to the control storage unit (4) and When an error occurs, the error processing method in the instruction fetch is characterized in that the error processing is performed by calling and executing the error processing program of the control storage unit (4) based on the output signal of the status (2).
JP00508792A 1992-01-14 1992-01-14 Error handling method in micro program control Expired - Fee Related JP3157242B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP00508792A JP3157242B2 (en) 1992-01-14 1992-01-14 Error handling method in micro program control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00508792A JP3157242B2 (en) 1992-01-14 1992-01-14 Error handling method in micro program control

Publications (2)

Publication Number Publication Date
JPH05189231A true JPH05189231A (en) 1993-07-30
JP3157242B2 JP3157242B2 (en) 2001-04-16

Family

ID=11601613

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00508792A Expired - Fee Related JP3157242B2 (en) 1992-01-14 1992-01-14 Error handling method in micro program control

Country Status (1)

Country Link
JP (1) JP3157242B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008217070A (en) * 2007-02-28 2008-09-18 Fujitsu Ltd Computer system and memory system
JP2013539574A (en) * 2010-08-11 2013-10-24 アーム・リミテッド Incorrect mode change operation

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008217070A (en) * 2007-02-28 2008-09-18 Fujitsu Ltd Computer system and memory system
US8423834B2 (en) 2007-02-28 2013-04-16 Fujitsu Semiconductor Limited Computer system and memory system
JP2013539574A (en) * 2010-08-11 2013-10-24 アーム・リミテッド Incorrect mode change operation
US8959318B2 (en) 2010-08-11 2015-02-17 Arm Limited Illegal mode change handling

Also Published As

Publication number Publication date
JP3157242B2 (en) 2001-04-16

Similar Documents

Publication Publication Date Title
JPS6029126B2 (en) data processing equipment
US4446517A (en) Microprogram memory with page addressing and address decode in memory
JPH05189231A (en) Error processing system in instruction fetch
KR940011040B1 (en) Microcomputer
JP2511151B2 (en) Data processing device
JPH01120638A (en) Information processor
JPS6278630A (en) Information processor
JP3057732B2 (en) Information processing device
JPS60193047A (en) Mode checking system of microprogram
JP2689894B2 (en) Micro program control type information processing device
JPS6086625A (en) Data processing device
JPS5936853A (en) Operation processor
JPH0522935B2 (en)
JPH04137138A (en) Information processor
JPS6011932A (en) Microprogram controller
JPS6015969B2 (en) Microinstruction address generation method
JPS62272326A (en) Microprogram controller
JPS61160149A (en) Data processor
JPS6282439A (en) False trouble generating system
JP2000283750A (en) Method for correcting detected-angle data
JPS6212545B2 (en)
JPH0512005A (en) Information processor
JPH0290332A (en) Data processor
JPS6239782B2 (en)
JPS58125152A (en) Data processor

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees