JPH03168838A - Parity checking system - Google Patents

Parity checking system

Info

Publication number
JPH03168838A
JPH03168838A JP1307469A JP30746989A JPH03168838A JP H03168838 A JPH03168838 A JP H03168838A JP 1307469 A JP1307469 A JP 1307469A JP 30746989 A JP30746989 A JP 30746989A JP H03168838 A JPH03168838 A JP H03168838A
Authority
JP
Japan
Prior art keywords
data
parity
storage circuit
cpu
parity 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
JP1307469A
Other languages
Japanese (ja)
Inventor
Kazuhiro Horie
堀江 一宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP1307469A priority Critical patent/JPH03168838A/en
Publication of JPH03168838A publication Critical patent/JPH03168838A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate the need for preparing a parity forming part, a parity error detecting part, a parity bit storing circuit, etc., by allowing a CPU to execute parity bit formation and parity bit check. CONSTITUTION:In the case of storing data in an information storage circuit 2 by the CPU 1, the CPU 1 is allowed to form a parity bit corresponding to the data to store the parity bit in the circuit 2 together with the data. At the time of reading out the data from the circuit 2, the read data are checked based upon the parity bit read out together with the data. Consequently, the parity forming part, the parity error detecting part, the parity bit storage circuit, etc., can be omitted, the number of hardwares can be reduced and the whole cost of the system can be reduced.

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明は情報処理システム等において使用されるバリテ
ィチェツク方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to a parity check method used in information processing systems and the like.

(従来の技術) 各種の情報処理システムにおいては、パリティチェック
等のエラー検出処理を行なって処理データに誤りが発生
したとき、これを検出して誤った処理が行われるのを防
止している。
(Prior Art) In various information processing systems, when an error occurs in processed data, it is detected by performing error detection processing such as a parity check to prevent erroneous processing from being performed.

第3図はこのようなパリティチェック機能を有する情報
処理システムの一例を示すブロック図である。
FIG. 3 is a block diagram showing an example of an information processing system having such a parity check function.

この図に示す情報処理システムは各種の処理を行なうC
PUIOIと、このCPUIOIの記憶エリアとして使
用される8ビットの情報記憶回路102と、前記CPU
IOIが前記情報記憶回路102にデータを書き込むと
きパリティビットを生或するバリティ生或部103と、
このパリティ生或部103によって生或されたバリティ
ビットを記憶する1ビットのパリティビット記憶回路1
04と、前記CPUIOIが前記情報記憶回路102に
書き込まれているデータを読み出すとき前記パリティビ
ット記憶回路104から前記データに対応するパリティ
ービットを読み出して前記データが正しいかどうかをチ
ェックするパリティエラー検出部105とを備えており
、バリティエラー検出部105によってバリティエラー
が検出されたとき、エラー処理回路(図示は省略する)
によってエラー処理が行われる。
The information processing system shown in this figure is a C
A PUIOI, an 8-bit information storage circuit 102 used as a storage area for this CPUIOI, and the CPU
a parity generation unit 103 that generates a parity bit when the IOI writes data to the information storage circuit 102;
A 1-bit parity bit storage circuit 1 that stores the parity bit generated by the parity generation section 103.
04, and a parity error detection unit that reads a parity bit corresponding to the data from the parity bit storage circuit 104 and checks whether the data is correct when the CPUIOI reads data written in the information storage circuit 102. 105, and when a parity error is detected by the parity error detection unit 105, an error processing circuit (not shown) is provided.
Error handling is performed by

(発明が解決しようとする課題) しかしながら上述した従来のパリティチェック方式を用
いた情報処理システムにおいては、バリティチェツク機
能を実現するために、バリティ生成部103と、バリテ
ィエラー検出部105と、バリティビット記憶回路1,
04とを必要としているので、その分だけハードウェア
量が多くなり、システム全体のコストが高くなってしま
うという問題があった。
(Problem to be Solved by the Invention) However, in the information processing system using the conventional parity check method described above, in order to realize the parity check function, the parity generation section 103, the parity error detection section 105, Verity bit storage circuit 1,
04, the amount of hardware increases accordingly, resulting in a problem that the cost of the entire system increases.

本発明は上記の事情に鑑み、パリティ生成部やパリティ
エラー検出部、パリティビット記憶回路等を不要にする
ことができ、これによってハードウエア量を少なくして
システム全体のコストダウンを図ることができるバリテ
ィチェツク方式を提供することを目的としている。
In view of the above circumstances, the present invention makes it possible to eliminate the need for a parity generation section, a parity error detection section, a parity bit storage circuit, etc., thereby reducing the amount of hardware and reducing the cost of the entire system. The purpose is to provide a verity check method.

〔発明の構成〕[Structure of the invention]

(課題を解決するための手段) 上記の目的を達成するために本発明によるパリティチェ
ック方式は、情報処理を行なうCPUと、このCPUの
データ格納エリアとして使用される情報記憶回路とを備
え、前記CPUによって情報記憶回路にデータを記憶さ
せるとき、前記CPUによって前記データに対応したパ
リティピットを生成して前記データとともに前記情報記
憶回路に格納し、この情報記憶回路からデータを読み出
すとき、このデータとともに読み出されるパリティビッ
トに基づいて読み出された前記データをチェックするこ
とを特徴としている。
(Means for Solving the Problems) In order to achieve the above object, a parity check system according to the present invention includes a CPU that performs information processing and an information storage circuit used as a data storage area of this CPU, When the CPU stores data in the information storage circuit, the CPU generates a parity pit corresponding to the data and stores it in the information storage circuit together with the data, and when reading data from the information storage circuit, the CPU generates a parity pit corresponding to the data. It is characterized in that the read data is checked based on the read parity bit.

(作用) 上記の構成において、CPUによって情報記憶回路にデ
ータを記憶させるとき、前紀CPUによってデータに対
応したパリティピットが生成されて前記データとともに
前記情報記憶回路に格納され、またこの情報記憶回路か
らデータが読み出されるとき、このデータとともに読み
出されるパリティピットに基づいて読み出されたデータ
がチェックされる。
(Operation) In the above configuration, when data is stored in the information storage circuit by the CPU, a parity pit corresponding to the data is generated by the previous generation CPU and stored in the information storage circuit together with the data, and the information storage circuit When data is read from the , the read data is checked based on the parity pits that are read together with this data.

(実施例) 第1図は本発明によるパリティチェック方式の一実施例
を用いた情報処理システムの一例を示すブロック図であ
る。
(Embodiment) FIG. 1 is a block diagram showing an example of an information processing system using an embodiment of the parity check method according to the present invention.

この図に示す情報処理システムは各種の処理を行なうC
PUIと、このCPUIの記憶エリアとして使用される
8ビットの情報記憶回路2とを備えており、CPUIが
情報記憶回路2に7ビットのデータを記憶するとき、1
ビットのパリティピットを生或してこれを前記データと
ともに情報記憶回路2に記憶させ、また前記CPUIが
情報記憶回路2から7ビットのデータを読み出すときこ
のデータとともにこのデータに対応するパリティビット
を一緒に読出してパリティチェツクを行ない、読み出し
たデータに間違いがあったとき、エラー処理を行なう。
The information processing system shown in this figure is a C
It is equipped with a PUI and an 8-bit information storage circuit 2 used as a storage area of this CPUI, and when the CPUI stores 7-bit data in the information storage circuit 2, 1
A bit parity pit is generated and stored in the information storage circuit 2 together with the data, and when the CPUI reads out 7-bit data from the information storage circuit 2, the parity bit corresponding to this data is also stored together with this data. The data is read out and a parity check is performed, and if there is an error in the read data, error handling is performed.

次に、第2図(a)、(b)を参照しながらこの実施例
の動作を説明する。
Next, the operation of this embodiment will be explained with reference to FIGS. 2(a) and 2(b).

まず、CPUIが情報記憶回路2に7ビットのデータを
書き込むとき、CPUIはこのデータをチェックして1
ビットのパリテイピットを生成した後(ステップST1
)、このバリティビットを前記データに付加して8ビッ
トのデータを生成し(ステップST2)、これを情報記
憶回路2に記憶させる(ステップST3)。
First, when the CPUI writes 7-bit data to the information storage circuit 2, the CPU checks this data and sets it to 1.
After generating bit parity pits (step ST1
), this parity bit is added to the data to generate 8-bit data (step ST2), and this is stored in the information storage circuit 2 (step ST3).

また、CPUIが情報記憶回路2から7ビッ1・のデー
タを読み出すとき(ステップSTIO)、CPUIはこ
のデータととともに読み出される1ビットのパリティピ
ットに基づいて前記データをチェックしてエラー検出を
行ない(ステップST11)、エラーが検出されなけれ
ば、前記7ビットのデータに基づいてデータ処理を行な
い(ステップST12)、またエラーが検出されれば、
エラー処理を行なってエラーに起因する誤った処理が行
われるのを防止する(ステップST13)。
Furthermore, when the CPUI reads out 7-bit 1. data from the information storage circuit 2 (step STIO), the CPUI checks the data based on the 1-bit parity pit read together with this data to perform error detection ( Step ST11), if no error is detected, data processing is performed based on the 7-bit data (step ST12), and if an error is detected,
Error processing is performed to prevent incorrect processing caused by errors from being performed (step ST13).

このようにこの実施例においては、CPU1によってパ
リティピットの生戒やパリティビソトのチェックを行な
うようにしているので、バリティ生成部やパリティエラ
ー検出部、パリティビット記憶回路等を不要にすること
ができ、これによってハードウエア量を少なくしてシス
テム全体のコストダウンを図ることができる。
As described above, in this embodiment, since the CPU 1 checks the parity pits and the parity bits, it is possible to eliminate the need for a parity generation section, a parity error detection section, a parity bit storage circuit, etc. This makes it possible to reduce the amount of hardware and reduce the cost of the entire system.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、バリティ生成部や
バリティエラー検出部、パリティビット記憶回路等を不
要にすることができ、これによってハードウエア量が少
なくしてシステム全体のコストダウンを図ることができ
る。
As explained above, according to the present invention, it is possible to eliminate the need for a parity generation section, a parity error detection section, a parity bit storage circuit, etc., thereby reducing the amount of hardware and reducing the cost of the entire system. be able to.

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

第1図は本発明によるパリティチェック方式の一実施例
を用いた情報処理システムの一例を示すブロック図、第
2図は同実施例の動作例を示すフローチャート、第3図
は従来から知られているバリティチェツク方式の一例を
用いた情報処理システムの一例を示すブロック図である
。 1・・・CPU 2・・・情報記憶回路
FIG. 1 is a block diagram showing an example of an information processing system using an embodiment of the parity check method according to the present invention, FIG. 2 is a flowchart showing an example of the operation of the embodiment, and FIG. 1 is a block diagram showing an example of an information processing system using an example of a parity check method. 1...CPU 2...Information storage circuit

Claims (1)

【特許請求の範囲】[Claims] (1)情報処理を行なうCPUと、このCPUのデータ
格納エリアとして使用される情報記憶回路とを備え、 前記CPUによって情報記憶回路にデータを記憶させる
とき、前記CPUによって前記データに対応したパリテ
ィビットを生成して前記データとともに前記情報記憶回
路に格納し、 この情報記憶回路からデータを読み出すとき、このデー
タとともに読み出されるパリティビットに基づいて読み
出された前記データをチェックすること、 を特徴とするパリティチェック方式。
(1) A CPU that performs information processing and an information storage circuit used as a data storage area of the CPU, and when the CPU stores data in the information storage circuit, the CPU stores a parity bit corresponding to the data. is generated and stored in the information storage circuit together with the data, and when data is read from the information storage circuit, the read data is checked based on a parity bit read out together with the data. Parity check method.
JP1307469A 1989-11-29 1989-11-29 Parity checking system Pending JPH03168838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1307469A JPH03168838A (en) 1989-11-29 1989-11-29 Parity checking system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1307469A JPH03168838A (en) 1989-11-29 1989-11-29 Parity checking system

Publications (1)

Publication Number Publication Date
JPH03168838A true JPH03168838A (en) 1991-07-22

Family

ID=17969451

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1307469A Pending JPH03168838A (en) 1989-11-29 1989-11-29 Parity checking system

Country Status (1)

Country Link
JP (1) JPH03168838A (en)

Similar Documents

Publication Publication Date Title
JP2772391B2 (en) Bad data algorithm
JPS62251949A (en) Error correcting method for memory device
JP2606862B2 (en) Single error detection and correction method
JPH03168838A (en) Parity checking system
JPH01292550A (en) Error detecting circuit
JP2818659B2 (en) Error correction method
JPH0520215A (en) Information processor
JPH06301604A (en) Storage reproducing system
JPH04115339A (en) Memory error processing system
JPH03290745A (en) Memory error detecting/correcting method
JPH0667912A (en) Error detection circuit
JPH02205955A (en) Error processing system for memory device
JPH03152643A (en) Double bit error control circuit
JPS6155131B2 (en)
JPH038040A (en) 1-bit error information storage device
JPH05224968A (en) Data check system
JPS6288177A (en) Memory device
JPH11296441A (en) Error correction circuit
JPS63216150A (en) Storage device
JPS63101947A (en) Error processing system
JPS59110098A (en) Error correcting device of data storage device
JPS6373437A (en) Checking system for parity circuit
JPH04145540A (en) Interface error checking system
JPH11161560A (en) Address propriety judgement device and address propriety judgement method for storage device
JPH076100A (en) Signal processor