JPH04297940A - Semiconductor memory - Google Patents

Semiconductor memory

Info

Publication number
JPH04297940A
JPH04297940A JP3084388A JP8438891A JPH04297940A JP H04297940 A JPH04297940 A JP H04297940A JP 3084388 A JP3084388 A JP 3084388A JP 8438891 A JP8438891 A JP 8438891A JP H04297940 A JPH04297940 A JP H04297940A
Authority
JP
Japan
Prior art keywords
output
data
shift register
circuit
correction circuit
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
JP3084388A
Other languages
Japanese (ja)
Inventor
Kanichi Endo
乾一 遠藤
Shigeru Date
滋 伊達
Tsuneo Matsumura
常夫 松村
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP3084388A priority Critical patent/JPH04297940A/en
Publication of JPH04297940A publication Critical patent/JPH04297940A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the scale of an error code correction circuit, to improve the yield of the semiconductor memory and to realize high reliability. CONSTITUTION:This semiconductor memory is composed of a shift register SFR0 to temporarily preserve output data composed of information bits D0-D3 and parity bits C0-C2 parallelly outputted from a memory array M, cyclic code correction circuit EC to calculate syndrome corresponding to the transfer cycle of this shift register, and exclusive OR circuit EXOR1 to logically operate the output of the shift register and the output of the cyclic code correction circuit EC.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、誤りを検出し自己訂正
する半導体メモリにおいて、付加回路規模の増加を抑え
て歩留り向上を実現する技術に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for suppressing an increase in the size of additional circuitry and improving yield in a semiconductor memory that detects and self-corrects errors.

【0002】0002

【従来の技術】従来の自己訂正可能な半導体メモリを図
3に示す。この半導体メモリでは、説明を簡略化するた
めに、情報ビット4,パリティ−ビット3からなるデ−
タ例のいずれか1ビットの誤りを訂正する(7,4)ハ
ミング符号訂正回路を適用した例を示す。図3において
、Mはメモリアレイ、MDはこのメモリアレイM中の情
報デ−タアレイ、MCは同じくメモリアレイM中のパリ
ティ−デ−タアレイ、D0,D1,D2,D3は情報ビ
ット、C0,C1,C2はパリティ−ビットである。 1−1,1−2,1−3は4入力パリティ−チェック回
路、2−1,2−2,2−3,2−4は2入力排他的論
理和回路、3−1,3−2,3−3,3−4は3入力論
理積回路、4−1,4−2,4−3は否定素子であり、
これらにより誤り訂正回路ECを構成する。S0,S1
,S2とS0N,S1N,S2Nはシンドロ−ム(誤り
ビットの位置を符号化したもの)の相補をなす信号、C
D0,CD1,CD2,CD3はビット誤りの位置を指
示する信号、DC0,DC1,DC2,DC3は訂正後
の情報ビットであり、SFR2はシフトレジスタ、CL
K3は外部クロック、OUT3は出力信号である。
2. Description of the Related Art A conventional self-correctable semiconductor memory is shown in FIG. In order to simplify the explanation, this semiconductor memory has data consisting of 4 information bits and 3 parity bits.
An example is shown in which a (7, 4) Hamming code correction circuit is applied to correct an error in any one bit of the data. In FIG. 3, M is a memory array, MD is an information data array in this memory array M, MC is a parity data array in the memory array M, D0, D1, D2, D3 are information bits, C0, C1 , C2 are parity bits. 1-1, 1-2, 1-3 are 4-input parity check circuits, 2-1, 2-2, 2-3, 2-4 are 2-input exclusive OR circuits, 3-1, 3-2 , 3-3, 3-4 are three-input AND circuits, 4-1, 4-2, 4-3 are negative elements,
These constitute an error correction circuit EC. S0, S1
, S2, S0N, S1N, and S2N are complementary signals of the syndrome (coded position of error bit), C
D0, CD1, CD2, CD3 are signals indicating the position of bit error, DC0, DC1, DC2, DC3 are information bits after correction, SFR2 is a shift register, CL
K3 is an external clock, and OUT3 is an output signal.

【0003】次に、この回路の動作について説明する。 まず、情報デ−タアレイMDから情報ビットD0〜D3
と、パリティデ−タアレイMCからパリティ−ビットC
0〜C2が出力する。出力ビットは符号のパリティ−ビ
ット生成に関与するグル−プ毎に4入力パリティ−チェ
ック回路1−1〜1−3でパリティ−チェックが行われ
る。信号S0〜S2と否定素子4−1〜4−3で生成さ
れる信号S0N,S1N,S2Nは、情報ビットD0〜
D3の中からビット誤りを検出する3入力論理積回路3
−1〜3−4(シンドロ−ムデコ−ダ)に入力される。 情報ビットD0〜D3の中で1ビット誤りがあった場合
、3入力論理積回路3−1〜3−4の信号CD0〜CD
3のうち、情報ビットD0〜D3に対応する2入力排他
的論理和回路2−1〜2−4への入力の1つが“1”に
なる。情報ビットD0〜D3の中に誤りが無い場合、3
入力論理積回路3−1〜3−4の信号CD0〜CD3は
全て“0”になる。信号CD0〜CD3にしたがって、
2入力排他的論理和回路2−1〜2−4が、情報ビット
D0〜D3の反転(CD0〜CD3のうち“1”となっ
たもの)により訂正し、訂正後の情報ビットDC0〜D
C3を出力する。この値は、シフトレジスタSFR2に
格納された後、外部クロックCLK3によってシリアル
出力する。
Next, the operation of this circuit will be explained. First, information bits D0 to D3 are extracted from the information data array MD.
and parity bit C from parity data array MC.
0 to C2 are output. Parity checks are performed on the output bits by four-input parity check circuits 1-1 to 1-3 for each group involved in code parity bit generation. Signals S0 to S2 and signals S0N, S1N, and S2N generated by negation elements 4-1 to 4-3 are information bits D0 to
3-input AND circuit 3 that detects bit errors in D3
-1 to 3-4 (syndrome decoder). If there is a 1-bit error among the information bits D0 to D3, the signals CD0 to CD of the 3-input AND circuits 3-1 to 3-4
3, one of the inputs to the two-input exclusive OR circuits 2-1 to 2-4 corresponding to the information bits D0 to D3 becomes "1". If there is no error in the information bits D0 to D3, 3
Signals CD0 to CD3 of input AND circuits 3-1 to 3-4 all become "0". According to signals CD0 to CD3,
The 2-input exclusive OR circuits 2-1 to 2-4 correct the information bits D0 to D3 by inverting them (the ones that become "1" among CD0 to CD3), and correct the information bits DC0 to D3 after correction.
Output C3. After this value is stored in the shift register SFR2, it is serially outputted using an external clock CLK3.

【0004】0004

【発明が解決しようとする課題】上記従来の構成では、
並列訂正動作させるために、情報ビット幅に応じてシン
ドロ−ムデコ−ダ3−1〜3−4や否定素子4−1〜4
−3等を用意する必要があった。このため、メモリの大
規模化に伴った情報ビットD0〜D3の増加により、欠
陥救済率の維持に必要な誤り訂正回路の規模が増してし
まうといった問題点があった。
[Problem to be solved by the invention] In the above conventional configuration,
In order to perform parallel correction operations, syndrome decoders 3-1 to 3-4 and negation elements 4-1 to 4 are used depending on the information bit width.
- It was necessary to prepare a 3rd grade. Therefore, as the number of information bits D0 to D3 increases with the increase in memory size, there is a problem in that the scale of the error correction circuit required to maintain the defect repair rate increases.

【0005】本発明の目的は、上述の問題点を解決すべ
く、巡回符号を用いることにより誤り符号訂正回路の規
模を低減し、半導体メモリの歩留り向上と高信頼性を実
現することにある。
SUMMARY OF THE INVENTION An object of the present invention is to reduce the scale of an error code correction circuit by using a cyclic code in order to solve the above-mentioned problems, and to improve the yield and reliability of a semiconductor memory.

【0006】[0006]

【課題を解決するための手段】本発明にかかる半導体メ
モリは、(1)メモリアレイからの読み出しビットに対
応したビット数のシフトレジスタを配置すること、(2
)シフトレジスタの任意の1端のデ−タを入力してシン
ドロ−ムを発生する巡回符号訂正回路を設けたものであ
る。
[Means for Solving the Problems] A semiconductor memory according to the present invention includes (1) arranging shift registers whose number of bits corresponds to bits read from a memory array;
) A cyclic code correction circuit is provided which receives data from any one end of the shift register and generates a syndrome.

【0007】[0007]

【作用】本発明においては、情報ビットを格納したシフ
トレジスタのデ−タを順次訂正しつつ外部に供給する。
In the present invention, data in a shift register storing information bits is sequentially corrected and supplied to the outside.

【0008】従来技術と異なる点は、(1)メモリアレ
イMの情報ビット幅に応じたデ−タ反転回路を設ける必
要がなく、1つのデ−タ反転回路だけで誤り訂正が実現
できること、(2)シリアル動作によるデ−タ転送によ
りシンドロ−ムデコ−ダ等を軽減できること、(3)複
数のメモリアレイや任意の分割メモリアレイ構成におい
ても誤り訂正回路を共有できることである。
The difference from the conventional technology is that (1) there is no need to provide a data inversion circuit corresponding to the information bit width of the memory array M, and error correction can be realized with only one data inversion circuit; 2) Syndrome decoders and the like can be reduced by data transfer through serial operation; and (3) error correction circuits can be shared even in a plurality of memory arrays or in any divided memory array configuration.

【0009】[0009]

【実施例】(実施例1)図1は、本発明の第1の実施例
を示す図である。第1の実施例では、説明を簡略化する
ために、情報ビット4,パリティ−ビット3からなるデ
−タ例の、いずれか1ビットの誤りを訂正する(7,4
)巡回符号誤り訂正を行う方法を示す。Mはメモリアレ
イ、MDはこのメモリアレイM中の情報デ−タアレイ、
MCは同じくメモリアレイM中のパリティ−デ−タアレ
イ、D0,D1,D2,D3は情報ビット、C0,C1
,C2はパリティ−ビットである。SFR0,SFR1
はシフトレジスタであり、SFR0はラッチm1〜m7
からなり、SFR1はラッチs0〜s7からなり、SW
1はスイッチであり、EXOR1は排他的論理和回路で
ある。また、SRa,SRb,SRcは1ビットシフト
レジスタであり、EOR21,EOR22は排他的論理
和回路、INVは否定素子、NORは3入力否定論理和
素子である。SRa,SRb,SRcとEOR21,E
OR22によって除算回路、否定素子INVと3入力否
定論理素子NORで(SRa,SRb,SRc)デ−タ
の(1,0,0)検出回路をなし、除算回路と(1,0
,0)検出回路で巡回符号訂正回路ECを形成する。C
KLは外部クロックである。
Embodiment (Embodiment 1) FIG. 1 is a diagram showing a first embodiment of the present invention. In the first embodiment, in order to simplify the explanation, an error in any one bit of a data example consisting of 4 information bits and 3 parity bits is corrected (7, 4
) shows how to perform cyclic code error correction. M is a memory array, MD is an information data array in this memory array M,
MC is also a parity data array in memory array M, D0, D1, D2, D3 are information bits, C0, C1
, C2 are parity bits. SFR0, SFR1
is a shift register, and SFR0 is a latch m1 to m7
SFR1 consists of latches s0 to s7, and SW
1 is a switch, and EXOR1 is an exclusive OR circuit. Furthermore, SRa, SRb, and SRc are 1-bit shift registers, EOR21 and EOR22 are exclusive OR circuits, INV is a negative element, and NOR is a 3-input negative logical sum element. SRa, SRb, SRc and EOR21,E
The OR22 forms a division circuit, the negation element INV and the 3-input negation logic element NOR form a (1, 0, 0) detection circuit for (SRa, SRb, SRc) data, and the division circuit and (1, 0)
, 0) The detection circuit forms a cyclic code correction circuit EC. C
KL is an external clock.

【0010】次に、動作について説明する。メモリアレ
イMからの情報ビットDO〜D3とパリティ−ビットC
0〜C2は、各出力端子から同時に出力し、シフトレジ
スタSFR0の各ラッチm1〜m7で同時にラッチされ
る。スイッチSW1により、ラッチm7の出力は端子i
1に接続され、外部クロックCLKによってデ−タが右
方向に順次シフトする。ここでラッチm7のデ−タはラ
ッチs0に渡されるとともに、巡回符号訂正回路EC内
の排他的論理和回路EOR21にも入力し、外部クロッ
クCLKによってシンドロ−ムを生成する。以下に、シ
ンドロ−ム生成と訂正動作の説明を行う。
Next, the operation will be explained. Information bits DO to D3 from memory array M and parity bit C
0 to C2 are simultaneously output from each output terminal and latched simultaneously by each latch m1 to m7 of shift register SFR0. The output of latch m7 is connected to terminal i by switch SW1.
1, and data is sequentially shifted to the right by an external clock CLK. Here, the data in the latch m7 is passed to the latch s0, and is also input to the exclusive OR circuit EOR21 in the cyclic code correction circuit EC to generate a syndrome using the external clock CLK. The syndrome generation and correction operations will be explained below.

【0011】端子i1から、ラッチm7〜m4に格納さ
れた情報ビットD3,D2,D1,D0、ラッチm3〜
m1に格納されたパリティ−ビットC2,C1,C0が
、外部クロックCLKに同期して、D3,D2,D1,
D0,C2,C1,C0の順に入力する。ここで、C2
,C1,C0にはそれぞれ、 C2=D3+D2+D1(mod2),       
               ……(1)C1=D2
+D1+D0(mod2),            
          ……(2)C0=D3+D2+D
0(mod2),                 
     ……(3)という関係がある(mod2は2
の剰余)。すなわち、デ−タ列(D3,D2,D1,D
0,C2,C1,C0)に誤りの無い場合、第(1)〜
(3)式が常に成り立つことを意味する。具体的に、メ
モアレイリMから読み出したデ−タ列(D3′,D2′
,D1′,D0′,C2′,C1′,C0′)に1ビッ
ト誤りがあった時の訂正方法を説明する。例えば、(D
3′,D2′,D1′,D0′,C2′,C1′,C0
′)のうち、D0′に誤りがあった場合、 D0′=D0+1(mod2),          
                  ……(4)と表
すことができ、デ−タ列(D3′,D2′,D1′,D
0′,C2′,C1′,C0′)には、(D3′,D2
′,D1′,D0′,C2′,C1′,C0′)=(D
3+0,D2+0,D1+0,D0+1,C2+0,C
1+0,C0+0)(mod2)…(5)という関係が
ある。任意の誤りの無いデ−タ列(D3,D2,D1,
D0,C2,C1,C0)を巡回符号訂正回路ECに入
力した場合、(入力デ−タ数+2)巡目からの出力は該
出力時点から(入力デ−タ数)巡後までの間“0”とな
る。これは被検査で−タ(D3′,D2′,D1′,D
0′,C2′,C1′,C0′)の検査結果は、(5)
式より、(0,0,0,1,0,0,0)を検査するの
に等しくなることを意味する。すなわち、(5)式は、 (D3′,D2′,D1′,D0′,C2′,C1′,
C0′)=(0,0,0,1,0,0,0)(mod2
)                        
    ……(5′)に等しくなる。(0,0,0,1
,0,0,0)を巡回符号訂正回路ECに入力した、シ
ンドロ−ム形成段階を表1に示す。最初から数えてm番
目のデ−タに誤りがあった場合、([デ−タ数M]+1
+m)巡目に出力にフラグ“1”が立つことになる。そ
こで、本例の場合にはM=7,m=4であるため、第1
2巡目に出力が“1”となる。この巡回符号訂正回路E
Cは、例えば[宮川洋、岩垂好裕、今井秀樹著;「符号
理論」pp.252−253、1973.10.5発行
、昭晃堂]の方法により、情報ビット数、パリティ−ビ
ット数、訂正能力に応じて定めることができる。
From terminal i1, information bits D3, D2, D1, D0 stored in latches m7 to m4, latches m3 to
The parity bits C2, C1, C0 stored in m1 are synchronized with the external clock CLK, and the parity bits D3, D2, D1,
Input D0, C2, C1, C0 in this order. Here, C2
, C1 and C0 respectively, C2=D3+D2+D1 (mod2),
...(1) C1=D2
+D1+D0 (mod2),
...(2)C0=D3+D2+D
0 (mod2),
...There is a relationship (3) (mod 2 is 2
(remainder). That is, the data string (D3, D2, D1, D
0, C2, C1, C0), if there is no error, then (1) to
This means that equation (3) always holds true. Specifically, the data string (D3', D2') read from the memory array M
, D1', D0', C2', C1', C0') will be described below. For example, (D
3', D2', D1', D0', C2', C1', C0
'), if there is an error in D0', D0'=D0+1 (mod2),
...(4), where the data string (D3', D2', D1', D
0', C2', C1', C0'), (D3', D2
', D1', D0', C2', C1', C0') = (D
3+0, D2+0, D1+0, D0+1, C2+0, C
There is a relationship as follows: 1+0, C0+0) (mod 2)...(5). Any error-free data string (D3, D2, D1,
D0, C2, C1, C0) are input to the cyclic code correction circuit EC, the output from the (number of input data + 2) rounds is " 0”. This is the test target (D3', D2', D1', D
The test results for (0', C2', C1', C0') are (5)
From the formula, it means that it is equivalent to testing (0, 0, 0, 1, 0, 0, 0). That is, equation (5) is (D3', D2', D1', D0', C2', C1',
C0') = (0, 0, 0, 1, 0, 0, 0) (mod2
)
...is equal to (5'). (0,0,0,1
, 0, 0, 0) are input to the cyclic code correction circuit EC. If there is an error in the mth data counted from the beginning, ([number of data M] + 1
+m) The flag "1" will be set at the output in the third cycle. Therefore, in this example, since M=7 and m=4, the first
In the second round, the output becomes "1". This cyclic code correction circuit E
C is, for example, [Hiroshi Miyagawa, Yoshihiro Iwadare, Hideki Imai; "Coding Theory" pp. 252-253, published October 5, 1973, Shokodo], it can be determined according to the number of information bits, the number of parity bits, and the correction ability.

【0012】ラッチm1〜m7のデ−タがそれぞれラッ
チs1〜s7へと移動すると、巡回符号訂正回路ECで
は、シンドロ−ムを外部に出力する準備が整う。外部ク
ロックCLKによってシフトレジスタSFR1のデ−タ
がラッチs7,s6,s5,s4,s3,s2,s1の
順にシフトしラッチs7から出力するのに同期して、巡
回符号訂正回路ECのエラ−パタ−ン検出ビットが出力
する。シフトレジスタSFR1のデ−タと巡回符号訂正
回路ECのデ−タパタ−ン検出ビットの排他的論理和に
より、外部クロックCLKの1ステップ毎にデ−タを出
力する。このため、ラッチs1〜s7のデ−タが誤りで
あったデ−タの出力に同期して、巡回符号訂正回路EC
の出力が“1”になり、ラッチs1〜S7のデ−タを反
転(訂正)する。本例では12巡目に出力a0′と、シ
ンドロ−ム生成回路(EOR21,EOR22,SRa
,SRb,SRc)からの訂正フラグ“1”との排他的
論理和(記号〔EOR〕)を取ることによって、D0′
〔EOR〕1=D0+〔EOR〕1=D0〔EOR〕0
=D0…(6)と訂正されOUT1を出力する。
When the data in latches m1 to m7 are transferred to latches s1 to s7, respectively, the cyclic code correction circuit EC is ready to output the syndrome to the outside. In synchronization with the external clock CLK, the data in the shift register SFR1 is shifted in the order of latches s7, s6, s5, s4, s3, s2, s1 and output from the latch s7, and the error pattern of the cyclic code correction circuit EC is changed. -on detection bit is output. Data is output at each step of the external clock CLK by exclusive ORing of the data in the shift register SFR1 and the data pattern detection bit of the cyclic code correction circuit EC. Therefore, in synchronization with the output of the data in which the data of the latches s1 to s7 are errors, the cyclic code correction circuit EC
The output becomes "1", and the data in latches s1 to S7 are inverted (corrected). In this example, in the 12th round, the output a0' and the syndrome generation circuit (EOR21, EOR22, SRa
, SRb, SRc) with the correction flag "1" (symbol [EOR]), D0'
[EOR] 1=D0+[EOR]1=D0[EOR]0
=D0...(6) is corrected and outputs OUT1.

【0013】本実施例ではメモリアレイMの数を1、出
力デ−タの数を4、訂正可能ビット1としたが、メモリ
アレイMの数を任意として随時切り替えても、出力デ−
タの数を任意としても、かつ巡回符号訂正回路ECの訂
正能力を変化させても、容易に実現可能である。
In this embodiment, the number of memory arrays M is 1, the number of output data is 4, and the correctable bit is 1. However, even if the number of memory arrays M is set arbitrarily and switched at any time, the output data
This can be easily realized by using any number of data and by changing the correction capability of the cyclic code correction circuit EC.

【0014】[0014]

【表1】 (実施例2)図2は、本発明の第2の実施例を示す図で
ある。第2の実施例では、第1の実施例におけるシフト
レジスタSFR0とSFR1と共有化して、シフトレジ
スタSFR1のみとし、さらに付加回路規模を低減させ
たものである。図2では、第1の実施例と同様に、単一
のメモリアレイMに対し、(7,4)巡回符号誤り訂正
を行う方法を示す。この図で、図1と同じ符号は同じも
のを示す。
[Table 1] (Example 2) FIG. 2 is a diagram showing a second example of the present invention. In the second embodiment, the shift registers SFR0 and SFR1 in the first embodiment are shared, and only the shift register SFR1 is used, thereby further reducing the scale of the additional circuit. FIG. 2 shows a method of performing (7,4) cyclic code error correction on a single memory array M, similar to the first embodiment. In this figure, the same symbols as in FIG. 1 indicate the same things.

【0015】動作概念を以下に示す。メモリアレイMか
らの情報ビットD0〜D3とパリティ−ビットC0〜C
2は、出力端子から同時に出力し、シフトレジスタSF
R1の各ラッチs1〜s7で同時にラッチされ、外部ク
ロックCLKによってデ−タが右回りに順次シフトする
。スイッチSW1はシフトレジスタSFR1の出力を、
端子i1へ接続する。ここで、ラッチs7のデ−タはラ
ッチs0に渡されるとともに、巡回符号訂正回路ECに
も入力し、外部クロックCLKによってシンドロ−ムを
生成を行う。ラッチs1〜s7のデ−タが一巡すると、
巡回符号訂正回路ECではシンドロ−ムを外部に出力す
る準備が整う。スイッチSW1は端子i2に直ちに接続
され、外部クロックCLKによってシフトレジスタSF
R1のデ−タがラッチs7,s6,s5,s4,s3,
s2,s1の順に出力するのに同期して、巡回符号訂正
回路ECのエラ−パタ−ン検出ビットが出力する。 シフトレジスタSFR1のデ−タと巡回符号訂正回路E
Cのエラ−パタ−ン検出ビットの排他的論理和により、
外部クロックCLKの1ステップ毎にデ−タを出力する
。具体的には、ラッチs1〜s7のデ−タが誤りであっ
たデ−タの出力時に巡回符号訂正回路ECの出力が“1
”になり、ラッチs1〜s7のデ−タを反転し、出力信
号OUT1を出力する。
The concept of operation is shown below. Information bits D0-D3 from memory array M and parity bits C0-C
2 simultaneously outputs from the output terminal and shifts the shift register SF.
Each of the latches s1 to s7 of R1 latches the data simultaneously, and the data is sequentially shifted clockwise by the external clock CLK. Switch SW1 outputs the shift register SFR1,
Connect to terminal i1. Here, the data in the latch s7 is passed to the latch s0, and is also input to the cyclic code correction circuit EC to generate a syndrome using the external clock CLK. When the data of latches s1 to s7 completes one cycle,
The cyclic code correction circuit EC is ready to output the syndrome to the outside. The switch SW1 is immediately connected to the terminal i2, and the shift register SF is connected to the terminal i2 by the external clock CLK.
The data of R1 is latched s7, s6, s5, s4, s3,
In synchronization with the sequential output of s2 and s1, the error pattern detection bit of the cyclic code correction circuit EC is output. Data of shift register SFR1 and cyclic code correction circuit E
By exclusive OR of error pattern detection bits of C,
Data is output every step of the external clock CLK. Specifically, when the data of the latches s1 to s7 is erroneous, the output of the cyclic code correction circuit EC becomes "1".
'', the data in the latches s1 to s7 are inverted, and the output signal OUT1 is output.

【0016】また、本発明におけるメモリアレイM,シ
フトレジスタSFR1,巡回符号訂正回路ECの構成は
、図1および図2に限定されない。例えばメモリアレイ
Mの数を任意として随時切り替えても、出力デ−タの数
を任意としも、かつ巡回符号訂正回路ECの訂正能力を
変化させることも可能である。さらに、本発明によれば
、メモリアレイ群に対して複数の巡回符号訂正回路EC
を用意し、互いにシンドロ−ム発生・訂正デ−タ出力の
期間をずらし、複数の巡回符号訂正回路ECから互いに
出力することにより高速に動作させることもできる。
Furthermore, the configurations of the memory array M, shift register SFR1, and cyclic code correction circuit EC in the present invention are not limited to those shown in FIGS. 1 and 2. For example, the number of memory arrays M can be set arbitrarily and switched at any time, the number of output data can be set arbitrarily, and the correction capability of the cyclic code correction circuit EC can also be changed. Further, according to the present invention, a plurality of cyclic code correction circuits EC are provided for the memory array group.
It is also possible to operate at high speed by preparing a plurality of cyclic code correction circuits EC, staggering the periods of syndrome generation and correction data output, and mutually outputting them from a plurality of cyclic code correction circuits EC.

【0017】本発明の付加回路規模範低減の効果を確か
めるため、従来例,実施例1,実施例2の金物量をMO
Sトランジスタ数で比較する。まず、本例で示した単一
誤り訂正(SEC)回路における情報ビットとパリティ
−ビットの関係は、符号ビット数:n、情報ビット数:
k、パリティ−ビット数:mとすると、ハミングの限界
式により、 n=2m −1                  
                         
     ……(7)n=m+k          
                         
               ……(8)となる。 [従来例の金物量]図3の4入力パリティ−チェック回
路1−1〜1−3は、梯子型4入力排他的論理和回路で
、トランジスタの数;24m、否定素子4−1〜4−3
;2m、シンドロ−ムデコ−ダ3−1〜3−4;(2+
2m)×k、2入力排他的論理和回路2−1〜2−4;
12k、出力部レジスタ;8kであるから、全トランジ
スタ数Nnは、 Nn=22k+26m+2mk           
                     ……(9
)[実施例1,2の金物量]メモリアレイ出力部のシフ
トレジスタSFR0のトランジスタの数;8n、巡回符
号訂正回路ECのシフトレジスタSFR1;8n、除算
回路内の1ビットシフトレジスタSRa,SRb,SR
c;8m、2入力排他的論理和回路2−1〜2−4;6
0、INV;2、NOR;2mであるから、全トランジ
スタ数N1は、 N1=16n+10m+62=16k+26m+62 
         ……(10)また、実施例2による
と、メモリアレイ出力部のシフトレジスタSFR0を必
要としないので、全トランジスタ数N2は、 N2=8n+10m+62=8k+18m+62   
           ……(11)式(9)〜(11
)によって、実用域での金物量を比較したのが表2であ
り、グラフにしたのが図4である。実施例2によると、
情報ビット数4以上で、従来例に比べて付加回路規模が
小さく、かつ情報ビット数の増加に伴い、付加回路規模
低減の効果が顕著となることがわかる。
In order to confirm the effect of reducing the additional circuit size range of the present invention, the amount of metal materials in the conventional example, Example 1, and Example 2 was
Compare by number of S transistors. First, the relationship between information bits and parity bits in the single error correction (SEC) circuit shown in this example is as follows: number of code bits: n, number of information bits:
k, parity bit number: m, then according to Hamming's limit formula, n=2m -1

...(7)n=m+k

...(8). [Conventional hardware quantity] The 4-input parity check circuits 1-1 to 1-3 shown in FIG. 3
;2m, syndrome decoder 3-1~3-4;(2+
2m)×k, 2-input exclusive OR circuits 2-1 to 2-4;
12k, output register; 8k, so the total number of transistors Nn is: Nn=22k+26m+2mk
...(9
) [Metal quantities of Examples 1 and 2] Number of transistors in shift register SFR0 of memory array output section; 8n; shift register SFR1 of cyclic code correction circuit EC; 8n; 1-bit shift registers SRa, SRb in division circuit; S.R.
c; 8m, 2-input exclusive OR circuit 2-1 to 2-4; 6
0, INV; 2, NOR; 2m, so the total number of transistors N1 is: N1 = 16n + 10m + 62 = 16k + 26m + 62
...(10) Also, according to the second embodiment, the shift register SFR0 of the memory array output section is not required, so the total number of transistors N2 is: N2 = 8n + 10m + 62 = 8k + 18m + 62
...(11) Equations (9) to (11
), Table 2 compares the amounts of metal materials in practical use, and Figure 4 shows a graph. According to Example 2,
It can be seen that when the number of information bits is 4 or more, the additional circuit scale is smaller than that of the conventional example, and as the number of information bits increases, the effect of reducing the additional circuit scale becomes remarkable.

【0018】[0018]

【表2】[Table 2]

【0019】[0019]

【発明の効果】本発明は、メモリアレイかラパラレルに
出力する情報デ−タとパリティ−デ−タからなる出力デ
−タを一時保管するシフトレジスタと、シフトレジスタ
の転送周期に合わせてシンドロ−ムの計算を行う巡回符
号訂正回路と、該シフトレジスタの出力と該巡回符号訂
正回路の出力との論理演算をする回路で構成されている
ので、従来のように誤り符号訂正回路の搭載に伴う回路
規模の大幅低減をはかることができ、画像用フィ−ルド
メモリ,大規模ROM,RAMなどに適用するとその効
果は極めて大きい。
Effects of the Invention The present invention provides a shift register for temporarily storing output data consisting of information data and parity data to be output from a memory array in parallel, and It consists of a cyclic code correction circuit that calculates the error code correction circuit, and a circuit that performs logical operations on the output of the shift register and the output of the cyclic code correction circuit. It is possible to significantly reduce the circuit scale, and the effect is extremely large when applied to image field memory, large-scale ROM, RAM, etc.

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

【図1】本発明の第1の実施例を示す回路図である。FIG. 1 is a circuit diagram showing a first embodiment of the present invention.

【図2】本発明の第2の実施例を示す回路図である。FIG. 2 is a circuit diagram showing a second embodiment of the present invention.

【図3】従来例を示す回路図である。FIG. 3 is a circuit diagram showing a conventional example.

【図4】従来例、第1の実施例、第2の実施例の情報ビ
ットに対する金物量を示す図である。
FIG. 4 is a diagram showing the amount of hardware for information bits in the conventional example, the first embodiment, and the second embodiment.

【符号の説明】[Explanation of symbols]

M          メモリアレイ MC        パリティ−デ−タアレイMD  
      情報デ−タアレイSFR0    シフト
レジスタ SFR1    シフトレジスタ SW1      スイッチ EC        巡回符号訂正回路EXOR1  
排他的論理和回路 CLK      外部クロック
M Memory array MC Parity data array MD
Information data array SFR0 Shift register SFR1 Shift register SW1 Switch EC Cyclic code correction circuit EXOR1
Exclusive OR circuit CLK External clock

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】情報デ−タを蓄積するメモリアレイとパリ
ティ−デ−タを蓄積するメモリアレイから構成され、各
メモリアレイは複数のメモリセルとそれに接続する複数
のワ−ド線とビット線からなり、アドレスによって選択
されたワ−ド線によって任意のビット線に出力した情報
デ−タとパリティ−デ−タを用いて内部で自己訂正し情
報デ−タをシリアル出力する半導体メモリにおいて、前
記メモリアレイからパラレルに出力する情報デ−タとパ
リティ−デ−タからなる出力デ−タを一時保管するシフ
トレジスタと、このシフトレジスタの転送周期に合わせ
てシンドロ−ムの計算を行う巡回符号訂正回路と、前記
シフトレジスタの出力と前記巡回符号訂正回路の出力と
の論理演算をする回路を具備したことを特徴とする半導
体メモリ。
Claim 1: Consisting of a memory array for storing information data and a memory array for storing parity data, each memory array has a plurality of memory cells and a plurality of word lines and bit lines connected thereto. In a semiconductor memory that self-corrects internally using information data and parity data output to an arbitrary bit line by a word line selected by an address and serially outputs information data, A shift register that temporarily stores output data consisting of information data and parity data output in parallel from the memory array, and a cyclic code that calculates syndromes in accordance with the transfer cycle of this shift register. A semiconductor memory comprising: a correction circuit; and a circuit that performs a logical operation on the output of the shift register and the output of the cyclic code correction circuit.
JP3084388A 1991-03-26 1991-03-26 Semiconductor memory Pending JPH04297940A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3084388A JPH04297940A (en) 1991-03-26 1991-03-26 Semiconductor memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3084388A JPH04297940A (en) 1991-03-26 1991-03-26 Semiconductor memory

Publications (1)

Publication Number Publication Date
JPH04297940A true JPH04297940A (en) 1992-10-21

Family

ID=13829186

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3084388A Pending JPH04297940A (en) 1991-03-26 1991-03-26 Semiconductor memory

Country Status (1)

Country Link
JP (1) JPH04297940A (en)

Similar Documents

Publication Publication Date Title
US4723243A (en) CRC calculation machine with variable bit boundary
JP4621715B2 (en) Memory device
GB1432535A (en) Data handling systems
US5331645A (en) Expandable digital error detection and correction device
US4937828A (en) High speed parallel CRC device for concatenated data frames
US4312069A (en) Serial encoding-decoding for cyclic block codes
JPH0831802B2 (en) CRC bit calculation device and CRC bit calculation method
KR950010311B1 (en) Semiconductor memory device
JPS6116351A (en) Single error correction circuit for system memory
KR850004675A (en) Error correction and detection system
JPH0728227B2 (en) Decoding device for BCH code
JPH0810558B2 (en) ROM self-inspection method and apparatus
US4488302A (en) Burst error correction using cyclic block codes
US7093183B2 (en) Symbol level error correction codes which protect against memory chip and bus line failures
JP3345385B2 (en) Chain search device
US4649540A (en) Error-correcting circuit having a reduced syndrome word
US4355391A (en) Apparatus and method of error detection and/or correction in a data set
US3387261A (en) Circuit arrangement for detection and correction of errors occurring in the transmission of digital data
JPH04297940A (en) Semiconductor memory
US4551838A (en) Self-testing digital circuits
US3534331A (en) Encoding-decoding array
US3886520A (en) Checking circuit for a 1-out-of-n decoder
US3988580A (en) Storage of information
JP3895118B2 (en) Single event upset compensation circuit
US3529141A (en) Error tolerant sequential circuits