[go: up one dir, main page]

JPH03184146A - Parity check method - Google Patents

Parity check method

Info

Publication number
JPH03184146A
JPH03184146A JP1323114A JP32311489A JPH03184146A JP H03184146 A JPH03184146 A JP H03184146A JP 1323114 A JP1323114 A JP 1323114A JP 32311489 A JP32311489 A JP 32311489A JP H03184146 A JPH03184146 A JP H03184146A
Authority
JP
Japan
Prior art keywords
data
parity
bit
area
memory
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
JP1323114A
Other languages
Japanese (ja)
Inventor
Koji Kakimoto
浩二 柿本
Yasushi Suzuki
恭 鈴木
Nobuaki Takahachi
高蜂 宣明
Masaaki Saito
正明 斎藤
Toru Iwano
岩野 徹
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.)
Fujitsu General Ltd
Original Assignee
Fujitsu General 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 Fujitsu General Ltd filed Critical Fujitsu General Ltd
Priority to JP1323114A priority Critical patent/JPH03184146A/en
Publication of JPH03184146A publication Critical patent/JPH03184146A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To omit a parity-only memory and to attain the reduction of the cost for a parity check method by providing both data and parity areas to a memory part where the data are written and read out and applying a parity check to the memory space. CONSTITUTION:A memory part 3 includes a data area 6 and a parity area 7. When data are written in a the area 6, these data are divided every four bits and a parity is calculated every four bits. Then the prescribed bit data obtained every four bits of the prescribed parity data of the area 7 are rewritten with four calculated parities. At the same time, when data are read out of the area 6, the parity data corresponding to the reading data of the area 6 are read out. The prescribed bit data obtained every four bits from the parity data are compared with the parities calculated based on the data obtained every four bits of the prescribed data. Thus the data parity check is performed. In such a constitution, no parity-only memory is required and an area where no memory is used can be used as a parity area.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明はデータに基づいてパリティを求め、このパリ
ティとデータとによりパリティチェックを行なうパリテ
ィ検査方法に係り、更に詳しくはその求めたパリティを
データのメモリ空間で処理するようにしたパリティ検査
方法に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a parity check method that obtains parity based on data and performs a parity check using this parity and data. The present invention relates to a parity checking method that performs processing in a memory space of .

[従 来 例] 従来、コンピュータ等におけるデータの書き込み、読み
出しに際し1例えばそのデータの最上位ビットにパリテ
ィビットを付加するが、このパリティビットはそのデー
タの“1″の総数を常に偶数あるいは奇数にするように
決められ、この偶数あるいは奇数によりデータチェック
を行なっている。
[Conventional example] Conventionally, when writing or reading data in a computer, etc., a parity bit is added to the most significant bit of the data, but this parity bit always makes the total number of "1"s in the data an even or odd number. Data is checked using this even or odd number.

そこで、第6図に示されるように、コンピュータ等のC
PUIにてデータがデータバス2を介してメモリ部(例
えばRAM)3に書き込まれる場合。
Therefore, as shown in FIG.
When data is written to the memory section (for example, RAM) 3 via the data bus 2 at the PUI.

パリティ生成・検査回路4にてそのデータの“1″の総
数を偶数あるいは奇数とするパリティが生成され、この
パリティがパリティ用RAM(DRAM)5に記憶され
る。そして、CPUIにてデータ転送が行なわれると、
つまりメモリ部3のデータがデータバス2を介して読み
出されると、上記パリティ生成・検査回路4にてそのデ
ータに基づいて求めた値とパリティ用RAM5から読み
出した値とが比較され、不一致のときにはエラーが発生
され、割り込み信号がCPUIに出力される。
A parity generation/checking circuit 4 generates parity in which the total number of "1"s in the data is an even or odd number, and this parity is stored in a parity RAM (DRAM) 5. Then, when data transfer is performed on the CPUI,
In other words, when the data in the memory section 3 is read out via the data bus 2, the value obtained based on the data in the parity generation/checking circuit 4 is compared with the value read out from the parity RAM 5, and if they do not match, the value is compared. An error is generated and an interrupt signal is output to the CPUI.

これにより、その割込みにより、CPUIにてデータ転
送を停止処理することができる。
As a result, the interrupt can be used to stop data transfer using the CPUI.

[発明が解決しようとする課題] しかしならが、上記パリティ回路にあっては。[Problem to be solved by the invention] However, in the above parity circuit.

メモリ部3以外に新たなパリティRAM部5が必要であ
り、つまり少なくとも一つのメモリを増加しなければな
らず、その分コストアップになっていた。
In addition to the memory section 3, a new parity RAM section 5 is required, which means that at least one memory must be added, resulting in an increase in cost.

また最近の記憶素子1例えばDRAMは大容量化の傾向
にあり、小容量のDRAMを手に入れることが困難にな
っている。そのため、小システムの場合でも、大容量の
DRAMをメモリ部3やパリティ用DRAM5に用いる
ことになり、DRAMが有効に利用されないだけでなく
、不経済な面が生じるようになった。
Furthermore, recent memory elements 1, such as DRAMs, have a tendency to increase in capacity, and it has become difficult to obtain small capacity DRAMs. Therefore, even in the case of a small system, a large-capacity DRAM is used for the memory section 3 and the parity DRAM 5, which not only does not effectively utilize the DRAM, but also causes uneconomical aspects.

この発明は上記問題点に鑑みなされたものであり、その
目的はコストの低下を図り、かつ、メモリを有効に利用
することができるようにしたパリティ検査方法を提供す
ることにある。
The present invention was made in view of the above problems, and its purpose is to provide a parity check method that reduces costs and makes effective use of memory.

C課題を解決するための手段] 上記目的を達成するために、この発明は、データをメモ
リに書き込み、またそのメモリのデータを読み出し、こ
のデータのパリティをチェックするパリティ検査方法に
おいて、上記メモリにデータエリアおよびパリティエリ
アを設け、かつ、上記データエリアにデータを書き込む
に際し、上記パリティエリアの所定アドレスに対応する
パリティデータの所定ビットデータを上記書き込むデー
タに基づいて算出したパリティで書き替え、かつ、上記
データエリアのデータを読み出すに際し、この読み出し
たデータに対応するパリティデータを読み出し、このパ
リティデータの所定ビットデータと上記データに基づい
て算出したパリティとを比較し、上記データのパリティ
チェックを行なうようにしたことを要旨とする。
Means for Solving Problem C] In order to achieve the above object, the present invention provides a parity checking method for writing data into a memory, reading data from the memory, and checking the parity of this data. providing a data area and a parity area, and when writing data to the data area, rewriting predetermined bit data of parity data corresponding to a predetermined address of the parity area with parity calculated based on the data to be written; When reading the data in the data area, the parity data corresponding to the read data is read out, and the predetermined bit data of this parity data is compared with the parity calculated based on the data to perform a parity check on the data. The main points are as follows.

また、上記データの書き込みに際し、上記データの4ビ
ット単位毎にパリティを算出し、上記パリティデータを
読み出すとともに、このパリティデータの所定ビットお
きのビットデータを上記算出した四つのパリティで書き
替えるようにしたものである。
Furthermore, when writing the above data, parity is calculated for each 4-bit unit of the above data, the parity data is read out, and the bit data at predetermined bit intervals of this parity data is rewritten with the four parities calculated above. This is what I did.

[作  用] 上記方法としたので、データをメモリに書き込むに際し
、そのデータに基づいてパリティが生成される。そして
、データがメモリのデータエリアに書き込まれ、またそ
のデータエリアのメモリと同じ空間に設けたパリティエ
リアの所定パリティデータの1ビツトデータがその生成
パリティで書き替えられる。
[Operation] With the above method, parity is generated based on the data when writing the data into the memory. Then, data is written into the data area of the memory, and 1-bit data of predetermined parity data in a parity area provided in the same space as the memory of the data area is rewritten with the generated parity.

また、データエリアのデータを読み出すに際し。Also, when reading data from the data area.

そのデータに基づいてパリティが生成される。そして、
そのデータに対応するパリティデータを読み出し、この
パリティデータの所定1ビツトデータとその生成パリテ
ィとを比較する。この比較結果により、エラーが発生さ
れ、CPUに割込みがかけられる。
Parity is generated based on that data. and,
Parity data corresponding to the data is read out, and predetermined 1-bit data of this parity data is compared with the generated parity. The result of this comparison generates an error and interrupts the CPU.

[実 施 例〕 以下、この発明の実施例を第1図乃至第5図に基づいて
説明する。なお、第1図中、第6図と同一部分および相
当部分には同一符号を付し、重複説明を省略する。
[Example] Hereinafter, an example of the present invention will be described based on FIGS. 1 to 5. In FIG. 1, the same parts and corresponding parts as in FIG. 6 are denoted by the same reference numerals, and redundant explanation will be omitted.

第1図において、メモリ部3にはデータを書き込み、読
み出すためのデータエリア6および書き込むデータに基
づいて生成したパリティを書き込むパリティエリア7が
設けられている。また、そのデータエリア6およびパリ
ティエリア7において1例えば第2図および第3図に示
されているように、メモリ部3を4個のDRAM(4ビ
ツトの)8a、8b、8c、8dで構成した場合、デー
タのアドレスが“00000(l()”から“5FFF
F(H)”までとされ。
In FIG. 1, the memory section 3 is provided with a data area 6 for writing and reading data, and a parity area 7 for writing parity generated based on the data to be written. In addition, in the data area 6 and parity area 7, the memory section 3 is composed of four DRAMs (4 bits) 8a, 8b, 8c, and 8d, as shown in FIGS. , the data address changes from “00000(l()” to “5FFF”)
F(H)”.

パリティのアドレスが“60000(H)”から“7F
FFF(H)”までとされる、また、パリティデータの
0ビツト目、4ビツト目、8ビツト目および第12ビツ
ト目はアドレス00000(H)〜IFFFF(H)の
データに基づいて算出されたパリティで書き替えられ、
パリティデータの1ビツト目、5ビツト目、9ビツト目
および13ビツト目はアドレス20000(H)から〜
3FFFF(H)に書き込まれるデータに基づいて生成
されたパリティで書き替えられ、パリティデータの2ビ
ツト目、6ビツト目、10ビツト目および14ビツト目
はアドレス40000(H)から〜6FFFF()I)
に書き込まれるデータに基づいて生成されたパリティで
書き替えられる。しかも、第2図の矢印に示されている
ように、Oビット目から3ビツト目までの4ビツトデー
タに基づいて生成されたパリティはパリティデータの9
ビツト目が書き替えられ、4ビツト目から7ビツト目の
4ビツトデータに基づいて生成されたパリティはパリテ
ィデータの13ビツト目が書き替えられ、8ビツト目か
ら11ビツト目の4ビツトデータに基づいて生成された
パリティはパリティデータの1ビツト目が書き替えられ
、12ビツト目から15ビツト目の4ビツトデータに基
づいて生成されたパリティはパリティデータの5ビツト
目が書き替えられる。すなわち、データの4ビツトづつ
が書き込まれるDRAM(A、B、C。
Parity address is from “60000(H)” to “7F”
FFF(H)", and the 0th, 4th, 8th, and 12th bits of parity data are calculated based on data from addresses 00000(H) to IFFFF(H). rewritten with parity,
The 1st, 5th, 9th, and 13th bits of parity data are from address 20000 (H).
It is rewritten with parity generated based on the data written to 3FFFF(H), and the 2nd, 6th, 10th, and 14th bits of parity data are written from address 40000(H) to 6FFFF()I. )
It is rewritten with parity generated based on the data written to. Moreover, as shown by the arrow in Figure 2, the parity generated based on the 4-bit data from the 0th bit to the 3rd bit is
The 13th bit of the parity data is rewritten, and the parity generated based on the 4-bit data from the 4th bit to the 7th bit is rewritten, and the parity is generated based on the 4-bit data from the 8th bit to the 11th bit. In the parity generated based on the 4-bit data from the 12th bit to the 15th bit, the 5th bit of the parity data is rewritten. That is, DRAM (A, B, C) into which 4 bits of data are written each.

D)8a、8b、8C,8dと当該データに基づいて生
成されたパリティによる書き替えられるDRAM(A、
B、C,D)8a、8b、8c、8dとは異なるように
なっている。
D) DRAM (A,
B, C, D) are different from 8a, 8b, 8c, and 8d.

次に、上記メモリ部3を含むパリティ回路に適用される
パリティ検査方法の作用を第4図および第5図のタイム
チャート図に基づいて説明する。
Next, the operation of the parity check method applied to the parity circuit including the memory section 3 will be explained based on the time charts of FIGS. 4 and 5.

なお、データは16ビツト構成であり、そのデータの4
ビツト毎にパリティが求められるものとする。
Note that the data has a 16-bit configuration, and 4 of the data
It is assumed that parity is required for each bit.

また、上記四つのDRAM8a、8b、8c、8dにデ
ータおよびパリティを書き込み、読み出すに際し、それ
らDRAM8a、8b、8c、8dのページモードサイ
クルが利用されている。さらに、そのページモードサイ
クルにおいては、第4図(b)乃至(d)および第5図
(b)乃至(d)に示されているように、メモリをアク
セスするためRASとCASが生成されており、RAS
の立ち下がりタイミングでロウアドレス(A、s乃至A
、)が与えられた後、CASの最初の立ち下がりタイミ
ングが与えられ、そのアドレスがカラムアドレス(A1
□A、、、A、乃至A、)に切り替えられる。すなわち
、メモリ部3の空間は通常のデータ用のメモリ(データ
エリア6)として利用される。また、CASの次の立ち
下がりタイミングでカラムアドレス“’H”(At*L
“H”(A t t ) −A を乃至A、に切り替え
られ、メモリ部3の空間は6000(H)から7FFF
F(H)となり、この空間がパリティ用のメモリ(パリ
ティエリア7)として利用される。
Furthermore, when writing and reading data and parity to and from the four DRAMs 8a, 8b, 8c, and 8d, the page mode cycles of the DRAMs 8a, 8b, 8c, and 8d are utilized. Furthermore, in the page mode cycle, RAS and CAS are generated to access the memory, as shown in FIGS. 4(b) to 5(d) and 5(b) to (d). Ori, R.A.S.
The row address (A, s to A
, ) is given, the first falling timing of CAS is given, and that address becomes the column address (A1
□A, , A, to A,). That is, the space in the memory section 3 is used as a normal data memory (data area 6). Also, at the next falling timing of CAS, the column address “'H” (At*L
"H" (A t t ) -A is switched to A, and the space in the memory section 3 is changed from 6000 (H) to 7FFF.
F(H), and this space is used as a parity memory (parity area 7).

まず、第4図に示すページモードサイクルに基づいて1
例えばアドレス28020()I)にデータ“0110
・・・″の書き込みが行われるものとすると、つまり0
ビツト目から3ビツト目までの4ビツトデータが“01
10”であるとすると、CPU1にてRASが生成され
、このRASの立ち下がりタイミングでデータバス2上
のデータがアドレス28020(H)のデータエリア6
に書き込まれる(同図(g)に示す)。
First, based on the page mode cycle shown in FIG.
For example, data “0110” is stored at address 28020()I).
...'' is written, that is, 0
The 4-bit data from the 3rd bit to the 3rd bit is “01”.
10", the CPU 1 generates RAS, and at the falling timing of this RAS, the data on the data bus 2 is transferred to the data area 6 at address 28020 (H).
(shown in (g) of the same figure).

すなわち、上記したように、アドレスが28020(H
)とされ、WE倍信号“L“レベルにされるからである
(同図(e)に示さす)。
That is, as mentioned above, the address is 28020 (H
), and the WE multiplied signal is set to the "L" level (as shown in FIG. 4(e)).

続いて、同図(f)に示されているように、CPU1か
ら出力されるOE倍信号“L”レベルのタイミングでパ
リティエリア7のパリティデータが読み出される(同図
(g)に示す)、このとき、上記したように、アドレス
が68020(l(、)とされ、このアドレス6802
0(II)のパリティデータ“・・・”が読み出される
Subsequently, as shown in (f) of the same figure, the parity data of the parity area 7 is read out at the timing of the OE multiplied signal "L" level output from the CPU 1 (as shown in (g) of the same figure). At this time, as mentioned above, the address is 68020(l(,), and this address 6802
Parity data "..." of 0 (II) is read out.

一方、上記データの書き込みに際し、パリティ生成・検
査回1114にてそのデータに基づいてパリティの生成
が行われる。この場合、そのデータの4ビット単位でパ
リティが生成されるため、0ビツト目から3ビツト目ま
での4ビツトのデータが“0110”であることから、
その4ビツトデータのバリティは“O”となる、また、
同様にして残りの四つの4ビツトデータについてもパリ
ティが生成される。なお、パリティはデータの“1”の
総数を偶数としている。そして、上記データの書き込み
の後、その生成パリティの書き替えが行われる。このと
き、上記WE倍信号次の立ち下がりの後、つまり再度の
“L”レベルで、アドレスが68020(H)であるた
め、上記読み出されたパリティデータの9ビツト目がそ
のOビットから3ビツト目の4ビツトデータにより生成
パリティ“O″に書き替えられる。また、上記書き込み
データの4ビツト目から7ビツト目までの4ビツトデー
タについても、パリティが生成され、そのパリティデー
タの13ビツト目がその生成パリティで書き替えられる
ことになる。さらに、上記書き込みデータの8ビツト目
から11ビツト目までの4ビツトデータについても。
On the other hand, when writing the data, parity is generated based on the data in a parity generation/check circuit 1114. In this case, since parity is generated in units of 4 bits of the data, the 4-bit data from the 0th bit to the 3rd bit is "0110", so
The parity of the 4-bit data is “O”, and
Similarly, parity is generated for the remaining four 4-bit data. Note that the parity is such that the total number of "1"s in the data is an even number. After writing the data, the generated parity is rewritten. At this time, since the address is 68020 (H) after the next fall of the above WE multiplied signal, that is, at the "L" level again, the 9th bit of the read parity data is 3rd from the O bit. The generated parity is rewritten to "O" by the 4-bit data of the bit. Parity is also generated for the 4-bit data from the 4th bit to the 7th bit of the write data, and the 13th bit of the parity data is rewritten with the generated parity. Furthermore, regarding the 4-bit data from the 8th bit to the 11th bit of the write data.

パリティが生成され、そのパリティデータの1ビツト目
がその生成パリティで書き替えられることになる。さら
にまた、上記書き込みデータの12ビツト目から15ビ
ツト目までの4ビツトデータについても、パリティが生
成され、そのパリティデータの5ビツト目がその生成パ
リティで書き替えられることになる。
Parity is generated, and the first bit of the parity data is rewritten with the generated parity. Furthermore, parity is also generated for the 4-bit data from the 12th bit to the 15th bit of the write data, and the 5th bit of the parity data is rewritten with the generated parity.

このように、データの書き込みに際し、その4ビツトデ
一タ単位でパリティを生成し、これら生成パリティをパ
リティデータの所定ビットデータを書き替えることにな
るが、それらパリティは4ビツトデータの書き込みD 
RA M 8 a、 8 by 8 c。
In this way, when writing data, parity is generated in units of 4-bit data, and predetermined bit data of the parity data is rewritten using these generated parities.
RAM 8 a, 8 by 8 c.

8dと異なるDRAM8a、8b、8c、8dに書き込
まれる。
The data is written to DRAMs 8a, 8b, 8c, and 8d different from 8d.

第5図に示すページモードリードサイクルに基づいて1
例えばアドレス28020(H)をデータ゛’0110
・・・”を読み出すものとすると、CPU1にてRAS
およびCASが生成され、このCASの立ち下がり以後
に、OE倍信号最初の“L″レベルデータエリア6のデ
ータデータ“0110・・・”が読み出される(同図(
f)および(g)に示す)、この読み出されたデータに
基づき、パリティ生成・検査回路4にて4ビツトデ一タ
単位(Oピットル3ビツト、4ビツト〜7ビツト、8ビ
ツト〜11ビツト、12ビツト15ビツト)毎にパリテ
ィが算出される。
1 based on the page mode read cycle shown in Figure 5.
For example, set address 28020 (H) to data ``'0110''.
...”, CPU1 reads RAS
and CAS are generated, and after the fall of this CAS, the data data “0110...” in the first “L” level data area 6 of the OE multiplied signal is read out (see FIG.
Based on this read data, the parity generation/inspection circuit 4 generates data in units of 4 bits (O pits 3 bits, 4 bits to 7 bits, 8 bits to 11 bits, Parity is calculated every 12 bits (15 bits).

続いて、そのCASの次の立ち下がり以後に、OE倍信
号次の“L”レベルでパリティエリア7のパリティデー
タが読み出される(同図(f)および(g)に示す)、
このパリティデータの1ビツト目、5ビツト目、9ビツ
ト目および13ビツト目が上記読み出されたデータの4
ビット単位毎のパリティになっている。そのため、それ
ら四つのパリティと上記算出したパリティとによりパリ
ティ検査が行われる。すなわち、パリティデータの1ビ
ツト目と上記8ビツトから11ビツトまでの4ビツトデ
ータに基づいて算出されたパリティとが比較され、パリ
ティの5ビツト目と上記12ビツトから15ビツトまで
の4ビツトデータに基づいて算出されたパリティとが比
較され、またパリティの9ビツト目と上記4ビツトから
7ビツトまでの4ビツトデータに基づいて算出されたパ
リティとが比較され、さらにパリティの13ビツト目と
上記Oビットから3ビツトまでの4ビツトデータに基づ
いて算出されたパリティとが比較される。そして、それ
ら比較によるパリティ検査に基づいて、パリティエラー
が発生され、cpuiに割込みがかけられるため、従来
同様に、CPUIにて割込み処理が実行されることにな
る。
Subsequently, after the next fall of the CAS, the parity data in the parity area 7 is read out at the next "L" level of the OE multiplied signal (as shown in (f) and (g) in the same figure).
The 1st, 5th, 9th, and 13th bits of this parity data are the 4th bit of the read data.
Parity is bit-wise. Therefore, a parity check is performed using these four parities and the parity calculated above. That is, the first bit of parity data is compared with the parity calculated based on the 4-bit data from 8 bits to 11 bits, and the 5th bit of parity and the 4-bit data from 12 bits to 15 bits are compared. The 9th bit of parity is compared with the parity calculated based on the 4-bit data from bit 4 to bit 7, and the 13th bit of parity is compared with the parity calculated based on the 4-bit data from bit 4 to bit 7. The parity calculated based on the 4-bit data from bit to 3 is compared. Then, a parity error is generated based on the parity check based on the comparison, and an interrupt is applied to the CPU, so that the interrupt processing is executed by the CPU as in the conventional case.

このように、DRAM8a、8b、8c、8dのページ
モードサイクルを利用し、データの書き込み、読み出し
を行なうメモリ部3にデータエリアよびパリティエリア
を設け、そのメモリ空間にてパリティチェックを行なう
ようにしたので、データ用のメモリの他にパリティ専用
のメモリを用意する必要がなくなり、その分コストの低
下を図ることができ、特に小システム等においてはメモ
リ部3の不使用領域をそのパリティエリアにすることが
でき、さらに経済性を図ることもできる。
In this way, the page mode cycle of the DRAMs 8a, 8b, 8c, and 8d is used to provide a data area and a parity area in the memory section 3 where data is written and read, and parity check is performed in the memory space. Therefore, there is no need to prepare memory dedicated to parity in addition to memory for data, and costs can be reduced accordingly.Especially in small systems, the unused area of memory section 3 can be used as the parity area. It is also possible to achieve further economical efficiency.

また、パリティ検査においては、データの4ビット単位
でパリティチェックを行なうようにしたので、さらにパ
リティチェックの高精度化を図ることができる。
Further, in the parity check, since the parity check is performed in units of 4 bits of data, it is possible to further improve the accuracy of the parity check.

[発明の効果] 以上説明したように、この発明のパリティ検査方法によ
れば、メモリにデータエリアおよびパリティエリアを設
け、かつ、そのデータエリアにデータを書き込むに際し
、そのデータを4ビット単位に分け、この4ビツト毎に
算出し、上記パリティエリアの所定パリティデータの4
ビツトおきの所定ビットデータを上記算出した四つのパ
リティで書き替え、かつ、上記データエリアのデータを
読み出すに際し、この読み出しデータに対応するパリテ
ィデータを読み出し、該パリティデータの4ビツトおき
の所定ビットデータとそのデータの4ビット単位のデー
タに基づいて算出したパリティとをそれぞれ比較し、そ
のデータのパリティチェックを行なうようにしたので、
パリティ専用のメモリを必要とせず、特に小システムの
場合データを書き込み、読み出すメモリの不使用領域を
パリティエリアに使用することができ、つまりデータの
メモリ空間を用いてパリティチェックを行なうことがで
き、上記パリティ専用のメモリ分、コストの低下を図る
ことができる。
[Effects of the Invention] As explained above, according to the parity checking method of the present invention, a data area and a parity area are provided in a memory, and when writing data to the data area, the data is divided into 4-bit units. , calculated every 4 bits, and 4 bits of the predetermined parity data in the above parity area.
When rewriting the predetermined bit data at every other bit with the four parities calculated above, and reading out the data in the data area, the parity data corresponding to this read data is read out, and the predetermined bit data at every four bits of the parity data is rewritten. and the parity calculated based on the data in 4-bit units, and check the parity of the data.
There is no need for a memory dedicated to parity, and especially in small systems, the unused area of memory where data is written and read can be used as the parity area.In other words, the parity check can be performed using the data memory space. Cost can be reduced by the memory dedicated to parity.

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

第1図はこの発明の一実施例を示し、パリティ検査方法
が適用されるパリティ回路の概略的ブロック図、第2図
は上記パリティ回路のメモリ空間を説明するための図、
第3図は第2図に示すメモリ空間の部分を説明するため
の図、第4図および第5図は上記パリティ検査方法の作
用を説明するためのタイムチャート図、第6図は従来の
パリティ検査方法が適用されるパリティ回路の概略的ブ
ロック図である。 図中、1はCPU、2はデータバス、3はメモリ部(R
AM)、4はパリティ生成・検査回路、6はデータエリ
ア、7はパリティエリア、8a、 8b。 8c、8dはDRAM(A)、(B)、(C)、(D)
である。
FIG. 1 shows an embodiment of the present invention, and is a schematic block diagram of a parity circuit to which a parity check method is applied; FIG. 2 is a diagram for explaining the memory space of the parity circuit;
FIG. 3 is a diagram for explaining the memory space shown in FIG. 2, FIGS. 4 and 5 are time charts for explaining the operation of the above parity checking method, and FIG. 1 is a schematic block diagram of a parity circuit to which a test method is applied; FIG. In the figure, 1 is the CPU, 2 is the data bus, and 3 is the memory section (R
AM), 4 is a parity generation/check circuit, 6 is a data area, 7 is a parity area, 8a, 8b. 8c and 8d are DRAM (A), (B), (C), (D)
It is.

Claims (2)

【特許請求の範囲】[Claims] (1)データをメモリに書き込み、またそのメモリのデ
ータを読み出し、該データのパリテイをチェックするパ
リテイ検査方法において、 前記メモリにデータエリアおよびパリテイエリアを設け
、かつ、前記データエリアにデータを書き込むに際し、
前記パリテイエリアの所定アドレスに対応するパリテイ
データの所定ビットデータを前記書き込むデータに基づ
いて算出したパリテイで書き替え、かつ、前記データエ
リアのデータを読み出すに際し、該読み出したデータに
対応するパリテイデータを読み出し、該パリテイデータ
の所定ビットデータと前記データに基づいて算出したパ
リテイとを比較し、前記データのパリテイチェックを行
なうようにしたことを特徴とするパリテイ検査方法。
(1) A parity checking method in which data is written to a memory, data is read from the memory, and parity of the data is checked, wherein a data area and a parity area are provided in the memory, and data is written to the data area. On this occasion,
When predetermined bit data of parity data corresponding to a predetermined address of the parity area is rewritten with the parity calculated based on the data to be written, and when reading data of the data area, the parity corresponding to the read data is rewritten. 1. A parity checking method, comprising: reading parity data, comparing predetermined bit data of the parity data with a parity calculated based on the data, and performing a parity check of the data.
(2)前記データの書き込みに際し、前記データの4ビ
ット単位毎にパリテイを算出し、前記パリテイデータを
読み出すとともに、該パリテイデータの所定ビットおき
のビットデータを前記算出した四つのパリテイで書き替
えるようにした請求項(1)記載のパリテイ検査方法。
(2) When writing the data, calculate parity for each 4-bit unit of the data, read the parity data, and write bit data at predetermined bit intervals of the parity data using the calculated four parities. The parity test method according to claim (1), wherein the parity test method is performed by:
JP1323114A 1989-12-13 1989-12-13 Parity check method Pending JPH03184146A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1323114A JPH03184146A (en) 1989-12-13 1989-12-13 Parity check method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1323114A JPH03184146A (en) 1989-12-13 1989-12-13 Parity check method

Publications (1)

Publication Number Publication Date
JPH03184146A true JPH03184146A (en) 1991-08-12

Family

ID=18151239

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1323114A Pending JPH03184146A (en) 1989-12-13 1989-12-13 Parity check method

Country Status (1)

Country Link
JP (1) JPH03184146A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0652064A (en) * 1992-07-29 1994-02-25 Nec Corp Data rewrite system and its circuit in memory circuit

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS551658A (en) * 1978-06-20 1980-01-08 Komatsu Ltd Parity inspection unit
JPS6371736A (en) * 1986-09-12 1988-04-01 Fujitsu Ltd System for allocating parity bit area on rom
JPS6461838A (en) * 1987-09-02 1989-03-08 Nec Corp Ic memory card

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS551658A (en) * 1978-06-20 1980-01-08 Komatsu Ltd Parity inspection unit
JPS6371736A (en) * 1986-09-12 1988-04-01 Fujitsu Ltd System for allocating parity bit area on rom
JPS6461838A (en) * 1987-09-02 1989-03-08 Nec Corp Ic memory card

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0652064A (en) * 1992-07-29 1994-02-25 Nec Corp Data rewrite system and its circuit in memory circuit

Similar Documents

Publication Publication Date Title
US4005405A (en) Error detection and correction in data processing systems
US5481552A (en) Method and structure for providing error correction code for 8-byte data words on SIMM cards
US5379304A (en) Method and structure for providing error correction code and parity for each byte on SIMM's
JPS6242396A (en) Dynamic memory refresh and parity checking circuit
US5450422A (en) Method and structure for providing error correction code for each byte on SIMM'S
JPH03184146A (en) Parity check method
JPH03138742A (en) Memory system
JP2875435B2 (en) Memory module and computer using the same
JPS61214040A (en) Memory parity circuit
JP2768371B2 (en) Inspection method of random access memory
SU951406A1 (en) Memory device with self-check capability
JP2005044386A (en) Semiconductor storage device and microcomputer
JP3106448B2 (en) Processor unit
RU2062512C1 (en) Memory unit which detects errors and corrects single error
JP2656600B2 (en) Test method for semiconductor memory device
JPS641817B2 (en)
SU1278984A1 (en) Redundant storage
JPH0323587A (en) DRAM parity generation/check method
JPH05120211A (en) Data bus width controller
JPS62256061A (en) Main storage with redundant configuration
JPS6134618A (en) Memory clear controlling system
JPS615500A (en) Memory integrated circuit
JPS6011949A (en) Data processing system
JP2005503624A (en) Electronic brake system memory error detection method, computer system and use thereof
JPS62245453A (en) How to replace spare memory