JPS61109152A - Malfunction detector - Google Patents

Malfunction detector

Info

Publication number
JPS61109152A
JPS61109152A JP59229679A JP22967984A JPS61109152A JP S61109152 A JPS61109152 A JP S61109152A JP 59229679 A JP59229679 A JP 59229679A JP 22967984 A JP22967984 A JP 22967984A JP S61109152 A JPS61109152 A JP S61109152A
Authority
JP
Japan
Prior art keywords
program
detection
lower limit
malfunction
execution module
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
JP59229679A
Other languages
Japanese (ja)
Inventor
Masaki Tsuchiya
正樹 土屋
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 JP59229679A priority Critical patent/JPS61109152A/en
Publication of JPS61109152A publication Critical patent/JPS61109152A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0721Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment within a central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation

Abstract

PURPOSE:To facilitate an analysis of a fault due to a program mistake by comparing a branch destination address with the program areas of a monitor part and an executing module respectively. CONSTITUTION:The addresses showing the program areas of a monitor part are set to address registers 20 and 21, and an FF26 is set by the enable signal given from an instruction decoder 11. Thus a comparator 24 is set under an enable state and a malfunction detecting state stands by. Then the addresses showing the areas of an executing module are set to address registers 22 and 23. The comparator 24 compares a branch destination address 31 with addresses stored in the registers 20-23 respectively every time a branch instruction 32 is delivered from the decoder 11 in a microprogram controller 1. Thus a malfunction is detected with the controller 1.

Description

【発明の詳細な説明】 炎亙欠1 本発明は誤動作検出装置に関し、特にデータ処理装置に
おけるマイクロプログラム制御装置の誤動作検出装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a malfunction detection device, and more particularly to a malfunction detection device for a microprogram control device in a data processing device.

支釆且薯 従来、この種のマイクロプログラム制御装置は第1図に
示す如く複数のプログラムモジュールによって構成され
ている。各実行モジュールは、モニタ部からの指令に基
きプログラムを実行し、当該実行動作が終了すると再度
モニタ部へ戻るように構成されている。また、必要に応
じてモニタ部で用意しているサブルーチンをコールする
ことがある。このように、各実行モジュールはモニタ部
とのみプログラムの制御を行い、決してモニタ部以外の
実行モジュールへ行くことはない。
Conventionally, this type of microprogram control device has been composed of a plurality of program modules as shown in FIG. Each execution module is configured to execute a program based on a command from the monitor section, and return to the monitor section again when the execution operation is completed. In addition, a subroutine prepared by the monitor section may be called as necessary. In this way, each execution module controls the program only with the monitor section, and never goes to any execution module other than the monitor section.

しかし、プログラムミス等に起因して、他の実行モジュ
ールへブランチすることがプログラム開発中等において
は多々あるものである。この場合、プログラムミスのあ
る実行モジュールではエラーとならずに、誤ってブラン
チされた本来プログラムミスの無い実行モジュールにお
いてエラーとなるという欠点があり、このプログラムミ
スによる障害解析のために膨大な時間が費やされる欠点
がある。
However, in program development, etc., branching to other execution modules often occurs due to a program error or the like. In this case, the problem is that an error does not occur in an execution module with a programming error, but an error occurs in an execution module that was originally branched by mistake, and an enormous amount of time is required to analyze failures caused by this programming error. There are downsides to being spent.

■IJLl力 本発明は上部従来のものの欠点を除去すべくなされたも
のであって、その目的とするところは、プログラムミス
による障害の検出を容易に確実になし得る誤動作検出装
置を提供することにある。
The present invention was made in order to eliminate the drawbacks of the conventional upper part, and its purpose is to provide a malfunction detection device that can easily and reliably detect failures caused by program errors. be.

発明の構成 本発明による誤動作検出装置は、複数のプログラムモジ
ュールにて構成されるマイクロプログラム制御装置にお
ける誤動作検出装置を対象とし、その特徴とするところ
は、プログラムモジュール内のモニタ部のプログラム領
域を示すモニタ部上限及び下限アドレスを格納する第1
格納手段と、プログラムモジュール内の実行すべき実行
モジュールのプログラム領域を示す実行モジュール上限
及び下限アドレスを格納する第2格納手段と、ブランチ
命令発行時におけるブランチ先アドレスがこれ等1及び
第2格納手段の上限及び下限アドレス範囲内に存在する
か否かを検出する検出手段と、この検出手段の検出動作
を活性非活性制御する制御手段とを有し、検出手段の活
性時における検出出力を用いてマイクロプログラム制御
装置の誤動作を検出自在としたことにある。
Composition of the Invention The malfunction detection device according to the present invention is aimed at a malfunction detection device in a microprogram control device composed of a plurality of program modules, and is characterized by the ability to detect a program area of a monitor section in a program module. The first one that stores the upper and lower limit addresses of the monitor section.
a storage means, a second storage means for storing execution module upper and lower limit addresses indicating a program area of an execution module to be executed in a program module, and a first and second storage means for storing a branch destination address when a branch instruction is issued. has a detection means for detecting whether or not the detection means exists within the upper and lower limit address ranges of The purpose is to enable the detection of malfunctions in the microprogram control device.

本発明による他の誤動作検出装置は前記構成の他に、ブ
ランチ命令発行時のプログラムカウンタの値を保持する
保持手段を付加し、この保持手段の保持内容によってミ
スの生じている実行プログラムモジュールを特定可能と
してなることを特徴としている。
Another malfunction detection device according to the present invention includes, in addition to the above-described configuration, a holding means for holding the value of the program counter when a branch instruction is issued, and identifies an execution program module in which an error has occurred based on the contents held in this holding means. It is characterized by being possible.

K豊j 以下、図面を用いて本発明の詳細な説明する。K Yutakaj Hereinafter, the present invention will be explained in detail using the drawings.

第2図は本発明の実施例のブロック図である。FIG. 2 is a block diagram of an embodiment of the invention.

1はマイクロプログラム制御装置であり、図では簡単化
のために本発明に必要な機能部分のみが抽出して示され
ている。10はプログラムカウンタ、11は命令デコー
ダ、30はデータバスライン、31はアドレスバスライ
ンを夫々示している。
Reference numeral 1 denotes a microprogram control device, and in the figure, only the functional parts necessary for the present invention are extracted and shown for the sake of simplicity. 10 is a program counter, 11 is an instruction decoder, 30 is a data bus line, and 31 is an address bus line.

2が本発明による誤動作検出装置であり、20はモニタ
部上限アドレスレジスタ、21はモニタ部下限アドレス
レジスタであり、この両レジスタ20.21によってモ
ニタ部のプログラム領域範囲が確定される。2’2は実
行モジュール上限アドレスレジスタ、23は実行モジュ
ール下限アドレスレジスタであり、両レジスタ22.2
3により実行されるべき実行モジュール領域範囲が確定
される。24は比較回路であり、前述の4つのアドレス
レジスタ20〜23の格納出力とアドレスバス31上の
アドレスとの大小比較をなすものである。25はプログ
ラムカウンタレジスタであり、プログラムカウンタ10
の値を保持するものである。26はFF(フリップフロ
ップ)であり、比較回路24のイネーブル/ディスイネ
ーブル状態を制御するものである。
2 is a malfunction detection device according to the present invention, 20 is a monitor unit upper limit address register, and 21 is a monitor lower limit address register, and these registers 20 and 21 determine the program area range of the monitor unit. 2'2 is an execution module upper limit address register, 23 is an execution module lower limit address register, and both registers 22.2
3, the execution module area range to be executed is determined. A comparison circuit 24 compares the stored outputs of the four address registers 20 to 23 with the address on the address bus 31. 25 is a program counter register, and the program counter 10
It holds the value of . Reference numeral 26 denotes an FF (flip-flop), which controls the enable/disable state of the comparison circuit 24.

32はブランチ命令信号、33はアドレスレジスタ20
〜23へ夫々対応するアドレスをセットするタイミング
を決める信号、34はFF26のセット/リセットを制
御する信号である。
32 is a branch command signal, 33 is an address register 20
A signal 34 determines the timing of setting the corresponding addresses to FF26.

かかる構成におし)で、誤動作検出をなす場合、先ず、
モニタ部プログラムはモニタ部プログラム領域を示すモ
ニタ部上限及び下限アドレスを夫々アドレスレジスタ2
0及び21ヘセツトすると共に、命令デコーダ11から
イネーブル信号34が発行されてFF26がセットされ
る。よって、比較回路24がイネーブル状態となって誤
動作検出状態がスタンバイされることになる。次に、モ
ニタ部は実行モジュールへ制御を渡す前に当該実行モジ
ュールの領域を示す実行モジュール上限及び下限アドレ
スを夫々アドレスレジスタ22.23ヘセツトする。各
実行モジュールの領域は、モニタ部内の特定の番地また
は各実行モジュールの決められた番地にあればよいもの
である。上記の各設定動作が終了すると、モニタ部は実
行モジュールへ制御を渡すことになる。
When detecting a malfunction with such a configuration, first,
The monitor section program stores the monitor section upper limit and lower limit addresses indicating the monitor section program area in the address register 2, respectively.
At the same time, the enable signal 34 is issued from the instruction decoder 11 and the FF 26 is set. Therefore, the comparator circuit 24 is enabled and the malfunction detection state is put on standby. Next, before passing control to the execution module, the monitor section sets the execution module upper limit and lower limit addresses indicating the area of the execution module in the address registers 22 and 23, respectively. The area of each execution module may be located at a specific address within the monitor section or at a predetermined address for each execution module. When each of the above setting operations is completed, the monitor section transfers control to the execution module.

比較回路24は、マイクロプログラム制御装置1内の命
令デコーダ11からブランチ命令32が発行される毎に
当該ブランチ先アドレス(31)と各アドレスレジスタ
20〜23の格納アドレスとを比較する。ここで、この
ブランチ先アドレスが、モニタ部のプログラム領域内及
び実行モジュール領域内のいずれの範囲にも存在しない
ことがこの比較回路24の比較結果により検出されると
、ブランチ先誤りであると判断されるので、この検出出
力がマイクロプログラム制御装置へ送出される。この検
出出力によって、例えば図示せぬCPU(中央処理装置
)へ割込みをかけて表示装置等にマイクロプログラム制
御装置の誤動作を表示するようにするのである。
The comparison circuit 24 compares the branch destination address (31) with the storage address of each address register 20-23 every time a branch instruction 32 is issued from the instruction decoder 11 in the microprogram control device 1. Here, if it is detected from the comparison result of this comparison circuit 24 that this branch destination address does not exist in any range within the program area or execution module area of the monitor unit, it is determined that the branch destination is incorrect. This detection output is sent to the microprogram controller. Based on this detection output, for example, a CPU (central processing unit) (not shown) is interrupted to display a malfunction of the microprogram control device on a display device or the like.

一方、比較回路24による検出出力はプログラムカウン
タレジスタ25へも送出されており、またプログラムカ
ウンタレジスタ25は通常はブランチ命令信号32が発
行される毎にマイクロプログラム制御装置1のプログラ
ムカウンタ10の値を格納するようになっているので、
この検出出力の発生タイミングにてプログラムカウンタ
10のその時の値がこのレジスタ25ヘセツトされ以後
保持されることになる。このセット値はマイクロプログ
ラム制御装置1内へ送出されるようになっているから、
これまた表示装置等にてこの値を表示すれば、誤動作の
原因となった実行モジュールを特定することが容易とな
る。
On the other hand, the detection output from the comparison circuit 24 is also sent to the program counter register 25, and the program counter register 25 normally reads the value of the program counter 10 of the microprogram control device 1 every time the branch instruction signal 32 is issued. Since it is designed to store
At the timing of generation of this detection output, the current value of the program counter 10 is set in this register 25 and held thereafter. Since this set value is sent to the microprogram control device 1,
If this value is displayed on a display device or the like, it becomes easy to identify the execution module that caused the malfunction.

誤動作検出を必要としない場合には、命令デコーダ11
によってFF26をリセットするリセット信号を発生す
るようにすれば、比較回路24はディスイネーブル状態
となって誤動作検出動作はなされない。
If malfunction detection is not required, the instruction decoder 11
If a reset signal for resetting the FF 26 is generated by the above, the comparator circuit 24 will be in a disabled state and no malfunction detection operation will be performed.

いまここで、常時ブランチ先領域をチェックするように
すると、モニタ部から実行モジュールへ制御を渡す前に
必ずその実行プログラム部の領域を示す実行モジュール
上限及び下限アドレスを夫々アドレスレジスタヘセット
する必要があり、よってプログラムのいわるオーバヘッ
ドタイムが増大することになる。そこで、本発明の如く
、誤動作検出動作を必要としない通常時には、比較回路
24を非活性化するようにして、オーバーヘッドタイム
の増大を防止しているのである。
Now, if you always check the branch destination area, before passing control from the monitor section to the execution module, you will need to set the execution module upper and lower limit addresses that indicate the area of the execution program section in the address registers respectively. Therefore, the so-called overhead time of the program increases. Therefore, according to the present invention, the comparison circuit 24 is deactivated during normal times when no malfunction detection operation is required, thereby preventing an increase in overhead time.

上記実施例では、誤動作検出装置2をマイクロプログラ
ム制御装置1とは別個に設けているが。
In the above embodiment, the malfunction detection device 2 is provided separately from the microprogram control device 1.

これ等を一体に設けても良いものである。These may also be provided integrally.

1豆立羞】 本発明によれば、ブランチ先アドレスとモニタ部及び実
行モジュールのプログラム領域とを夫々比較するように
しているので、プログラムミスによる障害の解析が容易
に確実に可能となり、また障害発生時のプログラムカウ
ンタの値を保持するようにしておけば、プログラムミス
のある実行モジュールの特定が可能となる。更には、誤
動作検出の活性非活性の制御をもなすようにしているの
で、必要なときのみ誤動作検出をなすようにし得ること
になり、プログラムのオーバヘッドタイムの増大を防止
可能である。
[1] According to the present invention, since the branch destination address and the program area of the monitor section and the execution module are compared, it is possible to easily and reliably analyze failures caused by programming mistakes. By retaining the value of the program counter at the time of occurrence, it becomes possible to identify the execution module in which the program error occurred. Furthermore, since activation and deactivation of malfunction detection are controlled, malfunction detection can be performed only when necessary, and an increase in program overhead time can be prevented.

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

第1図はマイクロプログラムのマツピングの例を示す図
、第2図は本発明の実施例のブロック図である。 主要部分の符号の説明 1・・・・・・マイクロプログラム制御装置2・・・・
・・誤動作検出装置 10・・・・・・プログラムカウンタ 11・・・・・・命令デコーダ 20〜22・・・・・・アドレスレジスタ24・・・・
・・比較回路 25・・・・・・プログラムカウンタレジスタ26・・
・・・・FF
FIG. 1 is a diagram showing an example of microprogram mapping, and FIG. 2 is a block diagram of an embodiment of the present invention. Explanation of symbols of main parts 1...Microprogram control device 2...
... Malfunction detection device 10 ... Program counter 11 ... Instruction decoders 20 to 22 ... Address register 24 ...
... Comparison circuit 25 ... Program counter register 26 ...
...FF

Claims (2)

【特許請求の範囲】[Claims] (1)複数のプログラムモジュールにて構成されるマイ
クロプログラム制御装置における誤動作検出装置であっ
て、前記プログラムモジュール内のモニタ部のプログラ
ム領域を示すモニタ部上限及び下限アドレスを格納する
第1格納手段と、前記プログラムモジュール内の実行す
べき実行モジュールのプログラム領域を示す実行モジュ
ール上限及び下限アドレスを格納する第2格納手段と、
ブランチ命令発行時におけるブランチ先アドレスが前記
第1及び第2格納手段の上限及び下限アドレス範囲内に
存在するか否かを検出する検出手段と、この検出手段の
検出動作を活性非活性制御する制御手段とを有し、前記
検出手段の活性時における検出出力を用いてマイクロプ
ログラム制御装置の誤動作を検出自在としたことを特徴
とする誤動作検出装置。
(1) A malfunction detection device for a microprogram control device constituted by a plurality of program modules, the device comprising: a first storage means for storing upper and lower limit addresses of a monitor section indicating a program area of a monitor section in the program module; , a second storage means for storing execution module upper and lower limit addresses indicating a program area of an execution module to be executed in the program module;
detection means for detecting whether a branch destination address at the time of issuing a branch instruction exists within the upper and lower limit address ranges of the first and second storage means, and control for controlling the activation and deactivation of the detection operation of this detection means. What is claimed is: 1. A malfunction detection device comprising means for detecting a malfunction of a microprogram control device using a detection output when said detection means is activated.
(2)複数のプログラムモジュールにて構成されるマイ
クロプログラム制御装置における誤動作検出装置であっ
て、前記プログラムモジュール内のモニタ部のプログラ
ム領域を示すモニタ部上限及び下限アドレスを格納する
第1格納手段と、前記プログラムモジュール内の実行す
べき実行モジュールのプログラム領域を示す実行モジュ
ール上限及び下限アドレスを格納する第2格納手段と、
ブランチ命令発行時におけるブランチ先アドレスが前記
第1及び第2格納手段の上限及び下限アドレス範囲内に
存在するか否かを検出する検出手段と、この検出手段の
検出動作を活性非活性制御する制御手段と、前記ブラン
チ命令発行時のプログラムカウンタの値を保持する保持
手段と、前記検出手段の活性時における検出出力及び前
記保持手段の保持出力を用いてマイクロプログラム制御
装置の誤動作及びプログラムミスの発生モジュールを検
出自在としたことを特徴とする誤動作検出装置。
(2) A malfunction detection device for a microprogram control device constituted by a plurality of program modules, comprising a first storage means for storing upper and lower limit addresses of a monitor section indicating a program area of a monitor section in the program module; , a second storage means for storing execution module upper and lower limit addresses indicating a program area of an execution module to be executed in the program module;
detection means for detecting whether a branch destination address at the time of issuing a branch instruction exists within the upper and lower limit address ranges of the first and second storage means, and control for controlling the activation and deactivation of the detection operation of this detection means. a holding means for holding the value of the program counter when the branch instruction is issued; and a detection output when the detecting means is activated and a holding output of the holding means to cause malfunctions and program errors in the microprogram control device. A malfunction detection device characterized in that a module can be detected freely.
JP59229679A 1984-10-31 1984-10-31 Malfunction detector Pending JPS61109152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59229679A JPS61109152A (en) 1984-10-31 1984-10-31 Malfunction detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59229679A JPS61109152A (en) 1984-10-31 1984-10-31 Malfunction detector

Publications (1)

Publication Number Publication Date
JPS61109152A true JPS61109152A (en) 1986-05-27

Family

ID=16895989

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59229679A Pending JPS61109152A (en) 1984-10-31 1984-10-31 Malfunction detector

Country Status (1)

Country Link
JP (1) JPS61109152A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022052542A (en) * 2020-09-23 2022-04-04 東芝情報システム株式会社 Ffu inspection device and ffu inspection program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022052542A (en) * 2020-09-23 2022-04-04 東芝情報システム株式会社 Ffu inspection device and ffu inspection program

Similar Documents

Publication Publication Date Title
KR102581568B1 (en) Accidental load suppression
JPS61109152A (en) Malfunction detector
JPS61109153A (en) Malfunction detector
KR100238174B1 (en) Parallel processor system
JP2610912B2 (en) I / O control system
JPH03266154A (en) Information processor
JPH0782475B2 (en) Memory interlock control circuit
JPS6160143A (en) Fault diagnosis system for microprogram controller
JPS6162142A (en) I/o controller
JPS6013494B2 (en) Self-diagnosis method
JPH0751609Y2 (en) Failure information storage circuit of programmable controller
JPS5899841A (en) Address controlling system of partially mounted control memory
JPH0481953A (en) Memory device
JPS6236578B2 (en)
JPS6115237A (en) Detecting system of undefined instruction
JPH05143467A (en) Method and device for switching redundant constitution
JPH06236300A (en) Microcomputer
JPH04344938A (en) Interruption generation circuit
JPS59191662A (en) Detecting system for program runaway
JPH02105230A (en) Semiconductor integrated circuit
JPH03125246A (en) Memory test device
JPH01271844A (en) Tabletop electronic calculator
JPH0594379A (en) Shared memory control system
JPH04291646A (en) Write monitoring device
JPS61160146A (en) Control system of address stack pointer device