JPH0264836A - Rom parity check method - Google Patents

Rom parity check method

Info

Publication number
JPH0264836A
JPH0264836A JP63215188A JP21518888A JPH0264836A JP H0264836 A JPH0264836 A JP H0264836A JP 63215188 A JP63215188 A JP 63215188A JP 21518888 A JP21518888 A JP 21518888A JP H0264836 A JPH0264836 A JP H0264836A
Authority
JP
Japan
Prior art keywords
parity check
rom
parity
methods
capacity
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
JP63215188A
Other languages
Japanese (ja)
Inventor
Mitsuo Kinoshita
木下 三男
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP63215188A priority Critical patent/JPH0264836A/en
Publication of JPH0264836A publication Critical patent/JPH0264836A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To accurately execute parity check even if ROM different in capacity is mounted by executing parity check through the sequential use of plural parity check methods. CONSTITUTION:A system main body 1 consists of a processor 1a, RON1b, RON1c and I/O (interface)1d, and the plural parity check methods PCi corresponding to different ROM capacities are prepared in the processor 1a. The processor 1a sequentially executes plural parity check methods PCi at the time of parity-checking data in ROM and judges it to be good when the total sum of bits by either parity check method agrees with a prescribed value, and judges to be no good when they do not agree so as to generate an alarm. Thus, parity check can accurately be executed when ROMs different in capacity are mounted.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明はROMパリティチェック方法に係り。[Detailed description of the invention] <Industrial application field> The present invention relates to a ROM parity check method.

特にROM内のデータを所定長さのブロックに区切り、
各ブロック毎にパリティビットを付加してパリティチェ
ックを行うROMパリティチェック方法に関する。
In particular, data in ROM is divided into blocks of a predetermined length,
The present invention relates to a ROM parity check method that performs a parity check by adding a parity bit to each block.

く従来技術〉 CNC等のコンピュータシステムにおいてROM内のデ
ータには、非常に高い信頼性が要求される。そこで、シ
ステムは絶えずROM内を監視してデータが当初のデー
タから変化した時或いはROMの不良等を発見した時、
アラームランプを点灯すると共に、すみやかに動作を停
止し、暴走等による危険を防止する。
Prior Art> Very high reliability is required for data in a ROM in a computer system such as a CNC. Therefore, the system constantly monitors the inside of the ROM, and when the data changes from the original data or a defect in the ROM is discovered,
The alarm lamp is lit and the operation is stopped immediately to prevent dangers such as runaway.

かかるROM内の監視の方法の1一つに、水平パリティ
チェック(サムチエツク)がある。第4図はROM内の
データのサムチエツタ方法を示したものであり、・は「
1」を、○は「0」を意味し、垂直方向に並んだbit
 1からbit 8までの・又は0(1又はO)の8ビ
ツトによりコードを表わしている。す12チエツクはR
OM内のデータを水平方向にROM容量に応じた所定長
さのブロックに区切り、各ブロック毎にパリティピッl
−F RBを付加し、該パリティピッ1〜FRBを含む
ブロック単位にrlJのピント総和が所定値(例えば、
偶数或いは奇数)となるようにパリティビットの値を定
めておき、システムにより例えば電源投入時に該パリテ
ィビットを含むブロック内のビット総和が所定値に一致
するかどうかパリティチェックを行い、一致しなければ
アラームランプを点灯して動作を停止する。
One method of monitoring within such a ROM is a horizontal parity check (sum check). Figure 4 shows the thumb check method for data in the ROM, and .
1”, ○ means “0”, bits arranged vertically
The code is represented by 8 bits from 1 to bit 8 or 0 (1 or O). 12 check is R
The data in the OM is divided horizontally into blocks of a predetermined length according to the ROM capacity, and a parity pick is applied to each block.
-FRB is added, and the total focus of rlJ is set to a predetermined value (for example,
The value of the parity bit is determined to be an even or odd number, and the system performs a parity check to see if the sum of bits in the block including the parity bit matches a predetermined value when the power is turned on. Turn on the alarm lamp and stop the operation.

〈発明が解決しようとしている課題〉 ところで、CNCの性能向上のために現行のROMを取
り外して容量の大きなROMに取り換えたい場合がある
。例えば、第5図に示すようなプリン1〜板P N T
 )こ実装されたROM12 (1個に限らない)は、
容量の異なるROMと取付の互換性があり、現行のRO
Mを取り外して、より容量の大きな別のROMに取り換
えが可能である。尚、第5図のプリント板PNTにはマ
イクロコンピュータシステムが構築されており、CPU
1.1、ROM12、RAM13.l1014が実装さ
れている。かかる場合において従来は、1、つのシステ
ムに1種類のROMを対象としたパリティチェック方法
しか用意していなかった。即ち、現行のシステムには現
行のROMの容量に対応したブロック長のパリティチェ
ック方法しか用意していなかった為に、現行ROMと異
なる容量のROMのパリティチェックを正しく行うこと
ができず、従って容量の異なるROMに取り換えること
はできないという問題があった。
<Problems to be Solved by the Invention> Incidentally, in order to improve the performance of the CNC, there are cases where it is desired to remove the current ROM and replace it with a ROM with a larger capacity. For example, pudding 1 to plate PNT as shown in FIG.
) The installed ROM12 (not limited to one) is
Installation is compatible with ROMs of different capacities, and the current RO
It is possible to remove M and replace it with another ROM with a larger capacity. A microcomputer system is built on the printed board PNT shown in Figure 5, and the CPU
1.1, ROM12, RAM13. l1014 is implemented. In such cases, conventionally, only a parity check method has been provided for one type of ROM in one system. In other words, because the current system only has a parity check method for a block length that corresponds to the current ROM capacity, it is not possible to correctly perform a parity check for a ROM with a different capacity than the current ROM, and therefore the capacity There was a problem that the ROM could not be replaced with a different ROM.

以上から本発明の目的は、容量の異なるR OMが実装
された場合においてもパリティチェックを正しく行うこ
とのできるROMパリティチェック方法を提供すること
のである。
From the above, it is an object of the present invention to provide a ROM parity check method that can correctly perform a parity check even when ROMs with different capacities are installed.

く課題を解決するための手段〉 本発明の課題は、ROM容量に応じたパリティチェック
方法を複数用意する工程と、ROM内データのパリティ
チェックの際に、前記複数のパリティチェック方法をj
;項次用いてパリティチェックを行う工程により達成さ
れる。
Means for Solving the Problems> An object of the present invention is to prepare a plurality of parity check methods according to the ROM capacity, and to perform a parity check of the data in the ROM by using the plurality of parity check methods.
This is accomplished by performing a parity check using the following terms:

く作用〉 ROM容量に応じたパリティチェック方法を複数用、低
し、ROM内データのパリティチエ、ツクの際に、前記
複数のパリティチェック方法を順次行い、前記複数のパ
リティチェック方法のいずれかのパリティチェック方法
によるビット総和が前記所定値と一致すれば良と判定し
、いずれのパリティチェック方法においても一致しない
場合は不良と判定してアラームを発生する。
Function> Use or reduce the number of parity check methods according to the ROM capacity, perform the plurality of parity check methods in sequence when parity checking the data in the ROM, and check the parity of any of the plurality of parity check methods. If the bit sum determined by the checking method matches the predetermined value, it is determined to be good; if it does not match by any of the parity checking methods, it is determined to be defective and an alarm is generated.

〈実施例〉 第1図は本発明を実施する装置のブロック図である。<Example> FIG. 1 is a block diagram of an apparatus implementing the invention.

1はマイクロコンビコータ構成のシステム本体、2はキ
ーボード、3はデイスプレィ装置である。
Reference numeral 1 denotes a system body having a microcombicoater configuration, 2 a keyboard, and 3 a display device.

システム本体はプロセッサla、所定容量を有するRO
M1 b、RAMI c、l10(インタフェース)〕
dで構成され、これ等は1枚のプリン1〜板に実装され
ている。
The system main body includes a processor LA and an RO with a predetermined capacity.
M1 b, RAMI c, l10 (interface)]
d, and these are mounted on one pudding board.

プロセッサ1aには将来において容量の異なる別のRO
Mが実装されることを予想して、異なる容量に応じた複
数のパリティチェック方法PCi(i=1.21  ・
・n)が用意されている。
Processor 1a will have another RO with a different capacity in the future.
Anticipating that M will be implemented, multiple parity check methods PCi (i=1.21 ・
・n) is available.

第2図は容量の異なるROMに応じたパリティチェック
方法PCiの説明図であり、第2図(a)はROM容量
がIM(メガビット)のパリティチェック方法PCIの
説明図、第2図(b)はROM容量が2Mのパリティチ
ェック方法PC2の説明図、第2図(C)はROM容量
がnM(メガビット)のパリティチェック方法PCnの
説明図である。
FIG. 2 is an explanatory diagram of the parity check method PCi according to ROMs with different capacities, FIG. 2(a) is an explanatory diagram of the parity check method PCI for ROM capacities of IM (megabits), and FIG. 2(b) is an explanatory diagram of a parity check method PC2 with a ROM capacity of 2M, and FIG. 2(C) is an explanatory diagram of a parity check method PCn with a ROM capacity of nM (megabits).

第2図においては、ROM内のデータの一部が示されて
おり、・は「1」を、0は「0」を意味し、垂直方向に
並んだbit 1−からbj、t 8までの・又はO(
1又はO)の8ビツトによりコードが表わされている。
In Fig. 2, a part of the data in the ROM is shown, ・ means "1", 0 means "0", and bits 1- to bj, t8 arranged in the vertical direction are shown.・Or O(
The code is represented by 8 bits (1 or O).

ROM容量がIMの場合には該ROM内のデータを水平
方向に1Mの容量に応じた所定のブロック長BLI (
第2図(a))に区切り、各ブロック毎にパリティビッ
トPRBIを付加し、パリティビットPRBIを含むブ
ロック単位の「1」のビット総和が所定値(例えば、「
1」の総和が偶数)となるように該パリティビットの値
を定でいる。即ち、第1のパリティチェック方法PCI
はブロック長BLI’毎にパリティチェックを行うもの
である。
When the ROM capacity is IM, the data in the ROM is horizontally divided into a predetermined block length BLI (
A parity bit PRBI is added to each block, and the total bit sum of "1" in each block including the parity bit PRBI is set to a predetermined value (for example, "
The value of the parity bit is determined so that the sum of 1' is an even number. That is, the first parity check method PCI
performs a parity check for each block length BLI'.

ROM容量が2Mの場合には、該2MのROM内のデー
タを水平方向に2Mの容量に応じた所定のブロック長B
L2 (第2図(b))に区切り、各ブロック毎にパリ
ティビットFRB2を付加し、パリティビットPRB2
を含むブロック単位の「1」のビット総和が偶数となる
ように該パリティビットの値を定めている。従って第2
のパリティチェック方法PC2はブロック長BL2’毎
にパリティチェックを行うものである。
When the ROM capacity is 2M, the data in the 2M ROM is horizontally divided into a predetermined block length B according to the 2M capacity.
L2 (Fig. 2(b)), a parity bit FRB2 is added to each block, and a parity bit PRB2 is added to each block.
The value of the parity bit is determined so that the sum of bits of "1" in block units including "1" is an even number. Therefore, the second
The parity check method PC2 performs a parity check for each block length BL2'.

ROM容量がnM (n=4.8.16 ・・)の場合
には該nMのROM内のデータを水平方向にnMの容量
に応じた所定のブロック長BLn (第2図(C))に
区切り、各ブロック毎にパリティビットPRBnを付加
し、パリティビットPRBnを含むブロック単位の「1
」のビット総和が偶数となるように該パリティビットの
値を定めている。即ち、第nパリティチェック方法PC
nはブロック長BLn’毎にパリティチェックを行うも
のである。
When the ROM capacity is nM (n=4.8.16...), the data in the nM ROM is horizontally divided into a predetermined block length BLn (Fig. 2 (C)) according to the nM capacity. A parity bit PRBn is added to each block, and "1" is added to each block including the parity bit PRBn.
The value of the parity bit is determined so that the bit sum of `` is an even number. That is, the nth parity check method PC
n is for performing a parity check every block length BLn'.

第3図は本発明のROMパリティチェック方法の処理の
流れ図である。以下、第3図の流れ図に沿って本発明の
ROMパリティチェック処理を説明する。
FIG. 3 is a flowchart of the process of the ROM parity check method of the present invention. The ROM parity check process of the present invention will be explained below along the flowchart of FIG.

オペレータがキーボード2を用いて所定の操作によりシ
ステムの起動を行うと、プロセッサ1aは用意されたパ
リティチェック方法のうち第1のパリティチェック方法
PCIを用いてパリティチェックを行う。即ち、ROM
内のデータを水平方向に1M用のブロック長BLI’毎
に区切ってパリティチェックを行い、ビット総和が偶数
となっているかどうか判断する(ステップ101及びス
テップ102)。判断の結果、偶数であれば良として、
更に第1のパリティチェック方法PCIでパリティチェ
ックを続けながらROM1bのデータを読み進む。
When the operator starts up the system through a predetermined operation using the keyboard 2, the processor 1a performs a parity check using the first parity check method PCI among the prepared parity check methods. That is, ROM
The data within is divided horizontally into blocks of 1M block length BLI', a parity check is performed, and it is determined whether the bit sum is an even number (steps 101 and 102). As a result of judgment, if it is an even number, it is good.
Further, the data in the ROM 1b is read while continuing the parity check using the first parity check method PCI.

一方、ステップ102の判断の結果、奇数であれば、プ
ロセッサ1aは第2のパリティチェック方法PC2を用
いてROM1b内のパリティチェックを行う。即ち、R
OM1b内のデータを水平方向に2Mのブロック長BL
2’毎に区切ってパリティチェックを行い、ビット総和
が偶数となっているかどうか判断する(ステップ103
及びステップ104)。判断の結果、偶数であれば良と
して、更に第2のパリティチェック方法PC2でパリテ
ィチェックを続けながらROM1bのデータを読み進む
On the other hand, if the result of the determination in step 102 is an odd number, the processor 1a performs a parity check in the ROM 1b using the second parity check method PC2. That is, R
The data in OM1b is horizontally divided into block length BL of 2M.
A parity check is performed for every 2', and it is determined whether the total bit sum is an even number (step 103).
and step 104). As a result of the judgment, if the number is even, it is acceptable, and the data in the ROM 1b is read while continuing the parity check using the second parity check method PC2.

一方、ステップ104の判断の結果、奇数であれば、プ
ロセッサ1aは第nのパリティチェック方法PCnを用
いてROM1b内のパリティチェックを行う。即ち、R
OM1b内のデータを水平方向にnMビットのブロック
長BLn’毎に区切ってパリティチェックを行い、ビッ
ト総和が偶数となっているかどうか判断する(ステップ
105及びステップ106)。判断の結果、偶数であれ
ば良として、更に第nのパリティチェック方法PCnで
パリティチェックを続けながらROM1bのデータを読
み進む。
On the other hand, if the result of the determination in step 104 is an odd number, the processor 1a performs a parity check in the ROM 1b using the nth parity check method PCn. That is, R
The data in OM1b is horizontally divided into block lengths BLn' of nM bits, a parity check is performed, and it is determined whether the bit sum is an even number (steps 105 and 106). As a result of the judgment, if the number is even, it is acceptable, and the data in the ROM 1b is read while continuing the parity check using the n-th parity check method PCn.

一方、ステップ106の判断の結果、奇数であれば、換
言すれば、用意したパリティチェック方法PCi (i
=1.2・・n)がいずれも奇数であれば、ROM1b
の不良等とみなし、デイスプレィ装置3のアラームラン
プを点灯すると共に、動作を停止し、ROMパリティチ
ェック処理を終了する。
On the other hand, if the result of the judgment in step 106 is an odd number, in other words, the prepared parity check method PCi (i
=1.2...n) are all odd numbers, ROM1b
It is assumed that the display device 3 is defective, the alarm lamp of the display device 3 is turned on, the operation is stopped, and the ROM parity check process is ended.

〈発明の効果〉 以上本発明によれば、ROM容量に応じたパリティチェ
ック方法を複数用意し、ROM内データのパリティチェ
ックの際に、前記複数のパリティチェック方法を順次行
い、前記複数のパリテイチエラグ方法のいずれかのパリ
ティチェック方法によるビット総和が前記所定値と一致
すれば良と判定し、いずれのパリティチェック方法にお
いても一致しない場合は不良と判定してアラームを発生
するように構成したから、容量の異なるROMが実装さ
れた場合においてもパリティチェックを正しく行うこと
ができる。
<Effects of the Invention> According to the present invention, a plurality of parity check methods are prepared according to the ROM capacity, and the plurality of parity check methods are sequentially performed when checking the parity of data in the ROM, and the plurality of parity check lag methods are performed in sequence. If the sum of bits by any of the parity check methods matches the predetermined value, it is determined to be good, and if it does not match by any of the parity check methods, it is determined to be defective and an alarm is generated. Even if different ROMs are installed, parity check can be performed correctly.

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

第1図は本発明を実施する装置のブロック図、第2図は
本発明の容量の異なるROMに応じたパリティチェック
方法P Ciの説明図、第3図は本発明のROMパリテ
ィチェック方法の処理の流れ図、 第4図及び第5図は従来例の説明図である。 1・・システム本体、 2・・キーボード、 3・・デイスプレィ装置、 1a・・プロセッサ、 1b・・ROM。 PCi・・パリティチェック方法、 BLi・・ブロック長
FIG. 1 is a block diagram of an apparatus implementing the present invention, FIG. 2 is an explanatory diagram of the parity check method PCi according to the present invention according to ROMs with different capacities, and FIG. 3 is a process of the ROM parity check method of the present invention. The flowchart of FIG. 4 and FIG. 5 are explanatory diagrams of the conventional example. 1. System body, 2. Keyboard, 3. Display device, 1a. Processor, 1b. ROM. PCi: Parity check method, BLi: Block length

Claims (2)

【特許請求の範囲】[Claims] (1)ROM内のデータを所定長さのブロックに区切り
、各ブロック毎にパリテイビットを付加し、パリテイビ
ットを含むブロック内のビット総和が所定値となるよう
にパリテイビットの値を定めておき、システムによりR
OM内データのパリテイチェックを行うROMパリテイ
チェック方法において、 ROM容量に応じたパリテイチェック方法を複数用意し
、 ROM内データのパリテイチェックの際に、前記複数の
パリテイチェック方法を順次行い、前記複数のパリテイ
チェック方法のいずれかのパリテイチェック方法による
ビット総和が前記所定値と一致すれば良と判定し、いず
れのパリテイチェック方法においても一致しない場合は
不良と判定してアラームを発生することを特徴とするR
OMパリテイチェック方法。
(1) Divide the data in the ROM into blocks of a predetermined length, add a parity bit to each block, and set the value of the parity bit so that the sum of bits in the block including the parity bit becomes the predetermined value. R is determined by the system.
In the ROM parity check method for checking the parity of data in the OM, multiple parity check methods are prepared according to the ROM capacity, and when checking the parity of the data in the ROM, the multiple parity check methods are sequentially performed. If the bit sum by any one of the plurality of parity check methods matches the predetermined value, it is determined to be good, and if it does not match by any of the parity check methods, it is determined to be defective. R characterized by generating an alarm
How to check OM parity.
(2)前記複数のパリテイチェック方法はパリテイビッ
トを付加するブロック長がそれぞれ異なることを特徴と
する特許請求の範囲第(1)項記載のROMパリテイチ
ェック方法。
(2) The ROM parity check method according to claim (1), wherein the plurality of parity check methods have different block lengths to which parity bits are added.
JP63215188A 1988-08-31 1988-08-31 Rom parity check method Pending JPH0264836A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63215188A JPH0264836A (en) 1988-08-31 1988-08-31 Rom parity check method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63215188A JPH0264836A (en) 1988-08-31 1988-08-31 Rom parity check method

Publications (1)

Publication Number Publication Date
JPH0264836A true JPH0264836A (en) 1990-03-05

Family

ID=16668136

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63215188A Pending JPH0264836A (en) 1988-08-31 1988-08-31 Rom parity check method

Country Status (1)

Country Link
JP (1) JPH0264836A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04184649A (en) * 1990-11-20 1992-07-01 Fujitsu Ltd Information processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04184649A (en) * 1990-11-20 1992-07-01 Fujitsu Ltd Information processor

Similar Documents

Publication Publication Date Title
US5898863A (en) Method and apparatus for determining I/O size distribution of an input/output system and its use for load simulation
CN107958456A (en) Dispensing detection method, device and electronic equipment
CN110737806B (en) Global ID generation method and device for business entity
JP2991138B2 (en) Memory LSI failure analysis method
CN115599750A (en) Intelligent substation virtual circuit checking method, system, equipment and storage medium
WO2024120169A1 (en) Server, server asset information acquisition method and apparatus, and server asset information providing method and apparatus
WO1997016786A1 (en) Detecting memory problems in computers
JPH0264836A (en) Rom parity check method
CN112685275A (en) Algorithm strategy searching method and device, electronic equipment and storage medium
CN114185502B (en) Log printing method, device, equipment and medium based on production line environment
CN108540308A (en) A kind of windows application platform fault self-recovery system and methods based on SCOM
CN114301658A (en) Kafka-based method for collecting data links of distributed system
JPS63254539A (en) Error log system
JPS6083159A (en) Program check system
JP2002216495A (en) Method, recording medium and apparatus for redundancy relieving analysis for memory device
JPH01162300A (en) Rom checking circuit testing system
JPS5856291A (en) Self-diagnosing method of memory
JPH05324370A (en) Self-diagnostic method of program
JPH01118934A (en) Analysis/editing output system for error information
CN116707723A (en) Communication data acquisition method and device and railway vehicle
CN113296682A (en) Data reading and writing method of vehicle control unit
JPS61165158A (en) Data checking system of storage device
TW202326461A (en) Method and device for automatically checking authority of computer folder
CN116662314A (en) Multi-source data storage method and system
JPH0675813A (en) Artificial fault generating method for external storage device