JPH0337739A - Microprogram controller - Google Patents
Microprogram controllerInfo
- Publication number
- JPH0337739A JPH0337739A JP1173286A JP17328689A JPH0337739A JP H0337739 A JPH0337739 A JP H0337739A JP 1173286 A JP1173286 A JP 1173286A JP 17328689 A JP17328689 A JP 17328689A JP H0337739 A JPH0337739 A JP H0337739A
- Authority
- JP
- Japan
- Prior art keywords
- fault
- error code
- instruction
- microprogram
- failure
- 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
Links
- 238000000034 method Methods 0.000 claims description 6
- 230000004044 response Effects 0.000 claims description 5
- 238000004458 analytical method Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000003745 diagnosis Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
技術分野
本発明はマイクロプログラム制御装置に関し、特にマイ
クロプログラムの動作における障害検出時の障害解析に
関する。TECHNICAL FIELD The present invention relates to a microprogram control device, and more particularly to failure analysis when a failure is detected in the operation of a microprogram.
従来技術
従来、マイクロプログラム制御装置においては、マイク
ロプログラム動作中にハードウェア(以下、HWと略す
)の障害に起因すると判断できる処理上の矛盾を検出し
た場合には自装置を障害状態としていた。そして、診断
装置への報告を行い、停止アドレスを基に障害解析を行
ってHWの障害箇所を指摘していた。BACKGROUND ART Conventionally, in a microprogram control device, when a processing inconsistency that can be determined to be caused by a hardware (hereinafter abbreviated as HW) failure during microprogram operation is detected, the device itself is placed in a failure state. Then, a report is sent to a diagnostic device, a failure analysis is performed based on the stop address, and the location of the HW failure is pointed out.
例えば、一般に割込みがあった場合には割込処理を行う
過程において割込要因詳細情報を読出し、その要因の判
定を行う。このときに割込の要因がないという場合は有
り得ない。つまり、矛盾しており、この場合には割込制
御回路又は割込要因詳細フラグの障害が考えられる。For example, when an interrupt occurs, detailed information on the cause of the interrupt is generally read in the process of processing the interrupt, and the cause is determined. At this time, it is impossible that there is no cause for interrupt. In other words, there is a contradiction, and in this case, there may be a failure in the interrupt control circuit or the interrupt cause detail flag.
すると、自装置を停止状態とし、その停止アドレスが診
断装置に報告される。Then, the device itself is brought to a halt state, and its halt address is reported to the diagnostic device.
診断装置は障害解析用のプログラムを有しており、その
プログラムを用いて障害の解析が行われる。そのプログ
ラムとしては、入力された停止アドレスからシーケンス
を逆にたどって、障害箇所を指摘するというものが周知
である。The diagnostic device has a fault analysis program, and the fault is analyzed using the program. A well-known program is one that traces the sequence backwards from the input stop address and points out the location of the failure.
しかし、上述した従来のマイクロプログラム制御装置は
、停止アドレスにより障害解析を行っているが、自装置
を障害状態に設定するマイクロ命令のアドレスがマイク
ロプログラムの修正やマイクロプログラムのアセンブル
等により変更されることがある。そのような場合にはマ
イクロ命令アドレスによる障害解析用のプログラムを変
更する必要がある。つまり、従来の障害解析方式はマイ
クロ命令のアドレス変更に対する柔軟性がないという欠
点がある。However, although the above-mentioned conventional microprogram control device performs failure analysis based on the stop address, the address of the microinstruction that sets the own device in a failure state is changed due to microprogram modification, microprogram assembly, etc. Sometimes. In such a case, it is necessary to change the program for failure analysis using microinstruction addresses. In other words, the conventional fault analysis method has the disadvantage of not being flexible when changing the address of a microinstruction.
発明の目的
本発明は上述した従来の欠点を角1決するためになされ
たものであり、その目的はマイクロ命令のアドレス変更
に対して柔軟に対応でき、有効に障害解析を行うことが
できるマイクロプログラム制御装置を提供することであ
る。OBJECTS OF THE INVENTION The present invention has been made in order to solve the above-mentioned conventional drawbacks, and its purpose is to provide a microprogram that can flexibly respond to changes in the address of microinstructions and that can effectively analyze failures. The purpose of the present invention is to provide a control device.
発明の構成
本発明によるマイクロプログラム制御装置は、制御記憶
から読出されたマイクロ命令に応じて所定の処理を実行
するマイクロプログラム制御装置であって、前記マイク
ロ命令に応じた処理の実行時に発生するであろうと思わ
れる障害の発生の要因となる障害箇所を特定するための
エラーコードを送出するマイクロ命令が格納された制御
記taと、前記エラーコードの送出に応答して該エラー
コードに対応する障害の発生要因となる障害箇所に関す
る情報を送出する障害情報送出手段とを有することを特
徴とする。Composition of the Invention A microprogram control device according to the present invention is a microprogram control device that executes a predetermined process in response to a microinstruction read from a control memory, and the microprogram control device executes a predetermined process in response to a microinstruction read out from a control memory. A control memory TA that stores a microinstruction that sends out an error code to identify a fault location that is likely to cause a fault, and a fault that corresponds to the error code in response to the sending of the error code. The present invention is characterized in that it has a fault information sending means for sending information regarding a fault location that is a cause of the occurrence of the problem.
実施例 以下、図面を用いて本発明の詳細な説明する。Example Hereinafter, the present invention will be explained in detail using the drawings.
第1図は本発明によるマイクロプログラム制御装置の一
実施例の構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of an embodiment of a microprogram control device according to the present invention.
図において、本発明の一実施例によるマイクロプログラ
ム制御装置i00はマイクロプログラムが格納されてい
る制御記憶101と、この制御記憶lOIから読出され
たマイクロ命令を格納する読出レジスタ102と、読出
されたマイクロ命令を解読する命令デコーダ103と、
フリップフロップ(F/F) 104 ト、エラーコー
ドを保持するエラーコード保持レジスタ105と、エラ
ーコード保持レジスタ105の内容を診断装置200に
報告する送出回路10Bとを含んで構成されている。な
お、20Gは診断装置である。In the figure, a microprogram control device i00 according to an embodiment of the present invention includes a control memory 101 in which a microprogram is stored, a read register 102 that stores microinstructions read from the control memory lOI, and a microprogram controller i00 in which a microprogram is read out. an instruction decoder 103 that decodes instructions;
It is configured to include a flip-flop (F/F) 104, an error code holding register 105 that holds an error code, and a sending circuit 10B that reports the contents of the error code holding register 105 to the diagnostic device 200. Note that 20G is a diagnostic device.
制御記憶101内のマイクロプログラムは複数のマイク
ロ命令を含んで構成されている。そのマイクロ命令には
本来の処理を実行するためのマイクロ命令の他に自装置
の障害通知とともにその障害に対応するエラーコードを
エラーコード保持レジスタ105に設定する処理を行う
マイクロ命令(以下、SEC命令と略す)が含まれてい
るものとする。The microprogram in control memory 101 is configured to include a plurality of microinstructions. In addition to the microinstruction for executing the original processing, the microinstruction includes a microinstruction (hereinafter referred to as SEC instruction) that notifies the device itself of a failure and also sets an error code corresponding to the failure in the error code holding register 105. ) is included.
F / F 104はマイクロプログラムがHWの障害
に起因すると判断される処理上の矛盾を検出した場合に
SEC命令を発行して自装置を障害状態にするとともに
、障害状態である旨を診断装置200に通知する際にセ
ットされるものである。When the microprogram detects a processing inconsistency that is determined to be caused by a HW failure, the F/F 104 issues an SEC command to put its own device in a failure state, and also notifies the diagnostic device 200 that it is in a failure state. This is set when notifying.
送出回路10Bには周知の障害内容回収手段が用いられ
る。これは第3図に示されているように、セレクタ10
6を含んで構成され、診断装置200からのセレクト信
号20に応じてマイクロプログラム制御装置100内の
エラーコード保持レジスタ1゜5、停止アドレス保持レ
ジスタlo8、ステータス情報保持レジスタ107等の
内容を出力データ21として送出するものである。その
他、周知のスキャンパスを用いて障害内容を回収する方
式としても良い。A well-known fault content recovery means is used in the sending circuit 10B. This is shown in FIG.
6, and outputs the contents of the error code holding register 1.5, stop address holding register LO8, status information holding register 107, etc. in the microprogram control device 100 in response to the select signal 20 from the diagnostic device 200. 21. Alternatively, a well-known scan path may be used to collect the failure details.
次に、制御記憶101内のマイクロ命令について説明す
る。第2図は本発明の一実施例によるマイクロプログラ
ム制御装置におけるマイクロ命令の一形式を示す概念図
である。同図(a)において、制御記憶内の各マイクロ
命令は次のマイクロ命令のアドレスを生成する分岐フィ
ールド201と、制御指示を与える@御指示フィールド
202と、定数が格納される定数フィールド203とか
ら構成されている。Next, microinstructions in control memory 101 will be explained. FIG. 2 is a conceptual diagram showing one format of microinstructions in a microprogram control device according to an embodiment of the present invention. In the same figure (a), each microinstruction in the control memory consists of a branch field 201 that generates the address of the next microinstruction, an @instruction field 202 that gives a control instruction, and a constant field 203 that stores constants. It is configured.
マイクロ命令が先述したSEC命令である場合には同図
(b)のように分岐フィールド201に分岐命令、制御
指示フィールド202にSEC命令、定数フィールド2
03にエラーコードが夫々設定されることとなる。If the microinstruction is the above-mentioned SEC instruction, the branch field 201 contains the branch instruction, the control instruction field 202 contains the SEC instruction, and the constant field 2, as shown in FIG.
The error code will be set in 03 respectively.
また、エラーコードは第4図に示されているように予想
障害箇所に対応して予め定められるものである。例えば
、先述の割込制御回路又は割込要因詳細フラグのハード
ウェア障害の場合のエラーコード−′00”というよう
に予想されるすべての障害についてエラーコードを割当
てておくのである。Further, the error code is determined in advance in accordance with the expected failure location, as shown in FIG. For example, an error code is assigned to all expected failures, such as the error code -'00'' in the case of a hardware failure of the interrupt control circuit or interrupt cause detail flag mentioned above.
そして、制御記憶内のマイクロプログラムのシーケンス
上の障害が発生するであろうと予測される部分に対し、
その部分でエラーが発生した場合における予想障害箇所
のエラーコードを含むSEC命令を予め格納しておけば
良い。それとともに、診断装置内に第4図に示されてい
るような障害箇所指摘表を記憶しておけば、送出回路か
ら送出されるエラーコードを参照することにより、マイ
クロプログラム制御装置内の障害箇所を容易に指摘でき
ることとなる。つまり、従来、用いられていた停止アド
レスをもとに障害解析を行うプログラムの代わりにエラ
ーコードをもとに障害解析を行うプログラムを診断装置
内に設けておけば良いのである。Then, for the part of the microprogram sequence in the control memory where it is predicted that a failure will occur,
It is sufficient to store in advance an SEC instruction including an error code of a predicted failure location in case an error occurs in that part. At the same time, by storing a fault location identification table as shown in Figure 4 in the diagnostic device, the fault location within the microprogram control device can be determined by referring to the error code sent from the sending circuit. This makes it easy to point out. In other words, instead of the conventionally used program that analyzes failures based on stop addresses, a program that analyzes failures based on error codes can be provided in the diagnostic device.
第1図に戻り、かかる構成とされたマイクロプログラム
制御装置において、マイクロプログラム処理中、例えば
、HWの状態を判定する場合、論理回路上又はマイクロ
プログラムの処理上有り得ない状態又は状態の組合せを
検出した時、何らかのHW陣害によるものと考えられ、
検出内容及びマイクロプログラムの処理過程によりHW
の障害箇所を限定できる場合がある。このような場合、
上述したように、予めHWの障害箇所を特定するための
エラーコードが設定されたSEC命令を制御記憶内に格
納しておき、マイクロプログラムにより、矛盾が検出さ
れた場合にそのSEC命令を発行するようにすれば良い
。Returning to FIG. 1, in the microprogram control device having such a configuration, during microprogram processing, for example, when determining the state of HW, a state or combination of states that is impossible on the logic circuit or in the processing of the microprogram is detected. It is thought that this was due to some kind of HW defection,
Depending on the detected contents and the processing process of the microprogram,
It may be possible to limit the location of the failure. In such a case,
As mentioned above, an SEC command with an error code set to identify the failure location of the HW is stored in the control memory in advance, and the microprogram issues the SEC command when a discrepancy is detected. Just do it like this.
SEC命令が制御記憶lotから読出レジスタ102に
送出されると、命令デコーダ103により第2図の命令
フィールドが解読され、障害通知用のF/ F 104
をセットする。それとともに1.読出レジスタ102内
のマイクロ命令中の定数フィールドに存在するエラーコ
ードをエラーコード保持レジスタ105にセットする。When the SEC instruction is sent from the control storage lot to the read register 102, the instruction field shown in FIG. 2 is decoded by the instruction decoder 103, and the F/F 104 for fault notification is
Set. Along with that, 1. The error code existing in the constant field of the microinstruction in the read register 102 is set in the error code holding register 105.
この結果、自装置は障害状態となり診断装置200へ障
害の発生が通知される。As a result, the own device becomes in a failure state and the diagnosis device 200 is notified of the occurrence of the failure.
診断装置200は送出回路10Bにより、エラーコード
保持レジスタ105の内容、すなわちエラーコードを送
出するとともに障害装置の内部データを読出すログアウ
トを行う。さらに、診断装置200はマイクロプログラ
ムによりHWの矛盾が検出され障害になったケースの障
害解析用のプログラムを起動する。その障害解析用のプ
ログラムが実行されればエラーコード及び上述した障害
箇所指摘表を参照することによりHW陣害箇所を特定で
きるのである。The diagnostic device 200 uses the sending circuit 10B to send out the contents of the error code holding register 105, that is, the error code, and performs logout by reading the internal data of the faulty device. Further, the diagnostic device 200 activates a program for failure analysis in a case where a HW inconsistency is detected by the microprogram and becomes a failure. When the fault analysis program is executed, the location of HW damage can be identified by referring to the error code and the above-mentioned fault location table.
つまり、マイクロプログラムの修正等によってマイクロ
命令のアドレスが変更された場合でもエラーコードは規
定されているものをそのまま使用できるため、診断装置
内の障害解析用のプログラムを何ら変更せずに済むので
ある。In other words, even if the address of a microinstruction is changed due to a modification of the microprogram, the specified error code can be used as is, so there is no need to make any changes to the fault analysis program in the diagnostic device. .
発明の詳細
な説明したように本発明によれば、マイクロプログラム
動作中にHWの障害に起因すると判断できる処理上の矛
盾を検出した場合、マイクロ命令によってHWの障害部
分に対応するエラーコードが送出されるため、障害解析
用のプログラム変更の必要がなくなり、マイクロ命令の
アドレス変更に対して柔軟に対応でき、有効に障害解析
を行えるという効果がある。DETAILED DESCRIPTION OF THE INVENTION According to the present invention, when a processing inconsistency that can be determined to be caused by a HW failure is detected during microprogram operation, an error code corresponding to the failed part of the HW is sent by a microinstruction. Therefore, there is no need to change the program for failure analysis, it is possible to flexibly respond to changes in microinstruction addresses, and failure analysis can be performed effectively.
第1図は本発明の実施例によるマイクロプログラム制御
装置の構成を示すブロック図、第2図は制御記憶内のマ
イクロ命令の構成を示す概念図、第3図は第1図におけ
る送出回路の例を示す概念図、第4図は障害箇所指摘表
の例である。
主要部分の符号の説明
101・・・・・・制御記憶 103・・・・・・命
令デコーダ105・・・・・・エラーコード保持レジス
タ200・・・・・・診断装置FIG. 1 is a block diagram showing the configuration of a microprogram control device according to an embodiment of the present invention, FIG. 2 is a conceptual diagram showing the configuration of microinstructions in a control memory, and FIG. 3 is an example of the sending circuit in FIG. 1. Figure 4 is a conceptual diagram showing an example of a failure point indication table. Explanation of symbols of main parts 101...Control memory 103...Instruction decoder 105...Error code holding register 200...Diagnostic device
Claims (1)
定の処理を実行するマイクロプログラム制御装置であっ
て、前記マイクロ命令に応じた処理の実行時に発生する
であろうと思われる障害の発生の要因となる障害箇所を
特定するためのエラーコードを送出するマイクロ命令が
格納された制御記憶と、前記エラーコードの送出に応答
して該エラーコードに対応する障害の発生要因となる障
害箇所に関する情報を送出する障害情報送出手段とを有
することを特徴とするマイクロプログラム制御装置。(1) A microprogram control device that executes a predetermined process in response to a microinstruction read from a control memory, and the cause of a failure that is thought to occur during execution of the process in accordance with the microinstruction. a control memory storing a microinstruction that sends out an error code to identify a fault location; and a control memory storing a microinstruction that sends out an error code to identify a fault location; 1. A microprogram control device comprising: fault information sending means for sending out failure information.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1173286A JPH0337739A (en) | 1989-07-05 | 1989-07-05 | Microprogram controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1173286A JPH0337739A (en) | 1989-07-05 | 1989-07-05 | Microprogram controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0337739A true JPH0337739A (en) | 1991-02-19 |
Family
ID=15957634
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1173286A Pending JPH0337739A (en) | 1989-07-05 | 1989-07-05 | Microprogram controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0337739A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH05257760A (en) * | 1992-02-19 | 1993-10-08 | Nec Corp | Microprocessor |
-
1989
- 1989-07-05 JP JP1173286A patent/JPH0337739A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH05257760A (en) * | 1992-02-19 | 1993-10-08 | Nec Corp | Microprocessor |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7765434B2 (en) | Resource efficient software tracing for problem diagnosis | |
| KR840006091A (en) | How to recover from errors in the microprogram controller | |
| US7346812B1 (en) | Apparatus and method for implementing programmable levels of error severity | |
| JPH0337739A (en) | Microprogram controller | |
| KR830002883B1 (en) | Micro programmable controller | |
| JPS5832422B2 (en) | Micro Shindan Houshiki | |
| JPH0135369B2 (en) | ||
| JPS5862900A (en) | Processing system for single bit error of memory | |
| JPH04255032A (en) | Error correcting system for control storage | |
| EP0112672A2 (en) | System for processing machine check interruption | |
| JP2606431B2 (en) | Control memory failure recovery method | |
| JP2635777B2 (en) | Programmable controller | |
| JPH02189664A (en) | Method for processing fault in channel control device | |
| JPH0365743A (en) | Fault finding method for main storage device | |
| JPH04365145A (en) | Memory fault processing method | |
| JPH10320232A (en) | Microprogram debugging device | |
| JPH06139155A (en) | Method for diagnosing storage device | |
| JPH076103A (en) | Fault processing system for input/output channel | |
| JPS6320637A (en) | Execution history storage device | |
| JPH04303886A (en) | Graphic display device | |
| JPS6039243A (en) | Fault detecting system | |
| JPS629937B2 (en) | ||
| JPH0448332A (en) | Information processor | |
| JPS6123240A (en) | Data processor | |
| JPH0368035A (en) | Information processor |