JPH05346801A - Program operation control device - Google Patents

Program operation control device

Info

Publication number
JPH05346801A
JPH05346801A JP15458092A JP15458092A JPH05346801A JP H05346801 A JPH05346801 A JP H05346801A JP 15458092 A JP15458092 A JP 15458092A JP 15458092 A JP15458092 A JP 15458092A JP H05346801 A JPH05346801 A JP H05346801A
Authority
JP
Japan
Prior art keywords
program
arithmetic sum
dram
data
actual
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
JP15458092A
Other languages
Japanese (ja)
Inventor
Kazuyuki Sakashita
一幸 坂下
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.)
Toshiba TEC Corp
Original Assignee
Tokyo Electric 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 Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP15458092A priority Critical patent/JPH05346801A/en
Publication of JPH05346801A publication Critical patent/JPH05346801A/en
Pending legal-status Critical Current

Links

Landscapes

  • Safety Devices In Control Systems (AREA)

Abstract

PURPOSE:To check a bit change during the execution of a program developed on a DRAM. CONSTITUTION:A program operation controller 10 which executes the program developed on a DRAM 12, and controls the operation of auxiliary equipments 16 and 17, is equipped with a fixed arithmetic sum storage means 12T which stores each fixed arithmetic sum DtX of the program developed on the DRAM 20, actual arithmetic sum calculating means 11 and 12 which calculate each arithmetic sum DaX of the program developed on the DRAM 20 during the execution of the identity judging means 11 and 12 which compare each calculated actual arithmetic sum DaX with each corresponding fixed arithmetic sum DtX, and judge the identity, and program stoppage control means 11 and 12 which stop the program based on the condition that each calculated actual arithmetic sum DaX and each corresponding fixed arithmetic sum DtX are judged to be different from each other by the identify judging means 11 and 12.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、DRAM上でプログラ
ムを実行するように構成されたプログラム運転制御装置
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program operation control device configured to execute a program on a DRAM.

【0002】[0002]

【従来の技術】電子機器,OA機器等々を含む、あらゆ
る装置・機器の機能拡大や高速処理化のために、プログ
ラムを実行しつつその付属機器を運転制御するプログラ
ム運転制御装置が広く利用されている。
2. Description of the Related Art In order to expand the functions and speed up processing of all devices and equipment including electronic equipment and office automation equipment, a program operation control device for executing operation control of auxiliary equipment while executing a program is widely used. There is.

【0003】かかるプログラム運転制御装置の中には、
容量性,経済性の観点からDRAM上でプログラムを実
行するように形成されたものも多い。ところが、DRA
Mはその性質上、1Fit〜100Fit位の確率で記
憶しているビットの反転いわゆるビット化けが発生す
る。
Among such program operation control devices,
In many cases, the programs are formed on the DRAM from the viewpoint of capacity and economy. However, DRA
Due to its nature, M causes inversion of the stored bits with a probability of about 1 to 100 Fit, so-called garbled bit.

【0004】かくして、従来装置の中には、プログラム
データ内に4ビットあるいは1ビットの補正用データビ
ットを設け、運転制御中にECCチェックやパリティチ
ェックを行って、そのビット化けを検出し、異常ビット
を強制的に反転補正させるように形成されたものがあ
る。
Thus, in the conventional apparatus, a correction data bit of 4 bits or 1 bit is provided in the program data, an ECC check or a parity check is performed during operation control, and the garbled bit is detected to detect an abnormality. There is one formed to forcibly invert and correct bits.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記従
来の反転補正型構造では、補正用データやチェックおよ
び反転補正プログラムを準備しなければならないので、
ROM等の記憶容量を1.5倍程度に拡大する必要があ
る。したがって、コスト高となりかつ装置大型化を招
く。
However, in the above-mentioned conventional inversion correction type structure, since correction data, check and inversion correction programs must be prepared,
It is necessary to increase the storage capacity of the ROM or the like by about 1.5 times. Therefore, the cost becomes high and the device becomes large.

【0006】かくして、小型軽量,低コストが強く求め
られる装置では、上記反転補正機能を具備することが難
しい場合が多いから、装置電源ON時のみにチェックす
る構成とされている。しかし、この構成だと、運転制御
中にプログラムの暴走やこれに起因するデータ破壊が生
じる危険性が強く残ってしまい信頼性に欠ける。
Thus, it is often difficult to provide the above-described inversion correction function in an apparatus that is strongly required to be small, lightweight and low cost, and therefore, the check is made only when the apparatus power is turned on. However, with this configuration, there is a strong risk that program runaway or data destruction due to this may occur during operation control, and reliability is lacking.

【0007】本発明の目的は、運転制御中にビット化け
を自動検出することによりプログラムの暴走やこれに起
因するデータ破壊を未然に防止できる小容量・低コスト
のプログラム運転制御装置を提供することにある。
An object of the present invention is to provide a small-capacity, low-cost program operation control device capable of preventing program runaway and data destruction due to it by automatically detecting garbled bits during operation control. It is in.

【0008】[0008]

【課題を解決するための手段】本発明は、本装置の中に
はプログラムを途中で停止させても運転制御に与える支
障は小さくかつ比較的短時間で復旧できるが、プログラ
ム続行によってプログラムが暴走しかつこれに起因して
データが破壊されてしまうことが重大問題とされること
が多いことに着目し、プログラムが正常であるときのプ
ログラムデータとDRAMに展開された実際のプログラ
ムデータとの各データ算術和を運転制御中に比較しつつ
両算術和に差異が認められる場合にはビット化けが発生
したものと判断し、プログラムを緊急停止するように構
成したものである。
According to the present invention, even if the program is stopped halfway in the present apparatus, the trouble to the operation control is small and the program can be recovered in a relatively short time. However, focusing on the fact that it is often a serious problem that data is destroyed due to this, each of the program data when the program is normal and the actual program data expanded in the DRAM is When a difference is found between the two arithmetic sums while comparing the data arithmetic sums during operation control, it is determined that a garbled bit has occurred, and the program is configured to make an emergency stop.

【0009】すなわち、本発明には係るプログラム運転
制御装置は、DRAM上に展開されたプログラムを実行
しつつ付属機器の運転制御を行うプログラム運転制御装
置において、前記DRAM上に展開されるプログラムの
プログラムデータを複数分割した各分割単位プログラム
データの各固定算術和を記憶させた固定算術和記憶手段
と、前記DRAM上に展開されたプログラムデータの該
各分割単位プログラムデータ相当分の各実際単位プログ
ラムデータの各算術和を当該プログラム実行中に計算す
る実際算術和計算手段と、計算された各実際算術和とこ
れに対応する該固定算術和記憶手段から読出した各固定
算術和と比較してその同異性を判別する同異性判別手段
と、この同異性判別手段で異なるものと判別されたこと
を条件としてプログラム停止させるプログラム停止制御
手段と、を設けたことを特徴とする。
That is, the program operation control apparatus according to the present invention is a program operation control apparatus for executing operation control of an auxiliary device while executing a program development on a DRAM, and a program of the program developed on the DRAM. Fixed arithmetic sum storage means for storing each fixed arithmetic sum of each divided unit program data obtained by dividing the data into a plurality of pieces, and each actual unit program data corresponding to each divided unit program data of the program data expanded on the DRAM. The actual arithmetic sum calculation means for calculating each arithmetic sum of the above and the calculated actual arithmetic sum and the corresponding fixed arithmetic sum read from the fixed arithmetic sum storage means corresponding thereto, The same-sex discrimination means for discriminating the opposite sex and the professional discrimination provided that this discrimination is different. Program stop control means for causing the ram stop, characterized in that the provided.

【0010】[0010]

【作用】上記構成による本発明では、固定算術和記憶手
段にDRAMへ展開すべきプログラムのプログラムデー
タを複数単位に分割した各分割単位プログラムデータの
算術和つまり固定算術和を予め記憶させておく。ここ
で、当該プログラムをDRAM上で実行しつつ運転制御
を行うと、実際算術和計算手段はその進行につれて順次
に各分割単位プログラムデータ相当分の各実際単位プロ
グラムデータの各算術和をリアルタイムで計算する。と
同時的に、同異性判別手段は、対応する各固定算術和と
計算した実際算術和とを比較して、それらの同異性を自
動判別する。同一の場合はプログラムは正常であるが、
相異の場合はビット化けが生じていると検出される。こ
こに、相異と判別されると、プログラム停止制御手段
が、プログラム停止し付属機器を停止する。よって、プ
ログラムの暴走とこれに起因するデータの破壊を防止で
き、かつ付属機器を安全に停止できる。
In the present invention having the above structure, the fixed arithmetic sum storage means stores in advance the arithmetic sum of the divided unit program data obtained by dividing the program data of the program to be expanded in the DRAM into a plurality of units, that is, the fixed arithmetic sum. Here, when the operation control is performed while executing the program on the DRAM, the actual arithmetic sum calculation means sequentially calculates in real time each arithmetic sum of each actual unit program data corresponding to each divided unit program data as it progresses. To do. At the same time, the homosexual discrimination means compares the corresponding fixed arithmetic sums with the calculated actual arithmetic sums and automatically discriminates those homosexuals. If they are the same, the program is normal,
If they are different, it is detected that garbled bits have occurred. If it is determined to be different, the program stop control means stops the program and stops the accessory device. Therefore, it is possible to prevent the program from running out of control and the data from being destroyed, and to safely stop the attached device.

【0011】[0011]

【実施例】以下、本発明の実施例を図面を参照して説明
する。本プログラム運転制御装置は、図1に示す如く、
基本的構成がPOSのターミナル機10とされかつ固定
算術和記憶手段12Tと実際算術和計算手段(11,1
2)と同異性判別手段(11,12)とプログラム停止
制御手段(11,12)とを設け、DRAM20上でプ
ログラムを実行しつつビット化けを自動検出するととも
にビット化けが生じた場合にプログラムすなわち付属機
器(16,17)を緊急停止するように構成されてい
る。
Embodiments of the present invention will be described below with reference to the drawings. This program operation control device, as shown in FIG.
The basic configuration is the POS terminal machine 10, and the fixed arithmetic sum storage means 12T and the actual arithmetic sum calculation means (11, 1)
2) The same-sex discrimination means (11, 12) and the program stop control means (11, 12) are provided to automatically detect garbled bits while executing the program on the DRAM 20 and to execute the program if the garbled bits occur. The auxiliary equipment (16, 17) is configured to make an emergency stop.

【0012】まず、ターミナル機10を説明する。図1
において、ターミナル機は、CPU11,基本プログラ
ムや固定データを格納させたROM12,各種データを
一時記憶させるRAM13,時計回路14,入出力ポー
ト15,付属機器としての入力機器16および出力機器
17等から構成されている。
First, the terminal machine 10 will be described. Figure 1
In the above, the terminal machine comprises a CPU 11, a ROM 12 storing a basic program and fixed data, a RAM 13 temporarily storing various data, a clock circuit 14, an input / output port 15, an input device 16 and an output device 17 as auxiliary devices, and the like. Has been done.

【0013】RAM13は、ワークエリアの他に、商品
データ(コード,名称,単価)等を記憶する商品ファイ
ルおよび売上データを登録する登録ファイルをも形成す
る。また、入力機器16としてはキーボード,スキャ
ナ,カードリーダ・ライタ等が含まれる。出力機器17
には、表示器,プリンタ,ドロワ等が含まれる。
In addition to the work area, the RAM 13 also forms a product file for storing product data (code, name, unit price) and a registration file for registering sales data. The input device 16 includes a keyboard, a scanner, a card reader / writer, and the like. Output device 17
Includes a display device, a printer, a drawer, and the like.

【0014】ここに、例えば売上登録業務等は、書込回
路31を通して外部記憶装置(例えば、HDD,FD)
30から読取った当該プログラムをDRAM20上に展
開し、そのプログラムによって実行される。すなわち、
売上登録業務の場合、入力機器16を用いて商品コード
等を入力すると、CPU11が商品ファイル(13)を
検索してその商品名称,単価等を求めこれを登録ファイ
ル(13)に設定登録する。
Here, for example, for sales registration work and the like, an external storage device (for example, HDD, FD) is provided through the writing circuit 31.
The program read from 30 is expanded on the DRAM 20 and executed by the program. That is,
In the case of sales registration work, when a product code or the like is input using the input device 16, the CPU 11 searches the product file (13) to obtain the product name, unit price, etc. and sets and registers this in the registration file (13).

【0015】したがって、業務中にプログラムが暴走し
商品ファイル(13)や登録ファイル(13)に記憶さ
れている各種データが破壊されることは厳に防止しなけ
ればならない。一方、プログラムが一旦停止されかつ破
壊されたとしても、再びDRAM20に新しくプログラ
ムを展開させることは、比較的に容易でかつ短時間で復
旧できると理解される。
Therefore, it is necessary to strictly prevent the program from running away during business and destroying various data stored in the product file (13) and the registration file (13). On the other hand, it is understood that, even if the program is once stopped and destroyed, it is relatively easy to restore a new program to the DRAM 20 and can be recovered in a short time.

【0016】ここに、固定算術和記憶手段12Tは、D
RAM20上に展開されるプログラムのプログラムデー
タを複数分割した各分割単位プログラムデータの各固定
算術和(DtX)を記憶させるメモリで、図1,図2に
示す如く、ROM12の一部記憶エリア(12T)をも
って形成されている。
Here, the fixed arithmetic sum storage means 12T is D
A memory for storing each fixed arithmetic sum (DtX) of each division unit program data obtained by dividing the program data of the program developed on the RAM 20 into a plurality of areas. As shown in FIGS. ) Is formed.

【0017】すなわち、この実施例では、図2に示すよ
うに、DRAM20上に展開されるプログラムデータの
総ページ数をNとした場合、それを1ページ(1Mバイ
ト)ごとに複数に分割し、各ページごとに各ページの最
初のアドレスから最終アドレスADt1〜ADtXまで
のプログラムデータの算術和Dt1〜DtNを固定デー
タとして記憶させている。
That is, in this embodiment, as shown in FIG. 2, when the total number of pages of program data expanded on the DRAM 20 is N, it is divided into a plurality of pages (1 Mbytes), The arithmetic sum Dt1 to DtN of the program data from the first address to the final address ADt1 to ADtX of each page is stored as fixed data for each page.

【0018】また、実際算術和計算手段は、DRAM2
0上に展開されたプログラムデータの各分割単位プログ
ラムデータ相当(1ページ)分の各実際単位プログラム
データの各算術和DaXを当該プログラムの実行中に計
算する手段で、CPU11,ROM12からなり図4の
ST10〜ST15で実行される。
The actual arithmetic sum calculation means is the DRAM 2
4 is a means for calculating the arithmetic sum DaX of each actual unit program data corresponding to each division unit program data of the program data expanded on 0 (one page) during execution of the program. Is executed in ST10 to ST15.

【0019】すなわち、この実施例では、CPU11,
ROM12,時計回路14からなるインターバルタイマ
により、100ms毎に16バイトのデータをリードし
てその算術和DaXを計算し、かつ1ページつまり1M
バイト毎にビット化けの有無をチェックするものと形成
している。この方法だと、約1時間(47分)毎に1M
バイト単位でDRAM20上プログラムデータについて
ビット化けが生じているか否かを判別できる。
That is, in this embodiment, the CPU 11,
An interval timer consisting of the ROM 12 and the clock circuit 14 reads 16 bytes of data every 100 ms to calculate the arithmetic sum DaX of the data, and calculates one page, that is, 1M.
It is formed to check for garbled bits for each byte. With this method, 1M every 1 hour (47 minutes)
It is possible to determine whether or not the program data on the DRAM 20 is garbled bit by byte.

【0020】以上を能率良く実行するために、アドレス
ポインタ(11,12)とチェックデータ記憶手段13
Tとを設けている。このチェックデータ記憶手段13T
は、RAM13の一部記憶エリアをもって形成されてお
り、図3に示すようにチェック中ページ番号(Na)と
アドレスポインタ(11,12)によるチェック中のア
ドレスADaXと当該アドレスADaXまでの計算によ
り求めた算術和DaXとが更新記憶される。
In order to efficiently execute the above, the address pointers (11, 12) and the check data storage means 13
T and are provided. This check data storage means 13T
Is formed by a partial storage area of the RAM 13, and is calculated by the checking page number (Na) and the address ADaX being checked by the address pointers (11, 12) and the address ADaX as shown in FIG. The arithmetic sum DaX is updated and stored.

【0021】詳しくは、インターバルタイマ(11,1
2,14)によって100ms毎に割込みスタートがか
かる(図4)と、図1に示す16バイトカウンタ21が
セット(図4のST10)される。すると、アドレスポ
インタ(11,12)によるアドレスADaXでDRA
M20上のプログラムデータDtをリードする(ST1
1)。
More specifically, the interval timer (11, 1
2, 14), an interrupt is started every 100 ms (FIG. 4), the 16-byte counter 21 shown in FIG. 1 is set (ST10 in FIG. 4). Then, DRA is performed at the address ADaX by the address pointer (11, 12).
Read the program data Dt on M20 (ST1
1).

【0022】ここに、実際算術和計算手段(11,1
2)が働き、これまでに求めた算術和DaXにリードし
たデータDtを加算しこれまでの算術和(DaX)を算
出する(ST12)。この際、アドレスポインタ(1
1,12)のアドレスは更新される(ST13)。これ
ら算術和DaX,アドレスADaXは、図3に示すよう
にチェックデータ記憶手段13Tに記憶される。以上
は、16バイト分だけ連続して実行される(ST1
4)。
Here, the actual arithmetic sum calculation means (11, 1)
2) works, and the read data Dt is added to the arithmetic sum DaX obtained so far to calculate the arithmetic sum (DaX) so far (ST12). At this time, the address pointer (1
The addresses 1, 2) are updated (ST13). The arithmetic sum DaX and the address ADaX are stored in the check data storage means 13T as shown in FIG. The above is continuously executed for 16 bytes (ST1
4).

【0023】次に、同異性判別手段は、DRAM20上
からリードして計算された実際の算術和DaXと、これ
に対応する固定算術和記憶手段12Tから読出した固定
算術和DtX、詳しくは、各ページごとの固定算術和D
tX(Mページの場合は、DtM)とを比較して、両者
の同異性を判別する手段で、CPU11,ROM12か
らなりST16で実行される。同一である場合はDRA
M20上に展開されたプログラムデータにビット化けが
生じていないが、相異する場合はビット化けが発生して
いる。
Next, the same-sex determination means reads the actual arithmetic sum DaX read from the DRAM 20 and the fixed arithmetic sum DtX read from the fixed arithmetic sum storage means 12T corresponding to the actual arithmetic sum DaX. Fixed arithmetic sum D for each page
This is a means for comparing tX (DtM in the case of M page) and discriminating the same isomer of the both, which is composed of the CPU 11 and the ROM 12 and is executed in ST16. DRA if they are the same
The program data expanded on the M20 is not garbled, but if it is different, the bit garbled.

【0024】したがって、ビット化があるのに続行する
とプログラムの暴走が生じる虞れが強く、かつこれに起
因してRAM13およびDRAM20のデータエリアに
記憶された各種データが破壊されてしまう。そこで、相
異すると判別された場合(ST16のNO)には、CP
U11が出力機器17の表示器にエラー表示する(ST
17)。さらに、CPU11,ROM12から形成され
たプログラム停止制御手段が、プログラム停止つまり機
器(16,17)を強制的に停止させる(ST18)。
Therefore, there is a strong possibility that the program will run away if it is continued despite the bitization, and due to this, various data stored in the data areas of the RAM 13 and the DRAM 20 will be destroyed. Therefore, when it is determined that they are different (NO in ST16), CP
U11 displays an error on the display of the output device 17 (ST
17). Further, the program stop control means formed by the CPU 11 and the ROM 12 stops the program, that is, forcibly stops the devices (16, 17) (ST18).

【0025】なお、同一と判別された場合(ST16の
YES)には、そのページ迄の計算算術和DaXはクリ
ア(図5のST19)される。さらに、全頁(1〜N)
が終了する(ST20のYES)と、図3に示すチェッ
ク中のページ番号Naは零(0)クリアされる(ST2
2)。もとより、途中では、そのページ番号(Na)は
順次に更新される(ST21)。
When it is determined that they are the same (YES in ST16), the calculation arithmetic sum DaX up to that page is cleared (ST19 in FIG. 5). Furthermore, all pages (1 to N)
Ends (YES in ST20), the checked page number Na shown in FIG. 3 is cleared to zero (0) (ST2).
2). Of course, in the middle of the process, the page number (Na) is sequentially updated (ST21).

【0026】次に、この実施例の作用を説明する。ま
ず、固定算術和記憶手段12Tには、図2に示すよう
に、DRAM20上に展開するプログラムデータの総ペ
ージ数Nと、各ページの最終アドレスADt1〜ADt
Nとその論理的算術和Dt1〜DtNと、を記憶させて
おく。そして、当該プログラムを、各部記憶装置30か
ら書込回路31を介してDRAM20のプログラムエリ
アに展開させる。
Next, the operation of this embodiment will be described. First, in the fixed arithmetic sum storage means 12T, as shown in FIG. 2, the total page number N of program data expanded on the DRAM 20 and the final addresses ADt1 to ADt of each page.
N and its logical arithmetic sum Dt1 to DtN are stored. Then, the program is expanded in the program area of the DRAM 20 from the storage device 30 of each unit via the writing circuit 31.

【0027】入力機器16を用いて常法により例えば商
品販売登録業務を行う。DRAM20上に展開されたプ
ログラムを実行しつつ行う。各種データは、RAM1
3,DRAM20上のデータエリアに記憶される。
Using the input device 16, for example, product sales registration work is performed by a conventional method. This is performed while executing the program expanded on the DRAM 20. RAM1 for various data
3, stored in the data area on the DRAM 20.

【0028】ここに、100ms毎にインターバルタイ
マ(11,12,14)が割込スタートをかけると、1
6バイトカウンタ21がセットされる(図4のST1
0)。かくして、DRAM20上のプログラムデータD
tがリード(ST11)され、実際算術和計算手段(1
1,12)が当該アドレスADaXまでの算術和DaX
を算出する(ST12)。算出された算術和DaXは、
図3に示すチェックデータ記憶手段13Tに記憶され
る。更新されたアドレス(ADaX)も記憶される(S
T13)。16バイト分について連続的に行う(ST1
1〜14)。
When the interval timer (11, 12, 14) starts an interrupt every 100 ms, it becomes 1
The 6-byte counter 21 is set (ST1 of FIG. 4
0). Thus, the program data D on the DRAM 20
t is read (ST11), and the actual arithmetic sum calculation means (1
1, 12) is the arithmetic sum DaX up to the address ADaX
Is calculated (ST12). The calculated arithmetic sum DaX is
It is stored in the check data storage unit 13T shown in FIG. The updated address (ADaX) is also stored (S
T13). Continuously for 16 bytes (ST1
1-14).

【0029】1ページ分の算術和Da1が算出される
(ST15)と、同異性判別手段(11,12)が、こ
の実際算術和Da1と、固定算術和記憶手段12Tに記
憶されている1ページ目の算術和Dt1とを比較してそ
の同異性を判別する(ST16)。
When the arithmetic sum Da1 for one page is calculated (ST15), the same sex discrimination means (11, 12) stores the actual arithmetic sum Da1 and one page stored in the fixed arithmetic sum storage means 12T. The same isomer is discriminated by comparing with the arithmetic sum Dt1 of the eyes (ST16).

【0030】同一の場合(ST16のYES)には、D
RAM20上のプログラムデータが正常であるから、チ
ェックデータ記憶手段13Tの算術和Da1をクリアす
る(図5のST19)。引続き、チェック中のページ番
号(Na=“1”)を“2”に更新(S21)して、次
のインターバルを待つ。なお、全頁(Nページ)が終了
したときに、クリアされる(ST22)。
If they are the same (YES in ST16), D
Since the program data on the RAM 20 is normal, the arithmetic sum Da1 of the check data storage means 13T is cleared (ST19 in FIG. 5). Subsequently, the page number being checked (Na = “1”) is updated to “2” (S21), and the next interval is waited for. When all pages (N pages) are completed, they are cleared (ST22).

【0031】ここに、同異性判別手段(11,12)
が、相異すると判別する(ST16のNO)と、CPU
11は表示器(17)にエラー表示する(ST17)と
ともにプログラム停止制御手段(11,12)がプログ
ラム停止して機器(16,17)を停止させる(ST1
8)。
Here, the same sex discrimination means (11, 12)
However, if it is determined that they are different (NO in ST16), the CPU
11 displays an error on the display (17) (ST17), and the program stop control means (11, 12) stops the program to stop the equipment (16, 17) (ST1).
8).

【0032】なお、チェックデータ記憶手段13Tの初
期値は、ステータスクリア時にセットされる。
The initial value of the check data storage means 13T is set when the status is cleared.

【0033】しかして、この実施例によれば、固定算術
和記憶手段12Tと実際算術和計算手段(11,12)
と同異性判別手段(11,12)とプログラム停止制御
手段(11,12)とを設け、DRAM20上に展開さ
れたプログラムデータを順次にチェックしてビット化け
の発生の有無を判別しかつ発生した場合にはプログラム
を停止させる構成とされているので、プログラムの暴走
を未然防止しかつこれに起因するデータの破壊を完全防
止できる。
Therefore, according to this embodiment, the fixed arithmetic sum storage means 12T and the actual arithmetic sum calculation means (11, 12) are used.
And the program stop control means (11, 12) are provided, and the program data expanded on the DRAM 20 are sequentially checked to determine whether bit garbling has occurred or not. In this case, since the program is configured to stop, it is possible to prevent the program from running out of control and to completely prevent the data from being destroyed.

【0034】また、実際算術和計算手段(11,12)
と同異性判別手段(11,12)とは、インターバルタ
イマ(11,12,14)による100ms毎に16バ
イト分のデータをリードして実際算術和DaXを計算す
るとともに、1ページ(1Mバイト)毎に同異性を判別
するものと形成されているので、CPU11等の負担が
軽減されかつ任意的に発生するビット化けを確実にチェ
ックできる。
The actual arithmetic sum calculation means (11, 12)
The same sex discrimination means (11, 12) reads 16 bytes of data every 100 ms by the interval timer (11, 12, 14) to calculate the actual arithmetic sum DaX, and at the same time, one page (1 MB). Since it is formed such that the same sex is discriminated for each, the burden on the CPU 11 and the like is reduced, and it is possible to surely check any garbled bit.

【0035】[0035]

【発明の効果】本発明によれば、固定算術和記憶手段と
実際算術和計算手段と同異性判別手段とプログラム停止
制御手段とを設け、DRAM上に展開されたプログラム
データを順次にチェックしてビット化けの発生の有無を
判別しかつ発生した場合にはプログラムを停止させる構
成とされているので、プログラムの暴走を未然防止しか
つこれに起因するデータの破壊を完全防止できる。
According to the present invention, the fixed arithmetic sum storage means, the actual arithmetic sum calculation means, the same sex discrimination means, and the program stop control means are provided to sequentially check the program data expanded on the DRAM. Since it is configured to determine the presence or absence of garbled bits and stop the program when they occur, runaway of the program can be prevented and data destruction due to this can be completely prevented.

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

【図1】本発明の実施例を示す全体構成図である。FIG. 1 is an overall configuration diagram showing an embodiment of the present invention.

【図2】同じく、固定算術和記憶手段を説明するための
図である。
FIG. 2 is also a diagram for explaining fixed arithmetic sum storage means.

【図3】同じく、チェックデータ記憶手段を説明するた
めの図である。
FIG. 3 is also a diagram for explaining check data storage means.

【図4】同じく、動作を説明するためのフローチャート
(1)である。
FIG. 4 is likewise a flow chart (1) for explaining the operation.

【図5】同じく、動作を説明するためのフローチャート
(2)である。
FIG. 5 is likewise a flowchart (2) for explaining the operation.

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

10 ターミナル(プログム運転制御装置) 11 CPU(実際算術和計算手段,同異性判別手段,
プログラム停止制御手段) 12 ROM(実際算術和計算手段,同異性判別手段,
プログラム停止制御手段) 12T 固定算術和記憶手段 13 RAM 13T チェックデータ記憶手段 14 時計回路 15 入出力ポート 16 入力機器 17 出力機器(表示器) 20 DRAM 21 カウンタ 30 外部記憶装置
10 terminal (program operation control device) 11 CPU (actual arithmetic sum calculation means, same-sex discrimination means,
Program stop control means) 12 ROM (actual arithmetic sum calculation means, same sex discrimination means,
Program stop control means) 12T fixed arithmetic sum storage means 13 RAM 13T check data storage means 14 clock circuit 15 input / output port 16 input device 17 output device (display) 20 DRAM 21 counter 30 external storage device

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 DRAM上に展開されたプログラムを実
行しつつ付属機器の運転制御を行うプログラム運転制御
装置において、 前記DRAM上に展開されるプログラムのプログラムデ
ータを複数分割した各分割単位プログラムデータの各固
定算術和を記憶させた固定算術和記憶手段と、 前記DRAM上に展開されたプログラムデータの該各分
割単位プログラムデータ相当分の各実際単位プログラム
データの各算術和を当該プログラム実行中に計算する実
際算術和計算手段と、 計算された各実際算術和とこれに対応する該固定算術和
記憶手段から読出した各固定算術和と比較してその同異
性を判別する同異性判別手段と、 この同異性判別手段で異なるものと判別されたことを条
件としてプログラム停止させるプログラム停止制御手段
と、 を設けたことを特徴とするプログラム運転制御装置。
1. A program operation control device for controlling the operation of an auxiliary device while executing a program expanded on a DRAM, wherein the program data of the program expanded on said DRAM is divided into a plurality of divided unit program data. Fixed arithmetic sum storage means for storing each fixed arithmetic sum, and each arithmetic sum of each actual unit program data corresponding to each divided unit program data of the program data expanded on the DRAM is calculated during execution of the program. An actual arithmetic sum calculation means for performing the above, and an actual heterojunction determining means for comparing each actual arithmetic sum calculated and the corresponding fixed arithmetic sum read out from the fixed arithmetic sum storage means corresponding thereto to determine the same sex, A program stop control means for stopping the program on the condition that the different sex determination means determines that they are different. Program operation control apparatus characterized by the.
JP15458092A 1992-06-15 1992-06-15 Program operation control device Pending JPH05346801A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15458092A JPH05346801A (en) 1992-06-15 1992-06-15 Program operation control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15458092A JPH05346801A (en) 1992-06-15 1992-06-15 Program operation control device

Publications (1)

Publication Number Publication Date
JPH05346801A true JPH05346801A (en) 1993-12-27

Family

ID=15587326

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15458092A Pending JPH05346801A (en) 1992-06-15 1992-06-15 Program operation control device

Country Status (1)

Country Link
JP (1) JPH05346801A (en)

Similar Documents

Publication Publication Date Title
US5146569A (en) System for storing restart address of microprogram, determining the validity, and using valid restart address to resume execution upon removal of suspension
US6026504A (en) Multiprocessor system and method for error tracking
JPH05346801A (en) Program operation control device
JPH04542A (en) Memory checking system
JPH086865A (en) Data processor
JP3357777B2 (en) Program control system
JP2870202B2 (en) Method and apparatus for mutual monitoring between processors
JP2849189B2 (en) Exception handling system
JPS59172044A (en) Instruction control system
JPS62175834A (en) Detecting circuit for runaway of central processing unit
JPH07191866A (en) Arithmetic execution error detecting system
JPS6020769B2 (en) Microprogram control method
JPS58197555A (en) Information processor
JPS62127944A (en) Information processor
JPH05113936A (en) Memory error detecting method
JPH0371236A (en) Error detecting system
JPH06161797A (en) Data processor
JPS6385831A (en) Control circuit for microprocessor
JPS63150732A (en) Program running supervisory equipment
JPH04336631A (en) Error message output system
JPH0159608B2 (en)
JPS63133236A (en) System for detecting coincidence of microprogram address
JPH04257044A (en) Bus parity error generating position detecting system
JPH0359740A (en) Memory fault detection system
JPS6132701B2 (en)