JPS59163651A - Parity checking device for program data - Google Patents

Parity checking device for program data

Info

Publication number
JPS59163651A
JPS59163651A JP58038742A JP3874283A JPS59163651A JP S59163651 A JPS59163651 A JP S59163651A JP 58038742 A JP58038742 A JP 58038742A JP 3874283 A JP3874283 A JP 3874283A JP S59163651 A JPS59163651 A JP S59163651A
Authority
JP
Japan
Prior art keywords
parity
data
program
rom
bit
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
JP58038742A
Other languages
Japanese (ja)
Inventor
Takenori Nemoto
根本 武記
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.)
Omron Corp
Original Assignee
Tateisi Electronics Co
Omron Tateisi Electronics Co
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 Tateisi Electronics Co, Omron Tateisi Electronics Co filed Critical Tateisi Electronics Co
Priority to JP58038742A priority Critical patent/JPS59163651A/en
Publication of JPS59163651A publication Critical patent/JPS59163651A/en
Pending 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
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1076Parity data used in redundant arrays of independent storages, e.g. in RAID systems
    • 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
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1008Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Detection And Correction Of Errors (AREA)

Abstract

PURPOSE:To obtain the accurate parity information from a program loader of high reliability by storing successively the parity bits produced every byte of the ROM data to an RAM for parity when the program data including the ROM data is loaded. CONSTITUTION:An ROM1 of a parity checking device stores the system monitor, data, a part of a program, etc., and an RAM2 stores the parity bit of the ROM data including an initial program loader. The data of the ROM1 is applied to a parity checking circuit 4 when a reading gate 3 is set in a reading mode, and this data is checked with the parity bit given from the RAM2. Then a parity error, if detected, is applied to an AND gate 7, and an AND is obtained with the output of an FF6. Then a parity error signal of each byte of data is delivered to a CPU. Thus the parity information is obtained from a program loader having high reliability of data. This ensures an accurate parity check.

Description

【発明の詳細な説明】 (al技術分野 この発明はFROMなどの不揮発性RAMを含む8ビッ
トROMに記憶されているプログラムデータのパリティ
チェック装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a parity check device for program data stored in an 8-bit ROM including a non-volatile RAM such as FROM.

(b1発明の背景 一般に使用されているROM (FROMなどの不揮発
性RAMを含む)は8ビツト構成にあり(例えば16K
X8ビツト)、パリティビットを第9ビツト目の情報と
して付加することは通常なされていない。しかしながら
、ROMといえどもMTBFに表現されるある故障率を
持っているため、RAM内でのデータ化けによってシス
テムに大きな影響を与える場合にはパリティビットを設
けて信頼性を確保する必要がある。このような要求に答
えるためには、例えばROMの内部にパリティ付加プロ
グラムを準備しておき、電源投入時にROM自身に記憶
されているプログラムデータを読みだしてはパリティビ
ットを生成してパリティ記憶用RAMの適当な領域に記
憶しておく方法が考えられる。
(b1 Background of the Invention Generally used ROM (including non-volatile RAM such as FROM) has an 8-bit configuration (for example, 16K
X8 bits), and a parity bit is not normally added as information on the 9th bit. However, even ROM has a certain failure rate expressed in MTBF, so if garbled data in RAM has a large impact on the system, it is necessary to provide a parity bit to ensure reliability. In order to meet such demands, for example, a parity addition program is prepared inside the ROM, and when the power is turned on, the program data stored in the ROM itself is read out, a parity bit is generated, and the program is used for parity storage. One possible method is to store it in an appropriate area of RAM.

しかしこの方法では、パリティビットを生成するための
元のデータがROM自身に記憶されているプログラムデ
ータであるために、ROMの内部がすでに破壊されてい
るときには生成されるパリティビットそのものが正しく
なくなる。すなわち、パリティビットの信頼度に欠ける
欠点がある。
However, in this method, the original data for generating the parity bit is program data stored in the ROM itself, so if the inside of the ROM has already been destroyed, the generated parity bit itself will not be correct. That is, there is a drawback that the reliability of the parity bit is lacking.

(C1発明の目的 この発明は、パリティ情報をデータの信頼性の高いプロ
グラムローダから得るようにして、プログラム実行時の
プログラムデータのパリティチェックをより正確におこ
なうことのできるパリティチェック装置の提供を目的と
する。
(C1 Purpose of the Invention The purpose of the present invention is to provide a parity check device that can more accurately perform a parity check on program data during program execution by obtaining parity information from a program loader with high data reliability. shall be.

(dJ発明の構成および効果 この発明は要約すれば、ROMデータを含むプログラム
データのロード時に前記ROMデータの1バイト毎に生
成したパリティビットを順に記憶するパリティ記憶用R
AMを設け、Rik:Mデータのパリティピントをプロ
グラムローダからのデータに基づいて得るようにしたも
のである。
(Structure and Effect of dJ Invention) To summarize, the present invention consists of a parity storage R for sequentially storing parity bits generated for each byte of ROM data when program data including ROM data is loaded.
AM is provided, and the parity focus of Rik:M data is obtained based on data from the program loader.

この発明によれば、パリティビットをROM自身から生
成するのではな(、信頼性の高いプログラムローダから
のデータに基づいて生成するためにパリティビットの信
頼性が格段に向上し、ROMの内部が破壊したとき確実
にパリティエラーを発生させることができる。
According to this invention, the reliability of the parity bit is significantly improved because the parity bit is not generated from the ROM itself (but is generated based on data from a highly reliable program loader), and the parity bit is generated based on data from a highly reliable program loader. It is possible to reliably generate a parity error when destroyed.

(e)実施例 第1図はこの発明の実施例であるパリティチェック装置
のブロック図である。図において、1は16Kx8ビッ
トROMであり、第2図に示すようにIPL(Init
ial  Programl、oader)、  シス
テムモニタ、l0C3などを記憶する。2は16KX1
ビットRAMであり、IPLを含むROMデータのパリ
ティビットを記憶する。READゲート3はREADモ
ード時にROMIからの読み出しデータをCPUデータ
バスに出力する。パリティチェック回路4は、ROMI
からの8ビツトの読み出しデータをRAM2からのパリ
ティビットによってパリティチェックする。パリティエ
ラーがあればエラー信号をアンドゲート7を介してCP
Uに出力する。フリップフロップ6のセット端子Sには
パリティチェック回路動作開始信号とシステムリセット
信号とがOR入力し、リセット端子Rにはパリティチェ
ック回路動作停止信号が入力する。また、セット出力端
子Qはアンドゲート7に接続されている。以上の構成か
らフリップフロップ6がセント状態にあるとき、すなわ
ちパリティチェック回路動作開始信号またはシステムリ
セット信号の入力後、パリティチェック回路動作停止信
号が入力するまでの間、READモード時においてRO
M1から読み出されたデータのパリティチェックが行わ
れ、パリティエラーがあればCPUに対してエラー信号
が送出される。
(e) Embodiment FIG. 1 is a block diagram of a parity check device which is an embodiment of the present invention. In the figure, 1 is a 16Kx8-bit ROM, and as shown in FIG.
ial Program, oader), system monitor, l0C3, etc. 2 is 16KX1
It is a bit RAM and stores parity bits of ROM data including IPL. The READ gate 3 outputs read data from the ROMI to the CPU data bus in the READ mode. The parity check circuit 4 is a ROMI
The parity of the 8-bit read data from the RAM 2 is checked using the parity bit from the RAM2. If there is a parity error, the error signal is sent to CP via AND gate 7.
Output to U. A parity check circuit operation start signal and a system reset signal are OR-input to the set terminal S of the flip-flop 6, and a parity check circuit operation stop signal is input to the reset terminal R. Further, the set output terminal Q is connected to an AND gate 7. From the above configuration, when the flip-flop 6 is in the sent state, that is, after the parity check circuit operation start signal or system reset signal is input until the parity check circuit operation stop signal is input, the RO is in the READ mode.
A parity check is performed on the data read from M1, and if there is a parity error, an error signal is sent to the CPU.

次に上記RAM2へのパリティビットの書込み手順につ
いて第3図を参照して説明する。第3図(A)はIPL
実行手順の要部を示すフローチャートである。
Next, the procedure for writing the parity bit into the RAM 2 will be explained with reference to FIG. Figure 3 (A) is IPL
It is a flowchart which shows the main part of an execution procedure.

まず、ステップnl(以下、ステップniを単にniと
いう。)にてアドレス$0000($:16進数を表す
シンボル)からプログラムをスタートする。アドレス$
0000はIPLの最初の番地である。図示しないプロ
グラムロード実行有無の設定スイッチの設定状態をn2
で判定し、ロードを行うときに限りn3へ進み、さらに
図示しないパリティゼネレート設定スイ・ソチの設定状
態を判定し、バリティゼネレートする場合はn4へ進み
、ゼネレートしない場合はスキップしてn5へ進む。電
源投入後、プログラムロードを実行する必要のない場合
は、すべてのRAMが不揮発性で構成される場合などで
あり、このようなときには必ずしもプログラムロードを
実行する必要がない。また、n3でバリティゼネレート
するときにn4においてパリティチェック回路の動作を
停止するのは、■PL自身の読み出しでパリティエラー
が発生しないようにする必要があるためである。以上の
処理を終えて以下n5でプログラムローダを起動し、n
6においてプログラムローダから入力されるデータを$
 OOOO−$FFFFまで順にストアする。ロードが
終了すると07でパリティチェック回路4の動作を再開
して一般プログラムの実行に移る。なお、n4ではパリ
ティチェック回路動作開始信号をフリップフロップ6の
セント端子に与え、n7ではパリティチェック回路動作
停止信号をフリップフロップ6のリセット端子に与える
First, the program is started from address $0000 ($: symbol representing a hexadecimal number) at step nl (hereinafter, step ni is simply referred to as ni). Address $
0000 is the first address of the IPL. Set the setting state of the program load execution/non-execution switch (not shown) to n2.
, and proceed to n3 only when loading, then judge the setting status of the parity generation rate setting switch (not shown), and proceed to n4 if parity generation is to be performed, and skip to n5 if not to generate parity. Proceed to. A case where there is no need to execute a program load after power is turned on is a case where all RAM is configured as non-volatile, and in such a case, it is not necessarily necessary to execute a program load. Further, the reason why the operation of the parity check circuit is stopped at n4 when parity generation is performed at n3 is because it is necessary to prevent a parity error from occurring when reading the PL itself. After completing the above processing, start the program loader at n5 below, and n
In step 6, the data input from the program loader is $
Store in order from OOOO to $FFFF. When the loading is completed, the operation of the parity check circuit 4 is restarted at 07, and execution of the general program is started. Note that at n4, a parity check circuit operation start signal is applied to the cent terminal of the flip-flop 6, and at n7, a parity check circuit operation stop signal is applied to the reset terminal of the flip-flop 6.

第3図(B)は上記n6でのデータのロード手順を示す
フローチャートである。
FIG. 3(B) is a flowchart showing the data loading procedure at n6.

まず、n60でストアアドレスを$0000にセットす
る。続いてn61においてプログラムローダから1バイ
トデータを読み取りそのデータのパリティビットをゼネ
レートするとともに(n62)、パリティ付きのデータ
に対して書込み命令を出す(n63)。n63ではパリ
ティデータがRAM2に書き込まれることになるがこの
ときのROMデータは書込みを行うことができないので
(ROMIはFROM)実際上無視される。1バイトの
パリティビットの書込みを終了すると、次にn64にお
いてストアアドレスをインクリメントし再びn61に戻
る。n61〜n64の処理をすべてのアドレスについて
終了した段階でロードを終了する。
First, the store address is set to $0000 using n60. Next, at n61, 1 byte data is read from the program loader, a parity bit of the data is generated (n62), and a write command is issued for the data with parity (n63). In n63, parity data is written to RAM2, but since ROM data at this time cannot be written (ROMI is FROM), it is actually ignored. When writing of the 1-byte parity bit is completed, the store address is incremented at n64 and the process returns to n61. Loading ends when the processing of n61 to n64 is completed for all addresses.

以上の手順によって電源投入後、プログラムデータをロ
ードしたときRAM2にROMデータに対応するパリテ
ィビットを記憶することができる
By the above procedure, when the program data is loaded after the power is turned on, the parity bit corresponding to the ROM data can be stored in RAM2.

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

第1図はこの発明の実施例であるパリティチェック装置
のブロック図、第2図はパリティチェック装置が適用さ
れるシステムに使用されるメモリ構成図、第3図(A)
、  (B)はI P Lの動作手順の要部を示すフロ
ーチャートである。 1−ROM、2−(パリティ記憶用)RAM。 4−パリティチェック回路。 出願人  立石電機株式会社 代理人  弁理士 小森久夫
FIG. 1 is a block diagram of a parity check device that is an embodiment of the present invention, FIG. 2 is a memory configuration diagram used in a system to which the parity check device is applied, and FIG. 3 (A)
, (B) is a flowchart showing the main part of the operation procedure of IPL. 1-ROM, 2-RAM (for parity storage). 4-Parity check circuit. Applicant Tateishi Electric Co., Ltd. Agent Patent Attorney Hisao Komori

Claims (1)

【特許請求の範囲】[Claims] (1)ROMデータを含むプログラムデータのロード時
に前記ROMデータの1バイト毎に生成したパリティビ
ットを順に記憶するパリティ記憶用RAMと、ROMに
記憶されたプログラムの実行時にそのプログラムデータ
を前記RAMに記憶されているパリティビットによって
パリティチェックするパリティチェック回路と、を備え
てなるプログラムデータのパリティチェック装置。
(1) A parity storage RAM that sequentially stores parity bits generated for each byte of the ROM data when loading program data including ROM data, and a parity storage RAM that stores the program data in the RAM when executing a program stored in the ROM. A parity check device for program data, comprising: a parity check circuit that performs a parity check using a stored parity bit.
JP58038742A 1983-03-08 1983-03-08 Parity checking device for program data Pending JPS59163651A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58038742A JPS59163651A (en) 1983-03-08 1983-03-08 Parity checking device for program data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58038742A JPS59163651A (en) 1983-03-08 1983-03-08 Parity checking device for program data

Publications (1)

Publication Number Publication Date
JPS59163651A true JPS59163651A (en) 1984-09-14

Family

ID=12533763

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58038742A Pending JPS59163651A (en) 1983-03-08 1983-03-08 Parity checking device for program data

Country Status (1)

Country Link
JP (1) JPS59163651A (en)

Similar Documents

Publication Publication Date Title
JPS6162954A (en) Error inspection and correction circuit used together with electrically programmable and electrically erasable memory array
JPH07191915A (en) Computer system, memory card and its operating method
US20080016415A1 (en) Evaluation system and method
US4368532A (en) Memory checking method
CN115756984A (en) Memory test method, device, equipment and storage medium
JPH1040122A (en) Computer
JPH04178580A (en) Self diagnostic device for semiconductor memory
JPS59163651A (en) Parity checking device for program data
JPH03138742A (en) Memory system
JP2007058450A (en) Semiconductor integrated circuit
CN113470723A (en) Read retry test method and device, readable storage medium and electronic equipment
JPS6146864B2 (en)
JPH03142800A (en) Electrically erasable and writable programmable read only memory
JPS6130301B2 (en)
JP2910692B2 (en) Testing method of random access memory
JPS60108944A (en) Storage device
JPS61846A (en) Test method for normalness of memory contents
EP0971362B1 (en) Data integrity checking apparatus
CN116417058A (en) Improved pressure testing method and device, storage medium and electronic equipment
JPH06187193A (en) Program debugging device and microcomputer
CN112214419A (en) Method and device for detecting similarity of component codes
JPS60549A (en) Memory testing system
JPH0226252B2 (en)
JPH02126344A (en) Program processing time measuring system
JPS59123054A (en) Initial detecting system