JPH0314148A - Program breakdown detecting device - Google Patents

Program breakdown detecting device

Info

Publication number
JPH0314148A
JPH0314148A JP1151469A JP15146989A JPH0314148A JP H0314148 A JPH0314148 A JP H0314148A JP 1151469 A JP1151469 A JP 1151469A JP 15146989 A JP15146989 A JP 15146989A JP H0314148 A JPH0314148 A JP H0314148A
Authority
JP
Japan
Prior art keywords
cpu
program
circuit
result
inspected
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
JP1151469A
Other languages
Japanese (ja)
Inventor
Koki Matsuno
松野 弘毅
Teruji Yamagishi
照治 山岸
Hiroshi Takaoka
高岡 博
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1151469A priority Critical patent/JPH0314148A/en
Publication of JPH0314148A publication Critical patent/JPH0314148A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To immediately stop the operation of an information processor at the time of abnormality by providing a hardware for executing a data check in a memory area, based on an address of a periodical software output and executing an interruption processing to a CPU in the case an error is detected, and a software for stopping an operation of the CPU. CONSTITUTION:A memory address and a word count are set periodically by a CPU 1, and based thereon, a high speed data transfer device 2 sends an address to be inspected to a memory area of a memory map 10. When a program to be inspected becomes the end of a memory area of an interrupting circuit 3, an arithmetic circuit 6 sends a result of operation of the whole area to be inspected to a comparing circuit 4, a delaying circuit 5 and an inspection result output 7. The comparing circuit 4 does not output a result of comparison and inspection of the whole area to be inspected, while a result of operation coincides. However, in the case a program breakdown is generated, the result of comparison and inspection is outputted to the interrupting circuit 3, and the interrupting circuit 3 generates an interruption to the CPU 1, and stops its operation. In such a way, even when a malfunction is generated, an operation of the CPU is stopped immediately.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は携帯端末機・ワードプロセッサ・POS等の情
報処理装置に使用する、RAM上のアプリケーションプ
ログラムの破壊の検出に関するものである。
DETAILED DESCRIPTION OF THE INVENTION FIELD OF INDUSTRIAL APPLICATION The present invention relates to detection of destruction of application programs on RAM used in information processing devices such as mobile terminals, word processors, and POS.

従来の技術 従来、この種のプログラム検出手法は、第2図の様にR
OM化したプログラムを備えておく。
Conventional technology Conventionally, this type of program detection method has been used to detect R as shown in Figure 2.
Prepare an OM program.

CPUはこのROM化プログラムに基づき、RAM上の
アプリケーションプログラムの内容を検査するように構
成されている。
The CPU is configured to inspect the contents of the application program on the RAM based on this ROMized program.

発明が解決しようとする課題 しかしながら、上記従来のプログラム破壊検出装置では
、CPUは検出プログラムをメモリから順次読み出し解
釈しながら実行を行う。この為メモリ・チエツクの所要
時間は、CPUの判断と実行の速度及びその回数によっ
て大きく制約を受け、リアルタイムとはならない。例え
ば、クロック周波数sMHz・1ebit演算・5bi
t出力のCPUでメモリ・エリア512 kbyteに
ついて実行した場合、少くとも数十秒程度を要する。こ
の為プログラム破壊の有無の検出は、アプリケーション
・プログラムを実行していない状態で行わねばならなか
った。
Problems to be Solved by the Invention However, in the conventional program corruption detection device described above, the CPU sequentially reads out the detection program from the memory and executes it while interpreting it. For this reason, the time required for memory checking is greatly limited by the CPU's judgment and execution speed and the number of times, and is not real-time. For example, clock frequency sMHz, 1ebit operation, 5bit
When executed on a memory area of 512 kbytes using a CPU with t output, it takes at least several tens of seconds. For this reason, it has been necessary to detect whether or not the program has been corrupted while the application program is not being executed.

又−度CPUの暴走が生じた場合においては、外部から
人為的に停止を行うか偶然、動作停tl=の3 ・入 命令が入力されない限りCPUは任意にメモリ内のプロ
グラムやデータを書き換えてしまう。この為意図したも
のと異ったプログラム内容とな゛っているのにユーザが
気付かず使用してしまい、誤動作する可能性があった。
In addition, if the CPU runs out of control, it may be stopped manually from the outside or by chance. ・Unless an input command is input, the CPU will arbitrarily rewrite programs and data in memory. Put it away. For this reason, there was a possibility that the user would use the program without noticing that the content of the program was different from what was intended, resulting in malfunction.

更にプログラムの開発者側で、その暴走について何が原
因であるのかの究明が困難であった。
Furthermore, it was difficult for the program developer to determine what was causing the program to run out of control.

本発明はこのような従来の問題を解決するものであり、
アプリケーションプログラムの使用時にモ常時、アプリ
ケーションプログラムの内容を検査し、異常時には直ち
に情報処理装置の動作を停止できる優れたプログラム破
壊検出装置を提供することを目的とするものである。
The present invention solves these conventional problems,
It is an object of the present invention to provide an excellent program corruption detection device that can constantly inspect the contents of an application program when the application program is in use, and can immediately stop the operation of an information processing device in the event of an abnormality.

課題を解決するだめの手段 本発明は上記課題を達成するために、定期的に特定メモ
リ・アドレスを出力するソフトウェアと、CPUの制御
から独立してかつ高速に、ソフトウェア出力のアドレス
に基づいてメモリ領域内のブタ・チエツクを行いまた結
果を記録するハードウェアと、検査結果誤りが発見され
た場合にCPUに対し割り込み処理を行うハードウェア
と、CPUの動作を停止させるソフトウェアを設け、定
期的にメモリ・チエツクを実行するようにしたものであ
る。
Means for Solving the Problems In order to achieve the above-mentioned problems, the present invention provides software that periodically outputs a specific memory address, and memory output based on the address of the software output, independent of CPU control and at high speed. We have installed hardware that performs a pig check in the area and records the results, hardware that interrupts the CPU when an error is found in the test results, and software that stops the CPU's operation. It is designed to perform a memory check.

作  用 本発明は上記のような構成によって、アプリケーション
・プログラムの実行中においてもリアルタイムにメモリ
・チエツクを行い、これにより誤動作が生じた際にもユ
ーザがそれを認識する前に、CPUの動作を停止できる
。すなわち誤った内容のプログラムになっているのをユ
ーザが気づかずに使用する事が防止でき、ソフトウェア
の動作を確実なものとする事ができる。またプログラム
の自己破壊を最小限に留める事ができる為、プログラム
開発者側での原因究明もし易くなる。
Function: With the above-described configuration, the present invention performs a memory check in real time even while an application program is running, so that even if a malfunction occurs, the CPU operation can be corrected before the user is aware of it. Can be stopped. In other words, it is possible to prevent the user from using a program with incorrect contents without realizing it, and the operation of the software can be ensured. Furthermore, since self-destruction of the program can be kept to a minimum, it becomes easier for the program developer to investigate the cause.

実施例 第1図は本発明の一実施例の構成を示すものである。第
1図において(イ)はメモリ・アドレスとワド・カウン
トであり、CPU1によって定期的に高速データ転送装
置2にセットされる。高速デ5 ・\ 一夕転送装置2は(イ)の設定に基づきメモリ・マツプ
10のメモリ領域に被検査アドレス(ハ)を送る。
Embodiment FIG. 1 shows the configuration of an embodiment of the present invention. In FIG. 1, (a) indicates a memory address and word count, which are periodically set in the high-speed data transfer device 2 by the CPU 1. High-speed data 5 \ The overnight transfer device 2 sends the address to be tested (c) to the memory area of the memory map 10 based on the settings in (a).

高速データ転送装置2はメモリ・マツプ10から被検査
プログラムに)として得たプログラムをブタ列と見なし
、被検査プログラム(ロ)として順次演算回路6に送る
。演算回路6では入力される被検査プログラム(ロ)の
先ず1個目と2個目をビット単位にラッチする。そして
両者のビット単位の排他的論理和を一回前の演算結果(
ホ)として出力する。
The high-speed data transfer device 2 considers the program obtained from the memory map 10 as the program to be tested (b) as a pig string, and sequentially sends it to the arithmetic circuit 6 as the program to be tested (b). The arithmetic circuit 6 latches the first and second bits of the input program to be tested (b) bit by bit. Then, the bitwise exclusive OR of both is performed as the result of the previous operation (
e).

次に自身の一回前の演算結果出力(ホ)をビット単位で
ラッチした後、被検査プログラム(ロ)の3個目をラッ
チして、これらをビット単位に排他的論理和をとる。以
下同様に、被検査プログラム(ロ)が3のメモリ領域の
最後になるまで、演算回路6はこの動作を続ける。被検
査プログラム←)が割り込み回路3のメモリ領域の最後
になった時、演算回路6は被検査領域全体の演算結果を
(へ)として比較回路4、遅延回路5、検査結果出カフ
に送る。遅延回路6は順次入力される被検査領域全体の
演算結果(へ)に対し1回分の17延を牛しる部分であ
る。これ6 ・\ 7 により演算結果(ト)は同(へ)の1回前の結果となる
Next, after latching its own previous operation result output (e) bit by bit, it latches the third program to be tested (b), and performs an exclusive OR of these bit by bit. Similarly, the arithmetic circuit 6 continues this operation until the program to be tested (b) reaches the end of the memory area 3. When the program to be tested ←) reaches the end of the memory area of the interrupt circuit 3, the arithmetic circuit 6 sends the calculation result of the entire area to be tested as (to) to the comparison circuit 4, the delay circuit 5, and the test result output cuff. The delay circuit 6 is a part that calculates one 17-time delay for the calculation results of the entire test area that are sequentially input. Due to this 6.\7, the operation result (g) becomes the result of the previous operation.

比較回路4はこれら演算結果(へ)・(ト)が一致して
いる間は被検査領域全体の比較検査結果(力を出力しな
い。しかしプログラム破壊が生じた場合は、演算結果(
へ)〜(ト)となり比較検査結果(力が割り込み回路3
に出力される事になる。これによって割り込み回路3は
CPU1に対し割り込み(す)を発生させて、その動作
を停止させる。
The comparator circuit 4 does not output the comparison test result (force) for the entire area to be inspected while these calculation results (f) and (g) match.However, if program destruction occurs, the comparator circuit 4 outputs the calculation result (f).
to) to (g) and the comparison test results (the power is the interrupt circuit 3
It will be output to . As a result, the interrupt circuit 3 generates an interrupt to the CPU 1 and stops its operation.

なお、DMAが第1図においてCPUの制御から独立し
てかつ高速に、ソフトウェア出力のチエツクを行いまた
結果を記録するハードウェアである。
Note that the DMA in FIG. 1 is hardware that checks the software output and records the results independently of the control of the CPU and at high speed.

次に実施例をもう一例述べる。構成は前例と同じく第2
図で示される。ただし、演算回路60機能が以下に述べ
る様に変更される。入力される被検査プログラム(ロ)
の1個目は値として零と、繰り上がりのある加演が行わ
れる。その出力(ホ)がラッチされて、2個目の被検査
プログラム(ロ)と繰り上がりのある加算が行われる。
Next, another example will be described. The composition is the same as the previous example.
Illustrated in the figure. However, the function of the arithmetic circuit 60 is changed as described below. Input test program (b)
The first value is zero, and an addition with a carry is performed. The output (e) is latched and added with a carry-over to the second program to be tested (b).

以下同様に、被検査プログラム(ロ)が3のメモリ領域
の最後になるまで、7 ・・ 演算回路6ばこの動作を続ける。被検査プログラム(ロ
)か3のメモリ領域の最後になった時、演算回路6は演
算結果を(へ)として比較回路4、遅延回路5、検査結
果量カフに送る。演算回路6以外の構成は機能も動作シ
ーケンスも前例と全く同じである1、この場合は、プロ
グラム開発者側での原因究明手法が異なる事になる。
In the same manner, the operations of the arithmetic circuits 7 and 6 continue until the program to be tested (b) reaches the end of the memory area 3. When the end of the memory area of the program to be tested (b) or 3 is reached, the arithmetic circuit 6 sends the arithmetic result as (b) to the comparator circuit 4, the delay circuit 5, and the test result amount cuff. The functions and operation sequences of the configuration other than the arithmetic circuit 6 are exactly the same as in the previous example.1 However, in this case, the cause investigation method on the program developer side will be different.

発明の効果 本発明は上記実施例から明らかなように、CPU自身か
比較判断を行わすとも・・−ドウエアがこれを代行する
ようにしだものあり、CPUがアプリケーションプログ
ラムを実行中でもそのアプリケーションプログラム自身
をチエツクできるという利点を有する。そして、更にチ
エツク結果に変化が生じた場合には直ちにCPUに対し
割り込みがかけられ、CPUの動作を停止させる為、ア
プリケーションプログラムの動作内容を確実なものとす
る効果を有する。
Effects of the Invention As is clear from the above embodiments, the present invention is designed so that even if the CPU itself performs the comparative judgment, the software performs this on behalf of the CPU. It has the advantage of being able to check. Furthermore, if a change occurs in the check result, an interrupt is immediately issued to the CPU and the operation of the CPU is stopped, which has the effect of ensuring the operation content of the application program.

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

第1図は本発明の一実施例における+1”1冒戊1ネ1
、第2図は従来のプログラム破壊検出装置の構成図であ
る。 1・・・・CPU、2・・・・・・高速データ転送装償
1“、3・・・・・・割り込み回路、4・・・・・・比
較回路、5・・・・・・遅延回路#算回路、7・・・・
・・検査結果出力、8・・・・・被検査領域、イ・・・
・被検査領域の開始アドレス及び領域長、口・・・・・
・被検査プログラム、ハ ・・被検査アドレス、二・・
・・・被検査プログラム、ホ・・・−回前の演算結果、
へ・・・・・被検査領域全体の演算結果、1−・・・・
・・被検査領域全体の一回前の演算結果、チ・・・・・
被検査領域全体の比較検査結果。
FIG.
, FIG. 2 is a block diagram of a conventional program corruption detection device. 1...CPU, 2...High-speed data transfer compensation 1", 3...Interrupt circuit, 4...Comparison circuit, 5...Delay Circuit # Arithmetic circuit, 7...
...Inspection result output, 8...Test area, I...
・Start address and area length of the area to be inspected...
・Program to be tested, C ・Address to be tested, 2...
...Program under test, ho...-previous calculation result,
To...Computation results for the entire area to be inspected, 1-...
・Previous calculation result for the whole area to be inspected, ・・・・・
Comparative inspection results for the entire inspected area.

Claims (1)

【特許請求の範囲】[Claims] アプリケーションプログラムを内容として有すRAMと
、定期的に特定メモリ・アドレスを出力するソフトウェ
アと、CPUの制御から独立してソフトウェアの出力の
アドレスに基づいてメモリ領域内のデータ・チェックを
行いまたその結果を記録するハードウェアと、エラーの
あった場合にCPUに対し割り込み処理を行うハードウ
ェアと、CPUの動作を停止させるソフトウェアを備え
たプログラム破壊検出装置。
A RAM containing an application program as its contents, software that periodically outputs a specific memory address, and a system that checks data in the memory area based on the address of the software's output independently of CPU control, and also checks the results. A program corruption detection device is equipped with hardware for recording, hardware for processing an interrupt to the CPU in the event of an error, and software for stopping the operation of the CPU.
JP1151469A 1989-06-13 1989-06-13 Program breakdown detecting device Pending JPH0314148A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1151469A JPH0314148A (en) 1989-06-13 1989-06-13 Program breakdown detecting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1151469A JPH0314148A (en) 1989-06-13 1989-06-13 Program breakdown detecting device

Publications (1)

Publication Number Publication Date
JPH0314148A true JPH0314148A (en) 1991-01-22

Family

ID=15519205

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1151469A Pending JPH0314148A (en) 1989-06-13 1989-06-13 Program breakdown detecting device

Country Status (1)

Country Link
JP (1) JPH0314148A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014048920A (en) * 2012-08-31 2014-03-17 Aisin Aw Co Ltd Electronic apparatus
US8778332B2 (en) 2009-10-22 2014-07-15 Kabushiki Kaisha Yakult Honsha Agent for reducing risk of developing cancer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8778332B2 (en) 2009-10-22 2014-07-15 Kabushiki Kaisha Yakult Honsha Agent for reducing risk of developing cancer
JP2014048920A (en) * 2012-08-31 2014-03-17 Aisin Aw Co Ltd Electronic apparatus

Similar Documents

Publication Publication Date Title
JPH0314148A (en) Program breakdown detecting device
KR102603835B1 (en) Method and apparatus for protecting the program counter structure of a processor system and monitoring processing of interrupt requests
JPH05216721A (en) Electronic computer
JPS6111853A (en) Information processor
JPH0333939A (en) Microprocessor
JPH02245941A (en) Address inspection device
JPH0149975B2 (en)
JP2786215B2 (en) Restart processing control method
JPS6146535A (en) Pseudo error setting control system
JPH01243132A (en) System for processing trouble
JPH0432418B2 (en)
JPH04149746A (en) Debug device
JPH05241903A (en) Detecting system for program fault
JPH04338842A (en) Information processor with error detecting function
JPS63193235A (en) Inspecting method for condition code
JP2000089969A (en) Data processor
JPH064412A (en) Local memory inspecting/correcting circuit
JPS63193241A (en) Information processor
JPH03100737A (en) Fault diagnostic system
JPH0436420B2 (en)
JPS61269746A (en) Information processor
JPH0244432A (en) Electronic computer control system
JPS6236578B2 (en)
JPS62127944A (en) Information processor
JPS61131128A (en) Self-diagnosis system