JP2001014224A - Method and device for judging memory content destruction - Google Patents

Method and device for judging memory content destruction

Info

Publication number
JP2001014224A
JP2001014224A JP11181045A JP18104599A JP2001014224A JP 2001014224 A JP2001014224 A JP 2001014224A JP 11181045 A JP11181045 A JP 11181045A JP 18104599 A JP18104599 A JP 18104599A JP 2001014224 A JP2001014224 A JP 2001014224A
Authority
JP
Japan
Prior art keywords
memory
data
areas
area
memory areas
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
JP11181045A
Other languages
Japanese (ja)
Inventor
Koji Taguchi
康治 田口
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.)
Toyota Motor Corp
Original Assignee
Toyota Motor 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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP11181045A priority Critical patent/JP2001014224A/en
Publication of JP2001014224A publication Critical patent/JP2001014224A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To accurately judge the destruction of memory content using decision by a majority. SOLUTION: A RAM is provided with four memory areas 0 to 3. The same data are successively recorded in the four memory areas. Write progress situation information showing that each area is in the middle of being written in also recorded. When a runaway of a CPU takes place, rest processing is performed. In such a case, memory content is restored by decision by a majority using the data of the areas 0 to 3. However, decision by a majority which uses the stored data of the memory areas is performed while excluding memory areas in the middle of being written on the basis of the write progress situation information. The data are desirably offset among areas when the data are recorded in the areas 0 to 3. At the time of recovery processing, offset is corrected and subsequently decision by a majority processing is performed. Even in case a situation in which all the memory is painted out with the same value takes place, it is possible to decide memory content destruction.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、メモリ内容破壊判
定方法および判定装置に関し、特に、複数のメモリ領域
に同一データを記憶しておき、多数決によりメモリ内容
の破壊を判定する方法および装置に関する。
The present invention relates to a method and an apparatus for determining the destruction of memory contents, and more particularly to a method and an apparatus for storing the same data in a plurality of memory areas and determining the destruction of the memory contents by majority decision.

【0002】[0002]

【従来の技術】周知のようにコンピュータにはデータを
読み書きするためのメモリが備えられている。メモリ装
置の信頼性を向上する技術として多数決判定が用いられ
る。例えば特開平9−134313号公報では、複数の
同一サイズのメモリ領域(例えば3つの領域)に同一デ
ータが書き込まれる。データを読み出すとき、複数のメ
モリ領域の記憶データに対する多数決判定により誤り訂
正が行われる。
2. Description of the Related Art As is well known, a computer is provided with a memory for reading and writing data. A majority decision is used as a technique for improving the reliability of a memory device. For example, in JP-A-9-134313, the same data is written in a plurality of memory areas of the same size (for example, three areas). When data is read, error correction is performed by majority decision on storage data in a plurality of memory areas.

【0003】[0003]

【発明が解決しようとする課題】ところで、コンピュー
タ装置には、ノイズ等に起因するソフトウエア暴走の発
生に対応するための機能が備えられており、例えばウォ
ッチドッグタイマ(WDT:Watch Dog Timer)が周知であ
る。WDTはCPUの動作を監視する装置である。WD
TにはCPUから正常信号(正常状態を示す信号)が定
期的に送られる。そして正常信号が途絶えたときにリセ
ット処理が行われる。一般にリセット処理では初期化処
理が行われる。メモリ破壊暴走(メモリを破壊するよう
な暴走)が発生した場合には、初期化処理を行わないと
正常動作ができないからである。
By the way, a computer device has a function for coping with the occurrence of software runaway caused by noise or the like. For example, a watch dog timer (WDT: Watch Dog Timer) is provided. It is well known. The WDT is a device that monitors the operation of the CPU. WD
To T, a normal signal (a signal indicating a normal state) is periodically sent from the CPU. Then, the reset processing is performed when the normal signal is interrupted. Generally, initialization processing is performed in the reset processing. This is because when a memory destruction runaway (runaway that destroys a memory) occurs, a normal operation cannot be performed unless initialization processing is performed.

【0004】しかしながら、コンピュータの暴走には、
メモリ内容(記憶データ)が破壊される場合と、メモリ
内容が破壊されない場合がある。前者の場合には、確か
にメモリの初期化が必要である。一方、後者の場合に
は、メモリ内容を使って次の処理を行う継続作動が可能
である。それにもかかわらず従来は一律に初期化処理が
行われていた。
[0004] However, the runaway of the computer,
There are cases where the memory contents (storage data) are destroyed and cases where the memory contents are not destroyed. In the former case, it is necessary to initialize the memory. On the other hand, in the latter case, a continuous operation for performing the next process using the memory contents is possible. Nevertheless, conventionally, the initialization process has been uniformly performed.

【0005】メモリ内容の継続使用が望まれるのは、典
型的には、時間経過とともに累積された情報が記憶され
ているときである。例えば、車両が自動走行する新交通
システムを考える。道路上に磁気マーカが等間隔で配置
される。通過した磁気マーカの数がカウントされ、マー
カ数に基づいて車両が自分の位置を特定する。このよう
なシステムでは、WDTリセット時でも、メモリに記憶
されたマーカ数は極力消去したくない。マーカ数データ
が保持されれば、リセット後に通常走行制御を再開でき
る可能性がある。
[0005] Continuing use of the memory contents is typically desired when information accumulated over time is stored. For example, consider a new transportation system in which vehicles travel automatically. Magnetic markers are arranged at equal intervals on the road. The number of magnetic markers that have passed is counted, and the vehicle specifies its own position based on the number of markers. In such a system, it is desirable not to erase the number of markers stored in the memory as much as possible even at the time of resetting the WDT. If the marker number data is held, there is a possibility that the normal traveling control can be resumed after the reset.

【0006】このようにメモリ内容が破壊されていなけ
れば、そのメモリ内容を復元して使うことが望ましい。
そのためには、メモリ内容が破壊されているかどうかを
判定する必要があり、この判定処理に上述の多数決を適
用することが好適と考えられる。
If the memory contents are not destroyed, it is desirable to restore the memory contents for use.
For this purpose, it is necessary to determine whether or not the contents of the memory have been destroyed, and it is considered preferable to apply the above-mentioned majority decision to this determination processing.

【0007】しかしながら単純に多数決処理を適用して
も、メモリ内容の破壊を正確に判定できない可能性があ
る。特に問題となるのは、一部のメモリ領域にデータを
書き込んでいる途中に暴走が発生した場合である。書込
み途中のメモリと、書込み途中でないメモリのデータと
を比較しても、いずれのデータが正しいか判定できず、
メモリ内容が破壊されたかどうかも判別しにくい。この
ような状況は、複数のメモリ領域にシーケンシャルにデ
ータをコピーするときに起きやすい。
However, there is a possibility that the destruction of the memory contents cannot be accurately determined even if the majority decision processing is simply applied. A particular problem occurs when a runaway occurs while data is being written to some memory areas. Comparing the data in the memory being written and the data in the memory not being written cannot determine which data is correct.
It is also difficult to determine whether the memory contents have been destroyed. Such a situation is likely to occur when data is sequentially copied to a plurality of memory areas.

【0008】従来の多数決処理のもう一つの不利な点と
して、メモリを同一値で塗りつぶすような事象に適切に
対処できないことが挙げられる。全メモリ領域の値が同
じになってしまうので、多数決によってメモリ内容の破
壊を検出できない。そこで、塗りつぶしが発生した場合
でも確実にメモリ内容の破壊を判定可能にすることが望
まれる。
Another disadvantage of the conventional majority decision processing is that it is not possible to appropriately cope with an event that the memory is filled with the same value. Since the values of all the memory areas become the same, the destruction of the memory contents cannot be detected by majority vote. Therefore, it is desired to be able to reliably determine the destruction of the memory contents even when the filling occurs.

【0009】なお、ここでは暴走発生時の処理について
説明したが、それには限られず他のメモリ内容破壊判定
においても同様の問題がある。
Here, the processing at the time of runaway occurrence has been described. However, the present invention is not limited to this, and there is a similar problem in other memory content destruction determination.

【0010】本発明は上記課題に鑑みてなされたもので
あり、その目的は、多数決を利用したメモリ内容の破壊
の判定を正確に行える方法および装置を提供することに
ある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and an object of the present invention is to provide a method and an apparatus capable of accurately determining the destruction of memory contents by using a majority decision.

【0011】[0011]

【課題を解決するための手段】上記目的を達成するた
め、本発明のメモリ内容破壊判定方法は、複数のメモリ
領域に同一データを書き込んでおき、それら複数のメモ
リ領域の記憶データを比較する多数決判定を行う方法に
おいて、前記複数のメモリ領域の各々が書込み途中であ
ることを示す書込進行状況情報を記録する工程と、前記
書込進行状況情報に基づき、書込み途中のメモリ領域を
除外した複数のメモリ領域の記憶データを用いた多数決
判定を行う工程と、を含む。
In order to achieve the above object, a memory content destruction judging method according to the present invention writes the same data in a plurality of memory areas and compares the stored data in the plurality of memory areas with a majority decision. In the method for making a determination, a step of recording write progress information indicating that each of the plurality of memory areas is in the middle of writing; and a step of excluding the memory area in the middle of writing based on the write progress information. Making a majority decision using the data stored in the memory area.

【0012】したがって本発明によれば、暴走等が発生
したとき、書込み途中のメモリ領域の記憶データを多数
決の対象から除外するので、本来的に同一であるべき記
憶データのみを用いて多数決を行うことができる。した
がってメモリ破壊の判定を正確に行うことができる。破
壊されていないメモリ内容を保存し、そのメモリ内容を
用いた継続動作ができる。
Therefore, according to the present invention, when a runaway or the like occurs, the storage data in the memory area being written is excluded from the majority decision, so that the majority decision is performed using only the storage data that should be originally the same. be able to. Therefore, it is possible to accurately determine the memory destruction. The memory contents that have not been destroyed can be saved, and continuous operation using the memory contents can be performed.

【0013】本発明において好ましくは、前記複数のメ
モリ領域の各々に、書込み開始を示す開始カウンタ、実
データ部および書込み終了を示す終了カウンタが設定さ
れ、前記書込進行状況情報は前記開始カウンタおよび前
記終了カウンタに記録される。この態様によれば、各メ
モリ領域に書込進行状況が記録される。したがって暴走
等が発生したとき、メモリから読み出したデータを用い
て、メモリ内容の破壊を容易かつ確実に判定できる。
In the present invention, preferably, a start counter indicating the start of writing, an actual data portion, and an end counter indicating the end of writing are set in each of the plurality of memory areas, and the writing progress information includes the start counter and the writing counter. It is recorded in the end counter. According to this aspect, the writing progress is recorded in each memory area. Therefore, when a runaway or the like occurs, the destruction of the memory contents can be easily and reliably determined by using the data read from the memory.

【0014】また好ましくは、本発明の方法は、多数決
判定の結果に基づいてメモリ領域のデータを復元する工
程を含む。多数決の結果から適正と判断されるデータ
が、暴走等の発生する前のデータとして扱われる。
Preferably, the method of the present invention includes a step of restoring data in the memory area based on a result of the majority decision. Data determined to be appropriate from the result of the majority decision is treated as data before the occurrence of runaway or the like.

【0015】本発明の別の態様は、前記複数のメモリ領
域にデータを記録するときに、メモリ領域間でデータの
値をオフセットさせる工程と、メモリ領域間のオフセッ
トを修正してから多数決判定を行う工程と、を含む。
According to another aspect of the present invention, when data is recorded in the plurality of memory areas, a step of offsetting a data value between the memory areas and a step of determining a majority decision after correcting the offset between the memory areas. Performing the steps.

【0016】この態様は、メモリを塗りつぶすような事
象に好適に対応できる。すなわち、本発明によれば、デ
ータ記録時点でデータにオフセットを与え、後の判定時
点でオフセットを修正する。もし同一値塗りつぶしが発
生していた場合には、判定時点のオフセット修正により
メモリ領域間のデータが食い違う。したがって多数決判
定でメモリ内容の破壊が検出される。同一値塗りつぶし
を確実に発見し、誤判定を防止できる。
This aspect can suitably cope with an event such as filling a memory. That is, according to the present invention, an offset is given to data at the time of data recording, and the offset is corrected at a later determination time. If the same value is painted, the data between the memory areas is different due to the offset correction at the time of the determination. Therefore, the destruction of the memory contents is detected by the majority decision. Filling with the same value can be reliably detected and erroneous determination can be prevented.

【0017】また、本発明はメモリ内容破壊判定装置の
かたちで実現されてもよく、その他、メモリ装置、メモ
リ制御装置、メモリ制御方法、データ記憶方法などのか
たちで実現されてもよく、その他の任意の適当な態様で
実現されてもよい。
Further, the present invention may be realized in the form of a memory content destruction judging device. In addition, the present invention may be realized in the form of a memory device, a memory control device, a memory control method, a data storage method, and the like. It may be implemented in any suitable manner.

【0018】[0018]

【発明の実施の形態】以下、本発明の好適な実施の形態
(以下、実施形態という)について、図面を参照し説明
する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention (hereinafter, referred to as embodiments) will be described below with reference to the drawings.

【0019】図1は、本発明のメモリ内容破壊判定装置
が好適に設けられるコンピュータ制御システムの一例を
示している。図1のシステムは車両自動走行装置であ
り、図2に示す交通システムを走行する車両に搭載され
る。
FIG. 1 shows an example of a computer control system in which the memory content destruction judging device of the present invention is suitably provided. The system shown in FIG. 1 is an automatic vehicle traveling system, and is mounted on a vehicle traveling on the traffic system shown in FIG.

【0020】図2において、道路上には等間隔で磁気マ
ーカ(磁気ネイル)が設置されている。通過した磁気マ
ーカの数から車両の位置が算出される。また車両には道
路形状を示すデータが記憶されている。位置情報と道路
形状情報から車両前方のカーブの存在が分かる。そこで
カーブに沿って車両が走行するように、進行方向および
車速が制御される。
In FIG. 2, magnetic markers (magnetic nails) are installed at equal intervals on the road. The position of the vehicle is calculated from the number of passed magnetic markers. The vehicle stores data indicating the road shape. The presence of a curve ahead of the vehicle can be known from the position information and the road shape information. Therefore, the traveling direction and the vehicle speed are controlled so that the vehicle travels along the curve.

【0021】図1において、メインECU10は、セン
サECU12を介してセンサ14と接続され、あるいは
直接にセンサ14と接続されている。センサは、例えば
磁気マーカを検出するための磁気センサであり、例えば
車速を検出するための車輪速センサである。またメイン
ECU10は、アクチュエータECU16を介してアク
チュエータ18と接続され、あるいは直接にアクチュエ
ータ18と接続されている。アクチュエータは、例えば
エンジン(スロットル)、ブレーキおよびステアリング
装置である。
In FIG. 1, the main ECU 10 is connected to the sensor 14 via the sensor ECU 12 or directly to the sensor 14. The sensor is, for example, a magnetic sensor for detecting a magnetic marker, for example, a wheel speed sensor for detecting a vehicle speed. The main ECU 10 is connected to the actuator 18 via the actuator ECU 16 or directly connected to the actuator 18. The actuator is, for example, an engine (throttle), a brake, and a steering device.

【0022】メインECU10は、センサ14からの入
力信号に基づいてアクチュエータ18を制御し、車両を
道路に沿って適切な速度で走行させ、さらに駅での停
止、ドア開閉等のその他の処理を行う。
The main ECU 10 controls the actuator 18 based on an input signal from the sensor 14, causes the vehicle to travel at an appropriate speed along the road, and performs other processing such as stopping at a station and opening and closing a door. .

【0023】メインECU10には、CPU20、RO
M22、RAM24およびWDT26(ウォッチドッグ
タイマ:Watch Dog Timer)が設けられている。CPU2
0は、ROM22から読み出した制御プログラムに従っ
て車両走行を制御する。WDT26は、CPU20が定
期的に発する正常信号(正常動作状態を示す信号、パル
ス信号)を監視する。CPU20での暴走が生じると正
常信号が途絶える。このときWDT26の指示に従って
リセット処理が行われる。
The main ECU 10 includes a CPU 20, an RO
An M22, a RAM 24, and a WDT 26 (Watch Dog Timer) are provided. CPU2
0 controls the running of the vehicle according to the control program read from the ROM 22. The WDT 26 monitors a normal signal (a signal indicating a normal operation state, a pulse signal) periodically generated by the CPU 20. When a runaway occurs in the CPU 20, the normal signal is interrupted. At this time, a reset process is performed according to the instruction of the WDT 26.

【0024】リセット処理ではRAM24の記憶データ
を消去することも考えられる。しかし、RAM24の記
憶内容が破壊されていないのであれば、極力その記憶内
容を利用することが望ましい。例えば図1および図2の
システムでは、磁気マーカの累積カウント数から車両位
置が求められる。メモリ内容を消去すると車両位置が分
からなくなるので、メモリ消去は極力避けたい。その他
にも、時間的に累積された情報は、メモリ内容が破壊さ
れていなければ継続して使いたい。
In the reset process, erasing the data stored in the RAM 24 may be considered. However, if the stored contents of the RAM 24 are not destroyed, it is desirable to use the stored contents as much as possible. For example, in the systems of FIGS. 1 and 2, the vehicle position is obtained from the cumulative count number of the magnetic marker. If you delete the contents of the memory, you will not be able to determine the vehicle position. In addition, it is desirable to continue using the information accumulated over time unless the contents of the memory are destroyed.

【0025】このような要求に応えるため、本発明によ
れば、以下に説明するメモリ内容破壊判定方法が提供さ
れる。
In order to meet such a demand, according to the present invention, a memory content destruction judging method described below is provided.

【0026】図3(a)〜図3(f)は本発明のメモリ
内容破壊判定方法を示している。図3(a)に示すよう
に、メインECU10のRAM24に4つのメモリ領域
が設定されている。領域0は常用変数領域であり、制御
処理の作業領域である。領域1、2、3はWDT用保存
エリアである。領域0のデータが領域1、2、3に書き
写される。暴走時にはこれらの領域のデータを用いて多
数決が行われる。
FIGS. 3A to 3F show a memory content destruction judging method according to the present invention. As shown in FIG. 3A, four memory areas are set in the RAM 24 of the main ECU 10. Area 0 is a common variable area, and is a work area for control processing. Areas 1, 2, and 3 are WDT storage areas. The data in the area 0 is copied to the areas 1, 2, and 3. At the time of runaway, a majority decision is made using the data in these areas.

【0027】図3(a)に示すように、まず領域0のデ
ータが通常の制御処理を通じて書き換えられる。次に、
領域0のデータが、領域1、2、3にシーケンシャルに
書き写される。すなわち領域0から領域1へのコピーが
行われ、続いて領域0から領域2へのコピーが行われ、
さらに領域0から領域3へのコピーが行われる。各コピ
ー処理では好ましくはブロック転送が行われる。
As shown in FIG. 3A, first, the data in the area 0 is rewritten through normal control processing. next,
The data in the area 0 is sequentially copied to the areas 1, 2, and 3. That is, the copy from the area 0 to the area 1 is performed, and then the copy from the area 0 to the area 2 is performed.
Further, copying from the area 0 to the area 3 is performed. In each copy process, block transfer is preferably performed.

【0028】図3(b)は、上記の処理の具体例を示し
ている。最上段は第N−1節の終了時点であり、全メモ
リ領域にデータPが記録されている。第N節では、領域
0から領域3へと順に、データPからデータQへの書換
が行われる。次に第N+1節では、データQからデータ
Rへの書換が行われる(以下同様)。
FIG. 3B shows a specific example of the above processing. The top row is the end point of section N-1, and data P is recorded in all memory areas. In section N, data P is rewritten to data Q in order from area 0 to area 3. Next, in the (N + 1) th section, data Q is rewritten to data R (the same applies hereinafter).

【0029】ここで本発明の特徴として、各メモリ領域
へデータを書き込むとき、後述する方法に従い、書込み
途中であることを示す情報(書込進行状況情報)が記録
される。暴走が発生した場合には、この状況情報に基づ
き、書込み途中のメモリ領域を除外した複数のメモリ領
域の記憶データを用いた多数決判定が行われ、メモリ内
容の破壊が判定される。
Here, as a feature of the present invention, when writing data to each memory area, information (writing progress information) indicating that writing is in progress is recorded according to a method described later. If a runaway occurs, a majority decision is made based on this situation information using the storage data of a plurality of memory areas excluding the memory area in the middle of writing, and the destruction of the memory contents is determined.

【0030】図3(c)は、領域0への書込み途中に暴
走が発生した場合である(書込み途中のメモリはX印で
示す)。領域1〜領域3には、前節(第N−1節)のデ
ータPが記憶されている。この場合、書込み途中の領域
0が除外され、領域1〜領域3のデータを用いてメモリ
内容破壊が判定される。ここでは、3つの領域から読み
出したデータを用いて多数決が行われる。2つ以上の領
域のデータが一致すれば、メモリ破壊は発生していない
と判断する。そして、その一致したデータを用いてメモ
リ内容が復元される。つまり、適正なデータが領域0へ
と書き写され、そのデータを用いてCPUの制御処理が
再開される。
FIG. 3C shows a case where a runaway occurs during the writing to the area 0 (the memory being written is indicated by an X mark). In the areas 1 to 3, the data P of the previous section (section N-1) is stored. In this case, the area 0 in the middle of writing is excluded, and the destruction of the memory contents is determined using the data of the areas 1 to 3. Here, a majority decision is made using data read from the three areas. If the data in the two or more areas match, it is determined that no memory corruption has occurred. Then, the memory contents are restored using the matched data. That is, the appropriate data is copied to the area 0, and the control process of the CPU is restarted using the data.

【0031】図3(d)は、領域1への書込み途中、す
なわち領域0から領域1への保存コピー中に暴走が発生
した場合である。領域0にはデータQが記録されてい
る。領域2、3には第N−1節のデータPが記録されて
いる。書込み途中の領域1が除外され、同一データが記
録されている領域2、3を用いて多数決判定が行われ
る。
FIG. 3D shows a case where a runaway occurs during the writing to the area 1, that is, during the preservation copy from the area 0 to the area 1. Data Q is recorded in area 0. In areas 2 and 3, data P of section N-1 is recorded. The area 1 in the middle of writing is excluded, and the majority decision is made using the areas 2 and 3 where the same data is recorded.

【0032】ただし、ここでは比較対象のデータが2つ
のみなので変則的な多数決(2値比較、ここでは、この
2値比較も多数決処理に含まれるとみなす)が行われ
る。領域2、3のデータが一致すれば、メモリ破壊は発
生しておらず、そのデータを用いて復元処理が行われ
る。領域2、3のデータが相違すれば、復元処理は行わ
ない。
However, here, since there are only two data to be compared, an irregular majority decision (binary comparison, here, this binary comparison is also considered to be included in the majority processing) is performed. If the data in the areas 2 and 3 match, no memory destruction has occurred, and the restoration processing is performed using the data. If the data in the areas 2 and 3 are different, the restoration processing is not performed.

【0033】次に図3(e)は、領域2への書込み途
中、すなわち領域0から領域2への保存処理中に暴走が
発生した場合である。領域0、領域1にはデータQが記
録されている。領域3にはデータPが記録されている。
そこで同一データが記録されている領域0、1を用いて
多数決判定が行われる。ここでも、2つの領域のデータ
のみを用いた比較処理(変則的な多数決処理)が行われ
る。
FIG. 3E shows a case where a runaway occurs during the writing to the area 2, that is, during the storage processing from the area 0 to the area 2. Data Q is recorded in area 0 and area 1. In the area 3, data P is recorded.
Therefore, a majority decision is made using the areas 0 and 1 where the same data is recorded. Here, a comparison process (irregular majority decision process) using only the data of the two regions is performed.

【0034】次に図3(f)は、領域3への書込み途中
に暴走が発生した場合である。領域0〜領域2には、第
N節のデータQがすでに記憶されている。そこで領域0
〜領域2のデータを用いた多数決判定が行われ、これに
よりメモリ内容破壊が判定される。具体的には、3つの
領域のデータが一致すれば、領域0のデータがそのまま
使用される。領域0と領域1のみが一致したとき、およ
び領域0と領域2のみが一致したときも、領域0のデー
タが用いられる。領域1と領域2のみが一致したとき
は、その一致データが領域0に写される。全領域のデー
タが異なる場合には、メモリ破壊の可能性があるので復
元処理は行わず、通常の初期化処理が行われる。
FIG. 3F shows a case where a runaway occurs during writing to the area 3. In the area 0 to the area 2, the data Q of the Nth section is already stored. So area 0
Is determined using the data in the area 2 to determine whether the memory contents are destroyed. Specifically, if the data in the three areas match, the data in the area 0 is used as it is. When only the region 0 and the region 1 match, and when only the region 0 and the region 2 match, the data of the region 0 is used. When only the area 1 and the area 2 match, the matching data is copied to the area 0. If the data in all the areas is different, there is a possibility of memory destruction, so that the restoration processing is not performed and the normal initialization processing is performed.

【0035】以上に説明したように、本実施形態では、
4つのメモリ領域に同一データが記録される。各メモリ
領域にデータを書込み途中であることを示す進行状況情
報が記録される。暴走が発生したときは、書込み途中の
メモリ領域を除く残りのメモリ領域のデータを多数決処
理して、メモリ内容の破壊を判定する。
As described above, in this embodiment,
The same data is recorded in four memory areas. Progress information indicating that data is being written is recorded in each memory area. When runaway occurs, data in the remaining memory area excluding the memory area in the middle of writing is subjected to majority processing to determine the destruction of the memory contents.

【0036】より具体的には、メモリ領域1〜3にシー
ケンシャルにデータが複写されることを考慮して、比較
対象のデータが選ばれる。例えば、図3(b)では、領
域0にはデータQが書き込まれており、領域1はデータ
Qを書込み途中である。一方、領域2、3には前節のデ
ータPが残っている。この場合には領域2、3のデータ
Pが比較対象に選ばれる。つまり同一であるべきデータ
のみが比較される。
More specifically, data to be compared is selected in consideration of data being sequentially copied to the memory areas 1 to 3. For example, in FIG. 3B, the data Q is written in the area 0, and the data Q is being written in the area 1. On the other hand, the data P of the previous section remains in the areas 2 and 3. In this case, the data P in the areas 2 and 3 are selected as comparison targets. That is, only data that should be identical is compared.

【0037】このように本実施形態によれば、書込み途
中のメモリ領域を除外して、本来的に同一であるべき記
憶データのみを用いて多数決判定を行う。したがってメ
モリ破壊が発生したか否かを正確に判断できる。タイミ
ング的に整合性の確実に取れているメモリ領域のみを用
いて判定・保存動作を行うので、整合性保証が得られ
る。暴走発生に対応してリセット処理を行うときに、破
壊されていないメモリ内容の保存処理を行い、そのメモ
リ内容を用いた復帰処理ができる。
As described above, according to the present embodiment, the majority decision is made by using only the storage data that should be essentially the same, excluding the memory area in the middle of writing. Therefore, it can be accurately determined whether or not the memory has been destroyed. Since the determination / save operation is performed using only the memory area in which the consistency is ensured in terms of timing, the consistency is assured. When the reset process is performed in response to the runaway, the memory content that has not been destroyed is saved, and the return process using the memory content can be performed.

【0038】ところで、本実施形態ではRAMに4つの
メモリ領域(変数保存領域)が設定されていたが、メモ
リ領域の数は4以外でもよい。例えばメモリ領域の数を
増やしてもよく、より確実なメモリ破壊の判定と復帰処
理が可能となる。特に、メモリ領域が4つの場合には多
数決の代わりに2値比較を行う必要があった(図3
(d)(e))のに対し、メモリ領域を増やせば、常
に、3つ以上のデータを用いた多数決判定を行うことが
可能となる。
In the present embodiment, four memory areas (variable storage areas) are set in the RAM, but the number of memory areas may be other than four. For example, the number of memory areas may be increased, and more reliable memory destruction determination and recovery processing can be performed. In particular, when there are four memory areas, it was necessary to perform binary comparison instead of majority decision (see FIG. 3).
In contrast to (d) and (e)), if the memory area is increased, it is always possible to make a majority decision using three or more data.

【0039】一方でメモリ領域の数を減らすことも可能
である。3つのメモリ領域を設定したとする。この場
合、保存領域へのコピー中の暴走発生への対処が不可能
になる。すなわち図3(d)において保存領域3が廃止
されたとする。領域1は書込み途中なので、領域0と領
域1のデータを比較しようとする。しかし、領域0、1
は異なるデータを記憶している。そのためメモリ領域の
破壊の判定は不可能である。このようにメモリ領域の数
を減らすと、保存コピー中の暴走発生に対する復帰はで
きない。しかしながら、一般に保存コピー中に暴走が発
生する確率は低い。したがってこの態様でも本発明の効
果を得ることができる。
On the other hand, the number of memory areas can be reduced. It is assumed that three memory areas are set. In this case, it is impossible to cope with runaway during copying to the storage area. That is, it is assumed that the storage area 3 is abolished in FIG. Since the area 1 is being written, the data of the area 0 and the data of the area 1 are to be compared. However, regions 0, 1
Stores different data. Therefore, it is impossible to determine the destruction of the memory area. If the number of memory areas is reduced in this way, it is not possible to recover from runaway during storage copy. However, generally, the probability of runaway occurring during archival copying is low. Therefore, the effect of the present invention can be obtained also in this mode.

【0040】次に、図4(a)(b)を参照し、本発明
のもう一つの特徴である<オフセット処理>について説
明する。図4(a)を参照すると、常用変数領域0から
WDT用保存エリア1、2、3へデータをコピーすると
き、それぞれオフセット1、2、3が加算される(減算
でもよい、以下同じ)。オフセット1、2、3は互いに
異なる値であり、任意に適当に設定される。例えば、オ
フセット1=0x22(=34)、オフセット2=0x
44(=68)、オフセット3=0x88(=136)
である。
Next, the <offset processing> which is another characteristic of the present invention will be described with reference to FIGS. Referring to FIG. 4A, when data is copied from the common variable area 0 to the WDT storage areas 1, 2, and 3, offsets 1, 2, and 3 are respectively added (subtraction may be performed, and the same applies hereinafter). The offsets 1, 2, and 3 have different values and are arbitrarily and appropriately set. For example, offset 1 = 0x22 (= 34), offset 2 = 0x
44 (= 68), offset 3 = 0x88 (= 136)
It is.

【0041】図4(a)に示すように、WDTが動作し
てリセット処理を行うときは、オフセットが修正され
る。修正後のデータを用いて多数決判定が行われる。も
ちろん、図3を用いて説明したように、書込み途中のメ
モリ領域のデータは使用されない。
As shown in FIG. 4A, when the WDT operates to perform the reset processing, the offset is corrected. A majority decision is made using the corrected data. Of course, as described with reference to FIG. 3, data in the memory area in the middle of writing is not used.

【0042】一方、図4(b)は、全メモリを同一値で
塗りつぶすようなメモリ破壊が発生したときの処理であ
る。すなわち、データPをオフセット付きで書き込んだ
後に、暴走により全メモリがデータXで塗りつぶされた
とする。この場合も、WDTが動作すると、メモリのデ
ータのオフセットが修正される。その結果、本来同じは
ずのデータが、オフセット修正の結果として食い違う。
したがってメモリ内容が破壊されたと判定され、メモリ
内容を継続使用する復帰処理は行われない。
On the other hand, FIG. 4B shows the processing when a memory destruction occurs in which all memories are painted with the same value. That is, it is assumed that after the data P is written with the offset, all the memories are filled with the data X due to runaway. Also in this case, when the WDT operates, the offset of the data in the memory is corrected. As a result, data that should be the same will be different as a result of the offset correction.
Therefore, it is determined that the memory contents have been destroyed, and a return process for continuously using the memory contents is not performed.

【0043】ここで、もし本発明のオフセット処理およ
びオフセット修正処理を行わなかったとする。図4
(b)では、不適正なデータXをそのまま用いて多数決
判定が行われる。全メモリのデータが同じなので、多数
決の結果、メモリ内容は正常であるという誤判断が下さ
れる。一方、本実施形態によれば、オフセット処理およ
びオフセット修正処理を行うことにより、塗りつぶし発
生も多数決判定で確実に検出でき、誤って復帰すること
を回避できる。
Here, it is assumed that the offset processing and the offset correction processing of the present invention have not been performed. FIG.
In (b), the majority decision is made using the incorrect data X as it is. Since the data in all memories is the same, the majority decision results in an erroneous determination that the memory contents are normal. On the other hand, according to the present embodiment, by performing the offset processing and the offset correction processing, the occurrence of the filling can be reliably detected by the majority decision, and the erroneous return can be avoided.

【0044】次に図5および図6を参照し、メモリ領域
が書込み途中であることを示す進行状況情報の記録方法
を説明する。図5において、常用変数領域0と、WDT
用保存エリア1、2、3は同一サイズである。領域0の
先頭アドレス部分に開始カウンタ(counter0begin ;
C−0begin)が設定され、その次に実データ部が設定さ
れ、さらに終了カウンタ(counter0end ; C−0end)
が設定されている。領域1〜3にも同様に、開始カウン
タ(counter1begin,counter2begin,counter3begi
n)、実データ部、終了カウンタ(counter1end,count
er2end,counter3end)が設定されている。本実施形
態では、開始カウンタ、終了カウンタのサイズは1バイ
ト、実データ部のサイズは50バイトである。
Next, a method of recording progress information indicating that the memory area is in the middle of writing will be described with reference to FIGS. In FIG. 5, common variable area 0 and WDT
Storage areas 1, 2, and 3 have the same size. A start counter (counter0begin;
C-0begin) is set, then the actual data part is set, and the end counter (counter0end; C-0end) is set.
Is set. Similarly, start counters (counter1begin, counter2begin, counter3begi)
n), actual data part, end counter (counter1end, count
er2end, counter3end) are set. In the present embodiment, the size of the start counter and the end counter is 1 byte, and the size of the actual data portion is 50 bytes.

【0045】図6には領域0の書換処理が示されてい
る。初期化状態では、開始カウンタおよび終了カウンタ
は0である。まず開始カウンタがインクリメントされ
(1が加算され)、それから実データが書き込まれる。
実データの書込が終わると、開始カウンタの値が終了カ
ウンタにコピーされる。
FIG. 6 shows the rewriting process of the area 0. In the initialization state, the start counter and the end counter are 0. First, the start counter is incremented (1 is added), and then actual data is written.
When the writing of the actual data is completed, the value of the start counter is copied to the end counter.

【0046】以上より、領域0の書込開始とともに、開
始カウンタの値が終了カウンタより1だけ大きくなる。
書込終了とともに、両カウンタの値が一致する。すなわ
ち、開始カウンタと終了カウンタの値が異なっていれ
ば、領域0は書込み途中である。
As described above, the value of the start counter becomes larger than the value of the end counter by 1 when the writing of the area 0 is started.
At the end of writing, the values of both counters match. That is, if the values of the start counter and the end counter are different, area 0 is being written.

【0047】次に領域1〜3への保存コピー処理が行わ
れる。図5に示すように、まず領域0から領域1へのブ
ロック転送が行われる。領域0の先頭アドレスの値が領
域1に写される。領域0の次のアドレスのデータが写さ
れる。このようにして、領域0の全アドレスの値が領域
1に写される。ただし、コピーのときにオフセット1が
各値に加算される(カウンターの値を含む)。
Next, a storage copy process for the areas 1 to 3 is performed. As shown in FIG. 5, first, block transfer from area 0 to area 1 is performed. The value of the start address of area 0 is mapped to area 1. The data of the address next to the area 0 is copied. In this way, the values of all addresses in area 0 are copied to area 1. However, offset 1 is added to each value at the time of copying (including the value of the counter).

【0048】ここでも領域1の書込開始とともに、開始
カウンタの値が終了カウンタより1だけ大きくなる。書
込終了とともに、両カウンタの値が一致する。すなわ
ち、開始カウンタと終了カウンタの値が異なっていれ
ば、領域1は書込み途中である。
In this case as well, when the writing of the area 1 is started, the value of the start counter becomes larger than that of the end counter by one. At the end of writing, the values of both counters match. That is, if the values of the start counter and the end counter are different, area 1 is being written.

【0049】次に領域2の保存処理、領域3の保存処理
が順次同様に行われる。ここでもブロック転送が行われ
る。したがって、領域2または領域3が書込み途中のと
き、開始カウンタと終了カウンタの値が異なっている。
Next, the storage processing of the area 2 and the storage processing of the area 3 are sequentially performed in the same manner. Here also, block transfer is performed. Therefore, when the area 2 or the area 3 is being written, the values of the start counter and the end counter are different.

【0050】図6に戻り、保存コピーが終わると、再び
領域0を用いた処理が行われる。まず開始カウンタがイ
ンクリメントされ、カウンタの値が2になる。そして実
データの書換が行われる。書換が終わると、開始カウン
タの値が終了カウンタにコピーされる。
Referring back to FIG. 6, when the preservation copy is completed, the process using the area 0 is performed again. First, the start counter is incremented, and the value of the counter becomes 2. Then, the actual data is rewritten. When the rewriting is completed, the value of the start counter is copied to the end counter.

【0051】上記の処理は繰り返して行われる。カウン
タのサイズが1バイトであることを考慮し、カウンタが
一杯になる前にカウンタの値が0に戻される。本実施形
態では、図6に示すように、カウンタの値が250に達
するとリセットされる。
The above processing is repeatedly performed. Considering that the size of the counter is one byte, the value of the counter is returned to 0 before the counter becomes full. In the present embodiment, as shown in FIG. 6, when the value of the counter reaches 250, the counter is reset.

【0052】さて、暴走等が発生してWDTが作動した
ときは、各メモリ領域の開始カウンタと終了カウンタの
値が読み出され、比較される。ある領域の開始カウンタ
と終了カウンタが一致すれば、その領域は書込み途中で
はないと判断される。一方、ある領域の開始カウンタと
終了カウンタの値が相違すれば、その領域は書込み途中
であると判定される。
When a runaway or the like occurs and the WDT operates, the values of the start counter and end counter of each memory area are read and compared. If the start counter and end counter of a certain area match, it is determined that the area is not in the middle of writing. On the other hand, if the value of the start counter and the value of the end counter of an area are different, it is determined that the area is being written.

【0053】図7は、WDT作動時の書込進行状況の判
定方法を具体的に示している。各カウンタはオフセット
修正後の状態を示している。図7(a)においては領域
1〜3の開始・終了カウンタはすべて等しく、この状態
では領域0にデータを書込み中である。図7(b)では
領域2、3の開始・終了カウンタの4つの値が等しく、
この状態では領域1に保存コピー中である。図7(c)
では領域0、1の開始・終了カウンタの4つの値が等し
く、この状態では領域2に保存コピー中である。図7
(d)においては領域0、1、2の開始・終了カウンタ
の6つの値が等しく、この状態では領域3に保存コピー
中である。つまり、カウンタの値が一致している領域の
組合せが、前述の図3(c)〜図3(f)で多数決の対
象とすべきメモリ領域の組合せであり、したがってメモ
リがどのような書込進行状況にあるのかが容易に分か
る。
FIG. 7 specifically shows a method of judging the writing progress at the time of the WDT operation. Each counter shows the state after offset correction. In FIG. 7A, the start / end counters of the areas 1 to 3 are all equal, and data is being written to the area 0 in this state. In FIG. 7B, the four values of the start / end counters in the areas 2 and 3 are equal,
In this state, the data is being stored and copied in the area 1. FIG. 7 (c)
In this case, the four values of the start / end counters of the areas 0 and 1 are equal. In this state, the copy is being stored in the area 2. FIG.
In (d), the six values of the start / end counters of the areas 0, 1, and 2 are equal. In other words, the combination of the areas where the counter values match is the combination of the memory areas to be subjected to the majority decision in FIGS. 3 (c) to 3 (f) described above. It's easy to tell if you're in progress.

【0054】以上のように、本実施形態によれば、各メ
モリ領域の開始カウンタおよび終了カウンタを用いて、
書込進行状況情報が記録される。進行状況を記録する場
所が、各メモリ領域に割り当てられている。WDT作動
時には、各メモリ領域のデータから、その領域が書込み
途中であることが分かる。したがって、書込進行状況の
判断が確実かつ容易にでき、メモリ内容の破壊も確実に
判定できる。
As described above, according to the present embodiment, using the start counter and the end counter of each memory area,
The writing progress information is recorded. A place for recording the progress is assigned to each memory area. At the time of the WDT operation, it is known from the data of each memory area that the area is being written. Therefore, it is possible to reliably and easily determine the writing progress state, and to reliably determine the destruction of the memory contents.

【0055】なお、書込進行状況を記録、判定する方法
は、上記には限定されない。例えば、各領域の書込進行
状況を示すフラッグが設けられてもよい。ある領域の書
込が始まるとフラッグが立てられ、書込が終了するとフ
ラッグが降ろされる。
The method of recording and judging the writing progress is not limited to the above. For example, a flag indicating the progress of writing in each area may be provided. When the writing of a certain area is started, a flag is set, and when the writing is completed, the flag is set down.

【0056】次に図8〜図12は、上述の本発明の処理
を示すフローチャートである。図8は全体処理である。
システムの電源投入時およびウォッチドッグタイマ(W
DT)作動時に図8の処理がスタートする。まずパワー
オン(電源投入)か否かが判断される(S10)。パワ
ーオンの場合には、パワーオン初期化処理が行われる
(S12)。
Next, FIG. 8 to FIG. 12 are flowcharts showing the processing of the present invention described above. FIG. 8 shows the overall processing.
When the system is powered on and the watchdog timer (W
At the time of DT) operation, the process of FIG. 8 starts. First, it is determined whether or not power is turned on (power is turned on) (S10). In the case of power-on, power-on initialization processing is performed (S12).

【0057】図9に示すように、パワーオン初期化処理
では、領域0の開始カウンタC−0begin(counter0beg
in)および終了カウンタC−0end(conter0end)の値が
0とされる(S30)。また領域1の開始カウンタC−
1beginから領域3の終了カウンタC−3endまでの全ア
ドレスの値が0とされる(S32)。すなわち、図5に
示す保存領域1〜3のすべてに0が書き込まれる。さら
に、システム全体の通常初期化処理がCPUにより行わ
れる(S34)。
As shown in FIG. 9, in the power-on initialization processing, the start counter C-0begin (counter0beg
in) and the value of the end counter C-0end (conter0end) are set to 0 (S30). Further, the start counter C−
The values of all addresses from 1 begin to the end counter C-3end of the area 3 are set to 0 (S32). That is, 0 is written in all of the storage areas 1 to 3 shown in FIG. Further, normal initialization processing of the entire system is performed by the CPU (S34).

【0058】図8に戻り、S12のパワーオン初期化が
終わると、S14〜S20に進んで通常処理を行う。こ
こでの処理は、図5および図6を用いて説明したもので
ある。まず領域0の開始カウンタC−0beginがインク
リメントされ(S14)、通常処理が行われる(S1
6)。通常処理は、図1に示した車両走行制御システム
の制御処理である。センサの検出信号が取り込まれ、制
御プログラムに従った演算処理が行われ、アクチュエー
タ制御信号が生成・出力される。この通常処理におい
て、領域0が作業領域として使われ、領域0の値が書き
換えられる。
Returning to FIG. 8, when the power-on initialization in S12 is completed, the process proceeds to S14 to S20 to perform normal processing. The processing here has been described with reference to FIGS. First, the start counter C-0begin of the area 0 is incremented (S14), and normal processing is performed (S1).
6). The normal process is a control process of the vehicle traveling control system shown in FIG. The detection signal of the sensor is taken in, the arithmetic processing according to the control program is performed, and the actuator control signal is generated and output. In the normal processing, the area 0 is used as a work area, and the value of the area 0 is rewritten.

【0059】通常処理の1サイクルが終わると、領域0
の終了カウンタC−0endに、開始カウンタC−0begin
の値がコピーされる(S18)。前述したように、開始
カウンタと終了カウンタの一致は、領域0の書込終了を
示す。
When one cycle of the normal processing is completed, the area 0
End counter C-0end, start counter C-0begin
Is copied (S18). As described above, a match between the start counter and the end counter indicates that the writing of the area 0 has been completed.

【0060】次にメモリ保存用コピー処理が行われる
(S20)。すなわち、領域0の値が領域1〜3にコピ
ーされる。図10に示すように、領域0の開始カウンタ
C−0beginから終了カウンタC−0endまでの全アドレ
スの値にオフセット1が加算される。加算後の値が領域
1の対応アドレスに書き込まれる(S40)。同様に、
領域0のデータにオフセット2が加算され、その値が領
域2に書き込まれる(S42)。さらに、領域0のデー
タにオフセット3が加算され、その値が領域3に書き込
まれる(S44)。保存コピーはシーケンシャルに行わ
れる。各コピー処理ではブロック転送が行われる。
Next, copy processing for memory storage is performed (S20). That is, the value of the area 0 is copied to the areas 1 to 3. As shown in FIG. 10, the offset 1 is added to the values of all addresses from the start counter C-0 begin to the end counter C-0 end of the area 0. The value after the addition is written to the corresponding address of the area 1 (S40). Similarly,
The offset 2 is added to the data of the area 0, and the value is written to the area 2 (S42). Further, the offset 3 is added to the data of the area 0, and the value is written to the area 3 (S44). The archival copy is made sequentially. In each copy process, block transfer is performed.

【0061】図8に戻り、S20が終わるとS14に戻
り、同様の処理が繰り返される。すなわち、領域0のデ
ータの書換えと、書き換えられたデータの保存コピーと
が繰り返される。
Returning to FIG. 8, when S20 ends, the process returns to S14, and the same processing is repeated. That is, the rewriting of the data in the area 0 and the storage copy of the rewritten data are repeated.

【0062】次にWDT作動時の処理を説明する。図1
のWDT26(ウォッチドッグタイマ)はCPU20と
独立したハードウエアである。前述したように、WDT
26は、CPU20から送られる所定の信号を監視して
いる。信号が途絶えると、WDT26はCPU20に対
してリセット処理の指示を出す。つまり図8の全体処理
のどこかでソフトウエア暴走が生じると、所定時間の経
過後にWDT26が作動する。するとCPU20は、図
8の処理をスタートから始める。パワーオンの判定(S
10)はNOであり、S22にてウォッチドッグリセッ
トの復帰処理が行われる。
Next, the processing at the time of the WDT operation will be described. FIG.
WDT 26 (watchdog timer) is hardware independent of the CPU 20. As mentioned above, WDT
26 monitors a predetermined signal sent from the CPU 20. When the signal stops, the WDT 26 issues a reset processing instruction to the CPU 20. That is, if a software runaway occurs somewhere in the overall processing of FIG. 8, the WDT 26 operates after a predetermined time has elapsed. Then, the CPU 20 starts the process of FIG. 8 from the start. Power-on determination (S
10) is NO, the watchdog reset return process is performed in S22.

【0063】図11を参照すると、復帰処理では、ま
ず、保存領域1〜3のオフセットが修正される(S5
0)。すなわち、領域1のデータが読み出され、オフセ
ット1が減算され、領域1に戻される。領域2、3につ
いても同様である。
Referring to FIG. 11, in the restoration process, first, the offsets of the storage areas 1 to 3 are corrected (S5).
0). That is, the data in the area 1 is read, the offset 1 is subtracted, and the data is returned to the area 1. The same applies to regions 2 and 3.

【0064】次に、領域1の開始・終了カウンタ、領域
2の開始・終了カウンタおよび領域3の開始・終了カウ
ンタが一致するか否かが判断される(S52)。S52
がYESであれば、暴走発生時には領域1〜3は書込み
途中でなかったことが分かる。すなわち、領域0が書込
み途中であるか、あるいはRAMへのデータ保存が行わ
れていない。そこで、S54で領域1、2、3のデータ
を用いた多数決処理が行われる(図3(c)参照)。
Next, it is determined whether or not the start / end counter of the area 1, the start / end counter of the area 2, and the start / end counter of the area 3 match (S52). S52
If the answer is YES, it can be understood that the areas 1 to 3 were not in the middle of writing when the runaway occurred. That is, the area 0 is being written, or the data is not stored in the RAM. Then, majority processing using the data of the areas 1, 2, and 3 is performed in S54 (see FIG. 3C).

【0065】図12に示すように、多数決処理では、保
存エリアの全部の変数について同一ペアがあるか否かが
判断される(S70)。すなわち、図5のメモリ領域の
実データの全変数が比較される。そして各変数につい
て、少なくとも2つの領域のデータが一致するか否かが
判定される。S70がYESの場合、メモリ内容の破壊
がなかったと考えられる。そこで、同一ペアが見つかっ
た値を領域0に代入する(S72)。
As shown in FIG. 12, in the majority decision processing, it is determined whether or not the same pair exists for all variables in the storage area (S70). That is, all variables of the actual data in the memory area in FIG. 5 are compared. Then, for each variable, it is determined whether or not the data of at least two areas match. If S70 is YES, it is considered that the memory contents have not been destroyed. Therefore, the value in which the same pair is found is substituted into the area 0 (S72).

【0066】具体的には、S70で各変数について領域
1と領域2の値が一致すれば、S72で領域1の値が領
域0に代入される。領域2と領域3を比較する必要はな
い。領域1と領域2が一致しない場合、領域1と領域3
が比較され、両領域の変数が一致すれば、領域1の値が
領域0に代入される。領域1と領域3が一致しなけれ
ば、領域2と領域3が比較され、両領域の変数が一致す
れば、領域2のデータが領域0に代入される。領域2と
領域3も一致しなければ、S70の判断がNOになる。
More specifically, if the values of the area 1 and the area 2 match for each variable in S70, the value of the area 1 is assigned to the area 0 in S72. There is no need to compare region 2 with region 3. If the areas 1 and 2 do not match, the areas 1 and 3
Are compared, and if the variables in both areas match, the value of area 1 is assigned to area 0. If the areas 1 and 3 do not match, the areas 2 and 3 are compared. If the variables of both areas match, the data of the area 2 is assigned to the area 0. If the areas 2 and 3 do not match, the determination in S70 is NO.

【0067】S70の判断がNOの場合、暴走によりメ
モリ内容が破壊された可能性がある。そこで、メモリ復
帰処理はあきらめ、S74でパワーオンの初期化処理を
行う。この処理は、図8のS12と同様である。
If the determination in S70 is NO, the memory contents may have been destroyed due to runaway. Therefore, the memory return process is abandoned, and a power-on initialization process is performed in S74. This process is the same as S12 in FIG.

【0068】図8に戻り、S22の復帰処理が終わると
S14へ進む。したがって領域0のデータが暴走前の状
態へ復帰している場合には(図12、S72)、そのデ
ータを用いて通常走行制御が再開される。一方、領域0
が初期化されている場合には(図12、S74)、暴走
前のデータは失われている。そのため車両は停止され
る。適当な非常時走行モードで走行し、適当な場所へと
移動されてもよい。
Returning to FIG. 8, when the return process of S22 is completed, the process proceeds to S14. Therefore, when the data in the area 0 has returned to the state before the runaway (S72 in FIG. 12), the normal traveling control is restarted using the data. On the other hand, area 0
Is initialized (S74 in FIG. 12), the data before the runaway is lost. Therefore, the vehicle is stopped. The vehicle may be driven in an appropriate emergency driving mode and moved to an appropriate place.

【0069】一方、図11においてS52がNOの場
合、S56に進み、領域0の開始・終了カウンタ、領域
1の開始・終了カウンタおよび領域2の開始・終了カウ
ンタが一致するか否かが判断される。S56がYESで
あれば、領域3の保存中にリセット処理が発生したと考
えられる。そこで、S58で領域0、1、2のデータを
用いた多数決処理が行われる(図3(f)参照)。ここ
でも図12の処理が行われる。ただし領域1、2、3の
代わりに領域0、1、2が使用される。そして多数決の
後、メモリ内容が破壊されていなければ通常走行制御が
再開される。
On the other hand, if S52 is NO in FIG. 11, the process proceeds to S56, and it is determined whether or not the start / end counter of the area 0, the start / end counter of the area 1, and the start / end counter of the area 2 match. You. If S56 is YES, it is considered that the reset process has occurred during the storage of the area 3. Then, majority processing using the data of the areas 0, 1, and 2 is performed in S58 (see FIG. 3F). Here also, the processing of FIG. 12 is performed. However, areas 0, 1, and 2 are used instead of areas 1, 2, and 3. Then, after the majority decision, if the contents of the memory are not destroyed, the normal traveling control is resumed.

【0070】また図11のS56がNOの場合は、S6
0に進み、領域0の開始・終了カウンタ、領域1の開始
・終了カウンタが一致するか否かが判断される。S60
がYESであれば、領域2の保存中にリセット処理が発
生したと考えられる。そこで、S62で領域0、1のデ
ータを用いた多数決処理が行われる(図3(e)参
照)。ここでも図12の処理が行われる。ただし2つの
領域0、1のみが使用される。領域0、1の変数が一致
すれば、メモリ復帰が行われ(図12、S72)、通常
走行制御が再開される。領域0、1の変数が一致しなけ
れば、パワーオン初期化が行われる(図12、S7
4)。
If S56 in FIG. 11 is NO, S6
Then, it is determined whether or not the start / end counter of the area 0 and the start / end counter of the area 1 match. S60
Is YES, it is considered that the reset process has occurred during the storage of the area 2. Therefore, majority processing using the data of the areas 0 and 1 is performed in S62 (see FIG. 3E). Here also, the processing of FIG. 12 is performed. However, only two areas 0 and 1 are used. If the variables in the areas 0 and 1 match, the memory is restored (S72 in FIG. 12), and the normal traveling control is resumed. If the variables in the areas 0 and 1 do not match, power-on initialization is performed (FIG. 12, S7).
4).

【0071】さらに図11のS60がNOの場合は、S
64に進み、領域2の開始・終了カウンタ、領域3の開
始・終了カウンタが一致するか否かが判断される。S6
4がYESであれば、領域1の保存中にリセット処理が
発生したと考えられる。そこで、S66で領域2、3の
データを用いた多数決処理が行われる(図3(d)参
照)。ここでも図12の処理が行われる。ただし2つの
領域2、3のみが使用され、2値比較が行われる。領域
2、3の変数が一致すれば、メモリ復帰が行われ、一致
しなければパワーオン初期化が行われる。
Further, if NO in S60 of FIG.
Proceeding to 64, it is determined whether or not the start / end counter of the area 2 and the start / end counter of the area 3 match. S6
If YES at 4, it is considered that a reset process has occurred during storage of the area 1. Therefore, majority processing using the data of the areas 2 and 3 is performed in S66 (see FIG. 3D). Here also, the processing of FIG. 12 is performed. However, only two regions 2, 3 are used, and a binary comparison is performed. If the variables in the regions 2 and 3 match, the memory is restored, and if they do not match, power-on initialization is performed.

【0072】図11のS64もNOの場合には、S68
に進む。この場合もメモリ破壊の可能性があるのでパワ
ーオン初期化を行う。
If S64 of FIG. 11 is also NO, S68
Proceed to. Also in this case, power-on initialization is performed because there is a possibility of memory destruction.

【0073】以上、図8〜図12を参照して、本実施形
態のメモリ内容破壊判定装置の動作を説明した。
The operation of the memory contents destruction judging device according to the present embodiment has been described above with reference to FIGS.

【0074】なお、図11のWDT復帰処理において
は、最初にオフセット減算(修正)が行われた。しかし
ながら、オフセット減算は、各データの比較の直前に行
われてもよい。この変形例は以下の点で好適である。
In the WDT return processing of FIG. 11, offset subtraction (correction) was first performed. However, the offset subtraction may be performed immediately before the comparison of each data. This modification is preferable in the following points.

【0075】WDTのリセットが、連続して2回以上発
生することがある。その場合、2回目のリセットで図1
1の処理は中断され、最初に戻る。そしてもう一度オフ
セット減算が行われる。すなわち各データに対して2回
の重複したオフセット減算が行われる。一方、本変形例
によれば、データの比較の際にオフセット減算を行うの
で、重複したオフセット減算が回避される。
The reset of the WDT may occur two or more times in succession. In that case, the second reset
Process 1 is interrupted and returns to the beginning. Then, the offset subtraction is performed again. That is, two overlapping offset subtractions are performed on each data. On the other hand, according to the present modification, offset subtraction is performed at the time of comparing data, so that duplicate offset subtraction is avoided.

【0076】次に、メモリ復帰後の車両走行制御につい
て説明する。図1、図2を用いて説明したように、本シ
ステムは路上の磁気マーカを検出し、累積マーカ数から
車両位置を特定する。ここでは一例としての磁気マーカ
数の処理について説明する。
Next, the vehicle running control after returning from the memory will be described. As described with reference to FIGS. 1 and 2, the present system detects a magnetic marker on a road and specifies a vehicle position from the number of accumulated markers. Here, the processing of the number of magnetic markers as an example will be described.

【0077】復帰後の処理を説明する前に、通常制御の
概略を再び説明する。本システムは磁気マーカを数える
ことで車両位置を特定する。道路形状は予め記憶されて
いる。道路形状と車両位置に基づいて、車両を道路に沿
って走らせる。例えば図2の例では、車両は予め前方の
カーブの存在とその形状を知っている。そこで、カーブ
の進入前に減速を完了し、車輪の操舵制御を開始する。
Before describing the processing after the return, the outline of the normal control will be described again. The system identifies the vehicle position by counting the magnetic markers. The road shape is stored in advance. The vehicle is driven along the road based on the road shape and the vehicle position. For example, in the example of FIG. 2, the vehicle knows in advance the existence of the curve ahead and its shape. Therefore, the deceleration is completed before entering the curve, and the steering control of the wheels is started.

【0078】さて、WDTリセット処理では、上述のよ
うにしてメモリ内容が復元される。しかしながら、暴走
発生から復帰完了までの間に車両はある程度進んでい
る。したがって、メモリ内容から得られる車両位置と、
実際の車両位置との間にはずれが生じる。
In the WDT reset process, the memory contents are restored as described above. However, the vehicle has advanced to some extent between the occurrence of the runaway and the completion of the return. Therefore, the vehicle position obtained from the memory contents,
There is a deviation from the actual vehicle position.

【0079】そこで本実施形態では、メモリ復帰後の制
御再開時に、メモリに記憶された位置誤差を適当に修正
する。例えば、暴走発生後に通過したマーカの数が推定
され、累積マーカ数に加算される。
Therefore, in the present embodiment, when the control is resumed after returning from the memory, the position error stored in the memory is appropriately corrected. For example, the number of markers that have passed after the runaway has occurred is estimated and added to the cumulative number of markers.

【0080】また、本実施形態では以下のようにして位
置データを取り扱うことも好適である。(i)制御システ
ムは、WDT復帰後には特に位置修正を行わない。(ii)
車両が絶対位置マーカを通過したときに初めて位置修正
が行われる。絶対位置マーカは、図13に示すように適
当な間隔をおいて設けられており、この絶対位置マーカ
を通過するときに車両は自分の絶対位置を把握する。
In this embodiment, it is also preferable to handle position data as follows. (i) The control system does not particularly perform position correction after WDT return. (ii)
Only when the vehicle passes the absolute position marker, the position is corrected. The absolute position markers are provided at appropriate intervals as shown in FIG. 13, and the vehicle grasps its absolute position when passing through the absolute position markers.

【0081】上記のように位置修正を遅らせてもよい理
由を説明する。図14を参照すると、緩やかなカーブを
車両が通過するときは、位置情報に多少の誤差があって
も、車両は道路に沿って走行できる(図14(a))。
一方、急カーブでは正確な位置情報が必要である(図1
4(b))。そこで図13の交通システムにおいて、所
定値より小さい半径をもつ急カーブの手前に絶対位置マ
ーカを設置しておく。曲がり角の手前にも絶対位置マー
カを設置しておく。さらに、停車駅や分岐点などの所定
の重要ポイントの手前にも絶対位置マーカを設置してお
く。重要ポイントとは、車両の正確な位置制御が特に必
要なポイントである(急カーブ、曲がり角も含む)。こ
のような構成を採用すれば、WDT作動後にすぐに位置
誤差修正を行わなくても問題ない。急カーブ等に近づい
て正確な位置情報が必要になったときに、位置情報が修
正される。
The reason why the position correction may be delayed as described above will be described. Referring to FIG. 14, when the vehicle passes through a gentle curve, the vehicle can travel along the road even if there is some error in the position information (FIG. 14A).
On the other hand, a sharp curve requires accurate position information (see FIG. 1).
4 (b)). Therefore, in the traffic system of FIG. 13, an absolute position marker is set before a sharp curve having a radius smaller than a predetermined value. An absolute position marker is also set in front of the corner. Further, an absolute position marker is set before a predetermined important point such as a stop station or a junction. Important points are points that require precise position control of the vehicle (including sharp curves and corners). With such a configuration, there is no problem even if the position error is not corrected immediately after the WDT operation. When accurate position information is needed when approaching a sharp curve or the like, the position information is corrected.

【0082】さらに、メモリ復帰が不可能であったと
き、すなわちメモリ内容が破壊されたときには下記の処
理を行うこともまた好適である。磁気マーカの累積カウ
ント値が失われると、車両位置は分からなくなる。記憶
してある道路形状データ(地図)上での車両位置が分か
らなくなり、その結果、道路形状データを走行制御に使
えなくなる。しかしながら、道路形状データを使わない
での低速走行はできる。つまり、磁気センサの検出信号
に基づき、車両直下(足元)の磁気マーカをトレースし
ながら低速で車両を走らせることは可能である。そこ
で、この低速走行モードで車両を次の絶対位置マーカま
で走らせる。絶対位置マーカを通るときに車両位置が得
られる。すると通常の走行制御モードへ復帰する。
Further, when the memory cannot be restored, that is, when the memory contents are destroyed, it is also preferable to perform the following processing. If the cumulative count value of the magnetic marker is lost, the vehicle position cannot be determined. The vehicle position on the stored road shape data (map) is not known, and as a result, the road shape data cannot be used for traveling control. However, low-speed traveling without using the road shape data is possible. That is, based on the detection signal of the magnetic sensor, it is possible to run the vehicle at a low speed while tracing the magnetic marker directly under the vehicle (foot). Therefore, the vehicle is driven to the next absolute position marker in the low-speed traveling mode. The vehicle position is obtained when passing through the absolute position marker. Then, it returns to the normal traveling control mode.

【0083】以上、磁気マーカ数のデータに関連して、
本実施形態のメモリ復帰後の制御処理を説明した。
As described above, in relation to the data on the number of magnetic markers,
The control processing after memory return according to the present embodiment has been described.

【0084】ところで、前述の如く、磁気マーカ数のデ
ータは、WDTリセット時に初期化したくないデータの
代表例である。このように、時間の経過とともに累積さ
れる変数、および、その他にも暴走直前の値が必要な変
数については、WDTリセット時に保存処理を行うこと
(初期化しないこと)が望ましい。一方で、暴走直前の
値が必要でない変数は、保存されずに、パワーオン初期
化で消されてしまってもよい。このような変数は例えば
車速データである。車速データは、復帰処理後に再び車
速センサから入手すればよい。
As described above, the data of the number of magnetic markers is a typical example of data that is not desired to be initialized at the time of resetting the WDT. As described above, it is desirable to perform a save process (not initialized) at the time of resetting the WDT for variables that are accumulated with the passage of time and other variables that require values immediately before runaway. On the other hand, variables that do not require a value immediately before runaway may not be saved and may be erased by power-on initialization. Such a variable is, for example, vehicle speed data. The vehicle speed data may be obtained again from the vehicle speed sensor after the return processing.

【0085】上記に鑑みると、本実施形態において好ま
しくは、メモリ領域の記憶情報が、暴走直前の値をリセ
ット後の制御に必要とするような情報と、それ以外の情
報に分けられる。前者の情報のみWDT保存領域1〜3
に保存し、リセット時に情報を復元する。後者の情報は
領域0でのみ扱い、保存領域1〜3にはコピーしない。
この態様によれば、メモリ容量を低減することができ
る。また、データ量低減により、保存処理、復帰処理を
高速化できる。
In view of the above, in the present embodiment, preferably, the information stored in the memory area is divided into information necessary for control after resetting the value immediately before the runaway and other information. Only the former information WDT storage areas 1 to 3
And restore the information on reset. The latter information is handled only in the area 0 and is not copied to the storage areas 1 to 3.
According to this aspect, the memory capacity can be reduced. Further, the saving process and the restoring process can be speeded up by reducing the data amount.

【0086】以上、本発明の好適な実施形態について説
明した。本実施形態が本発明の範囲内で任意に適当に変
形可能なことはもちろんである。例えば、本実施形態で
は車両自動運転装置について説明したが、その他の任意
のコンピュータ装置に本発明を適用できる。また、RA
M以外の任意のタイプの読み書き可能な記憶手段の制御
に本発明を適用可能である。
The preferred embodiment of the present invention has been described above. Needless to say, the present embodiment can be arbitrarily and appropriately modified within the scope of the present invention. For example, in this embodiment, the automatic vehicle driving device has been described, but the present invention can be applied to any other computer device. Also, RA
The present invention is applicable to control of any type of readable / writable storage means other than M.

【0087】[0087]

【発明の効果】以上に説明したように本発明によれば、
多数決を利用したメモリ内容の破壊の判定を正確に行う
ことができる。さらに、全メモリを同一値で塗りつぶす
ような事態が発生したときでも、メモリ内容の破壊を確
実に判定できる。
According to the present invention as described above,
It is possible to accurately determine the destruction of the memory contents using the majority decision. Furthermore, even when a situation occurs in which all memories are painted with the same value, destruction of memory contents can be reliably determined.

【0088】特に、車両自動運転システムのような制御
システムでは、暴走発生時でもメモリ内容が破壊される
ことは少なく、多くの場合にはメモリ内容を継続使用で
きる。しかしながら、メモリ内容が破壊された場合には
確実にそれを検出して、走行中止等の適切な処理を行う
必要がある。このようなシステムでは、メモリ破壊を正
確かつ確実に判定できる本発明の効果が顕著に得られ
る。
In particular, in a control system such as an automatic vehicle driving system, even when a runaway occurs, the memory contents are rarely destroyed, and in many cases, the memory contents can be used continuously. However, when the contents of the memory are destroyed, it is necessary to reliably detect the corruption and to perform appropriate processing such as stopping driving. In such a system, the effect of the present invention in which the memory destruction can be accurately and reliably determined can be remarkably obtained.

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

【図1】 本発明の実施形態のメモリ内容破壊判定装置
が備えられた車両走行制御装置の構成を示すブロック図
である。
FIG. 1 is a block diagram illustrating a configuration of a vehicle traveling control device provided with a memory content destruction determination device according to an embodiment of the present invention.

【図2】 図1の装置を搭載した車両が走行する交通シ
ステムを部分的に示す図である。
FIG. 2 is a diagram partially showing a traffic system in which a vehicle equipped with the device shown in FIG. 1 travels.

【図3】 本発明のメモリ内容破壊判定方法の概要を示
す図である。
FIG. 3 is a diagram showing an outline of a memory content destruction determination method of the present invention.

【図4】 本発明の一つの特徴であるオフセット処理を
示す図である。
FIG. 4 is a diagram showing offset processing which is one feature of the present invention.

【図5】 図3のメモリ領域の保存コピー処理を示す図
である。
FIG. 5 is a diagram showing a storage copy process of a memory area in FIG. 3;

【図6】 図3の4つのメモリ領域のうちの一つである
常用変数領域の書込処理を示す図である。
FIG. 6 is a diagram showing a writing process of a common variable area which is one of the four memory areas in FIG. 3;

【図7】 本実施形態の書込進行状況の判定方法を示す
図である。
FIG. 7 is a diagram illustrating a method of determining a writing progress state according to the embodiment;

【図8】 本発明のメモリ内容破壊判定装置の動作を示
すフローチャートである。
FIG. 8 is a flowchart showing the operation of the memory content destruction determination device of the present invention.

【図9】 図8のパワーオン初期化処理を示すフローチ
ャートである。
FIG. 9 is a flowchart showing a power-on initialization process of FIG. 8;

【図10】 図8のメモリ保存コピー処理を示すフロー
チャートである。
FIG. 10 is a flowchart showing a memory storage copy process of FIG. 8;

【図11】 図8のウォッチドッグリセット復帰処理を
示すフローチャートである。
FIG. 11 is a flowchart showing a watchdog reset return process of FIG. 8;

【図12】 図11の多数決処理を示すフローチャート
である。
FIG. 12 is a flowchart showing a majority decision process of FIG. 11;

【図13】 交通システムの道路上の絶対位置マーカ設
置位置を示す図である。
FIG. 13 is a diagram showing an installation position of an absolute position marker on a road in a traffic system.

【図14】 道路のカーブ形状に応じた、車両走行への
位置情報誤差の影響を示す図である。
FIG. 14 is a diagram showing an influence of a position information error on vehicle running according to a curve shape of a road.

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

0 常用変数領域、1,2,3 WDT用保存エリア、
10 メインECU、14 センサ、18 アクチュエ
ータ、20 CPU、22 ROM、24 RAM、2
6 WDT。
0 common variable area, 1, 2, 3 WDT storage area,
10 Main ECU, 14 sensors, 18 actuators, 20 CPU, 22 ROM, 24 RAM, 2
6 WDT.

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 複数のメモリ領域に同一データを書き込
んでおき、それら複数のメモリ領域の記憶データを比較
する多数決判定を行うメモリ内容破壊判定方法におい
て、 前記複数のメモリ領域の各々が書込み途中であることを
示す書込進行状況情報を記録する工程と、 前記書込進行状況情報に基づき、書込み途中のメモリ領
域を除外した複数のメモリ領域の記憶データを用いた多
数決判定を行う工程と、 を含むことを特徴とするメモリ内容破壊判定方法。
1. A memory content destruction determination method in which the same data is written in a plurality of memory areas and a majority decision is made by comparing storage data in the plurality of memory areas. Recording the write progress information indicating that there is, and, based on the write progress information, performing a majority decision using storage data of a plurality of memory areas excluding the memory area in the middle of writing. A memory content destruction determination method characterized by including:
【請求項2】 請求項1に記載のメモリ内容破壊判定方
法において、 前記複数のメモリ領域の各々に、書込み開始を示す開始
カウンタ、実データ部および書込み終了を示す終了カウ
ンタが設定され、 前記書込進行状況情報は前記開始カウンタおよび前記終
了カウンタに記録されることを特徴とするメモリ内容破
壊判定方法。
2. The memory content destruction determination method according to claim 1, wherein a start counter indicating a start of writing, an actual data portion, and an end counter indicating an end of writing are set in each of the plurality of memory areas. And a memory content destruction determination method, wherein the write progress information is recorded in the start counter and the end counter.
【請求項3】 請求項1または2に記載のメモリ内容破
壊判定方法において、多数決判定の結果に基づいてメモ
リ領域のデータを復元する工程を含むことを特徴とする
メモリ内容破壊判定方法。
3. The memory contents destruction determination method according to claim 1, further comprising the step of restoring data in a memory area based on a result of the majority decision.
【請求項4】 請求項1〜3のいずれかに記載のメモリ
内容破壊判定方法において、 前記複数のメモリ領域にデータを記録するときに、メモ
リ領域間でデータの値をオフセットさせる工程を含み、 多数決判定を行うときにオフセットを修正することを特
徴とするメモリ内容破壊判定方法。
4. The memory content destruction determination method according to claim 1, further comprising: when recording data in the plurality of memory areas, offsetting a value of the data between the memory areas, A memory content destruction determination method, wherein an offset is corrected when a majority decision is made.
【請求項5】 複数のメモリ領域に同一データを書き込
んでおき、それら複数のメモリ領域の記憶データを比較
する多数決判定を行うメモリ内容破壊判定方法におい
て、 前記複数のメモリ領域にデータを記録するときに、メモ
リ領域間でデータの値をオフセットさせる工程と、 メモリ領域間のオフセットを修正してから多数決判定を
行う工程と、 を含むことを特徴とするメモリ内容破壊判定方法。
5. A memory content destruction determination method for writing the same data in a plurality of memory areas and comparing the stored data of the plurality of memory areas with a majority decision, wherein data is recorded in the plurality of memory areas. A method of offsetting the value of data between memory areas, and a step of correcting the offset between memory areas before performing a majority decision.
【請求項6】 複数のメモリ領域に同一データを書き込
んでおき、それら複数のメモリ領域の記憶データを比較
する多数決判定を行うメモリ内容破壊判定装置におい
て、 前記複数のメモリ領域の各々が書込み途中であることを
示す書込進行状況情報を記録する進行状況記録手段と、 前記書込進行状況情報に基づき、書込み途中のメモリ領
域を除外した複数のメモリ領域の記憶データを用いた多
数決判定を行う判定手段と、 を含むことを特徴とするメモリ内容破壊判定装置。
6. A memory content destruction judging device for writing the same data in a plurality of memory areas and making a majority judgment comparing the stored data in the plurality of memory areas, wherein each of the plurality of memory areas is in the middle of writing. Progress recording means for recording write progress information indicating that there is, based on the write progress information, a determination to make a majority decision using storage data of a plurality of memory areas excluding a memory area being written Means, and a memory content destruction determination device, characterized by comprising:
【請求項7】 請求項6に記載のメモリ内容破壊判定装
置において、 前記複数のメモリ領域の各々に、書込み開始を示す開始
カウンタ、実データ部および書込み終了を示す終了カウ
ンタが設定され、 前記進行状況記録手段は、前記書込進行状況情報を前記
開始カウンタおよび前記終了カウンタに記録することを
特徴とするメモリ内容破壊判定装置。
7. The memory content destruction determination device according to claim 6, wherein a start counter indicating a start of writing, an actual data portion, and an end counter indicating an end of writing are set in each of the plurality of memory areas. A memory content destruction determination device, wherein the status recording means records the write progress information in the start counter and the end counter.
【請求項8】 請求項6または7に記載のメモリ内容破
壊判定装置において、多数決判定の結果に基づいてメモ
リ領域のデータを復元する復元手段を含むことを特徴と
するメモリ内容破壊判定装置。
8. The memory contents destruction judging device according to claim 6, further comprising restoring means for restoring data in a memory area based on a result of the majority decision.
【請求項9】 請求項6〜8のいずれかに記載のメモリ
内容破壊判定装置において、 前記複数のメモリ領域にデータを記録するときに、メモ
リ領域間でデータの値をオフセットさせるオフセット手
段を含み、 前記判定手段は、多数決判定を行うときにオフセットを
修正することを特徴とするメモリ内容破壊判定装置。
9. The memory content destruction determination device according to claim 6, further comprising: an offset unit for offsetting a data value between the memory areas when recording the data in the plurality of memory areas. A memory content destruction judging device, wherein the judging means corrects an offset when making a majority judgment.
【請求項10】 複数のメモリ領域に同一データを書き
込んでおき、それら複数のメモリ領域の記憶データを比
較する多数決判定を行うメモリ内容破壊判定装置におい
て、 前記複数のメモリ領域にデータを記録するときに、メモ
リ領域間でデータの値をオフセットさせるオフセット手
段と、 メモリ領域間のオフセットを修正してから多数決判定を
行う判定手段と、 を含むことを特徴とするメモリ内容破壊判定装置。
10. A memory content destruction determining apparatus for writing the same data in a plurality of memory areas and performing a majority decision comparing the stored data in the plurality of memory areas, wherein the data is recorded in the plurality of memory areas. A memory content destruction determining apparatus, comprising: offset means for offsetting a data value between memory areas; and determining means for performing a majority decision after correcting an offset between memory areas.
【請求項11】 請求項6〜10のいずれかに記載のメ
モリ内容破壊判定装置において、 コンピュータ処理の暴走が発生したことを検出する暴走
検出手段を含み、暴走発生時に前記判定手段が判定を行
うことを特徴とするメモリ内容破壊判定装置。
11. The memory content destruction judging device according to claim 6, further comprising a runaway detecting means for detecting that a runaway of computer processing has occurred, wherein said judging means makes a judgment when a runaway occurs. A memory content destruction judging device characterized by the above-mentioned.
【請求項12】 請求項11に記載のメモリ内容破壊判
定装置において、前記暴走検出手段はウォッチドッグタ
イマであることを特徴とするメモリ内容破壊判定装置。
12. The memory contents destruction judging device according to claim 11, wherein said runaway detection means is a watchdog timer.
JP11181045A 1999-06-28 1999-06-28 Method and device for judging memory content destruction Pending JP2001014224A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11181045A JP2001014224A (en) 1999-06-28 1999-06-28 Method and device for judging memory content destruction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11181045A JP2001014224A (en) 1999-06-28 1999-06-28 Method and device for judging memory content destruction

Publications (1)

Publication Number Publication Date
JP2001014224A true JP2001014224A (en) 2001-01-19

Family

ID=16093815

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11181045A Pending JP2001014224A (en) 1999-06-28 1999-06-28 Method and device for judging memory content destruction

Country Status (1)

Country Link
JP (1) JP2001014224A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009289049A (en) * 2008-05-29 2009-12-10 Toyota Motor Corp Memory control device
JP2013161314A (en) * 2012-02-07 2013-08-19 Hi-Lex Corporation Data write abnormality determination device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009289049A (en) * 2008-05-29 2009-12-10 Toyota Motor Corp Memory control device
JP2013161314A (en) * 2012-02-07 2013-08-19 Hi-Lex Corporation Data write abnormality determination device

Similar Documents

Publication Publication Date Title
US20020161970A1 (en) Utilizing parity caching and parity logging while closing the RAID 5 write hole
JP4917604B2 (en) Storage device configuration and driving method thereof
JPH086862A (en) Method and related system for enhancement of preservation ofdata stored in storage medium
JPS62502501A (en) Method, apparatus and controller for restoring stored data blocks from tape data blocks corrupted by damage
WO2019074500A1 (en) Memory devices including execution trace buffers
JPH02297770A (en) Optical disk device
JP2001014224A (en) Method and device for judging memory content destruction
JP4205364B2 (en) Data integrity check method for external storage
JP2697332B2 (en) Operation setting information reliability improvement device
KR970007994A (en) Defect processing method in hard disk drive servo system
JPH0768929B2 (en) Vehicle failure diagnosis system
JPS62120557A (en) Storage system
JPS6051142B2 (en) Logging error control method
JPH0287241A (en) History information processor and trouble recovering method to use history information processor
JPS61208552A (en) Data controller
JPS636600U (en)
JP2776608B2 (en) Reformat processing method of auxiliary storage device
JPH0667815A (en) Automatic rewriting device for record
JPS6341957A (en) Storage control device
JPS6254347A (en) Processing system for fault of file
JPS5928247A (en) Optical disk processor
JPH02287642A (en) Incremental saving system
JPH04310671A (en) Disk controller
JPH06175921A (en) Main storage fault information collection system
JPS60223074A (en) Error processing method of magnetic tape device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050317

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050426

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050624

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20050624

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050816