JPS61172439A - Error detecting device - Google Patents

Error detecting device

Info

Publication number
JPS61172439A
JPS61172439A JP1302285A JP1302285A JPS61172439A JP S61172439 A JPS61172439 A JP S61172439A JP 1302285 A JP1302285 A JP 1302285A JP 1302285 A JP1302285 A JP 1302285A JP S61172439 A JPS61172439 A JP S61172439A
Authority
JP
Japan
Prior art keywords
bits
check
bit
error detection
error
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
JP1302285A
Other languages
Japanese (ja)
Inventor
Nobuhiro Nakabayashi
中林 伸博
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP1302285A priority Critical patent/JPS61172439A/en
Publication of JPS61172439A publication Critical patent/JPS61172439A/en
Pending legal-status Critical Current

Links

Landscapes

  • Error Detection And Correction (AREA)

Abstract

PURPOSE:To detect an error in an odd number bit and two bits by providing an error detection circuit comparing respectively at least check bits 8 bits generated from write data and read data. CONSTITUTION:In using 8 bits for a write data 1, check bit generating circuits 110, 111 generate three parity bits P1-P3 for high-order 4 bits, low-order 4 bits and entire 8 bits. The error detection circuit 3 uses exclusive OR circuits 8a-8c so as to OR exclusively a check bit 15 generated at write with parity check bits P1-P3 and P'1-P'3 corresponding to a check bit 12 generated at read, outputs are ORed by a circuit 30 to obtain an error detection signal 14. In case of a 2-bit error, since at least one of the three exclusive OR circuits 8a-8c goes to logical 1, the 2-bit error is detected.

Description

【発明の詳細な説明】 〔発明の技術分野〕 9の発明は、記憶装置itと不正Eζ書き込まれたデー
タを読出した時に、そのデータの誤りを検出する誤り検
出装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The invention of No. 9 relates to an error detection device for detecting an error in data when data illegally written to a storage device it is read.

〔従来の技術〕[Conventional technology]

第1図は、従来の誤り検出装置を示す図であり、(1)
は処理装置より書込まれるデータ、(2)は書込みデー
タ(1)よりパリティビットを生成するパリティビット
生成器、(4日よこのパリティビット生成器(21によ
り生成されるパリティビット13)を書込みデータ(1
)に付加したデータ、(5)はデータ(41を格納する
記憶装置、(6)は読出し時に記憶装置+5)より出力
されるデータ、(7)は読み出されるデータ[1Gより
パリティビット(9)を生成するパリティビット生成器
、(9)はパリティビット生成器(7)により生成され
るパリティビット、(81は書込み時のパリティビット
131と、読出し時に生成されたパリティビット<91
の排他的論理和をとる誤り検出回路である。
FIG. 1 is a diagram showing a conventional error detection device, (1)
is the data written by the processing device, (2) is the parity bit generator that generates a parity bit from the write data (1), (4th day) the parity bit generator (parity bit 13 generated by 21) is written. Data (1
), (5) is the storage device that stores data (41, (6) is the data that is output from the storage device + 5 when reading), (7) is the data that is read [1G from the parity bit (9) (9) is the parity bit generated by the parity bit generator (7), (81 is the parity bit 131 during writing and the parity bit <91 generated during reading).
This is an error detection circuit that calculates the exclusive OR of .

次にこの装置の動作について説明する。データの書込み
時、パリティビット生成器(2)は書込みデータ(1)
よりパリティビット13)を生成する。このパリティビ
ット+31と書込データ(1)を合わせたデータ141
が記憶装置■5)に格納される。他方、読出し時、記憶
装置+51より出力されたデータ(6)のうちデータt
lGはパリティビット生成器(7)に入力され新たにパ
リティビット9)を生成する。そして、書込み時に生成
されたパリティビット13)と新しく生成された、  
パリティビット(9)は誤り検出回路(8)に入力され
る。
Next, the operation of this device will be explained. When writing data, the parity bit generator (2) outputs the write data (1)
The parity bit 13) is then generated. Data 141 is the sum of this parity bit +31 and write data (1)
is stored in the storage device (5). On the other hand, at the time of reading, data t out of the data (6) output from the storage device +51
1G is input to a parity bit generator (7) to generate a new parity bit (9). Then, the parity bit 13) generated during writing and the newly generated parity bit,
The parity bit (9) is input to an error detection circuit (8).

もし書込みデータ(1)と読出しデータ(1Gに奇数ビ
ットの誤りがあれば誤り検出回路(8)は′1′を出力
するので、奇数ビットの誤まりがあった場合、誤り検出
が可能である。
If there is an error in an odd number of bits in the write data (1) and read data (1G), the error detection circuit (8) will output '1', so if there is an error in an odd number of bits, it is possible to detect the error. .

このように従来の回路では奇数ビットの誤り演出は可能
であるが、偶数ビットの誤りは検出できないため、その
ような誤りが発生しても処理を続行してしまう。そのた
め処理装置の演算結果に正確性を欠くという欠点かあ−
】た。    □〔発明の概要〕 本発明は、上記のような欠点を改善する目的でなされた
ものであり、4ビット以上の誤り発生の確率は通常のシ
ステムでは無視できるので、奇数ビット及び2ビットの
誤りを検出することができる記憶装置の誤り検出装置を
提案するものである。
In this way, conventional circuits can produce errors in odd-numbered bits, but cannot detect errors in even-numbered bits, so even if such an error occurs, processing continues. Therefore, the disadvantage is that the calculation results of the processing device lack accuracy.
】Ta. □ [Summary of the Invention] The present invention was made to improve the above-mentioned drawbacks, and since the probability of occurrence of errors of 4 bits or more is negligible in a normal system, errors of odd bits and 2 bits can be ignored. This paper proposes an error detection device for storage devices that can detect errors.

〔発明の実施例〕[Embodiments of the invention]

以下、この発明について説明する。第2図において(1
10) 、 (111)は入力されるデータより3ビッ
トのチェックビットを生成するチェックビット生成装置
、(功は記憶袋@15)より続出されたデータ(lO)
よりチェックビット生成装置!(111)で新たに生成
された3ビットのチェックビット、I【3はチェックビ
ット生成装置I (111)により生成されたチェック
ビット■とチェックビット生成装置I!(110)によ
り生成されたチェックビット(151とを比較すること
により誤りを検出する誤り検出回路、Iは誤り検出回路
113より出力される誤り検出信号である。
This invention will be explained below. In Figure 2 (1
10), (111) is a check bit generation device that generates 3 check bits from input data, and data (lO) successively output from the memory bag @15.
More check bit generator! The 3 check bits newly generated in (111), I[3, are the check bit ■ generated by the check bit generating device I (111) and the check bit generating device I! An error detection circuit detects an error by comparing the check bit (151) generated by (110), and I is an error detection signal output from the error detection circuit 113.

第8図はチェックビット生成装置(110)の詳細図で
あり、チェックビット生成器illも同様である。
FIG. 8 is a detailed diagram of the check bit generator (110), and the check bit generator ill is also similar.

また第4図は誤り検出回路−【3の詳細回路である。Further, FIG. 4 shows a detailed circuit of the error detection circuit-[3].

第8図はデータ(1)が3ビットの場合を示しており、
パリティビット生成器(2a)でデータ(1)の上位4
ビットについてのチェックビットP1  を生成し、パ
リティピット生成器(2C)でデータ(1)の下位4ビ
ットについてのチェックビットP8を生成し、さらにパ
リティビット生成器(2b)でデータ(1)の8ビット
全体のチェックビットP2を生成するものである。
Figure 8 shows the case where data (1) is 3 bits,
The upper 4 of data (1) in parity bit generator (2a)
The parity bit generator (2C) generates check bit P1 for the lower 4 bits of data (1), and the parity bit generator (2b) generates check bit P8 for the lower 4 bits of data (1). A check bit P2 for all bits is generated.

また、第4図の誤り検出回路+13は、パリティビット
生成値[1(110)により生成したビットP +−2
gと、これに対応するパリティビット生成値!(110
により生成したビットP’r々′3とをそれぞれ比較す
る排他的論理和回路(8a)〜(8c)と、排他的論理
和回路(8場〜(8C)の出力の論理和をとる回路殴か
らなる。
Furthermore, the error detection circuit +13 in FIG.
g and the corresponding parity bit generation value! (110
Exclusive OR circuits (8a) to (8c) that compare the bits P'r'3 generated by Consisting of

以下、との装置の動作について、第2図、第8図、第4
図を用いて説明する。書込みデータ(1)を3ビットと
した場合チェックビット生成回路(110)は、このデ
ータ(1)の上位4ビット、下位4ビット、8ビット全
体について8つのパリティビット11〜P3を生成する
。誤り検出回路噛は書込時に生成されたチェックビット
−と読出し時に生成するチェックビット鵡の中から対応
するパリティビットP1−%pHとF’+々を同士で排
他的論理和を回路ωa)〜(8c)でとり、その出力を
回路−で論理和をとり誤り検出信号+14)とする。2
ビット誤りの場合は第4図の8つの排他的論理和回路(
8a)〜(8c)うち少なくとも1つが11′になるの
で、2ビットの誤りを検出することができる。
The following describes the operation of the device in Figures 2, 8, and 4.
This will be explained using figures. When write data (1) is 3 bits, the check bit generation circuit (110) generates eight parity bits 11 to P3 for the upper 4 bits, lower 4 bits, and all 8 bits of this data (1). The error detection circuit performs exclusive OR of the corresponding parity bits P1-%pH and F'+ from among the check bits generated during writing and the check bits generated during reading. (8c), and the output is logically summed by the circuit - to provide an error detection signal +14). 2
In the case of a bit error, the eight exclusive OR circuits (
Since at least one of 8a) to (8c) becomes 11', a 2-bit error can be detected.

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

以上のようにこの発明によれば従来のパリティビットに
よる検出回路では検出できなかった2ビットの誤りを検
出でき、これにより安価により信頼性の高いメモリを製
作できる効果がある。
As described above, according to the present invention, it is possible to detect a 2-bit error that could not be detected by a conventional detection circuit using parity bits, and this has the effect of making it possible to manufacture a more reliable memory at a lower cost.

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

第1図は従来の誤り検出回路の一例を示す図、第2図は
この発明の一実施例による誤り検出回路を示す図、第8
図は、第2図で用いているチェックビット生成回路の詳
細を示す図、第4図は、第2図で用いている誤り検出回
路の詳細を示す1図である。 図において、(110) 、 (111)はチェックビ
ット生成装置、+51は記憶装置、113は誤り検出回
路である。 なお、各図中、同一符号は同一あるいは相当部分を示す
ものとする。
FIG. 1 is a diagram showing an example of a conventional error detection circuit, FIG. 2 is a diagram showing an error detection circuit according to an embodiment of the present invention, and FIG. 8 is a diagram showing an example of a conventional error detection circuit.
This figure is a diagram showing details of the check bit generation circuit used in FIG. 2, and FIG. 4 is a diagram showing details of the error detection circuit used in FIG. 2. In the figure, (110) and (111) are check bit generation devices, +51 is a storage device, and 113 is an error detection circuit. In each figure, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 記憶装置に書き込まれるデータから、少なくとも3ビッ
トのチェックビットを生成する第1のチェックビット生
成装置、記憶装置から読み出されるデータから、少なく
とも3ビットのチェックビットを生成する第2のチェッ
クビット生成装置、この第2のチェックビット生成装置
の生成する少なくとも8ビットのチェックビットと、こ
れらに対応する上記第1のチェックビット生成装置の生
成する3ビットのチェックビットとをそれぞれ比較する
誤り検出回路を備えたことを特徴とする誤り検出装置。
a first check bit generation device that generates at least 3 check bits from data written to the storage device; a second check bit generation device that generates at least 3 check bits from data read from the storage device; an error detection circuit that compares the at least 8 check bits generated by the second check bit generation device with the corresponding 3 check bits generated by the first check bit generation device; An error detection device characterized by:
JP1302285A 1985-01-25 1985-01-25 Error detecting device Pending JPS61172439A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1302285A JPS61172439A (en) 1985-01-25 1985-01-25 Error detecting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1302285A JPS61172439A (en) 1985-01-25 1985-01-25 Error detecting device

Publications (1)

Publication Number Publication Date
JPS61172439A true JPS61172439A (en) 1986-08-04

Family

ID=11821517

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1302285A Pending JPS61172439A (en) 1985-01-25 1985-01-25 Error detecting device

Country Status (1)

Country Link
JP (1) JPS61172439A (en)

Similar Documents

Publication Publication Date Title
US4175692A (en) Error correction and detection systems
US4319356A (en) Self-correcting memory system
JPS6273500A (en) Semiconductor memory device
JPS61172439A (en) Error detecting device
JPH0689236A (en) Random access memory monitor circuit
JPH04119434A (en) Parity error detector
JPS593645A (en) Error correction system
JP2906850B2 (en) Time-division switch monitoring circuit
JP2656600B2 (en) Test method for semiconductor memory device
JP3071846B2 (en) Parity error detection method and parity error detection circuit
SU868844A1 (en) Self-checking storage device
SU1065888A1 (en) Buffer storage
JP2536781B2 (en) Parity check device
JPS6373437A (en) Checking system for parity circuit
JPH02310752A (en) Address checking system for memory element
JPH0254582B2 (en)
JPH0237447A (en) Memory integrated circuit
JPS6454557A (en) Address parity checking circuit
JPS58196694A (en) Storage device
JPH0683718A (en) Fault detecting circuit
JPH01194035A (en) Address parity checking system for information processor
JPS6134648A (en) Storage device
JPH01307848A (en) Memory capacity checking method
JPH0534703B2 (en)
JPH0398129A (en) Parity error detection system