JPH01189735A - Microprogram diagnosing system - Google Patents

Microprogram diagnosing system

Info

Publication number
JPH01189735A
JPH01189735A JP63014116A JP1411688A JPH01189735A JP H01189735 A JPH01189735 A JP H01189735A JP 63014116 A JP63014116 A JP 63014116A JP 1411688 A JP1411688 A JP 1411688A JP H01189735 A JPH01189735 A JP H01189735A
Authority
JP
Japan
Prior art keywords
microprogram
block
divided
blocks
program
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
JP63014116A
Other languages
Japanese (ja)
Inventor
Shoichi Nagasaka
長坂 庄市
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP63014116A priority Critical patent/JPH01189735A/en
Publication of JPH01189735A publication Critical patent/JPH01189735A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To diagnose a microprogram in an on-line operation by checking the microprogram divided into blocks before performing a program processing. CONSTITUTION:A CPU 13 executes an initialization process after starting the microprogram from a ROM 11, and the sum check of the block is applied before performing the processing of block of the microprogram divided into blocks. And a block microprogram is diagnosed by comparing with a sum check value attached on a block microprogram, and when noncoincidence is obtained, abnormality information via an I/O port 14 is latched at a latch mechanism 16, and is displayed on a display mechanism 15. By performing diagnosis on every divided block microprogram, the diagnosis of the microprogram in the on-line operation can be performed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、計算機システムのオンライン時のマイクロ
プログラムをチェックし、異常を検出するためのマイク
ロプログラムの診断方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microprogram diagnostic method for checking a microprogram when a computer system is online and detecting abnormalities.

〔従来の技術〕[Conventional technology]

第2図は従来のマイクロプログラムの診断方式を示す流
れ図で、図において、1はマイクロプログラムをチェッ
クするためのチエ・ツクプログラム、2はメインプログ
ラムに入るための初期設定プロセス、3,4はメインプ
ログラムの各プロセスである。第3図は従来のマイクロ
プログラム周辺の構成図である。図において、11はマ
イクロプログラムの記録されているROM、12はRA
M、13はマイクロプロセッサ、14は人出力ポート、
15はエラー発生時にその表示を行う表示機構である。
Figure 2 is a flowchart showing a conventional microprogram diagnosis method. Each process of the program. FIG. 3 is a diagram showing the peripheral structure of a conventional microprogram. In the figure, 11 is a ROM in which a microprogram is recorded, and 12 is an RA.
M, 13 is a microprocessor, 14 is a human output port,
15 is a display mechanism that displays an error when it occurs.

次に動作について説明する。第2図におし17マイクロ
プログラムのスターl−後、チエ・ツクプログラム1の
プログラムチェックでマイクロプログラムのパリテイチ
J−ツタ又はCRCチエ・ンクなどが行われ、異常の場
合は第3図に示すI10ポート4を介してその旨の出力
を行い、表示機構5に異常を検出した表示を行う。マイ
クロプログラムは処理を中止してHALTするか、又は
エラー処理を行った後、第2図の初期設定プロセス2を
実行し、メインプログラムの各プロセス3,4へ入って
いく。各プロセス処理中ば特にマイクロプログラムのチ
ェックは行われない。
Next, the operation will be explained. Figure 2 shows 17 After the microprogram starts, the parity check or CRC check of the microprogram is performed in the program check of check program 1, and if there is an abnormality, it is shown in Figure 3. A message to that effect is outputted via the I10 port 4, and a display indicating that an abnormality has been detected is displayed on the display mechanism 5. After the microprogram stops processing and performs HALT or performs error processing, it executes the initialization process 2 shown in FIG. 2 and enters each process 3 and 4 of the main program. No particular microprogram check is performed during each process.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来の診断方式ではマイクロプログラムのチェックは電
源オン等の立ち上げ時にしか行っておらず、システムの
運用状態(オンライン)でのチェックは行われていなか
ったので運用中にマイクロプログラムの異常検出はでき
ないことから、システム運用中(オンライン時)のマイ
クロプログラムデータの信頼性が低く、異常発生時には
プログラムのどのあたりで異常があったのか全くわから
ないという問題点があった。
In conventional diagnostic methods, microprograms are checked only at startup, such as when the power is turned on, and checks are not performed while the system is in operation (online), so microprogram abnormalities cannot be detected during operation. As a result, the reliability of microprogram data during system operation (online) is low, and when an abnormality occurs, there is a problem in that it is impossible to know where in the program the abnormality occurred.

この発明は上記のような問題点を解決するためになされ
たものでシステム運用中にマイクロプログラムのチェッ
クができ、かつ、異常時にはマイクロプログラムのどの
エリアで異常が発生したかを表示することができるオン
ライン時のマイクロプログラム診断法を得ることを目的
としている。
This invention was made to solve the above-mentioned problems. It is possible to check the microprogram during system operation, and when an error occurs, it is possible to display in which area of the microprogram the error occurred. The purpose is to obtain a method for diagnosing microprograms during online operation.

〔課題を解決するための手段〕[Means to solve the problem]

この発明に係るマイクロプログラム1の診断方式は、マ
イクロプロゲラムエを各ブロック31゜41.42に分
割し、分割したブロック31゜41.42に入る前にプ
ログラムチェックルーチン5でチェックを行い、チェッ
クするブロック3.1,41.42のサム値と比較して
正しければブロック31,41.42の先頭に戻ってブ
ロック31,41.42の処理を行い、正しくなりれば
ブロック31,41.42のステータスを出力して異常
表示を行うことを特徴とするものである。
The diagnosis method for the microprogram 1 according to the present invention is to divide the microprogram into each block 31°41.42, and before entering the divided blocks 31°41.42, perform a check using the program check routine 5. Compare the sum value of block 3.1, 41.42 to be correct, and if it is correct, return to the beginning of block 31, 41.42 and process block 31, 41.42, and if it is correct, block 31, 41.42 This feature is characterized in that it outputs the status of and displays an abnormality.

〔作用〕[Effect]

この発明に係るプログラムチェックルーチン5は分割さ
れたマイクロプログラム1の各ブロックに入っていく都
度、そのブロックのチェックを行い、チェックするブロ
ックのサム値と正しいか否か比較する。
The program check routine 5 according to the present invention checks each block of the divided microprogram 1 each time it enters, and compares it with the sum value of the block to be checked to see if it is correct.

そして、正しければ先頭に戻ってブロックの処理を行い
、正しくなければブロックのステータスを出力して異常
の表示をする。
If it is correct, it returns to the beginning and processes the block; if it is incorrect, it outputs the status of the block and indicates an error.

〔発明の実施例〕[Embodiments of the invention]

以下、この発明の実施例を図面について説明する。第1
図は、この発明の一実施例を示す流れ図で、図において
、第2図と同一符号は同−又は相当部分を示す。図にお
いて、31,41.42はマイクロプログラムを分割し
7た各ブロック、5は各ブロック31,4.1.42の
チェックを行うプログラムチェックルーチンである。こ
の各ブロック3L4.L42の先頭にはプログラムチェ
ックルーチン5へ飛ばすためのジャンプ命令又はコール
命令、ブロックの最後には、そのブロックのチェックサ
ム値を有している。この場合ブロック31ば1つのプロ
セスで構成されているがブロック4.1.42は1つの
プロセスを更に分割したものから構成しである。このよ
うに1つのプロセスが長い場合には、その長さに応じて
複数に分割し、それぞれ個別にチェックする。第4図は
プログラム異常時に異常エリアをラッチ、表示するため
の周辺ブロック図である。11はマイクロプログラ−−
へ−− ムを記録するRC)M、12はR’AM、13はマイク
ロプロセツサ、14はI10ボート、15はエラー情報
等の表示を行う表示機構、16は表示データをラッチす
るランチ機構である。
Embodiments of the present invention will be described below with reference to the drawings. 1st
The figure is a flowchart showing one embodiment of the present invention, and in the figure, the same reference numerals as in FIG. 2 indicate the same or corresponding parts. In the figure, numerals 31, 41, and 42 are the seven blocks obtained by dividing the microprogram, and 5 is a program check routine that checks each block 31, 4, 1, and 42. Each block 3L4. At the beginning of L42, there is a jump instruction or call instruction for jumping to the program check routine 5, and at the end of the block, there is a checksum value for that block. In this case, block 31 is made up of one process, but blocks 4.1.42 are made up of one process further divided. If one process is long like this, it is divided into multiple parts depending on the length and each is checked individually. FIG. 4 is a peripheral block diagram for latching and displaying an abnormal area when a program abnormality occurs. 11 is a microprogrammer --
12 is R'AM, 13 is a microprocessor, 14 is an I10 board, 15 is a display mechanism that displays error information, etc., and 16 is a launch mechanism that latches display data. be.

次に第1図に示す流れ図の動作について説明する。Next, the operation of the flowchart shown in FIG. 1 will be explained.

マイクロプログラムのスタート後初期設定プロセス2を
行い、マイクロプログラムのプロセスであるブロック3
1に移るが、このブロック31の処理に入る前にプログ
ラムチェックルーチン5へ飛び、ブロック31のサムチ
ェックを行い、ブロック31の最後に付加されているチ
ェソクサJ、値と比較して正しければブロック31の先
頭に戻りブロック図31の処理を始める。ブロック41
゜42のように大きな1つのプロセスを分割した場合も
同様で、分割毎にチェックを行う。もし、プログラムチ
ェックルーチン5でサム値が不一致の場合はそのプロセ
スのステータスを第4図に示す110ポー1−4に出力
し異常表示を行う。これはランチ機構6でデータがラッ
チされているために、ごのエラー処理後に別のプロセス
へ飛んで処理を開始しても、後に表示機構5で知ること
ができる。
After starting the microprogram, initialization process 2 is performed, and block 3, which is the microprogram process, is performed.
1, but before entering the processing of this block 31, it jumps to the program check routine 5, performs a sum check of block 31, compares it with the value of Chesokusa J added at the end of block 31, and if it is correct, blocks 31 The process returns to the beginning of block diagram 31 and starts processing. block 41
The same is true when one large process such as 42 is divided, and a check is performed each time it is divided. If the sum values do not match in the program check routine 5, the status of the process is output to port 110 1-4 shown in FIG. 4 to indicate an abnormality. This is because the data is latched by the launch mechanism 6, so even if the process jumps to another process and starts processing after the previous error handling, it can be known later by the display mechanism 5.

この方法は長時間連続運転を必要とし、かつ、高い信頼
性を必要とする工業用計算機システムの制御装置等のマ
イクロプログラムに適する。なお、上記実施例では各プ
ロセスの最初のプログラムチェックルーチンへのジャン
プ命令、コール命令を使用しているか、第5図のブロッ
ク図のようにTIMER17を使用したハード的な割り
込みによってプログラムチェックルーチンに飛ばしても
よい。
This method is suitable for microprograms such as control devices for industrial computer systems that require continuous operation for long periods of time and require high reliability. In the above embodiment, a jump instruction or a call instruction to the first program check routine of each process is used, or a hardware interrupt using TIMER17 is used to jump to the program check routine as shown in the block diagram of FIG. You can.

〔発明の効果] 以上のようにこの発明によれば、マイクロプログラムを
各ブロック単位に分割し、分割したブロックを実行する
都度、プログラムチェックルーチンによってチェックす
るので、運用中にマイクロプログラムの異常検出を行う
ことができ、マイクロプログラムのデータの信頼性が高
く、しかもマイクロプログラムのどのあたりで異常が発
生したのかを知ることが可能となる。
[Effects of the Invention] As described above, according to the present invention, a microprogram is divided into blocks, and each divided block is checked by a program check routine every time it is executed. The data of the microprogram is highly reliable, and it is also possible to know where in the microprogram an abnormality has occurred.

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

第1図はこの発明の一実施例を示す流れ図、第2図は従
来のマイクロプログラムの診断方式を示す流れ図、第3
図は従来の診断方式を実行する場合のハードウェアの構
成図、第4図は本発明の診断方式を実行する場合のハー
ドウェアの一例を示す構成図、第5図は本発明の診断方
式を実行する場合のハードウェアの他の一例を示す構成
図である。 工・・・チェックプログラム、2・・・初期設定プロセ
ス、3,4・・・プロセス、5・・・プログラムチェッ
クルーチン、31.41.42・・・ブロック、11・
・・ROM、12・・・RAM、13・・・CPU、1
4・・−110ポート15・・・表示機構、16・・・
ラッチ機構、17・・・T I MERo 代理人  大  岩  増  雄(はが2名)第5図
FIG. 1 is a flowchart showing an embodiment of the present invention, FIG. 2 is a flowchart showing a conventional microprogram diagnosis method, and FIG.
The figure is a configuration diagram of hardware when executing the conventional diagnosis method, FIG. 4 is a configuration diagram showing an example of hardware when executing the diagnosis method of the present invention, and FIG. It is a block diagram which shows another example of the hardware in the case of execution. Engineering...Check program, 2...Initial setting process, 3, 4...Process, 5...Program check routine, 31.41.42...Block, 11.
...ROM, 12...RAM, 13...CPU, 1
4...-110 port 15... display mechanism, 16...
Latch mechanism, 17... T I MERo agent Masuo Oiwa (2 people) Figure 5

Claims (1)

【特許請求の範囲】 計算機システムのオンライン時のマイクロプログラムを
チェックし、異常を検出するマイクプログラムの診断方
式において、 マイクロプログラムを各ブロックに分割し、分割したブ
ロックの処理に入る前にプログラムチェックルーチンで
チェックを行い、チェックするブロックのサム値と比較
して正しければブロックの先頭に戻ってブロックの処理
を行い、正しくなければブロックのテスータスを出力し
て異常表示を行うことを特徴とするマイクロプログラム
の診断方式。
[Claims] A microprogram diagnostic method for checking a microprogram when a computer system is online and detecting abnormalities, which divides the microprogram into blocks and includes a program check routine before processing the divided blocks. A microprogram characterized in that it performs a check, compares it with the sum value of the block to be checked, and if it is correct, returns to the beginning of the block and processes the block, and if it is incorrect, it outputs the test status of the block and displays an abnormality. diagnostic method.
JP63014116A 1988-01-25 1988-01-25 Microprogram diagnosing system Pending JPH01189735A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63014116A JPH01189735A (en) 1988-01-25 1988-01-25 Microprogram diagnosing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63014116A JPH01189735A (en) 1988-01-25 1988-01-25 Microprogram diagnosing system

Publications (1)

Publication Number Publication Date
JPH01189735A true JPH01189735A (en) 1989-07-28

Family

ID=11852147

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63014116A Pending JPH01189735A (en) 1988-01-25 1988-01-25 Microprogram diagnosing system

Country Status (1)

Country Link
JP (1) JPH01189735A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07182251A (en) * 1993-12-24 1995-07-21 Nec Corp Microprocessor
JP2004327036A (en) * 2004-08-06 2004-11-18 Matsushita Electric Ind Co Ltd Semiconductor integrated circuit and inspection method of semiconductor integrated circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07182251A (en) * 1993-12-24 1995-07-21 Nec Corp Microprocessor
JP2004327036A (en) * 2004-08-06 2004-11-18 Matsushita Electric Ind Co Ltd Semiconductor integrated circuit and inspection method of semiconductor integrated circuit

Similar Documents

Publication Publication Date Title
JPH01189735A (en) Microprogram diagnosing system
JPH06324721A (en) Method for detecting falling-off of connection unit
JP3315266B2 (en) Self-diagnosis status display method
JPH1115661A (en) Self-diagnosis method for cpu
JP2679575B2 (en) I / O channel fault handling system
JPS58121461A (en) Debugging device for diagnostic program
JPH01162094A (en) Key telephone system
JP2990008B2 (en) Processor self-diagnosis method
JPS60179847A (en) Matching check system between real array and virtual array
JPS62139050A (en) Instruction test system by control of maintenance and diagnosis processor
JPH0272438A (en) Debugging system
JPS62219033A (en) Trouble deciding system
JPS62208136A (en) Sequential control circuit test system
JPH0844583A (en) Diagnostic system for information processor
JPS60251438A (en) Self-diagnosis method of control memory
JPS61145650A (en) Test system of information processing unit
JPH01156839A (en) Data processor
JPH01270102A (en) Abnormality monitoring system
JPH05289946A (en) Memory control system
JPS62241034A (en) Microprogram controller
JPH02136935A (en) Self-diagnostic system for microprogram controller
JPH0540648A (en) Test execution system for information processor
JPS62210551A (en) Microprogram tracing device
Namjoo Concurrent testing at the computer system level.
JPS63226745A (en) Processor system