JPS6131902B2 - - Google Patents

Info

Publication number
JPS6131902B2
JPS6131902B2 JP55111753A JP11175380A JPS6131902B2 JP S6131902 B2 JPS6131902 B2 JP S6131902B2 JP 55111753 A JP55111753 A JP 55111753A JP 11175380 A JP11175380 A JP 11175380A JP S6131902 B2 JPS6131902 B2 JP S6131902B2
Authority
JP
Japan
Prior art keywords
rom
code
checksum
romz
start address
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.)
Expired
Application number
JP55111753A
Other languages
Japanese (ja)
Other versions
JPS5737797A (en
Inventor
Yojiro Yokoi
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.)
Kyosan Electric Manufacturing Co Ltd
Original Assignee
Kyosan Electric Manufacturing 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 Kyosan Electric Manufacturing Co Ltd filed Critical Kyosan Electric Manufacturing Co Ltd
Priority to JP11175380A priority Critical patent/JPS5737797A/en
Publication of JPS5737797A publication Critical patent/JPS5737797A/en
Publication of JPS6131902B2 publication Critical patent/JPS6131902B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes

Description

【発明の詳細な説明】 本発明は電子計算機システムにおける読出し専
用記憶装置(以下ROMと称する)の記憶内容が
変化していないかどうかを検査する方法に関する
ものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method for checking whether the contents of a read-only storage device (hereinafter referred to as ROM) in a computer system have changed.

電子計算機システムにおいてはプログラム走行
時に変化することのないプログラムやデータを
ROMに記憶させておくが機械的あるいは電気的
な破損や外部条件によつてROMの記憶内容が変
化してしまうことがある。そこで高信頼性を要求
されるシステムにおいてはプログラム走行時に一
定の時間間隔でROMの記憶内容が変化していな
いことを検査しなければならない。本発明は上記
ROMの記憶内容検査方法に関するものであり、
従来から行なわれているROMの記憶内容検査方
法の一方法を第1図において説明する。ROMは
ROM1、ROM2、ROM3の3つのROMが使用
されているとする。第1図において1はROM
1,2はROM2,3はROM3を示している。も
つとも大きいアドレスのROM3中の続きのアド
レスにすべてのROMの記憶内容の縦方向の総和
の2の補数であるチエツクサムをとり記憶させて
おく。4はチエツクサムを示す。5はアドレス部
を示す。ROM記憶内容検査時には記憶内容検査
プログラムによつてすべてのROMのチエツクサ
ムを演算してROM3中に記憶されているチエツ
クサムと比較して正常、異常を判断する。しかし
ながらこの方法ではシステム中のROMのうち1
つでも書き換えになるとすべてのROMのチエツ
クサムをとりなおしてチエツクサムを書き換えな
ければならない。またROMが増設になつたとき
はチエツクサムをとる番地の範囲が変化するので
ROM記憶内容検査のプログラムを変更しなけれ
ばならない。
In electronic computer systems, programs and data that do not change during program execution are
Although it is stored in ROM, the contents stored in ROM may change due to mechanical or electrical damage or external conditions. Therefore, in systems that require high reliability, it is necessary to check that the contents of the ROM have not changed at regular intervals during program execution. The present invention is as described above.
It is related to a method for inspecting the memory contents of ROM,
One conventional method for inspecting the storage contents of a ROM will be explained with reference to FIG. ROM is
Assume that three ROMs, ROM1, ROM2, and ROM3, are used. In Figure 1, 1 is ROM
1 and 2 indicate ROM2, and 3 indicates ROM3. A checksum, which is the two's complement of the vertical summation of all the ROM storage contents, is taken and stored at the next address in the ROM 3 that has the largest address. 4 indicates checksum. 5 indicates an address section. When inspecting the ROM storage contents, the checksums of all ROMs are calculated by the storage contents inspection program and compared with the checksums stored in the ROM 3 to determine whether they are normal or abnormal. However, with this method, one of the ROMs in the system
If it is rewritten at any time, the checksums of all ROMs must be rewritten and the checksums must be rewritten. Also, when the ROM is expanded, the address range from which the checksum is taken changes.
The ROM storage content inspection program must be changed.

本発明は、これらの問題点を解決し、ROMの
部分的な書きかえ時あるいは増設時にすべての
ROMのチエツクサムをとりなおす必要がなく又
プログラムの変更の必要がないと同時により信頼
性の高いROMの記憶内容検査方法を提供するこ
とを目的とするものである。
The present invention solves these problems and allows all
It is an object of the present invention to provide a more reliable method for inspecting the contents of a ROM, which does not require recalculating the checksum of the ROM or changing the program.

以下本発明の一実施例を図に従つて具体的に説
明する。第2図は本発明の冗長コード系を使用し
たROM記憶内容検査方法の実施例におけるROM
の構成図でROM1、ROM2、ROM3の3つの
ROMが使用されているとし、それぞれのROMの
スタートアドレスはADRS1、ADRS2 ADRS
3であるとする。第2図において1はROM1,
2はROM2,3はROM3を示し、5はアドレス
部を示し、6はADRS1,7はADRS2,8は
ADRS3を示す。上記3つのROMのチエツクサ
ムはチエツクサム記憶専用のROMに記憶され
る。このROMをROMZとする。第3図はROMZ
の記憶内容構成図である。スタートアドレスZに
はROM1,ROM2、ROM3のそれぞれのROM
のスタートアドレス、及びデータの数であるバイ
ト数、及びチエツクサムをアスキーコードの16進
数を表現するコードでROMごとを1つのブロツ
クとして順に記憶させておく。すなわちアスキー
コードは16進コードを文字コードに変換する文字
コードであり、8ビツト1キヤラクタで128通り
の文字を表現するが、そのうちの16進数を表現す
る0〜9、A〜Fの16のコードを使用して、1文
字で16進数1桁を表現する内容でROMに記憶さ
せておく。第3図において19はROM1のブロ
ツクであり9はADRS1,10はROM1のバイ
ト数、11はROM2のチエツクサムを記憶する
範囲を示す。20はROM2のブロツクであり、
12はADRS2,13はROM2のバイト数、1
4はROM2のチエツクサムを記憶する範囲を示
す。21はROM3のブロツクであり15は
ADRS3,16はROM3のバイト数、17は
ROM3のチエツクサムを記憶する範囲を示す。
ROM1,ROM2,ROM3のそれぞれのROMの
ブロツクのROMZにおける記憶の順番は任意であ
る。ROM1,ROM2,ROM3のすべてのROM
のブロツクの記憶範囲の次には0〜9、A〜Fの
16進コード以外のアスキーコードを使用してエン
ドコードを記憶しておく。18はエンドコードの
記憶範囲を示す。このようにアスキーコードを使
用すればエンドコードが使用出来るためROM記
憶内容検査プログラムではROMZのスタートアド
レスと、エンドコードを記憶しておけばROMZの
スタートアドレスでROMZの記憶内容の開始を判
断し、エンドコードでROMZの記憶の終了を判断
することができる。したがつて記憶内容検査プロ
グラムはROMZのスタートアドレスからROM1
のアドレスとROM1のバイト数をコード検出し
て読みとりROM1のチエツクサムを演算して
ROMZに記憶してあるROM1のチエツクサムを
コード検出して読みとつた内容と比較して正常、
異常を判断する。次にROM2,ROM3の記憶内
容検査をROM2の場合と同ように行なつてエン
ドコードをコード検出して読みとると記憶内容検
査プログラムは停止する。
An embodiment of the present invention will be specifically described below with reference to the drawings. FIG. 2 shows a ROM in an embodiment of the ROM storage content inspection method using the redundant code system of the present invention.
In the configuration diagram, there are three ROM1, ROM2, and ROM3.
Assuming that ROM is used, the start address of each ROM is ADRS1, ADRS2 ADRS
Suppose that it is 3. In Figure 2, 1 is ROM1,
2 indicates ROM2, 3 indicates ROM3, 5 indicates address section, 6 indicates ADRS1, 7 indicates ADRS2, 8 indicates
ADRS3 is shown. The checksums of the three ROMs mentioned above are stored in a ROM dedicated to storing checksums. Let this ROM be ROMZ. Figure 3 is ROMZ
FIG. 2 is a storage content configuration diagram. Each ROM of ROM1, ROM2, and ROM3 is placed at the start address Z.
The start address, the number of bytes representing the number of data, and the checksum are sequentially stored in each ROM as one block using a code that expresses hexadecimal numbers in ASCII code. In other words, the ASCII code is a character code that converts a hexadecimal code into a character code. One 8-bit character represents 128 characters, of which 16 codes 0 to 9 and A to F represent hexadecimal numbers. is used to store in the ROM the content that represents one hexadecimal digit with one character. In FIG. 3, 19 is a block of ROM1, 9 is ADRS1, 10 is the number of bytes of ROM1, and 11 is a range for storing the checksum of ROM2. 20 is the ROM2 block,
12 is ADRS2, 13 is the number of bytes of ROM2, 1
4 indicates the range in which the checksum of ROM2 is stored. 21 is the block of ROM3 and 15 is
ADRS3, 16 is the number of bytes of ROM3, 17 is
Indicates the range in which the checksum of ROM3 is stored.
The order in which ROM blocks of ROM1, ROM2, and ROM3 are stored in ROMZ is arbitrary. All ROMs: ROM1, ROM2, ROM3
Next to the memory range of the block is 0 to 9, A to F.
Remember the end code using an ASCII code other than a hexadecimal code. 18 indicates the storage range of the end code. If you use the ASCII code in this way, you can use the end code, so if you memorize the ROMZ start address and the end code, the ROM storage content inspection program will use the ROMZ start address to determine the start of the ROMZ storage content. The end of ROMZ storage can be determined by the end code. Therefore, the memory content inspection program starts from the start address of ROMZ to ROM1.
The code detects the address and the number of bytes of ROM1, reads it, and calculates the checksum of ROM1.
Comparing the checksum of ROM1 stored in ROMZ with the code detected and read, it is normal.
Determine abnormality. Next, the storage contents of ROM2 and ROM3 are inspected in the same manner as in the case of ROM2, and when the end code is detected and read, the storage contents inspection program is stopped.

以上説明した本発明にかかる冗長コード系を使
用したROMの記憶内容検査方法ではROM1,
ROM2,ROM3のうちの1つのROMの内容を
変えたときにはその分のチエツクサムだけをとり
なおして書きかえるだけでよい。又使用する
ROMの数の増減があつた場合にはROMZの内容
とエンドコードの位置を変えるだけでよくROM
記憶内容検査プログラムとほかのROMのチエツ
クサムを変える必要はない。又ROMZにアスキー
コードのうちの0〜9、A〜Fの16進数を表現す
る16のコードを使用するため、ROMZの読取りプ
ログラムではこの16のコード以外のコントロール
コードや文字コードの場合にはROMZの内容の誤
りを検出するため、ROMZ自体のデータの信頼性
は2進数を使用したプログラムROMよりも高い
ものとなる。ヌアスキーコードではコードをパリ
テイビツト付きにすることが出来るためROMZの
記憶をパリテイ付きアスキーコードを使用して行
ない、ROMZの読取りプログラムではパリテイチ
エツクをして読取ることによつて、ROMZの信頼
性は更に高いものとなる。以上のごとくROMZ自
体の信頼性が高いため本発明の冗長コード系を使
用したROMの記憶内容検査方法で検査をした結
果がROMの記憶内容正常と出た場合の信頼性は
非常に高いものとなる。
In the ROM storage content inspection method using the redundant code system according to the present invention described above, ROM1,
When the contents of one of ROM2 and ROM3 are changed, it is only necessary to rewrite and rewrite only the corresponding checksum. use again
If the number of ROMs increases or decreases, simply change the contents of ROMZ and the position of the end code.
There is no need to change the memory contents inspection program and the check sums of other ROMs. Also, since ROMZ uses 16 codes representing hexadecimal numbers 0 to 9 of the ASCII code and A to F, the ROMZ reading program uses ROMZ for control codes and character codes other than these 16 codes. Since errors in the contents of the ROMZ are detected, the reliability of the ROMZ's own data is higher than that of a program ROM that uses binary numbers. Nuasci code allows the code to have a parity bit, so the reliability of ROMZ can be improved by storing the ROMZ using ASCII code with parity, and by checking the parity in the ROMZ reading program and reading it. It will be even higher. As mentioned above, since the reliability of ROMZ itself is high, if the result of testing using the ROM storage content inspection method using the redundant code system of the present invention shows that the ROM storage content is normal, the reliability is extremely high. Become.

本発明実施例においてはアスキーコードを使用
して説明を行なつたがアスキーコード以外の冗長
コード系を使用した場合においても実施例同様の
効果が得られる。
Although the embodiments of the present invention have been explained using ASCII codes, the same effects as in the embodiments can be obtained even when redundant code systems other than ASCII codes are used.

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

第1図は従来から行なわれているROMの記憶
内容検査方法の説明図であり、第2図は本発明の
実施例におけるROMの構成図であり、第3図は
本発明実施例におけるチエツクサム記憶専用の
ROMのROMZの記憶内容構成図である。
FIG. 1 is an explanatory diagram of a conventional ROM storage content inspection method, FIG. 2 is a configuration diagram of a ROM in an embodiment of the present invention, and FIG. 3 is a diagram showing a check sum memory in an embodiment of the present invention. Dedicated
FIG. 2 is a configuration diagram of the storage contents of ROMZ of ROM.

Claims (1)

【特許請求の範囲】[Claims] 1 電子計算機のROMの記憶内容が変化してい
ないかどうかを検査する方法において、使用され
ている複数個のROMのそれぞれのROMごとのス
タートアドレス、バイト数、チエツクサムを1つ
のブロツクとして冗長コード系の16進数を表現す
るコードを使用して上記とは別のROMに順に複
数個のブロツク記憶し、最後のブロツクの次のア
ドレスに16進数を表現するコード以外の冗長コー
ドでエンドコードを記憶し、ROM記憶内容検査
は上記記憶された別のROMのスタートアドレス
から記憶内容のスタートアドレス、バイト数をコ
ード検出して読出して、そのブロツクに相当する
ROMのチエツクサムを演算し、この演算結果と
上記記憶されているチエツクサムをコード検出し
て読みとつた内容とを比較して正否を判定し、す
べてのROMについて比較判定した後、上記エン
ドコードの検出によつて終了することを特徴とす
る冗長コード系を使用したROMの記憶内容検査
方法。
1. In a method of checking whether the memory contents of the ROM of a computer have not changed, a redundant code system is used that uses the start address, number of bytes, and checksum of each ROM of multiple ROMs in use as one block. Store multiple blocks sequentially in a separate ROM from the above using a code that represents a hexadecimal number, and store an end code at the address next to the last block using a redundant code other than the code that represents a hexadecimal number. , ROM storage content inspection involves detecting and reading the start address and number of bytes of the memory content from the start address of another ROM stored above, and reading out the code corresponding to that block.
The checksum of the ROM is calculated, and the result of this calculation is compared with the content read by detecting the code in the stored checksum to determine whether it is correct or not. After comparing and determining all the ROMs, the end code is detected. 1. A ROM storage content inspection method using a redundant code system characterized by ending with .
JP11175380A 1980-08-15 1980-08-15 Checking method for storage contents of rom using redundant code system Granted JPS5737797A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11175380A JPS5737797A (en) 1980-08-15 1980-08-15 Checking method for storage contents of rom using redundant code system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11175380A JPS5737797A (en) 1980-08-15 1980-08-15 Checking method for storage contents of rom using redundant code system

Publications (2)

Publication Number Publication Date
JPS5737797A JPS5737797A (en) 1982-03-02
JPS6131902B2 true JPS6131902B2 (en) 1986-07-23

Family

ID=14569308

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11175380A Granted JPS5737797A (en) 1980-08-15 1980-08-15 Checking method for storage contents of rom using redundant code system

Country Status (1)

Country Link
JP (1) JPS5737797A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60196027A (en) * 1984-03-19 1985-10-04 Tsubakimoto Chain Co Time-division multiplex transmission system
JPH03303U (en) * 1989-05-26 1991-01-07
JPH0648010U (en) * 1992-11-30 1994-06-28 株式会社島津製作所 Fluid control valve

Also Published As

Publication number Publication date
JPS5737797A (en) 1982-03-02

Similar Documents

Publication Publication Date Title
KR100331139B1 (en) Method and apparatus for correcting a multilevel cell memory by using error locating codes
EP0266837B1 (en) Data processing system including a watch-dog circuit
US4800563A (en) Error processing method and apparatus for information processing system
EP0023821A2 (en) Apparatus and method for checking a memory and a computer system including a memory and apparatus for checking the memory
US4550278A (en) Control device
JP2606862B2 (en) Single error detection and correction method
JPS6131902B2 (en)
JP2004521430A (en) Method and circuit arrangement for memory error handling
JP3124278B2 (en) Inspection method of memory cell contents of program memory
JP3011522B2 (en) Apparatus and method for checking a memory cell of an array for faults
US8103933B2 (en) Method for securing data and device for implementing the same
US11249839B1 (en) Method and apparatus for memory error detection
CN1220469A (en) Programmable ROM having on-chip error recovery circuit
JP2907114B2 (en) Method and apparatus for correcting 1-bit error in EEPROM
CN110825557B (en) Storage method and storage system
JPS6019080B2 (en) How to check storage devices
JPS60122426A (en) Write data check system
JPH02207355A (en) Memory readout system
CN115993978A (en) Firmware upgrading method and device
JP3951681B2 (en) Memory inspection method and memory inspection program
JPS63141153A (en) Semiconductor external memory device
JP2002208297A (en) Test method for ram and bus, and storage medium
KR890000354B1 (en) Document device of mistaken information in controller
JP2004334707A (en) Memory inspection device and memory inspection method
JP2006011605A (en) Data-checking method