JPH05204770A - Method for recovering memory error - Google Patents

Method for recovering memory error

Info

Publication number
JPH05204770A
JPH05204770A JP4245318A JP24531892A JPH05204770A JP H05204770 A JPH05204770 A JP H05204770A JP 4245318 A JP4245318 A JP 4245318A JP 24531892 A JP24531892 A JP 24531892A JP H05204770 A JPH05204770 A JP H05204770A
Authority
JP
Japan
Prior art keywords
error
microprogram
storage area
control means
load
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
JP4245318A
Other languages
Japanese (ja)
Inventor
Kazuhiko Kosaka
和彦 小坂
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 JP4245318A priority Critical patent/JPH05204770A/en
Publication of JPH05204770A publication Critical patent/JPH05204770A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To attain the reliable control circuit or controller capable of high- speed error recovery in a microprogram storage area. CONSTITUTION:A microprogram control means 11 allows a load/write control means 18 to load the microprogram for microprogram storage areas 12 and 13 from an external storage device 19 after the initializing. The reading and writing of data is performed at the same position on the microprogram storage areas 12 and 13. When the occurrence of an error is informed from an error detection means 14, the error information is stored in an error information storage area 16 and the data read from an error-free microprogram storage area is selected by a microprogram selection means 15.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、情報処理装置のマイク
ロプログラム制御方法に関し、特に、メモリエラーリカ
バリ方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microprogram control method for an information processing device, and more particularly to a memory error recovery method.

【0002】[0002]

【従来の技術】従来のマイクロプログラム制御方法で
は、マイクロプログラム格納域に生じたエラーを訂正す
るものとしないものが存在するが、いずれもマイクロプ
ログラム格納域を複数もっていない。
2. Description of the Related Art In conventional microprogram control methods, there are some which do not correct an error occurring in a microprogram storage area, but none of them have a plurality of microprogram storage areas.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のマイク
ロプログラム制御方法のうち、マイクロプログラム格納
域に生じたエラーを訂正しないものでは、マイクロプロ
グラム格納域にエラーが生じた場合、マイクロプログラ
ム格納域を複数もっていないためにマイクロプログラム
の実行を停止するか、または異常な状態のままマイクロ
プログラムの実行を続けるという問題がある。
Among the above-mentioned conventional microprogram control methods, the one that does not correct the error that has occurred in the microprogram storage area does not correct the microprogram storage area when an error occurs in the microprogram storage area. There is a problem that the execution of the microprogram is stopped because there are no more than one, or the execution of the microprogram is continued in an abnormal state.

【0004】また、訂正するものもエラーを訂正しない
ものと同様に、マイクロプログラム格納域に訂正不可能
なエラーが生じた場合、マイクロプログラム格納域を複
数もっていないためにマイクロプログラムの実行を停止
するか、または異常な状態のままマイクロプログラムの
実行を続けるという問題がある。
Similarly to the case of correcting an error and the case of not correcting an error, when an uncorrectable error occurs in the microprogram storage area, the execution of the microprogram is stopped because there is no plural microprogram storage area. Or, there is a problem that the microprogram continues to be executed in an abnormal state.

【0005】[0005]

【課題を解決するための手段】本発明のメモリエラーリ
カバリ方法は、複数のマイクロプログラム格納域に対す
る外部記憶装置からのマイクロプログラムのロード制
御、および前記複数のマイクロプログラム格納域に対す
るデータ書込み制御を行うロード/書込み制御手段と、
前記マイクロプログラム格納域に生じたエラーを検出す
るエラー検出手段と、前記ロード/書込み制御手段およ
び前記エラー検出手段から通知されたエラー情報を記憶
するエラー情報記憶域と、前記複数のマイクロプログラ
ム格納域から読み出されたデータの選択を行うマイクロ
プログラム選択手段と、マイクロプログラムの実行制
御、およびエラー処理制御を行うマイクロプログラム制
御手段とを実行するメモリエラーリカバリ方法であっ
て、前記ロード/書込み制御手段は、前記マイクロプロ
グラム制御手段からの要求により、前記複数のマイクロ
プログラム格納域の各々に対する前記外部記憶装置から
の同一マイクロプログラムのロード、および前記複数の
マイクロプログラム格納域の各々に対する同一データの
書込み、およびロード時にエラーが発生した場合は前記
マイクロプログラム制御手段に対するエラー通知を行
い、前記エラー検出手段は、前記のマイクロプログラム
格納域のエラーを検出した場合は、前記マイクロプログ
ラム制御手段に対してエラー通知を行い、前記エラー記
憶域は、前記マイクロプログラム制御手段からの要求に
より、前記ロード/書込み制御手段および前記エラー検
出手段から通知されたエラー情報を記憶し、前記マイク
ロプログラム選択手段は、前記マイクロプログラム制御
手段からの要求により、指定されたマイクロプログラム
格納域から読み出されたデータを選択し、前記制御信号
生成手段は、前記マイクロプログラム制御手段からの要
求により、前記マイクロプログラム選択手段により選択
されたデータに基づいて制御信号を生成し、前記マイク
ロプログラム制御手段は、前記ロード/書込み制御手段
に対するロード/書込みを要求し、前記複数のマイクロ
プログラム格納域からのデータ読み出しを行い、前記ロ
ード/書込み制御手段からのエラー通知を受け付けた場
合には前記エラー記憶域へエラー情報を格納し、前記エ
ラー検出手段からのエラー通知を受け付けた場合には前
記エラー記憶域へエラー情報を格納するとともに該エラ
ー情報に基づいてエラーとなっていないマイクロプログ
ラム格納域から読み出したデータを選択させることを特
徴とする。
A memory error recovery method of the present invention performs load control of a micro program from an external storage device to a plurality of micro program storage areas and data write control to the plurality of micro program storage areas. Load / write control means,
Error detection means for detecting an error occurring in the microprogram storage area, error information storage area for storing the error information notified from the load / write control means and the error detection means, and the plurality of microprogram storage areas A memory error recovery method for executing microprogram selection means for selecting data read from a memory, and microprogram control means for executing microprogram execution control and error processing control, the load / write control means A load of the same microprogram from the external storage device into each of the plurality of microprogram storage areas and a writing of the same data into each of the plurality of microprogram storage areas according to a request from the microprogram control means. And load When an error occurs in the micro program control means, an error notification is given to the micro program control means, and when the error detection means detects an error in the micro program storage area, an error notification is given to the micro program control means. The error storage area stores the error information notified from the load / write control means and the error detection means in response to a request from the microprogram control means, and the microprogram selection means is the microprogram control means. The data read from the designated microprogram storage area is selected by the request from the microprogram control means, and the control signal generation means converts the data selected by the microprogram selection means into the data selected by the microprogram control means. Generate a control signal based on The microprogram control means requests load / write to the load / write control means, reads data from the plurality of microprogram storage areas, and receives an error notification from the load / write control means. Stores error information in the error storage area, stores error information in the error storage area when an error notification from the error detection means is accepted, and does not cause an error based on the error information It is characterized in that the data read from the storage area is selected.

【0006】[0006]

【実施例】次に、本発明について、図面を参照して詳細
に説明する。
Next, the present invention will be described in detail with reference to the drawings.

【0007】図1は、本発明の第1の一実施例を示す構
成図である。この実施例は、マイクロプログラム制御手
段11、マイクロプログラム格納域12、マイクロプロ
グラム格納域13、エラー検出手段14、マイクロプロ
グラム選択手段15、エラー情報記憶域16、制御信号
生成手段17、ロード/書き込み制御手段18、外部記
憶装置19とから成っている。
FIG. 1 is a block diagram showing a first embodiment of the present invention. In this embodiment, the micro program control means 11, the micro program storage area 12, the micro program storage area 13, the error detection means 14, the micro program selection means 15, the error information storage area 16, the control signal generation means 17, the load / write control. It comprises means 18 and an external storage device 19.

【0008】図4は図1の実施例の処理フローを示し、
図9はロード/書き込み制御手段18の処理フロー、図
11はエラー検出手段14の処理フローを示す。
FIG. 4 shows a processing flow of the embodiment shown in FIG.
9 shows a processing flow of the load / write control means 18, and FIG. 11 shows a processing flow of the error detection means 14.

【0009】次に、この実施例の動作について図1、図
4、図9、および図11を参照して説明する。
Next, the operation of this embodiment will be described with reference to FIGS. 1, 4, 9, and 11.

【0010】マイクロプログラム制御手段11は、ま
ず、電源投入または外部からの起動要求により初期化処
理を行い(ステップ401)、ロード/書込み制御手段
18に対しマイクロプログラムロード要求を発行(ステ
ップ402)する。
The microprogram control means 11 first performs initialization processing in response to power-on or a start request from the outside (step 401) and issues a microprogram load request to the load / write control means 18 (step 402). ..

【0011】次に、マイクロプログラム制御手段11は
ロード/書き込み制御手段18からの終了通知の判定を
行う(ステップ403)。
Next, the micro program control means 11 determines the end notification from the load / write control means 18 (step 403).

【0012】終了通知が正常終了通知である場合は、マ
イクロプログラム格納域12およびマイクロプログラム
格納域13のうち、あらかじめ定められた方を選択する
ようマイクロプログラム選択手段15に通知(ステップ
404)した後、マイクロプログラムの読出し/実行を
開始する。
If the end notification is a normal end notification, the micro program selecting means 15 is notified to select a predetermined one of the micro program storage area 12 and the micro program storage area 13 (step 404). , Starts reading / execution of the microprogram.

【0013】逆に、該終了通知が異常終了通知である場
合は、まず、マイクロプログラム格納域12およびマイ
クロプログラム格納域13のどちら側でロードエラーが
発生したか等のエラー情報をエラー情報記憶域16に記
憶させ(ステップ412)、ロード異常終了の外部制御
信号を生成するように制御信号生成手段17に通知する
(ステップ413)。次に、マイクロプログラムロード
異常終了がマイクロプログラム格納域12およびマイク
ロプログラム格納域13の両側であるかもしくは片側で
あるかを判定し(ステップ414)、両側のロード異常
終了の場合はマイクロプログラムの制御を停止(ステッ
プ415)する。片側のロード異常終了の場合は正常終
了した側を選択するようマイクロプログラム選択手段1
5に通知した後(ステップ404)、マイクロプログラ
ムの読出し/実行を開始する。
On the contrary, when the end notification is an abnormal end notification, first, error information such as which side of the microprogram storage area 12 and the microprogram storage area 13 the load error occurred is displayed in the error information storage area. 16 (step 412) and notifies the control signal generation means 17 to generate an external control signal for abnormal end of load (step 413). Next, it is determined whether the abnormal termination of the micro program load is on both sides or one side of the micro program storage area 12 and the micro program storage area 13 (step 414). Is stopped (step 415). In the case of abnormal termination of loading on one side, the microprogram selecting means 1 is selected so as to select the side that has terminated normally.
After notifying 5 (step 404), reading / execution of the microprogram is started.

【0014】マイクロプログラムのロードが終了し、選
択通知を行った後はマイクロプログラムの読出しを行う
(ステップ405)。
After the loading of the microprogram is completed and the selection is notified, the microprogram is read (step 405).

【0015】マイクロプログラムの読出しは、マイクロ
プログラムロード正常終了の場合も異常終了の場合もマ
イクロプログラム格納域12およびマイクロプログラム
格納域13の同一アドレスから同時に行われ、マイクロ
プログラム選択手段15はマイクロプログラム制御手段
11からの制御信号により選択された側のマイクロ命令
を制御信号生成手段17に渡す。
The reading of the microprogram is performed simultaneously from the same address in the microprogram storage area 12 and the microprogram storage area 13 regardless of whether the microprogram loading is normally completed or abnormally completed, and the microprogram selection means 15 controls the microprogram. The microinstruction on the side selected by the control signal from the means 11 is passed to the control signal generation means 17.

【0016】マイクロプログラムの読出しを行った後
は、エラー検出手段14からのエラー通知があるか否か
を判定する(ステップ406)。
After reading the microprogram, it is determined whether or not there is an error notification from the error detecting means 14 (step 406).

【0017】エラー通知がある場合はマイクロプログラ
ム制御手段11は、まず、マイクロプログラム格納域1
2およびマイクロプログラム格納域13のどちらのマイ
クロプログラム格納域でエラーが発生したかということ
をエラー情報記憶域16に記憶させ、制御信号生成手段
17に外部制御信号を生成させる(ステップ409)。
次に、エラーがマイクロプログラム格納域12およびマ
イクロプログラム格納域13の両側で発生しているか否
かを判定し(ステップ410)、両側エラーの場合はマ
イクロプログラムの実行を停止する(ステップ41
5)。片側エラーの場合は、エラーが現在選択している
側であるか否かを判定し(ステップ411)、現在選択
している側である場合は反対側のマイクロプログラム格
納域を選択するようにマイクロプログラム選択手段16
に通知し(ステップ404)、現在選択している側でな
ければ外部制御信号と内部制御信号を生成するよう制御
信号生成手段17に通知し(ステップ407)、次に読
み出すマイクロ命令のアドレスを求める(ステップ40
8)。
When there is an error notification, the microprogram control means 11 firstly, the microprogram storage area 1
It is stored in the error information storage area 16 which microprogram storage area 2 or the microprogram storage area 13 has the error, and the control signal generation means 17 is caused to generate an external control signal (step 409).
Next, it is determined whether or not an error has occurred on both sides of the microprogram storage area 12 and the microprogram storage area 13 (step 410), and if there is a double-sided error, execution of the microprogram is stopped (step 41).
5). In the case of a one-sided error, it is determined whether or not the error is the currently selected side (step 411), and if it is the currently selected side, the micro program storage area on the opposite side is selected. Program selection means 16
To the control signal generating means 17 to generate the external control signal and the internal control signal (step 407) and obtain the address of the microinstruction to be read next. (Step 40
8).

【0018】エラー検出手段14からのエラー通知がな
い場合、マイクロプログラム制御手段11は、マイクロ
プログラム選択手段15から渡されたマイクロ命令およ
びマイクロプログラム制御手段11からの制御信号に基
づいて外部制御信号と内部制御信号を生成するよう制御
信号生成手段17に通知し(ステップ407)、次に読
み出すマイクロ命令のアドレスを求める(ステップ40
8)。
When there is no error notification from the error detection means 14, the micro program control means 11 detects an external control signal based on the micro instruction passed from the micro program selection means 15 and the control signal from the micro program control means 11. The control signal generation means 17 is notified to generate the internal control signal (step 407), and the address of the microinstruction to be read next is obtained (step 40).
8).

【0019】以後、エラー検出手段14からのエラー通
知がない間、マイクロ命令読み出し(ステップ40
5)、エラー通知判定(ステップ406)、制御信号生
成(ステップ407)、読み出しアドレス生成(ステッ
プ408)を繰り返す。
After that, while there is no error notification from the error detecting means 14, the micro instruction reading (step 40
5), error notification determination (step 406), control signal generation (step 407), and read address generation (step 408) are repeated.

【0020】ロード/書き込み制御手段18の動作につ
いて、図1、図9を参照して説明する。
The operation of the load / write control means 18 will be described with reference to FIGS.

【0021】ロード/書き込み制御手段18は、まず、
マイクロプログラム制御手段11からの通知がマイクロ
プログムロード要求であるか否かを判定する(ステップ
901)。
The load / write control means 18 first
It is determined whether or not the notification from the micro program control means 11 is a micro program load request (step 901).

【0022】マイクロプログラム制御手段11からの通
知がマイクロプログムロード要求である場合には外部記
憶装置19からマイクロプログラムを読み出し(ステッ
プ902)、読み出しの異常判定を行う(ステップ90
3)。読み出し異常がなければ、マイクロプログラム格
納域12およびマイクロプログラム格納域13へ転送し
(ステップ904)、転送の異常判定をおこなう(ステ
ップ905)。ロード/書き込み制御手段19は、マイ
クロプログラム制御手段11に対し、マイクロプログラ
ム格納域12およびマイクロプログラム格納域13の両
側へのマイクロプログラムロードが正常終了した場合に
正常終了通知を行い(ステップ906)、外部記憶装置
19からのマイクロプログラム読み出しで異常が生じた
場合、ならびに、マイクロプログラム格納域12および
マイクロプログラム格納域13のいずれかもしくは両方
のマイクロプログラム転送が異常終了した場合には、異
常終了通知を行う(ステップ907)。
When the notification from the micro program control means 11 is a micro program load request, the micro program is read from the external storage device 19 (step 902) and a read abnormality determination is performed (step 90).
3). If there is no read abnormality, the data is transferred to the micro program storage area 12 and the micro program storage area 13 (step 904), and the transfer abnormality determination is performed (step 905). The load / write control means 19 gives a normal end notification to the microprogram control means 11 when the microprogram loading on both sides of the microprogram storage area 12 and the microprogram storage area 13 is completed normally (step 906), If an abnormality occurs in reading the micro program from the external storage device 19 and if the transfer of the micro program to either or both of the micro program storage area 12 and the micro program storage area 13 ends abnormally, an abnormal end notification is issued. Perform (step 907).

【0023】マイクロプログラム制御手段11からの通
知が書き込み要求の場合には、マイクロプログラム格納
域12およびマイクロプログラム格納域13の両側にデ
ータ書き込みを行う(ステップ908)。
When the notification from the micro program control means 11 is a write request, data is written to both sides of the micro program storage area 12 and the micro program storage area 13 (step 908).

【0024】エラー検出手段14の動作について、図
1、図11を参照して説明する。
The operation of the error detecting means 14 will be described with reference to FIGS.

【0025】エラー検出手段14は、マイクロプログラ
ム格納域12およびマイクロプログラム格納域13の同
一アドレスから読み出されたマイクロ命令に基づいてエ
ラーが発生しているか否かを判定し(ステップ110
1)、いずれかのマイクロプログラム格納域にエラーが
発生している場合はマイクロプログラム制御手段11へ
通知する(ステップ1102)。
The error detecting means 14 determines whether or not an error has occurred based on the micro instruction read from the same address in the micro program storage area 12 and the micro program storage area 13 (step 110).
1) If an error occurs in any of the microprogram storage areas, the microprogram control means 11 is notified (step 1102).

【0026】以上説明したように、本発明の第1の実施
例では、複数のマイクロプログラム格納域に同一のマイ
クロプログラムを格納し、それらのいずれかにエラーが
発生した場合はエラーの発生していないマイクロプログ
ラム格納域から読み出されたマイクロプログラムを選択
する。このため、エラー訂正手段を使用せずに高信頼性
を保持でき、エラーリカバリを高速に行えるという効果
がある。
As described above, in the first embodiment of the present invention, the same microprogram is stored in a plurality of microprogram storage areas, and if an error occurs in any of them, an error occurs. Selects the microprogram read from the empty microprogram storage area. Therefore, there is an effect that high reliability can be maintained without using error correction means and error recovery can be performed at high speed.

【0027】また、信頼性を高くしたい場合はマイクロ
プログラム格納域を増やすだけでよく、マイクロプログ
ラム格納域を増やした場合も実行速度は低下しないとい
う特徴がある。
Further, if the reliability is desired to be high, it is sufficient to increase the microprogram storage area, and even if the microprogram storage area is increased, the execution speed does not decrease.

【0028】本発明の第2の実施例について、図面を参
照して詳細に説明する。
The second embodiment of the present invention will be described in detail with reference to the drawings.

【0029】図1は、本発明の第2の一実施例を示す構
成図で、マイクロプログラム制御手段11、マイクロプ
ログラム格納域12、マイクロプログラム格納域13、
エラー検出手段14、マイクロプログラム選択手段1
5、エラー情報記憶域16、制御信号生成手段17、ロ
ード/書き込み制御手段18、外部記憶装置19とから
成っている。
FIG. 1 is a block diagram showing a second embodiment of the present invention, in which a micro program control means 11, a micro program storage area 12, a micro program storage area 13,
Error detection means 14 and microprogram selection means 1
5, error information storage area 16, control signal generation means 17, load / write control means 18, and external storage device 19.

【0030】図5はこの実施例の制御フロー、図9はロ
ード/書き込み制御手段18の処理フロー、図11はエ
ラー検出手段14の処理フローを示す。
FIG. 5 shows the control flow of this embodiment, FIG. 9 shows the processing flow of the load / write control means 18, and FIG. 11 shows the processing flow of the error detection means 14.

【0031】次に、この実施例の動作について図1、図
5、図9、および図11を参照して説明する。
Next, the operation of this embodiment will be described with reference to FIGS. 1, 5, 9 and 11.

【0032】マイクロプログラム制御手段11は、ま
ず、電源投入または外部からの起動要求により初期化処
理を行い(ステップ501)、ロード/書込み制御手段
18に対しマイクロプログラムロード要求を発行(ステ
ップ502)する。
The micro program control means 11 first performs initialization processing in response to power-on or a start request from the outside (step 501) and issues a micro program load request to the load / write control means 18 (step 502). ..

【0033】次に、マイクロプログラム制御手段11は
ロード/書き込み制御手段18からの終了通知の判定を
行う(ステップ503)。
Next, the micro program control means 11 judges the end notification from the load / write control means 18 (step 503).

【0034】終了通知が正常終了通知である場合は、マ
イクロプログラム格納域12およびマイクロプログラム
格納域13のうち、あらかじめ定められた方を選択する
ようマイクロプログラム選択手段15に通知(ステップ
504)した後、マイクロプログラムの読出し/実行を
開始する。
If the end notification is a normal end notification, the micro program selecting means 15 is notified to select a predetermined one of the micro program storage area 12 and the micro program storage area 13 (step 504). , Starts reading / execution of the microprogram.

【0035】逆に、該終了通知が異常終了通知である場
合は、まず、マイクロプログラム格納域12およびマイ
クロプログラム格納域13のどちら側でロードエラーが
発生したか等のエラー情報をエラー情報記憶域16に記
憶させ(ステップ512)、ロード異常終了の外部制御
信号を生成するように制御信号生成手段17に通知する
(ステップ513)。次に、マイクロプログラムロード
異常終了がマイクロプログラム格納域12およびマイク
ロプログラム格納域13の両側であるかもしくは片側で
あるかを判定し(ステップ514)、両側のロード異常
終了の場合はマイクロプログラムの制御を停止(ステッ
プ515)する。片側のロード異常終了の場合は正常終
了した側を選択するようマイクロプログラム選択手段1
5に通知した後(ステップ504)、マイクロプログラ
ムの読出し/実行を開始する。
On the contrary, when the end notification is an abnormal end notification, first, error information such as which side of the microprogram storage area 12 and the microprogram storage area 13 the load error has occurred is stored in the error information storage area. 16 (step 512) and notifies the control signal generation means 17 to generate an external control signal for abnormal end of load (step 513). Next, it is determined whether the abnormal termination of the microprogram load is on both sides or one side of the microprogram storage area 12 and the microprogram storage area 13 (step 514). Is stopped (step 515). In the case of abnormal termination of loading on one side, the microprogram selecting means 1 is selected so as to select the side that has terminated normally.
5 is notified (step 504), the reading / execution of the microprogram is started.

【0036】マイクロプログラムのロードが終了し、選
択通知を行った後はマイクロプログラムの読出しを行う
(ステップ505)。
After the loading of the microprogram is completed and the selection is notified, the microprogram is read (step 505).

【0037】マイクロプログラムの読出しは、マイクロ
プログラムロード正常終了の場合も異常終了の場合もマ
イクロプログラム格納域12およびマイクロプログラム
格納域13の同一アドレスから同時に行われ、マイクロ
プログラム選択手段15はマイクロプログラム制御手段
11からの制御信号により選択された側のマイクロ命令
を制御信号生成手段17に渡す。
Reading of the microprogram is performed simultaneously from the same address in the microprogram storage area 12 and the microprogram storage area 13 regardless of whether the microprogram loading is normally ended or abnormally ended, and the microprogram selection means 15 controls the microprogram. The microinstruction on the side selected by the control signal from the means 11 is passed to the control signal generation means 17.

【0038】マイクロプログラムの読出しを行った後
は、エラー検出手段14からのエラー通知があるか否か
を判定する(ステップ506)。
After reading the microprogram, it is judged whether or not there is an error notification from the error detecting means 14 (step 506).

【0039】エラー通知がある場合はマイクロプログラ
ム制御手段11は、まず、マイクロプログラム格納域1
2およびマイクロプログラム格納域13のどちらのマイ
クロプログラム格納域のどの位置でエラーが発生したか
ということをエラー情報記憶域16に記憶させ、制御信
号生成手段17に外部制御信号を生成させる(ステップ
509)。次に、エラーがマイクロプログラム格納域1
2およびマイクロプログラム格納域13のうち、ロード
エラーとなっていないもの全ての同一位置で発生してい
るか否かを判定し(ステップ510)、ロードエラーと
なっていないもの全ての同一位置で発生している場合は
マイクロプログラムの実行を停止する(ステップ51
5)。逆に、異なる位置で発生している場合は、エラー
が現在選択している側であるか否かを判定し(ステップ
511)、現在選択している側である場合はロードエラ
ーでなくかつエラーが同一位置で発生していないマイク
ロプログラム格納域を選択するようにマイクロプログラ
ム選択手段16に通知し(ステップ504)、現在選択
している側でなければ外部制御信号と内部制御信号を生
成するよう制御信号生成手段17に通知し(ステップ5
07)、次に読み出すマイクロ命令のアドレスを求める
(ステップ508)。
When there is an error notification, the microprogram control means 11 firstly, the microprogram storage area 1
2 and the position of the microprogram storage area of the microprogram storage area 13 where the error occurred is stored in the error information storage area 16, and the control signal generation means 17 is caused to generate the external control signal (step 509). ). Next, the error is microprogram storage area 1.
2 and the microprogram storage area 13, it is determined whether or not all the load error-free ones occur at the same position (step 510), and all the load error-free ones occur at the same position. If so, the execution of the microprogram is stopped (step 51).
5). On the contrary, if it occurs at a different position, it is judged whether or not the error is on the currently selected side (step 511). If it is on the currently selected side, it is not a load error and an error has occurred. Notifies the microprogram selecting means 16 to select a microprogram storage area that has not occurred at the same position (step 504), and generates an external control signal and an internal control signal if it is not the currently selected side. Notify the control signal generation means 17 (step 5
07), and obtains the address of the next microinstruction to be read (step 508).

【0040】エラー検出手段14からのエラー通知がな
い場合、マイクロプログラム制御手段11は、マイクロ
プログラム選択手段15から渡されたマイクロ命令およ
びマイクロプログラム制御手段11からの制御信号に基
づいて外部制御信号と内部制御信号を生成するよう制御
信号生成手段17に通知し(ステップ507)、次に読
み出すマイクロ命令のアドレスを求める(ステップ50
8)。
When there is no error notification from the error detection means 14, the micro program control means 11 detects the external control signal based on the micro instruction passed from the micro program selection means 15 and the control signal from the micro program control means 11. The control signal generating means 17 is notified to generate the internal control signal (step 507), and the address of the microinstruction to be read next is obtained (step 50).
8).

【0041】以後、エラー検出手段14からのエラー通
知がない間、マイクロ命令読み出し(ステップ50
5)、エラー通知判定(ステップ506)、制御信号生
成(ステップ507)、読み出しアドレス生成(ステッ
プ508)を繰り返す。
Thereafter, while there is no error notification from the error detecting means 14, the micro instruction reading (step 50
5), error notification determination (step 506), control signal generation (step 507), and read address generation (step 508) are repeated.

【0042】ロード/書き込み制御手段18の動作につ
いて、図1、図9を参照して説明する。
The operation of the load / write control means 18 will be described with reference to FIGS.

【0043】ロード/書き込み制御手段18は、まず、
マイクロプログラム制御手段11からの通知がマイクロ
プログムロード要求であるか否かを判定する(ステップ
901)。マイクロプログラム制御手段11からの通知
がマイクロプログムロード要求である場合には外部記憶
装置19からマイクロプログラムを読み出し(ステップ
902)、読み出しの異常判定を行う(ステップ90
3)。読み出し異常がなければ、マイクロプログラム格
納域12およびマイクロプログラム格納域13へ転送し
(ステップ904)、転送の異常判定をおこなう(ステ
ップ905)。ロード/書き込み制御手段19は、マイ
クロプログラム制御手段11に対し、マイクロプログラ
ム格納域12およびマイクロプログラム格納域13の両
側へのマイクロプログラムロードが正常終了した場合に
正常終了通知を行い(ステップ906)、外部記憶装置
19からのマイクロプログラム読み出しで異常が生じた
場合、ならびに、マイクロプログラム格納域12および
マイクロプログラム格納域13のいずれかもしくは両方
のマイクロプログラム転送が異常終了した場合には、異
常終了通知を行う(ステップ907)。
The load / write control means 18 first
It is determined whether or not the notification from the micro program control means 11 is a micro program load request (step 901). If the notification from the micro program control means 11 is a micro program load request, the micro program is read from the external storage device 19 (step 902) and a read abnormality determination is performed (step 90).
3). If there is no read abnormality, the data is transferred to the micro program storage area 12 and the micro program storage area 13 (step 904), and the transfer abnormality determination is performed (step 905). The load / write control means 19 gives a normal end notification to the microprogram control means 11 when the microprogram loading on both sides of the microprogram storage area 12 and the microprogram storage area 13 is completed normally (step 906), If an abnormality occurs in reading the micro program from the external storage device 19 and if the transfer of the micro program to either or both of the micro program storage area 12 and the micro program storage area 13 ends abnormally, an abnormal end notification is issued. Perform (step 907).

【0044】マイクロプログラム制御手段11からの通
知が書き込み要求の場合には、マイクロプログラム格納
域12およびマイクロプログラム格納域13の両側にデ
ータ書き込みを行う(ステップ908)。
If the notification from the micro program control means 11 is a write request, data is written to both sides of the micro program storage area 12 and the micro program storage area 13 (step 908).

【0045】エラー検出手段14の動作について、図
1、図11を参照して説明する。
The operation of the error detecting means 14 will be described with reference to FIGS.

【0046】エラー検出手段14は、マイクロプログラ
ム格納域12およびマイクロプログラム格納域13の同
一アドレスから読み出されたマイクロ命令に基づいてエ
ラーが発生しているか否かを判定し(ステップ110
1)、いずれかのマイクロプログラム格納域にエラーが
発生している場合はマイクロプログラム制御手段11へ
通知する(ステップ1102)。
The error detecting means 14 determines whether or not an error has occurred based on the micro instruction read from the same address in the micro program storage area 12 and the micro program storage area 13 (step 110).
1) If an error occurs in any of the microprogram storage areas, the microprogram control means 11 is notified (step 1102).

【0047】以上説明したように、本発明の第2の実施
例では、複数のマイクロプログラム格納域に同一のマイ
クロプログラムを格納し、それらのいずれかにエラーが
発生した場合は同一位置でエラーの発生していないマイ
クロプログラム格納域から読み出されたマイクロプログ
ラムを選択する。
As described above, in the second embodiment of the present invention, the same microprogram is stored in a plurality of microprogram storage areas, and if an error occurs in any of them, the error is generated at the same position. Select the microprogram read from the microprogram storage area that has not occurred.

【0048】通常は、複数の異なる記憶領域の同一位置
でエラーが発生することは極めて稀であるため、エラー
訂正手段を使用せずに高信頼性を保持でき、エラーリカ
バリを高速に行えるという効果がある。
Normally, it is extremely rare for an error to occur at the same position in a plurality of different storage areas, so high reliability can be maintained without using error correction means, and error recovery can be performed at high speed. There is.

【0049】また、信頼性を高くしたい場合はマイクロ
プログラム格納域を増やすだけでよく、マイクロプログ
ラム格納域を増やした場合も実行速度は低下しないとい
う特徴がある。
Further, if the reliability is desired to be increased, it is sufficient to increase the microprogram storage area, and even if the microprogram storage area is increased, the execution speed does not decrease.

【0050】本発明の第3の実施例について、図面を参
照して詳細に説明する。
The third embodiment of the present invention will be described in detail with reference to the drawings.

【0051】図1は、本発明の第3の一実施例を示す構
成図で、マイクロプログラム制御手段11、マイクロプ
ログラム格納域12、マイクロプログラム格納域13、
エラー検出手段14、マイクロプログラム選択手段1
5、エラー情報記憶域16、制御信号生成手段17、ロ
ード/書き込み制御手段18、外部記憶装置19とから
成っている。
FIG. 1 is a block diagram showing a third embodiment of the present invention, in which a micro program control means 11, a micro program storage area 12, a micro program storage area 13,
Error detection means 14 and microprogram selection means 1
5, error information storage area 16, control signal generation means 17, load / write control means 18, and external storage device 19.

【0052】図6はこの実施例の制御フロー、図10は
ロード/書き込み制御手段18の処理フロー、図11は
エラー検出手段14の処理フローを示す。
FIG. 6 shows the control flow of this embodiment, FIG. 10 shows the processing flow of the load / write control means 18, and FIG. 11 shows the processing flow of the error detection means 14.

【0053】次に、この実施例の動作について図1、図
6、図10、および図11を参照して説明する。
Next, the operation of this embodiment will be described with reference to FIGS. 1, 6, 10, and 11.

【0054】マイクロプログラム制御手段11は、ま
ず、電源投入または外部からの起動要求により初期化処
理を行い(ステップ601)、ロード/書込み制御手段
18に対しマイクロプログラムロード要求を発行(ステ
ップ602)する。
The micro program control means 11 first performs initialization processing in response to power-on or a start request from the outside (step 601), and issues a micro program load request to the load / write control means 18 (step 602). ..

【0055】次に、マイクロプログラム制御手段11は
ロード/書き込み制御手段18からの終了通知の判定を
行う(ステップ603)。
Next, the micro program control means 11 judges the end notification from the load / write control means 18 (step 603).

【0056】終了通知が正常終了通知である場合は、ロ
ードが正常終了したマイクロプログラム格納域のエラー
情報をクリアし(ステップ604)、マイクロプログラ
ム格納域12およびマイクロプログラム格納域13のう
ち、あらかじめ定められた方を選択するようマイクロプ
ログラム選択手段15に通知(ステップ605)した
後、マイクロプログラムの読出し/実行を開始する。
If the end notification is a normal end notification, the error information of the microprogram storage area in which the loading is normally completed is cleared (step 604), and one of the microprogram storage area 12 and the microprogram storage area 13 is set in advance. After notifying the microprogram selecting means 15 to select the selected one (step 605), reading / execution of the microprogram is started.

【0057】逆に、該終了通知が異常終了通知である場
合は、まず、マイクロプログラム格納域12およびマイ
クロプログラム格納域13のどちら側でロードエラーが
発生したか等のエラー情報をエラー情報記憶域16に記
憶させ(ステップ614)、ロード異常終了の外部制御
信号を生成するように制御信号生成手段17に通知する
(ステップ615)。次に、マイクロプログラムロード
異常終了がマイクロプログラム格納域12およびマイク
ロプログラム格納域13の両側であるかもしくは片側で
あるかを判定し(ステップ616)、両側のロード異常
終了の場合はマイクロプログラムの制御を停止(ステッ
プ617)する。片側のロード異常終了の場合は正常終
了した側のエラー情報をクリアし(ステップ604)、
正常終了した側のデータを選択するようマイクロプログ
ラム選択手段15に通知した後(ステップ605)、マ
イクロプログラムの読出し/実行を開始する。
On the contrary, if the end notification is an abnormal end notification, first, error information such as which side of the microprogram storage area 12 and the microprogram storage area 13 the load error occurred is displayed in the error information storage area. 16 (step 614) and notifies the control signal generation means 17 to generate an external control signal for abnormal end of load (step 615). Next, it is determined whether the abnormal termination of the microprogram load is on both sides or one side of the microprogram storage area 12 and the microprogram storage area 13 (step 616). Is stopped (step 617). If the load on one side ends abnormally, clear the error information on the side that ended normally (step 604),
After notifying the microprogram selecting means 15 to select the data on the normally completed side (step 605), reading / execution of the microprogram is started.

【0058】マイクロプログラムのロードが終了し、選
択通知を行った後はマイクロプログラムの読出しを行う
(ステップ606)。
After the loading of the microprogram is completed and the selection is notified, the microprogram is read (step 606).

【0059】マイクロプログラムの読出しは、マイクロ
プログラムロード正常終了の場合も異常終了の場合もマ
イクロプログラム格納域12およびマイクロプログラム
格納域13の同一アドレスから同時に行われ、マイクロ
プログラム選択手段15はマイクロプログラム制御手段
11からの制御信号により選択された側のマイクロ命令
を制御信号生成手段17に渡す。
Reading of the microprogram is performed simultaneously from the same address in the microprogram storage area 12 and the microprogram storage area 13 regardless of whether the microprogram loading is normally completed or abnormally completed, and the microprogram selection means 15 controls the microprogram. The microinstruction on the side selected by the control signal from the means 11 is passed to the control signal generation means 17.

【0060】マイクロプログラムの読出しを行った後
は、エラー検出手段14からのエラー通知があるか否か
を判定する(ステップ607)。
After reading the microprogram, it is judged whether or not there is an error notification from the error detecting means 14 (step 607).

【0061】エラー通知がある場合はマイクロプログラ
ム制御手段11は、まず、マイクロプログラム格納域1
2およびマイクロプログラム格納域13のどちらのマイ
クロプログラム格納域でエラーが発生したかということ
をエラー情報記憶域16に記憶させ、制御信号生成手段
17に外部制御信号を生成させる(ステップ610)。
次に、エラーがマイクロプログラム格納域12およびマ
イクロプログラム格納域13の両側で発生しているか否
かを判定し(ステップ611)、両側エラーの場合はマ
イクロプログラムの実行を停止する(ステップ61
7)。片側エラーの場合は、エラーが発生したマイクロ
プログラム格納域に対するマイクロプログラムロード要
求をロード/書込み制御手段18に発行(ステップ61
2)した後、エラーが現在選択している側であるか否か
を判定し(ステップ613)、現在選択している側であ
る場合はロード/書き込み制御手段18からのマイクロ
プログラムロード終了通知の判定処理(ステップ60
3)に戻る。現在選択している側でなければ外部制御信
号と内部制御信号を生成するよう制御信号生成手段17
に通知し(ステップ608)、次に読み出すマイクロ命
令のアドレスを求める(ステップ609)。
When there is an error notification, the micro program control means 11 firstly, the micro program storage area 1
It is stored in the error information storage area 16 which of the microprogram storage area 2 and the microprogram storage area 13 the error has occurred, and the control signal generation means 17 is caused to generate an external control signal (step 610).
Next, it is judged whether or not an error has occurred on both sides of the microprogram storage area 12 and the microprogram storage area 13 (step 611), and if there is an error on both sides, execution of the microprogram is stopped (step 61).
7). In the case of a one-sided error, a microprogram load request for the microprogram storage area in which the error occurred is issued to the load / write control means 18 (step 61).
2) After that, it is judged whether or not the error is on the currently selected side (step 613), and if it is on the currently selected side, the load / write control means 18 sends a microprogram load end notification. Judgment processing (step 60
Return to 3). The control signal generating means 17 generates the external control signal and the internal control signal if the selected side is not currently selected.
(Step 608), and the address of the next microinstruction to be read is obtained (step 609).

【0062】エラー検出手段14からのエラー通知がな
い場合、マイクロプログラム制御手段11は、マイクロ
プログラム選択手段15から渡されたマイクロ命令およ
びマイクロプログラム制御手段11からの制御信号に基
づいて外部制御信号と内部制御信号を生成するよう制御
信号生成手段17に通知し(ステップ608)、次に読
み出すマイクロ命令のアドレスを求める(ステップ60
9)。
When there is no error notification from the error detection means 14, the micro program control means 11 detects the external control signal based on the micro instruction passed from the micro program selection means 15 and the control signal from the micro program control means 11. The control signal generating means 17 is notified to generate the internal control signal (step 608), and the address of the microinstruction to be read next is obtained (step 60).
9).

【0063】以後、エラー検出手段14からのエラー通
知がない間、マイクロ命令読み出し(ステップ60
6)、エラー通知判定(ステップ607)、制御信号生
成(ステップ608)、読み出しアドレス生成(ステッ
プ609)を繰り返す。
Thereafter, while there is no error notification from the error detecting means 14, the micro instruction reading (step 60
6), error notification determination (step 607), control signal generation (step 608), and read address generation (step 609) are repeated.

【0064】ロード/書き込み制御手段18の動作につ
いて、図1、図10を参照して説明する。
The operation of the load / write control means 18 will be described with reference to FIGS.

【0065】ロード/書き込み制御手段18は、まず、
マイクロプログラム制御手段11からの通知がマイクロ
プログムロード要求であるか否かを判定する(ステップ
1001)。
The load / write control means 18 first
It is determined whether or not the notification from the micro program control means 11 is a micro program load request (step 1001).

【0066】マイクロプログラム制御手段11からの通
知がマイクロプログムロード要求である場合には外部記
憶装置19からマイクロプログラムを読み出し(ステッ
プ1002)、読み出しの異常判定を行う(ステップ1
003)。読み出し異常がなければ、指定されたマイク
ロプログラム格納域へ転送し(ステップ1004)、転
送の異常判定をおこなう(ステップ1005)。
When the notification from the micro program control means 11 is a micro program load request, the micro program is read from the external storage device 19 (step 1002) and the read abnormality is judged (step 1).
003). If there is no read abnormality, the data is transferred to the designated microprogram storage area (step 1004) and the transfer abnormality is determined (step 1005).

【0067】ロード/書き込み制御手段19は、マイク
ロプログラム制御手段11に対し、指定されたマイクロ
プログラム格納域へのマイクロプログラムロードが正常
終了した場合に正常終了通知を行い(ステップ100
6)、外部記憶装置19からのマイクロプログラム読み
出しで異常が生じた場合、ならびに、および指定された
マイクロプログラム格納域のいずれかもしくは全てのマ
イクロプログラム転送が異常終了した場合には、異常終
了通知を行う(ステップ1007)。
The load / write control means 19 gives a normal termination notice to the microprogram control means 11 when the microprogram loading to the designated microprogram storage area is normally terminated (step 100).
6) If an abnormality occurs in reading the microprogram from the external storage device 19, and if any or all of the microprogram storage areas in the designated microprogram storage area are abnormally terminated, an abnormal termination notification is issued. Perform (step 1007).

【0068】マイクロプログラム制御手段11からの通
知が書き込み要求の場合には、指定されたマイクロプロ
グラム格納域にデータ書き込みを行う(ステップ100
8)。
When the notification from the micro program control means 11 is a write request, data is written to the designated micro program storage area (step 100).
8).

【0069】エラー検出手段14の動作について、図
1、図11を参照して説明する。
The operation of the error detecting means 14 will be described with reference to FIGS.

【0070】エラー検出手段14は、マイクロプログラ
ム格納域12およびマイクロプログラム格納域13の同
一アドレスから読み出されたマイクロ命令に基づいてエ
ラーが発生しているか否かを判定し(ステップ110
1)、いずれかのマイクロプログラム格納域にエラーが
発生している場合はマイクロプログラム制御手段11へ
通知する(ステップ1102)。
The error detecting means 14 determines whether or not an error has occurred based on the micro instruction read from the same address in the micro program storage area 12 and the micro program storage area 13 (step 110).
1) If an error occurs in any of the microprogram storage areas, the microprogram control means 11 is notified (step 1102).

【0071】以上説明したように、本発明の第3の実施
例では、複数のマイクロプログラム格納域に同一のマイ
クロプログラムを格納し、それらのいずれかにエラーが
発生した場合はエラーの発生していないマイクロプログ
ラム格納域から読み出されたマイクロプログラムを選択
し、エラーが発生したマイクロプログラム格納域にマイ
クロプログラムロードを行う。 このため、マイクロプ
ログラムロードエラーとなっていない全てのマイクロプ
ログラム格納域に間欠的なエラーが生じた場合にもマイ
クロプログラムの実行を継続でき、エラー訂正手段を使
用せずに高信頼性を保持でき、エラーリカバリを高速に
行えるという効果がある。
As described above, in the third embodiment of the present invention, the same microprogram is stored in a plurality of microprogram storage areas, and if an error occurs in any of them, the error occurs. Select the microprogram read from the non-existing microprogram storage area and load the microprogram into the microprogram storage area where the error occurred. For this reason, even if an intermittent error occurs in all microprogram storage areas that have not caused a microprogram load error, the microprogram execution can be continued and high reliability can be maintained without using error correction means. The effect is that error recovery can be performed at high speed.

【0072】また、信頼性を高くしたい場合はマイクロ
プログラム格納域を増やすだけでよく、マイクロプログ
ラム格納域を増やした場合も実行速度は低下しないとい
う特徴がある。
Further, if the reliability is desired to be increased, it is sufficient to increase the microprogram storage area, and even if the microprogram storage area is increased, the execution speed does not decrease.

【0073】本発明の第4の実施例について、図面を参
照して詳細に説明する。
The fourth embodiment of the present invention will be described in detail with reference to the drawings.

【0074】図2は、本発明の第4の一実施例を示す構
成図で、マイクロプログラム制御手段21、マイクロプ
ログラム格納域22、マイクロプログラム格納域23、
エラー検出訂正手段24、マイクロプログラム選択手段
25、エラー情報記憶域26、制御信号生成手段27、
ロード/書き込み制御手段28、外部記憶装置29とか
ら成っている。
FIG. 2 is a block diagram showing a fourth embodiment of the present invention, in which a micro program control means 21, a micro program storage area 22, a micro program storage area 23,
Error detection / correction means 24, microprogram selection means 25, error information storage area 26, control signal generation means 27,
It comprises a load / write control means 28 and an external storage device 29.

【0075】図7はこの実施例の制御フロー、図9はロ
ード/書き込み制御手段28の処理フロー、図12はエ
ラー検出訂正手段24の処理フローを示す。
FIG. 7 shows the control flow of this embodiment, FIG. 9 shows the processing flow of the load / write control means 28, and FIG. 12 shows the processing flow of the error detection / correction means 24.

【0076】次に、この実施例の動作について図2、図
7、図9、および図12を参照して説明する。
Next, the operation of this embodiment will be described with reference to FIGS. 2, 7, 9 and 12.

【0077】マイクロプログラム制御手段21は、ま
ず、電源投入または外部からの起動要求により初期化処
理を行い(ステップ701)、ロード/書込み制御手段
28に対しマイクロプログラムロード要求を発行(ステ
ップ702)する。
The micro program control means 21 first performs initialization processing in response to power-on or a start request from the outside (step 701), and issues a micro program load request to the load / write control means 28 (step 702). ..

【0078】次に、マイクロプログラム制御手段21は
ロード/書き込み制御手段28からの終了通知の判定を
行う(ステップ703)。終了通知が正常終了通知であ
る場合は、マイクロプログラム格納域22およびマイク
ロプログラム格納域23のうち、あらかじめ定められた
方を選択するようマイクロプログラム選択手段25に通
知(ステップ704)した後、マイクロプログラムの読
出し/実行を開始する。
Next, the micro program control means 21 determines the end notification from the load / write control means 28 (step 703). If the end notification is a normal end notification, the micro program selecting means 25 is notified to select a predetermined one of the micro program storage area 22 and the micro program storage area 23 (step 704), and then the micro program. Start reading / execution of.

【0079】逆に、該終了通知が異常終了通知である場
合は、まず、マイクロプログラム格納域22およびマイ
クロプログラム格納域23のどちら側でロードエラーが
発生したか等のエラー情報をエラー情報記憶域26に記
憶させ(ステップ713)、ロード異常終了の外部制御
信号を生成するように制御信号生成手段27に通知する
(ステップ714)。次に、マイクロプログラムロード
異常終了がマイクロプログラム格納域22およびマイク
ロプログラム格納域23の両側であるかもしくは片側で
あるかを判定し(ステップ715)、両側のロード異常
終了の場合はマイクロプログラムの制御を停止(ステッ
プ716)する。片側のロード異常終了の場合は正常終
了した側を選択するようマイクロプログラム選択手段2
5に通知した後(ステップ704)、マイクロプログラ
ムの読出し/実行を開始する。
On the contrary, if the end notification is an abnormal end notification, first, error information such as which side of the microprogram storage area 22 and the microprogram storage area 23 the load error occurred is displayed in the error information storage area. 26 (step 713) and notifies the control signal generating means 27 to generate an external control signal for abnormal end of load (step 714). Next, it is determined whether the abnormal end of the micro program load is on both sides or one side of the micro program storage area 22 and the micro program storage area 23 (step 715). Is stopped (step 716). In the case of abnormal end of loading on one side, the microprogram selecting means 2 is selected so as to select the side that has ended normally.
5 is notified (step 704), the reading / execution of the microprogram is started.

【0080】マイクロプログラムのロードが終了し、選
択通知を行った後はマイクロプログラムの読出しを行う
(ステップ705)。
After the loading of the microprogram is completed and the selection is notified, the microprogram is read (step 705).

【0081】マイクロプログラムの読出しは、マイクロ
プログラムロード正常終了の場合も異常終了の場合もマ
イクロプログラム格納域22およびマイクロプログラム
格納域23の同一アドレスから同時に行われ、マイクロ
プログラム選択手段25はマイクロプログラム制御手段
21からの制御信号により選択された側のマイクロ命令
を制御信号生成手段27に渡す。
Reading of the microprogram is performed simultaneously from the same address in the microprogram storage area 22 and the microprogram storage area 23 regardless of whether the microprogram loading is normally completed or abnormally completed, and the microprogram selection means 25 controls the microprogram. The microinstruction on the side selected by the control signal from the means 21 is passed to the control signal generation means 27.

【0082】マイクロプログラムの読出しを行った後
は、エラー検出訂正手段24からのエラー通知があるか
否かを判定する(ステップ706)。
After reading the microprogram, it is determined whether or not there is an error notification from the error detection / correction means 24 (step 706).

【0083】エラー通知がある場合はマイクロプログラ
ム制御手段21は、まず、マイクロプログラム格納域2
2およびマイクロプログラム格納域23のどちらのマイ
クロプログラム格納域でエラーが発生したかということ
をエラー情報記憶域26に記憶させ、制御信号生成手段
27に外部制御信号を生成させる(ステップ709)。
次に、訂正不可エラーがマイクロプログラムロードエラ
ーとなっていないマイクロプログラム格納域の全てで発
生しているか否かを判定し(ステップ710)、マイク
ロプログラムロードエラーとなっていないマイクロプロ
グラム格納域の全てで訂正不可エラーが発生している場
合はマイクロプログラムの実行を停止する(ステップ7
15)。そうでない場合は、エラー検出訂正手段24か
らの正しいデータまたはエラー訂正データのエラー位置
への書き込みをロード/書き込み制御手段28に実行さ
せ、かつマイクロプログラム選択手段25にエラー検出
訂正手段24からのデータを選択するよう要求し(ステ
ップ711)、発生した訂正不可エラーが現在選択して
いる側であるか否かを判定する(ステップ712)。訂
正不可エラーが現在選択している側で発生した場合は反
対側のマイクロプログラム格納域を選択するようにマイ
クロプログラム選択手段25に通知し(ステップ70
4)、現在選択している側でなければ外部制御信号と内
部制御信号を生成するよう制御信号生成手段27に通知
し(ステップ707)、次に読み出すマイクロ命令のア
ドレスを求める(ステップ708)。
If there is an error notification, the microprogram control means 21 firstly sends the microprogram storage area 2
The error information storage area 26 stores which microprogram storage area 2 or the microprogram storage area 23 the error occurred in, and causes the control signal generation means 27 to generate an external control signal (step 709).
Next, it is judged whether or not the uncorrectable error has occurred in all the micro program storage areas in which the micro program load error has not occurred (step 710), and all the micro program storage areas in which the micro program load error has not occurred. If an uncorrectable error has occurred in step 7, the execution of the microprogram is stopped (step 7).
15). If not, the load / write control means 28 is caused to write the correct data or the error correction data from the error detection / correction means 24 to the error position, and the microprogram selection means 25 is caused to write the data from the error detection / correction means 24. Is selected (step 711), and it is determined whether the generated uncorrectable error is the currently selected side (step 712). When an uncorrectable error occurs on the currently selected side, the microprogram selecting means 25 is notified to select the microprogram storage area on the opposite side (step 70).
4) If it is not the currently selected side, it notifies the control signal generation means 27 to generate the external control signal and the internal control signal (step 707), and obtains the address of the microinstruction to be read next (step 708).

【0084】エラー検出訂正手段24からのエラー通知
がない場合、マイクロプログラム制御手段21は、マイ
クロプログラム選択手段25から渡されたマイクロ命令
およびマイクロプログラム制御手段21からの制御信号
に基づいて外部制御信号と内部制御信号を生成するよう
制御信号生成手段27に通知し(ステップ707)、次
に読み出すマイクロ命令のアドレスを求める(ステップ
708)。
When there is no error notification from the error detection / correction means 24, the micro program control means 21 uses the external control signal based on the micro instruction passed from the micro program selection means 25 and the control signal from the micro program control means 21. Then, the control signal generating means 27 is notified to generate the internal control signal (step 707), and the address of the microinstruction to be read next is obtained (step 708).

【0085】以後、エラー検出訂正手段24からのエラ
ー通知がない間、マイクロ命令読み出し(ステップ70
5)、エラー通知判定(ステップ706)、制御信号生
成(ステップ707)、読み出しアドレス生成(ステッ
プ708)を繰り返す。
Thereafter, while there is no error notification from the error detection / correction means 24, the micro instruction is read (step 70).
5), error notification determination (step 706), control signal generation (step 707), and read address generation (step 708) are repeated.

【0086】ロード/書き込み制御手段28の動作につ
いて、図2、図9を参照して説明する。
The operation of the load / write control means 28 will be described with reference to FIGS.

【0087】ロード/書き込み制御手段28は、まず、
マイクロプログラム制御手段21からの通知がマイクロ
プログムロード要求であるか否かを判定する(ステップ
901)。
The load / write control means 28 first
It is determined whether the notification from the micro program control means 21 is a micro program load request (step 901).

【0088】マイクロプログラム制御手段21からの通
知がマイクロプログムロード要求である場合には外部記
憶装置29からマイクロプログラムを読み出し(ステッ
プ902)、読み出しの異常判定を行う(ステップ90
3)。読み出し異常がなければ、マイクロプログラム格
納域22およびマイクロプログラム格納域23へ転送し
(ステップ904)、転送の異常判定をおこなう(ステ
ップ905)。ロード/書き込み制御手段29は、マイ
クロプログラム制御手段21に対し、マイクロプログラ
ム格納域22およびマイクロプログラム格納域23の両
側へのマイクロプログラムロードが正常終了した場合に
正常終了通知を行い(ステップ906)、外部記憶装置
29からのマイクロプログラム読み出しで異常が生じた
場合、ならびに、マイクロプログラム格納域22および
マイクロプログラム格納域23のいずれかもしくは両方
のマイクロプログラム転送が異常終了した場合には、異
常終了通知を行う(ステップ907)。
When the notification from the micro program control means 21 is a micro program load request, the micro program is read from the external storage device 29 (step 902) and the read abnormality is judged (step 90).
3). If there is no read abnormality, the data is transferred to the microprogram storage area 22 and the microprogram storage area 23 (step 904), and the transfer abnormality is determined (step 905). The load / write control means 29 gives a normal end notification to the micro program control means 21 when the micro program loading on both sides of the micro program storage area 22 and the micro program storage area 23 is completed normally (step 906), If an abnormality occurs in reading the microprogram from the external storage device 29, and if the microprogram transfer of one or both of the microprogram storage area 22 and the microprogram storage area 23 ends abnormally, an abnormal end notification is issued. Perform (step 907).

【0089】マイクロプログラム制御手段21からの通
知が書き込み要求の場合には、マイクロプログラム格納
域22およびマイクロプログラム格納域23の両側にデ
ータ書き込みを行う(ステップ908)。
If the notification from the micro program control means 21 is a write request, data is written to both sides of the micro program storage area 22 and the micro program storage area 23 (step 908).

【0090】エラー検出訂正手段24の動作について、
図2、図12を参照して説明する。
Regarding the operation of the error detection / correction means 24,
This will be described with reference to FIGS. 2 and 12.

【0091】エラー検出訂正手段24は、全てのマイク
ロプログラム格納域の同一アドレスから読み出されたマ
イクロ命令に基づいてエラーが発生しているか否かを判
定し(ステップ1201)、全マイクロプログラム格納
域が正常である場合は、マイクロプログラム制御手段2
1に何も通知しない。
The error detection / correction means 24 judges whether or not an error has occurred based on the microinstruction read from the same address in all the microprogram storage areas (step 1201), and the entire microprogram storage areas. Is normal, the microprogram control means 2
No notification to 1

【0092】次に、訂正不可エラーが全マイクロプログ
ラム格納域で発生しているか否かを判定し(ステップ1
202)、訂正不可エラーが全マイクロプログラム格納
域で発生している場合は、全マイクロプログラム格納域
訂正不可エラー発生をマイクロプログラム制御手段21
へ通知する(ステップ1205)。全マイクロプログラ
ム格納域で訂正不可エラーが発生していない場合は、マ
イクロプログラム選択手段25に正しいデータまたはエ
ラー訂正したデータを出力し(ステップ1203)、ど
のマイクロプログラム格納域でエラーが発生したかをマ
イクロプログラム制御手段41へ通知する(ステップ1
204)。
Next, it is judged whether or not an uncorrectable error has occurred in all microprogram storage areas (step 1
202), if an uncorrectable error has occurred in all microprogram storage areas, the microprogram control means 21 determines that all microprogram storage area uncorrectable errors have occurred.
(Step 1205). If no uncorrectable error has occurred in all microprogram storage areas, correct data or error-corrected data is output to the microprogram selection means 25 (step 1203) to determine in which microprogram storage area the error has occurred. Notify the micro program control means 41 (step 1)
204).

【0093】以上説明したように、本発明の第4の実施
例では、複数のマイクロプログラム格納域に同一のマイ
クロプログラムを格納し、それらのいずれかに訂正可能
エラーが発生した場合は正しいデータまたはエラー訂正
データを書き込み、訂正不可エラーが発生した場合はエ
ラーの発生していないマイクロプログラム格納域または
エラー訂正を行ったマイクロプログラム格納域から読み
出されたマイクロプログラムを選択する。このため、マ
イクロプログラム格納域の全てに訂正可能エラーが発生
してもマイクロプログラムの実行が継続可能であり、マ
イクロプログラムの再ロードを行わずに高信頼性を保持
でき、エラーリカバリを高速に行えるという効果があ
る。
As described above, in the fourth embodiment of the present invention, the same microprogram is stored in a plurality of microprogram storage areas, and if a correctable error occurs in any of them, the correct data or The error correction data is written, and when an uncorrectable error occurs, the microprogram read from the error-free microprogram storage area or the error-corrected microprogram storage area is selected. Therefore, even if a correctable error occurs in the entire microprogram storage area, execution of the microprogram can be continued, high reliability can be maintained without reloading the microprogram, and error recovery can be performed at high speed. There is an effect.

【0094】また、信頼性を高くしたい場合はマイクロ
プログラム格納域を増やすだけでよく、マイクロプログ
ラム格納域を増やした場合も実行速度は低下しないとい
う特徴がある。
Further, if the reliability is desired to be increased, it is sufficient to increase the microprogram storage area, and even if the microprogram storage area is increased, the execution speed does not decrease.

【0095】本発明の第5の実施例について、図面を参
照して詳細に説明する。
The fifth embodiment of the present invention will be described in detail with reference to the drawings.

【0096】図3は、本発明の第5の一実施例を示す構
成図で、マイクロプログラム制御手段31、マイクロプ
ログラム格納域32、マイクロプログラム格納域33、
エラー検出訂正手段34、マイクロプログラム選択手段
35、エラー情報記憶域36、制御信号生成手段37、
ロード/書き込み制御手段38、外部記憶装置39、固
定エラー判定手段3Aとから成っている。
FIG. 3 is a block diagram showing a fifth embodiment of the present invention, in which a micro program control means 31, a micro program storage area 32, a micro program storage area 33,
Error detection / correction means 34, microprogram selection means 35, error information storage area 36, control signal generation means 37,
It comprises a load / write control means 38, an external storage device 39, and a fixed error determination means 3A.

【0097】図8はこの実施例の制御フロー、図10は
ロード/書き込み制御手段38の処理フロー、図12は
エラー検出訂正手段34の処理フロー、図13は固定エ
ラー判定手段3Aの処理フローを示す。
FIG. 8 shows the control flow of this embodiment, FIG. 10 shows the processing flow of the load / write control means 38, FIG. 12 shows the processing flow of the error detection / correction means 34, and FIG. 13 shows the processing flow of the fixed error determination means 3A. Show.

【0098】次に、この実施例の動作について図3、図
8、図10、図12、および図13を参照して説明す
る。
Next, the operation of this embodiment will be described with reference to FIGS. 3, 8, 10, 12, and 13.

【0099】マイクロプログラム制御手段31は、ま
ず、電源投入または外部からの起動要求により初期化処
理を行い(ステップ801)、ロード/書込み制御手段
38に対しマイクロプログラムロード要求を発行(ステ
ップ802)する。
The micro program control means 31 first performs initialization processing in response to power-on or a start request from the outside (step 801) and issues a micro program load request to the load / write control means 38 (step 802). ..

【0100】次に、マイクロプログラム制御手段31は
ロード/書き込み制御手段38からの終了通知の判定を
行う(ステップ803)。
Next, the micro program control means 31 determines the end notification from the load / write control means 38 (step 803).

【0101】終了通知が正常終了通知である場合は、ロ
ードが正常終了したマイクロプログラム格納域のエラー
情報をクリアし(ステップ804)、マイクロプログラ
ム格納域32およびマイクロプログラム格納域33のう
ち、あらかじめ定められた方を選択するようマイクロプ
ログラム選択手段35に通知(ステップ805)した
後、マイクロプログラムの読出し/実行を開始する。
If the end notification is a normal end notification, the error information of the microprogram storage area in which the loading is normally completed is cleared (step 804), and one of the microprogram storage area 32 and the microprogram storage area 33 is set in advance. After notifying the microprogram selecting means 35 to select the selected one (step 805), the reading / execution of the microprogram is started.

【0102】逆に、該終了通知が異常終了通知である場
合は、まず、マイクロプログラム格納域32およびマイ
クロプログラム格納域33のどちら側でロードエラーが
発生したか等のエラー情報をエラー情報記憶域36に記
憶させ(ステップ815)、ロード異常終了の外部制御
信号を生成するように制御信号生成手段37に通知する
(ステップ816)次に、マイクロプログラムロード異
常終了がマイクロプログラム格納域32およびマイクロ
プログラム格納域33の両側であるかもしくは片側であ
るかを判定し(ステップ817)、両側のロード異常終
了の場合はマイクロプログラムの制御を停止(ステップ
818)する。片側のロード異常終了の場合は正常終了
した側のエラー情報をクリアし(ステップ804)、正
常終了した側のデータを選択するようマイクロプログラ
ム選択手段35に通知した後(ステップ805)、マイ
クロプログラムの読出し/実行を開始する。
On the other hand, if the end notification is an abnormal end notification, first, error information such as which side of the micro program storage area 32 and the micro program storage area 33 the load error occurred is displayed in the error information storage area. 36 (step 815) and notifies the control signal generation means 37 to generate an external control signal for abnormal load termination (step 816). Next, abnormal termination of microprogram load is stored in the microprogram storage area 32 and the microprogram. Whether the storage area 33 is on both sides or on one side is determined (step 817), and if the load is abnormally terminated on both sides, control of the microprogram is stopped (step 818). In the case of one-sided load end abnormally, the error information of the normally completed side is cleared (step 804), and the micro program selection means 35 is notified to select the data of the normally completed side (step 805). Start read / execute.

【0103】マイクロプログラムのロードが終了し、選
択通知を行った後はマイクロプログラムの読出しを行う
(ステップ806)。
After the loading of the microprogram is completed and the selection is notified, the microprogram is read (step 806).

【0104】マイクロプログラムの読出しは、マイクロ
プログラムロード正常終了の場合も異常終了の場合もマ
イクロプログラム格納域32およびマイクロプログラム
格納域33の同一アドレスから同時に行われ、マイクロ
プログラム選択手段35はマイクロプログラム制御手段
31からの制御信号により選択された側のマイクロ命令
を制御信号生成手段37に渡す。
Reading of the microprogram is performed simultaneously from the same address in the microprogram storage area 32 and the microprogram storage area 33 regardless of whether the microprogram loading is normally completed or abnormally completed, and the microprogram selection means 35 controls the microprogram. The microinstruction on the side selected by the control signal from the means 31 is passed to the control signal generation means 37.

【0105】マイクロプログラムの読出しを行った後
は、エラー検出訂正手段34からのエラー通知があるか
否かを判定する(ステップ807)。
After reading the microprogram, it is determined whether or not there is an error notification from the error detection / correction means 34 (step 807).

【0106】エラー通知がある場合はマイクロプログラ
ム制御手段31は、まず、マイクロプログラム格納域3
2およびマイクロプログラム格納域33のどちらのマイ
クロプログラム格納域でエラーが発生したかということ
をエラー情報記憶域36に記憶させ、制御信号生成手段
37に外部制御信号を生成させる(ステップ810)。
次に、訂正不可エラーが発生している場合はそのエラー
が固定であるか否かを固定エラー判定手段3Aに判定さ
せ、マイクロプログラムロードエラーとなっていないマ
イクロプログラム格納域の全てで訂正不可固定エラーが
発生しているか否かを判定する(ステップ811)。マ
イクロプログラムロードエラーとなっていないマイクロ
プログラム格納域の全てで訂正不可固定エラーが発生し
ている場合はマイクロプログラムの実行を停止する(ス
テップ818)。そうでない場合は、訂正可能なエラー
が発生しているマイクロプログラム格納域に対してはエ
ラー検出訂正手段34からの正しいデータまたはエラー
訂正データのエラー位置への書き込みをロード/書き込
み制御手段38に実行させ、エラー検出訂正手段34か
らのデータを選択するようマイクロプログラム選択手段
35に要求する(ステップ812)。また、訂正不可間
欠エラーが発生しているマイクロプログラム格納域に対
してはマイクロプログラムのロードを行う(ステップ8
13)。次に、訂正不可エラーが現在選択しているマイ
クロプログラム格納域側で発生しているか否かを判定し
(ステップ814)、現在選択しているマイクロプログ
ラム格納域で発生している場合はロード/書き込み制御
手段38からのマイクロプログラムロード終了通知判定
処理(ステップ803)に戻る。逆に、訂正不可エラー
が現在選択しているマイクロプログラム格納域で発生し
ていなければ外部制御信号と内部制御信号を生成するよ
う制御信号生成手段37に通知し(ステップ808)、
次に読み出すマイクロ命令のアドレスを求める(ステッ
プ809)。
When there is an error notification, the micro program control means 31 firstly, the micro program storage area 3
The error information storage area 36 stores which microprogram storage area 2 or the microprogram storage area 33 in which the error has occurred, and causes the control signal generation means 37 to generate an external control signal (step 810).
Next, if an uncorrectable error has occurred, the fixed error determination means 3A determines whether or not the error is fixed, and the uncorrectable error is fixed in all the microprogram storage areas in which no microprogram load error has occurred. It is determined whether an error has occurred (step 811). If an uncorrectable fixed error has occurred in all the microprogram storage areas that are not in the microprogram load error, the execution of the microprogram is stopped (step 818). Otherwise, for the microprogram storage area in which a correctable error has occurred, the load / write control means 38 is executed to write the correct data from the error detection / correction means 34 or the error correction data to the error position. Then, the microprogram selecting means 35 is requested to select the data from the error detecting and correcting means 34 (step 812). Further, the micro program is loaded into the micro program storage area in which the uncorrectable intermittent error has occurred (step 8).
13). Next, it is determined whether or not an uncorrectable error has occurred in the currently selected microprogram storage area (step 814). If it occurs in the currently selected microprogram storage area, load / load is executed. The process returns to the microprogram load end notification determination process (step 803) from the write control unit 38. On the contrary, if the uncorrectable error has not occurred in the currently selected microprogram storage area, the control signal generating means 37 is notified to generate the external control signal and the internal control signal (step 808),
Next, the address of the microinstruction to be read is obtained (step 809).

【0107】エラー検出訂正手段34からのエラー通知
がない場合、マイクロプログラム制御手段31は、マイ
クロプログラム選択手段35から渡されたマイクロ命令
およびマイクロプログラム制御手段31からの制御信号
に基づいて外部制御信号と内部制御信号を生成するよう
制御信号生成手段37に通知し(ステップ808)、次
に読み出すマイクロ命令のアドレスを求める(ステップ
809)。
When there is no error notification from the error detection / correction means 34, the micro program control means 31 uses an external control signal based on the micro instruction passed from the micro program selection means 35 and the control signal from the micro program control means 31. Then, the control signal generating means 37 is notified to generate the internal control signal (step 808) and the address of the microinstruction to be read next is obtained (step 809).

【0108】以後、エラー検出訂正手段34からのエラ
ー通知がない間、マイクロ命令読み出し(ステップ80
6)、エラー通知判定(ステップ807)、制御信号生
成(ステップ808)、読み出しアドレス生成(ステッ
プ809)を繰り返す。
Thereafter, while there is no error notification from the error detection / correction means 34, the micro instruction is read (step 80
6), error notification determination (step 807), control signal generation (step 808), and read address generation (step 809) are repeated.

【0109】ロード/書き込み制御手段38の動作につ
いて、図3、図10を参照して説明する。
The operation of the load / write control means 38 will be described with reference to FIGS.

【0110】ロード/書き込み制御手段38は、まず、
マイクロプログラム制御手段31からの通知がマイクロ
プログムロード要求であるか否かを判定する(ステップ
1001)。
The load / write control means 38 first
It is determined whether or not the notification from the micro program control means 31 is a micro program load request (step 1001).

【0111】マイクロプログラム制御手段31からの通
知がマイクロプログムロード要求である場合には外部記
憶装置39からマイクロプログラムを読み出し(ステッ
プ1002)、読み出しの異常判定を行う(ステップ1
003)。読み出し異常がなければ、指定されたマイク
ロプログラム格納域へ転送し(ステップ1004)、転
送の異常判定をおこなう(ステップ1005)。ロード
/書き込み制御手段39は、マイクロプログラム制御手
段31に対し、指定された全てのマイクロプログラム格
納域へのマイクロプログラムロードが正常終了した場合
に正常終了通知を行い(ステップ1006)、外部記憶
装置39からのマイクロプログラム読み出しで異常が生
じた場合、ならびに、指定されたマイクロプログラム格
納域いずれかもしくは全てのマイクロプログラム転送が
異常終了した場合には、異常終了通知を行う(ステップ
1007)。
When the notification from the micro program control means 31 is a micro program load request, the micro program is read from the external storage device 39 (step 1002) and the read abnormality is judged (step 1).
003). If there is no read abnormality, the data is transferred to the designated microprogram storage area (step 1004) and the transfer abnormality is determined (step 1005). The load / write control means 39 notifies the microprogram control means 31 of normal termination when the microprogram loading to all the designated microprogram storage areas is normally terminated (step 1006), and the external storage device 39 If an error occurs in the reading of the micro program from, and if the transfer of any or all of the specified micro program storage areas ends abnormally, an abnormal end notification is issued (step 1007).

【0112】マイクロプログラム制御手段31からの通
知が書き込み要求の場合には、指定されたマイクロプロ
グラム格納域にデータ書き込みを行う(ステップ100
8)。
When the notification from the micro program control means 31 is a write request, data is written in the designated micro program storage area (step 100).
8).

【0113】エラー検出訂正手段34の動作について、
図3、図12を参照して説明する。
Regarding the operation of the error detection / correction means 34,
This will be described with reference to FIGS. 3 and 12.

【0114】エラー検出訂正手段34は、全てのマイク
ロプログラム格納域の同一アドレスから読み出されたマ
イクロ命令に基づいてエラーが発生しているか否かを判
定し(ステップ1201)、全マイクロプログラム格納
域が正常である場合は、マイクロプログラム制御手段3
1に何も通知しない。
The error detection / correction means 34 determines whether or not an error has occurred based on the microinstruction read from the same address of all the microprogram storage areas (step 1201), and the entire microprogram storage areas. Is normal, the microprogram control means 3
No notification to 1

【0115】次に、訂正不可エラーが全マイクロプログ
ラム格納域で発生しているか否かを判定し(ステップ1
202)、訂正不可エラーが全マイクロプログラム格納
域で発生している場合は、全マイクロプログラム格納域
訂正不可エラー発生をマイクロプログラム制御手段31
へ通知する(ステップ1205)。訂正不可エラーが全
マイクロプログラム格納域で発生していない場合は、マ
イクロプログラム選択手段35に正しいデータまたはエ
ラー訂正したデータを出力し(ステップ1203)、ど
のマイクロプログラム格納域でエラーが発生したかをマ
イクロプログラム制御手段41へ通知する(ステップ1
204)。
Next, it is judged whether or not an uncorrectable error has occurred in all microprogram storage areas (step 1
202), if the uncorrectable error has occurred in all microprogram storage areas, the microprogram control means 31 indicates that all microprogram storage area uncorrectable errors have occurred.
(Step 1205). If the uncorrectable error has not occurred in all microprogram storage areas, correct data or error-corrected data is output to the microprogram selection means 35 (step 1203) to determine in which microprogram storage area the error occurred. Notify the micro program control means 41 (step 1)
204).

【0116】固定間欠エラー判定手段3Aの動作につい
て図3、図13を参照して説明する。
The operation of the fixed intermittent error determining means 3A will be described with reference to FIGS.

【0117】固定間欠エラー判定手段3Aは、マイクロ
プログラム制御手段31からの固定エラー判定要求によ
り、まず指定されたアドレスにテストデータを書き込む
(ステップ1301)。次に、指定されたアドレスから
データを読み出し(ステップ1302)、読み出したデ
ータが書き込んだデータと等しいか否かを判定する(ス
テップ1303)。書き込んだテストデータと読みだし
たデータが等しい場合は間欠故障であると判定し、マイ
クロプログラム制御手段31に通知する(ステップ13
04)。
The fixed intermittent error judging means 3A first writes the test data to the designated address in response to the fixed error judging request from the microprogram controlling means 31 (step 1301). Next, data is read from the specified address (step 1302), and it is determined whether the read data is equal to the written data (step 1303). If the written test data and the read data are the same, it is determined that there is an intermittent failure and the micro program control means 31 is notified (step 13).
04).

【0118】逆に、書き込んだテストデータと読みだし
たデータが異なる場合は固定故障であると判定し、マイ
クロプログラム制御手段31に通知する(ステップ13
05)。
On the contrary, if the written test data and the read data are different, it is determined that there is a fixed fault and the micro program control means 31 is notified (step 13).
05).

【0119】以上説明したように、本発明の第5の実施
例では、複数のマイクロプログラム格納域に同一のマイ
クロプログラムを格納し、それらのいずれかに訂正可能
エラーが発生した場合は正しいデータまたはエラー訂正
データを書き込み、訂正不可エラーが発生した場合はエ
ラーの発生していないマイクロプログラム格納域または
エラー訂正を行ったマイクロプログラム格納域から読み
出されたマイクロプログラムを選択する。また、訂正不
可エラーが発生したマイクロプログラム格納域に対して
は固定エラーであるか否かの判定を行い、固定エラーで
ない場合はマイクロプログラムのロードを行う。このた
め、マイクロプログラム格納域の全てに訂正不可間欠エ
ラーまたは訂正可能固定エラーが発生してもマイクロプ
ログラムの実行が継続可能であり、エラーリカバリを高
速に行えるという効果がある。
As described above, in the fifth embodiment of the present invention, the same microprogram is stored in a plurality of microprogram storage areas, and if a correctable error occurs in any of them, the correct data or The error correction data is written, and when an uncorrectable error occurs, the microprogram read from the error-free microprogram storage area or the error-corrected microprogram storage area is selected. Further, it is determined whether or not a fixed error has occurred in the microprogram storage area in which the uncorrectable error has occurred, and if it is not a fixed error, the microprogram is loaded. Therefore, even if an uncorrectable intermittent error or a correctable fixed error occurs in the entire microprogram storage area, the microprogram can continue to be executed, and the error recovery can be performed at high speed.

【0120】また、信頼性を高くしたい場合はマイクロ
プログラム格納域を増やすだけでよく、マイクロプログ
ラム格納域を増やした場合も実行速度は低下しないとい
う特徴がある。
Further, if the reliability is desired to be increased, it is sufficient to increase the microprogram storage area, and the execution speed does not decrease even if the microprogram storage area is increased.

【0121】[0121]

【発明の効果】以上説明したように本発明は、マイクロ
プログラム格納域のエラーリカバリを迅速に行い、制御
回路または制御装置を高信頼化するという効果を奏す
る。
As described above, the present invention has the effect of rapidly performing error recovery of the microprogram storage area and making the control circuit or control device highly reliable.

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

【図1】本発明の第1,第2,第3の実施例を示す構成
図である。
FIG. 1 is a configuration diagram showing first, second and third embodiments of the present invention.

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

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

【図4】本発明の第1の実施例の実行処理を示す流れ図
である。
FIG. 4 is a flowchart showing an execution process of the first embodiment of the present invention.

【図5】本発明の第2の実施例の実行処理を示す流れ図
である。
FIG. 5 is a flowchart showing an execution process of the second embodiment of the present invention.

【図6】本発明の第3の実施例の実行処理を示す流れ図
である。
FIG. 6 is a flowchart showing an execution process of the third embodiment of the present invention.

【図7】本発明の第4の実施例の実行処理を示す流れ図
である。
FIG. 7 is a flowchart showing an execution process of the fourth embodiment of the present invention.

【図8】本発明の第5の実施例の実行処理を示す流れ図
である。
FIG. 8 is a flowchart showing an execution process of the fifth embodiment of the present invention.

【図9】本発明の第1,第2,第4の実施例のロード/
書き込み制御手段の動作を示す流れ図てある。
FIG. 9: Loads / loads of first, second and fourth embodiments of the present invention
6 is a flowchart showing the operation of the write control means.

【図10】本発明の第3,第5の実施例のロード/書き
込み制御手段の動作を示す流れ図である。
FIG. 10 is a flow chart showing the operation of the load / write control means of the third and fifth embodiments of the present invention.

【図11】本発明の第1,第2,第3の実施例のエラー
検出訂正手段の動作を示す流れ図である。
FIG. 11 is a flowchart showing the operation of the error detection / correction means of the first, second and third embodiments of the present invention.

【図12】本発明の第4,第5の実施例のエラー検出訂
正手段の動作を示す流れ図である。
FIG. 12 is a flow chart showing the operation of the error detection and correction means of the fourth and fifth embodiments of the present invention.

【図13】本発明の第5の実施例の固定エラー判定手段
の動作を示す流れ図である。
FIG. 13 is a flowchart showing the operation of the fixed error determination means of the fifth exemplary embodiment of the present invention.

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

11,21,301 マイクロプログラム制御手段 12,22,302 マイクロプログラム格納域 13,23,303,14 エラー検出手段 24,304 エラー検出訂正手段 15,25,305 マイクロプログラム選択手段 16,26,306 エラー情報記憶域 17,27,307 制御信号生成手段 18,28,308 ロード/書き込み制御手段 19,29,309 外部記憶装置 3A 固定エラー判定手段 11,21,301 Micro program control means 12,22,302 Micro program storage area 13,23,303,14 Error detection means 24,304 Error detection and correction means 15,25,305 Micro program selection means 16,26,306 Error Information storage area 17, 27, 307 Control signal generation means 18, 28, 308 Load / write control means 19, 29, 309 External storage device 3A Fixed error determination means

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 複数のマイクロプログラム格納域に対す
る外部記憶装置からのマイクロプログラムのロード制
御、および前記複数のマイクロプログラム格納域に対す
るデータ書込み制御を行うロード/書込み制御手段と、 前記マイクロプログラム格納域に生じたエラーを検出す
るエラー検出手段と、 前記ロード/書込み制御手段および前記エラー検出手段
から通知されたエラー情報を記憶するエラー情報記憶域
と、 前記複数のマイクロプログラム格納域から読み出された
データの選択を行うマイクロプログラム選択手段と、 マイクロプログラムの実行制御、およびエラー処理制御
を行うマイクロプログラム制御手段とを実行するメモリ
エラーリカバリ方法であって、 前記ロード/書込み制御手段は、前記マイクロプログラ
ム制御手段からの要求により、前記複数のマイクロプロ
グラム格納域の各々に対する前記外部記憶装置からの同
一マイクロプログラムのロード、および前記複数のマイ
クロプログラム格納域の各々に対する同一データの書込
み、およびロード時にエラーが発生した場合は前記マイ
クロプログラム制御手段に対するエラー通知を行い、 前記エラー検出手段は、前記のマイクロプログラム格納
域のエラーを検出した場合は、前記マイクロプログラム
制御手段に対してエラー通知を行い、 前記エラー記憶域は、前記マイクロプログラム制御手段
からの要求により、前記ロード/書込み制御手段および
前記エラー検出手段から通知されたエラー情報を記憶
し、 前記マイクロプログラム選択手段は、前記マイクロプロ
グラム制御手段からの要求により、指定されたマイクロ
プログラム格納域から読み出されたデータを選択し、 前記制御信号生成手段は、前記マイクロプログラム制御
手段からの要求により、前記マイクロプログラム選択手
段により選択されたデータに基づいて制御信号を生成
し、 前記マイクロプログラム制御手段は、前記ロード/書込
み制御手段に対するロード/書込みを要求し、前記複数
のマイクロプログラム格納域からのデータ読み出しを行
い、前記ロード/書込み制御手段からのエラー通知を受
け付けた場合には前記エラー記憶域へエラー情報を格納
し、前記エラー検出手段からのエラー通知を受け付けた
場合には前記エラー記憶域へエラー情報を格納するとと
もに該エラー情報に基づいてエラーとなっていないマイ
クロプログラム格納域から読み出したデータを選択させ
ることを特徴とするメモリエラーリカバリ方法。
1. A load / write control means for performing load control of a microprogram from an external storage device to a plurality of microprogram storage areas and data writing control to the plurality of microprogram storage areas, and to the microprogram storage area. Error detection means for detecting an error that has occurred, error information storage area for storing error information notified from the load / write control means and the error detection means, and data read from the plurality of microprogram storage areas A memory error recovery method for executing a micro-program selection unit for selecting, and a micro-program control unit for performing micro-program execution control and error processing control, wherein the load / write control unit is the micro-program control unit. From means If an error occurs during the loading of the same microprogram from the external storage device to each of the plurality of microprogram storage areas, and the writing of the same data to each of the plurality of microprogram storage areas, and at the time of loading, Error notification to the micro program control means, the error detection means, when detecting an error in the micro program storage area, error notification to the micro program control means, the error storage area, The error information notified from the load / write control means and the error detection means is stored according to a request from the micro program control means, and the micro program selection means is designated by a request from the micro program control means. Tamai (B) selecting the data read from the program storage area, the control signal generating means generates a control signal based on the data selected by the microprogram selecting means in response to a request from the microprogram controlling means, The microprogram control means requests load / write to the load / write control means, reads data from the plurality of microprogram storage areas, and receives an error notification from the load / write control means. Stores error information in the error storage area, stores error information in the error storage area when an error notification from the error detection means is accepted, and does not cause an error based on the error information Characterized by selecting the data read from the storage area Memory error recovery how to.
【請求項2】 前記マイクロプログラム制御手段は、前
記ロード/書込み制御手段に対するロード/書込みを要
求し、前記複数のマイクロプログラム格納域からのデー
タ読み出しを行い、前記ロード/書込み制御手段からの
エラー通知を受け付けた場合には前記エラー記憶域へエ
ラー情報を格納し、前記エラー検出手段からのエラー通
知を受け付けた場合には前記エラー記憶域へエラー情報
とエラー発生位置を格納するとともに、該エラー情報に
基づいて前記複数のマイクロプログラム格納域から読み
出されたデータのうち、現アクセス位置でエラーが発生
していないマイクロプログラム格納域から読み出された
データを選択させることを特徴とする請求項1記載のメ
モリエラーリカバリ方法。
2. The micro program control means requests load / write to the load / write control means, reads data from the plurality of micro program storage areas, and notifies an error from the load / write control means. When the error notification is received, the error information is stored in the error storage area, and when the error notification from the error detection unit is received, the error information and the error occurrence position are stored in the error storage area, and the error information is stored. The data read from the microprogram storage area in which no error has occurred at the current access position is selected from the data read from the plurality of microprogram storage areas based on the above. Memory error recovery method described.
【請求項3】 前記ロード/書込み制御手段は、前記マ
イクロプログラム制御手段からの要求により、前記複数
のマイクロプログラム格納域のうち、指定されたマイク
ロプログラム格納域に対する前記外部記憶装置からの同
一マイクロプログラムのロードを行い、前記複数のマイ
クロプログラム格納域のうち、指定されたマイクロプロ
グラム格納域に対する同一データの書込みを行い、ロー
ド時にエラーが発生した場合は前記マイクロプログラム
制御手段に対するエラー通知を行い、 前記マイクロプログラム制御手段は、前記ロード/書込
み制御手段に対するロード/書込みを要求し、前記複数
のマイクロプログラム格納域からのデータ読み出しを行
い、前記ロード/書込み制御手段からのエラー通知を受
け付けた場合には前記エラー記憶域へエラー情報を格納
し、前記エラー検出手段からのエラー通知を受け付けた
場合には前記エラー記憶域へエラー情報を格納するとと
もに、該エラー情報に基づいて前記複数のマイクロプロ
グラム格納域から読み出されたデータのうちエラー情報
が設定されていないマイクロプログラム格納域から読み
出されたデータを選択するように前記マイクロプログラ
ム選択手段に対し要求を行い、かつ前記ロード/書込み
制御手段に対しエラーの発生したマイクロプログラム格
納域のマイクロプログラムロード要求を行った後、前記
エラー記憶域に記憶されたエラー情報のうち、マイクロ
プログラムロードが正常終了したマイクロプログラム格
納域に関するエラー情報をクリアすることを特徴とする
請求項1記載のメモリエラーリカバリ方法。
3. The load / write control means, in response to a request from the microprogram control means, the same microprogram from the external storage device for a designated microprogram storage area among the plurality of microprogram storage areas. Of the plurality of microprogram storage areas, the same data is written to a designated microprogram storage area, and if an error occurs during loading, an error notification is sent to the microprogram control means. The microprogram control means requests load / write to the load / write control means, reads data from the plurality of microprogram storage areas, and receives an error notification from the load / write control means. Error storage area The error information is stored, and when the error notification from the error detecting means is accepted, the error information is stored in the error storage area and read out from the plurality of microprogram storage areas based on the error information. The microprogram selecting means is requested to select the data read out from the microprogram storage area in which the error information is not set, and the load / write control means has an error-causing microprogram. 7. After making a microprogram load request for a program storage area, of the error information stored in the error storage area, the error information relating to the microprogram storage area in which the microprogram load has ended normally is cleared. The memory error recovery method described in 1.
【請求項4】 前記複数のマイクロプログラム格納域に
生じたエラーを検出するエラー検出手段のかわりに前記
複数のマイクロプログラム格納域に生じたエラーの検出
および発生したデータエラーのうち訂正可能なもの訂正
を行うエラー検出訂正手段を実行し、 前記エラー検出訂正手段は、前記複数のマイクロプログ
ラム格納域のエラーを検出した場合は、前記複数のマイ
クロプログラム格納域に生じたデータエラーのうち訂正
可能なもの訂正を行うとともに前記マイクロプログラム
制御手段に対してエラー通知を行い、 前記マイクロプログラム制御手段は、前記ロード/書込
み制御手段に対するロード/書込みを要求し、前記複数
のマイクロプログラム格納域からのデータ読み出しを行
い、前記ロード/書込み制御手段からのエラー通知を受
け付けた場合には前記エラー記憶域へエラー情報を格納
し、前記エラー検出訂正手段からのエラー通知を受け付
けた場合には前記エラー記憶域へエラー情報を格納する
とともに、該エラー情報に基づいて前記複数のマイクロ
プログラム格納域から読み出されたデータのうち、訂正
不可エラーが発生していないマイクロプログラム格納域
から読み出されたデータを選択するように前記マイクロ
プログラム選択手段に対し要求を行い、かつ前記ロード
/書込み制御手段に対し訂正可能エラーの発生したマイ
クロプログラム格納域に訂正後のデータの書き込み要求
を行った後、前記エラー記憶域に記憶されたエラー情報
のうち、データ訂正書き込みを行ったマイクロプログラ
ム格納域に関するエラー情報をクリアすることを特徴と
する請求項1記載のメモリエラーリカバリ方法。
4. Detection of an error occurring in said plurality of microprogram storage areas and correction of a correctable data error occurring in place of said error detecting means for detecting an error occurring in said plurality of microprogram storage areas. When the error detection / correction means detects an error in the plurality of microprogram storage areas, the error detection / correction means that can correct the data error occurred in the plurality of microprogram storage areas. In addition to making a correction, an error notification is sent to the microprogram control means, the microprogram control means requests load / write to the load / write control means, and reads data from the plurality of microprogram storage areas. Error notification from the load / write control means. If the error notification is received, the error information is stored in the error storage area, and when the error notification from the error detection and correction means is received, the error information is stored in the error storage area, and based on the error information. Requesting the microprogram selection means to select the data read from the microprogram storage area in which an uncorrectable error has not occurred among the data read from the plurality of microprogram storage areas, Further, after making a request for writing the corrected data to the microprogram storage area in which the correctable error has occurred to the load / write control means, data correction writing is performed among the error information stored in the error storage area. 2. The error information relating to the microprogram storage area is cleared, wherein the error information is cleared. Memory error recovery methods.
【請求項5】 前記複数のマイクロプログラム格納域に
固定的エラーが生じているか否を判定する固定エラー判
定手段を実行し、 前記固定エラー判定手段は、前記マイクロプログラム制
御手段の要求により、指定されたマイクロプログラム格
納域に固定的エラーが生じているか否を判定し、前記マ
イクロプログラム制御手段に判定結果を通知し、 前記ロード/書込み制御手段は、前記マイクロプログラ
ム制御手段からの要求により、前記複数のマイクロプロ
グラム格納域のうち、指定されたマイクロプログラム格
納域に対する前記外部記憶装置からの同一マイクロプロ
グラムのロードを行い、前記複数のマイクロプログラム
格納域のうち、指定されたマイクロプログラム格納域に
対する同一データの書込みを行い、ロード時にエラーが
発生した場合は前記マイクロプログラム制御手段に対す
るエラー通知を行い、 前記マイクロプログラム制御手段は、前記ロード/書込
み制御手段に対するロード/書込みを要求し、前記複数
のマイクロプログラム格納域からのデータ読み出しを行
い、前記ロード/書込み制御手段からのエラー通知を受
け付けた場合には前記エラー記憶域へエラー情報を格納
し、前記エラー検出訂正手段からのエラー通知を受け付
けた場合には前記エラー記憶域へエラー情報を格納する
とともに、該エラー情報に基づいて前記複数のマイクロ
プログラム格納域から読み出されたデータのうち、訂正
不可エラーが発生していないマイクロプログラム格納域
から読み出されたデータを選択するように前記マイクロ
プログラム選択手段に対し要求を行い、かつ前記ロード
/書込み制御手段に対し訂正可能エラーの発生したマイ
クロプログラム格納域に訂正後のデータの書き込み要
求、および前記固定エラー判定手段に対し固定エラー判
定要求を行い、前記固定エラー判定手段からの判定結果
通知に基づき非固定エラーの発生したマイクロプログラ
ム格納域のマイクロプログラムロード要求を前記ロード
/書込み制御手段に対して行い、前記エラー記憶域に記
憶されたエラー情報のうち、エラーデータの訂正後の書
き込みを行うかまたはマイクロプログラムロードが正常
終了したマイクロプログラム格納域に関するエラー情報
をクリアすることを特徴とする請求項1記載のメモリエ
ラーリカバリ方法。
5. A fixed error determination means for determining whether or not a fixed error has occurred in the plurality of microprogram storage areas, wherein the fixed error determination means is designated by a request of the microprogram control means. It is determined whether or not a fixed error has occurred in the microprogram storage area, and the determination result is notified to the microprogram control means, and the load / write control means is responsive to a request from the microprogram control means. Of the microprogram storage areas, the same microprogram is loaded from the external storage device to the designated microprogram storage area, and the same data for the designated microprogram storage area of the plurality of microprogram storage areas is loaded. Error occurred when loading In this case, an error notification is sent to the micro program control means, the micro program control means requests load / write to the load / write control means, data is read from the plurality of micro program storage areas, and the load is executed. / When the error notification from the write control means is accepted, the error information is stored in the error storage area, and when the error notification from the error detection and correction means is accepted, the error information is stored in the error storage area. At the same time, the microprogram is configured to select data read from the microprogram storage area in which an uncorrectable error has not occurred, out of the data read from the plurality of microprogram storage areas based on the error information. Make a request to the selection means, and load / To write the corrected data to the microprogram storage area in which the correctable error has occurred, and to the fixed error determination means to issue a fixed error determination request to the determination result notification from the fixed error determination means. Based on this, a microprogram load request for a microprogram storage area in which a non-fixed error has occurred is issued to the load / write control means, and error data stored in the error storage area is written after correction of the error data. 2. The memory error recovery method according to claim 1, further comprising: clearing error information regarding a microprogram storage area in which microprogram loading is normally completed.
JP4245318A 1991-10-17 1992-09-14 Method for recovering memory error Pending JPH05204770A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4245318A JPH05204770A (en) 1991-10-17 1992-09-14 Method for recovering memory error

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP3-268032 1991-10-17
JP26803291 1991-10-17
JP4245318A JPH05204770A (en) 1991-10-17 1992-09-14 Method for recovering memory error

Publications (1)

Publication Number Publication Date
JPH05204770A true JPH05204770A (en) 1993-08-13

Family

ID=26537176

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4245318A Pending JPH05204770A (en) 1991-10-17 1992-09-14 Method for recovering memory error

Country Status (1)

Country Link
JP (1) JPH05204770A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8020040B2 (en) 2008-07-29 2011-09-13 Fujitsu Limited Information processing apparatus for handling errors
JP4933268B2 (en) * 2003-12-31 2012-05-16 サンディスク コーポレイション Flash memory system startup behavior

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4933268B2 (en) * 2003-12-31 2012-05-16 サンディスク コーポレイション Flash memory system startup behavior
US8020040B2 (en) 2008-07-29 2011-09-13 Fujitsu Limited Information processing apparatus for handling errors

Similar Documents

Publication Publication Date Title
US20040237022A1 (en) System and method for providing error check and correction in memory systems
JPS598852B2 (en) Error handling method
US6643734B2 (en) Control device and control method for a disk array
JP2002222599A (en) Marking method for initial defective block, detecting method, and semiconductor memory
US5133071A (en) Channel control method and apparatus
US5261084A (en) Error judgment method
JPH05204770A (en) Method for recovering memory error
JPH0895614A (en) Controller
JP2005078632A (en) System and method for testing memory
JPH09212311A (en) Disk array device
JPH0314054A (en) Electronic disk device
JPH0863406A (en) Memory access controller
JPH0581138A (en) Microprogram controller
JP3262094B2 (en) Memory control device and memory control method
JP2544536B2 (en) Method for determining the presence or absence of data in memory
JP2000172449A (en) Disk drive
JPH05108496A (en) Patrol control system
JPH07306811A (en) Memory fault diagnosing method
JP3346670B2 (en) Central processing unit switching method and switching system
JPH0644145A (en) Memory error saving system
JPH0744379A (en) Microprogram controller
JPH07219796A (en) Information processor
JPH0365743A (en) Fault finding method for main storage device
JP3984949B2 (en) Information processing apparatus and flash memory control method used therefor
JPH05134938A (en) Memory controller

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990112