Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS623619B2 - - Google Patents
[go: Go Back, main page]

JPS623619B2 - - Google Patents

Info

Publication number
JPS623619B2
JPS623619B2 JP53120515A JP12051578A JPS623619B2 JP S623619 B2 JPS623619 B2 JP S623619B2 JP 53120515 A JP53120515 A JP 53120515A JP 12051578 A JP12051578 A JP 12051578A JP S623619 B2 JPS623619 B2 JP S623619B2
Authority
JP
Japan
Prior art keywords
output
bits
circuit
data
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.)
Expired
Application number
JP53120515A
Other languages
Japanese (ja)
Other versions
JPS5546665A (en
Inventor
Fumio Maehara
Hidekazu Tsuboka
Hiroshi Fujita
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP12051578A priority Critical patent/JPS5546665A/en
Publication of JPS5546665A publication Critical patent/JPS5546665A/en
Publication of JPS623619B2 publication Critical patent/JPS623619B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0045Arrangements at the receiver end

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Detection And Correction Of Errors (AREA)
  • Error Detection And Correction (AREA)

Description

【発明の詳細な説明】 本発明は、巡回符号を用いてデイジタルデータ
に発生したビツトの誤りを訂正する場合に、2以
上の整数なるnビツトを1単位としてnビツト単
位で並列に誤り訂正の処理を行なうビツトの誤り
訂正装置に関する。
DETAILED DESCRIPTION OF THE INVENTION When correcting bit errors occurring in digital data using a cyclic code, the present invention is capable of correcting errors in parallel in units of n bits, where n bits are an integer of 2 or more. The present invention relates to a bit error correction device that performs processing.

デイジタル信号データを伝送する場合や、記憶
装置にデータを記憶する場合、雑音等の影響によ
り受信データや記憶装置からの読み出しデータに
ビツト誤りが生じる場合がある。一般にはこのよ
うな場合、冗長ビツトを付加することにより送信
データを巡回符号のような代数的理論に従う符号
として伝送する方法がとられている。このような
冗長ビツトの付加と、誤り訂正の実行は、従来デ
ータを1ビツトごとに順次処理する直列式であ
り、誤り訂正を高速化できない欠点がある。
When transmitting digital signal data or storing data in a storage device, bit errors may occur in received data or data read from the storage device due to the influence of noise and the like. Generally, in such cases, a method is used in which redundant bits are added to transmit data as a code that follows algebraic theory, such as a cyclic code. Addition of such redundant bits and execution of error correction are conventionally carried out in a serial manner in which data is sequentially processed bit by bit, which has the disadvantage that error correction cannot be performed at high speed.

本発明は、誤り訂正の高速化を計ることを目的
とし、nビツト並列に誤り訂正の処理を行なう装
置を提供するものである。
SUMMARY OF THE INVENTION The present invention aims to speed up error correction and provides an apparatus that performs error correction processing for n bits in parallel.

本発明を説明するに当つて、一般的なビツト誤
りの訂正方式について説明する。
In explaining the present invention, a general bit error correction method will be explained.

誤り訂正符号を取扱う場合、一般にはデータを
多項式で表現する。例えば「10101」というデー
タが左から順に1ビツトずつ信号線上に現われる
場合は、これをx4+x2+1と表わす。即ち時系列
の先に現われるビツトを多項式の高次の項の系数
とした多項式で表現する。次にこれを生成多項式
と呼ばれる多項式で割り算して、その剰余を伝送
すべきデータを表わす多項式から引き、これを送
信データとする。但し2値即ち0か1かを取扱う
演算では、2を法とした演算を行なう。このため
引き算はたし算と同一演算となる。即ち±1+0
=1,0±0=0,1±1=0なる規則に従う。
When dealing with error correction codes, data is generally expressed as a polynomial. For example, when the data "10101" appears one bit at a time on the signal line from the left, this is expressed as x 4 +x 2 +1. That is, it is expressed by a polynomial in which the bit that appears earlier in the time series is a series of higher-order terms of the polynomial. Next, this is divided by a polynomial called a generator polynomial, the remainder is subtracted from the polynomial representing the data to be transmitted, and this is used as transmission data. However, in calculations that handle binary values, ie, 0 or 1, calculations are performed modulo 2. Therefore, subtraction is the same operation as addition. i.e. ±1+0
It follows the rule: =1,0±0=0,1±1=0.

受信側では、受信されたデータを前の生成多項
式で割る。送信データでは余りが引き算されてい
るから若し伝送中にビツト誤りが生じなければ受
信データは生成多項式で割り切れることになる。
若し割り算の結果余りが生じた時にはビツト誤り
が発生したものとみなすことができる。又送信デ
ータの情報ビツトの長さと、生成多項式を適当に
選ぶことによつて受信データを生成多項式で割つ
た余り(これを一般にシンドロームという)のパ
ターンによつてビツト誤りの位置と誤りのパター
ンを判定することができる。
On the receiving side, the received data is divided by the previous generator polynomial. Since the remainder is subtracted from the transmitted data, if no bit error occurs during transmission, the received data will be divisible by the generator polynomial.
If a remainder occurs as a result of division, it can be considered that a bit error has occurred. In addition, by appropriately selecting the information bit length of the transmitted data and the generator polynomial, the position of the bit error and the error pattern can be determined based on the pattern of the remainder when the received data is divided by the generator polynomial (this is generally called a syndrome). can be determined.

ところで前記のようにデータを直接生成多項式
で割つてその剰余を原データから引いた場合、そ
の結果得られる符号は伝送しようとする原データ
と見かけ上異なつてくるので取扱いが不便な場合
がある。このため一般には送信すべきデータに対
し生成多項式の最高次の次数の項を掛けたのち、
これを生成多項式で割る方法がとられている。即
ち、例えば生成多項式G(x)が G(x)=x6+x5+x4+x3+1 で、送信データが0.00000011即ち、x+1であつ
たとすると、x+1にx6を乗じ、これをG(x)
で割る。即ち、2を法とした演算では余りはx5
x4+xとなるから伝送符号としては、 x6(x+1)+(x5+x4+x) =x7+x6+x5+x4+x となる。これであると先頭の2ビツトは原送信デ
ータのビツトパターンと一致する。
By the way, when data is directly divided by the generating polynomial and the remainder is subtracted from the original data as described above, the resulting code looks different from the original data to be transmitted, which may be inconvenient to handle. For this reason, in general, after multiplying the data to be transmitted by the term of the highest degree of the generator polynomial,
The method used is to divide this by a generator polynomial. That is, for example, if the generator polynomial G(x) is G(x) = x 6 + x 5 + x 4 + )
Divide by In other words, in an operation modulo 2, the remainder is x 5 +
Since x 4 +x, the transmission code is x 6 (x+1) + (x 5 +x 4 +x) = x 7 +x 6 +x 5 +x 4 +x. In this case, the first two bits match the bit pattern of the original transmission data.

第1図に一般的な誤り訂正用の符号器と復号器
の一例を示す。同図中1が符号器、2が復号器、
3は伝送路を示し、□印で示したのがシフトレジ
スタによるメモリ手段の一段分を示し、は排他
的論理和を示す。
FIG. 1 shows an example of a general error correction encoder and decoder. In the figure, 1 is an encoder, 2 is a decoder,
3 indicates a transmission path, □ indicates one stage of memory means using a shift register, and indicates exclusive OR.

第1図の回路は、生成多項式G(x)が G(x)=x6+x5+x4+x3+1 ……(1) で発生される符号長12、データ長6で長さ3ま
での密集した誤り(バーストエラー)を訂正でき
る巡回符号の例である。
The circuit shown in Figure 1 has a code length of 12, a data length of 6 , and a length of up to 3 , generated by the generator polynomial G(x) as follows : This is an example of a cyclic code that can correct dense errors (burst errors).

代数的には上述の(1)式の生成多項式で発生され
る符号は、符号長15、データ長9なる符号である
が、後にこの符号を本発明に適用する時に6ビツ
トに区切つて取扱つた実施例を示す。このためこ
こでは前記符号のデータ部の上位3ビツトを0と
して取扱い、符号長を短縮化したものを取扱う。
Algebraically speaking, the code generated by the generator polynomial in equation (1) above is a code with a code length of 15 and a data length of 9, but when this code is later applied to the present invention, it is handled by dividing it into 6 bits. An example is shown. Therefore, here, the upper three bits of the data part of the code are treated as 0, and the code length is shortened.

符号長を短縮化した場合、受信側でG(x)に
よる割算を行なう場合に短縮化したビツト数の次
数に相当するxの項即ち、3ビツト短縮化した場
合にはx3項を受信データに乗じ、これをG(x)
で割るということが行なわれている。これは誤り
訂正を行なう場合のデータを記憶すシフトレジス
タの段数の3ビツト分減ずるためである。
When the code length is shortened, when dividing by G(x) on the receiving side, an x term corresponding to the order of the shortened number of bits is received, that is, if the code length is shortened by 3 bits, x3 terms are received. Multiply the data and convert it to G(x)
What is being done is dividing by This is because the number of stages of the shift register for storing data when performing error correction is reduced by 3 bits.

第1図の4はG(x)による割算回路である。
伝達しようとする6ビツトから成るデータは、図
の信号線5より符号器1に入力される。切換スイ
ツチ6は最初a側になつており、信号線5より入
力されるデータは割算回路4に入力されると共
に、切換スイツチ6を経て伝送路3に出力され
る。6ビツトの情報の伝送が終了した時点で、割
算回路4の各シフトレジスタにはデータにx6を乗
じたものを生成多項式G(x)で割つた剰余が残
つており、スイツチ6をb側に倒し帰還ゲート8
を開いて帰還がかからないようにした後、シフト
レジスタの内容を伝送路3に送り出す。
4 in FIG. 1 is a division circuit using G(x).
Data consisting of 6 bits to be transmitted is input to encoder 1 through signal line 5 in the figure. The changeover switch 6 is initially set to the a side, and the data input from the signal line 5 is input to the divider circuit 4 and is outputted to the transmission line 3 via the changeover switch 6. When the transmission of 6-bit information is completed, each shift register of the divider circuit 4 has a remainder obtained by dividing the data multiplied by x 6 by the generator polynomial G(x), and the switch 6 is set to b. Turn to the side and return gate 8
After opening the shift register to prevent feedback, the contents of the shift register are sent to the transmission line 3.

伝送路3からの伝送データは、信号線9よりG
(x)による割算回路11に入力されると共に12
ビツトのシフトレジスタ10に入る。データと剰
余ビツトが伝送されてシフトレジスタ10に入力
し終つた段階で、誤りビツトが生じた場合には割
算器11にはシンドローム(症候)が発生してお
り、シフトレジスタ10の出力を出力信号線15
に1ビツトずつ出力しながら割算器11のシフト
レジスタの内容を1ビツトずつ同時にシフトさせ
ていく。この動作を順次繰り返してゆき、オール
ゼロ検出器12により割算器のシフトレジスタの
下位3ビツトにオールゼロが発生した時、最初c
側に倒されていたスイツチ16をd側に倒して、
割算器11のシフトレジスタの内容を排他的論理
和回路14を通して出力し、シフトレジスタ10
との間で排他的論理和をとることによつて誤りビ
ツトが訂正されることになる。
Transmission data from transmission line 3 is transmitted from signal line 9 to G
(x) is input to the division circuit 11 and 12
Bit shift register 10 is entered. If an error bit occurs after the data and the remainder bits have been transmitted and input into the shift register 10, a syndrome has occurred in the divider 11, and the output of the shift register 10 is output. Signal line 15
While outputting one bit at a time, the contents of the shift register of the divider 11 are simultaneously shifted one bit at a time. This operation is repeated sequentially, and when all zeros are generated in the lower three bits of the shift register of the divider by the all-zero detector 12, the first c
Move the switch 16 that had been turned to the side to the d side,
The contents of the shift register of the divider 11 are outputted through the exclusive OR circuit 14, and the contents of the shift register 10 of the divider 11 are output.
The erroneous bits are corrected by performing an exclusive OR with .

次に本発明による並列処理の誤り訂正装置を一
実施例によつて説明する。第2図は本発明による
誤り訂正装置の実施例のブロツク図である。図
中、20は符号器、21は伝送路、22は復号器
を示す。まず符号器並びにこれに用いられる組合
せ割算回路について説明する。今伝送しようとす
るデータはnビツト(但しnは2以上の整数)ご
とに並列に信号線23より符号器20に入力され
る。符号器20内の切換スイツチ25は最初a側
に倒されており、線23より入力されたデータは
並列割算回路24に入ると共に切換スイツチ25
より伝送線路21に出力される。並列割算回路2
4は後述するようにnビツト単位で生成多項式G
(x)で割算を行なう回路で、データの全ビツト
の入力が終つた時出力信号線37にはデータをG
(x)で割つた剰余が出力されている。
Next, a parallel processing error correction apparatus according to the present invention will be described by way of an embodiment. FIG. 2 is a block diagram of an embodiment of an error correction device according to the present invention. In the figure, 20 is an encoder, 21 is a transmission path, and 22 is a decoder. First, the encoder and the combinational division circuit used therein will be explained. The data to be transmitted now is input to the encoder 20 from the signal line 23 in parallel every n bits (where n is an integer of 2 or more). The changeover switch 25 in the encoder 20 is initially turned to the a side, and the data input from the line 23 enters the parallel divider circuit 24 and is transferred to the changeover switch 25.
is output to the transmission line 21. Parallel divider circuit 2
4 is a generator polynomial G in units of n bits as described later.
This circuit performs division by (x), and when all bits of data have been input, the output signal line 37 receives the data
The remainder after dividing by (x) is output.

第3図は第2図における並列割算回路24の構
成を示す。割算されるデータは、nビツト並列に
入力信号線50により排他的論理和回路52を経
て組合わせ割算回路53に入る。組合わせ割算回
路53は送られてきたnビツトを生成多項式で割
算する回路であるが、先にふれたように情報ビツ
トと検査ビツトを区別するために生成多項式の最
高次の項を掛けた後G(x)で割るような論理に
なつている。組合わせ割算回路53の出力は出力
信号線54に出力される一方ラツチ回路51を経
て前記排他的論理和回路52の一方の入力に帰還
される。これは組合せ割算回路53から生じた剰
余を次に入力信号線50に現われる入力信号に加
算するためである。第3図の具体的な動作につい
ては例をあげて後述する。
FIG. 3 shows the configuration of the parallel divider circuit 24 in FIG. 2. The data to be divided enters the combinational division circuit 53 via the exclusive OR circuit 52 via the input signal line 50 in n-bit parallel fashion. The combinatorial division circuit 53 is a circuit that divides the sent n bits by the generator polynomial, but as mentioned earlier, in order to distinguish between information bits and test bits, it multiplies the highest order term of the generator polynomial. The logic is to then divide by G(x). The output of the combinational divider circuit 53 is output to an output signal line 54, and is fed back to one input of the exclusive OR circuit 52 via the latch circuit 51. This is because the remainder generated from the combinational divider circuit 53 is added to the input signal that appears next on the input signal line 50. The specific operation shown in FIG. 3 will be described later using an example.

前述の直列型の誤り訂正方式の場合に例に引い
た G(x)=x6+x5+x4+x3+1 (1) により生成される符号長12、データ長6の巡回符
号の場合について並列割算回路を第3図に示す。
これはデータは6ビツトの並列信号として処理さ
れる場合のものである。
For the case of a cyclic code with a code length of 12 and a data length of 6, which is generated by G(x) = x 6 + x 5 + x 4 + x 3 + 1 (1), which was taken as an example in the case of the serial error correction method mentioned above, the parallel The division circuit is shown in FIG.
This is the case when data is processed as a 6-bit parallel signal.

第3図において、被除数となるデータは6ビツ
ト並列に入力信号線50に入力される。この時、
それに先立つて信号線54に発生していた剰余は
ラツチ51に入つており、入力されたデータとラ
ツチの出力は排他的論理和回路52により排他的
論理和がとられ、組合せ論理回路53に入る。組
合せ論理回路53は第4図に示すように55〜6
0の6個の排他的論理和回路から構成されてお
り、x6〜x11をG(x)で割つた余りに相当する
ビツトが55〜60の排他的論理和の入力となつ
ている。第5図において、x6〜x11をG(x)で
割つた時の余りをR1〜R6の各欄の右側に示して
ある。例えばx8をG(x)で割つた余りはR3
で、x4+x2+xとなる。
In FIG. 3, the data serving as the dividend is input to the input signal line 50 in 6-bit parallel format. At this time,
The remainder generated on the signal line 54 prior to this is entered into the latch 51, and the input data and the output of the latch are exclusive ORed by the exclusive OR circuit 52 and entered into the combinational logic circuit 53. . The combinational logic circuit 53 includes 55 to 6 as shown in FIG.
It is composed of six exclusive OR circuits of 0, and the bits corresponding to the remainder when x 6 to x 11 are divided by G(x) are input to the exclusive OR of 55 to 60. In FIG. 5, the remainders when x 6 to x 11 are divided by G(x) are shown on the right side of each column of R 1 to R 6 . For example, the remainder when x 8 is divided by G(x) is R 3
So, x 4 +x 2 +x.

第4図において排他的論理和55〜60の出
力、即ち61〜66の出力信号線はx5,x4……
x、1なる余りビツトを示しており、x5の余りビ
ツトを出力する排他的論理和回路55の入力は第
5図中x5欄の下側に示されているビツトが1であ
るすべての信号線である。組合せ割算回路53の
入力信号線67にデータとして6ビツトの信号が
入力されたとき、この各ビツトはx6〜x11の重み
をもつており、61〜66の出力信号線にはx6
x11のビツトのうち1であるビツトに対応する剰
余のすべての和が出力される。この結果、送信し
ようとするデータをx6倍してこれをG(x)で割
つた剰余が出力信号線61〜66に現われてく
る。この出力信号線は第3図では信号線54に相
当し、この出力はラツチ51の入力に入り、次の
6ビツトのデータが信号線50より入力された
時、ラツチ51の出力は、この入力と排他的論理
和回路52により排他的論理和がとられる。
In FIG. 4, the outputs of exclusive ORs 55 to 60, that is, the output signal lines 61 to 66 are x 5 , x 4 . . .
The input of the exclusive OR circuit 55 which outputs the remainder bit of x5 is all the bits whose bits shown at the bottom of the x5 column in FIG. 5 are 1. It is a signal line. When a 6-bit signal is input as data to the input signal line 67 of the combinational division circuit 53, each bit has a weight of x 6 to x 11 , and the output signal lines 61 to 66 have a weight of x 6 ~
The sum of all the remainders corresponding to the bit that is 1 out of 11 bits is output. As a result, the remainder obtained by multiplying the data to be transmitted by x6 and dividing this by G(x) appears on the output signal lines 61-66. This output signal line corresponds to the signal line 54 in FIG. An exclusive OR is performed by the exclusive OR circuit 52.

今、第2図の符号器20においては、伝送デー
タは6ビツトのものが1度しか入力されないの
で、最初ラツチ51の内容は初期状態で0として
おくと、1データ入力後、出力54には剰余がす
ぐに現われる。もしデータが6ビツト2回分即ち
12ビツトの場合は、出力54がラツチ51に入
り、次の6ビツトの入力との間で排他的論理和が
とられることになる。
Now, in the encoder 20 of FIG. 2, 6-bit transmission data is input only once, so if the contents of the latch 51 are initially set to 0, then after one data input, the output 54 is A surplus appears immediately. If the data is 6 bits twice, i.e.
In the case of 12 bits, output 54 enters latch 51 and is exclusive ORed with the next 6 bit input.

第2図において6ビツトのデータを伝送路21
により伝送した後、切換スイツチ25をb側に倒
し、割算回路24の出力を信号線21に出力す
る。
In Fig. 2, 6-bit data is transferred to the transmission line 21.
After transmission, the changeover switch 25 is turned to the b side, and the output of the division circuit 24 is output to the signal line 21.

次に復号器の動作を説明する。復号器の構成の
一実施例を第2図の実線の枠22内に示す。復号
器22において、伝送路から送られて来た伝送デ
ータは、26の入力信号線よりビツト並列の記憶
手段27に入る一方第1のゲート手段28を経て
並列割算回路29に入る。並列割算回路29は前
記符号器20における並列割算回路24と同一の
構成を有する。並列割算回路29の出力は掛算回
路30に入る。この掛算回路の役割は、直列式の
誤り訂正方式の場合に述べたように、符号を短縮
化した場合に発生するデータビツトと訂正ビツト
パターンの間に発生するビツト対応のずれを補正
するために、短縮化したビツト数に相当する次数
のxの項(xl、担しlは短縮化ビツト数)を乗
ずる回路である。掛算回路の一実施例については
後述する。
Next, the operation of the decoder will be explained. An example of a decoder configuration is shown within the solid line box 22 in FIG. In the decoder 22, the transmission data sent from the transmission line enters the bit-parallel storage means 27 through the input signal line 26, and enters the parallel divider circuit 29 via the first gate means 28. The parallel division circuit 29 has the same configuration as the parallel division circuit 24 in the encoder 20. The output of parallel divider circuit 29 enters multiplier circuit 30 . As described in the case of the serial error correction method, the role of this multiplication circuit is to correct the bit correspondence deviation that occurs between the data bits and the correction bit pattern when the code is shortened. , is a circuit that multiplies an x term (x l , where l is the number of shortened bits) of an order corresponding to the shortened number of bits. An embodiment of the multiplication circuit will be described later.

lを乗ずることにより、割算回路29から得
られたシンドロームを誤りビツトパターンと一致
させることができる。但し符号の短縮化を行なわ
ない場合はこの掛算回路30は不要である。
By multiplying by x l , the syndrome obtained from the divider circuit 29 can be made to match the error bit pattern. However, if the code is not shortened, this multiplication circuit 30 is not necessary.

掛算回路30の出力は、ゼロ検出回路31によ
り監視されており、掛算回路の出力の上位ビツト
側と下位ビツト側に現われるゼロの数の和を検出
し、この和が所定の数以上である時、誤りパター
ンが検出されたとして信号線33を論理1にす
る。これによつて34なる第2のゲート回路が開
き、掛算回路30の出力とデータ記憶手段27の
出力との間で排他的論理和がとられる。この結果
誤りの生じたデータビツト部分の論理が反転して
誤りの訂正が行なわれる。但し、記憶手段27は
一語書き込みが行なわれるごとに最初に入力され
た一語が出力されるシフトレジスタ形式のもので
ある。零検出回路31の実施例については後述す
る。
The output of the multiplication circuit 30 is monitored by a zero detection circuit 31, which detects the sum of the numbers of zeros appearing on the upper bit side and the lower bit side of the output of the multiplication circuit, and detects when this sum is greater than or equal to a predetermined number. , the signal line 33 is set to logic 1, assuming that an error pattern has been detected. This opens the second gate circuit 34 and performs an exclusive OR between the output of the multiplication circuit 30 and the output of the data storage means 27. As a result, the logic of the data bit portion where the error occurred is inverted, and the error is corrected. However, the storage means 27 is of a shift register type in which the first input word is output every time one word is written. An embodiment of the zero detection circuit 31 will be described later.

次に先に直列形の誤り訂正回路の説明に用いた
生成多項式G(x)が、 G(x)=x6+x5+x4+x3+1 によつて生成される巡回符号を例ととして第2図
の復号器22の動作を説明する。前にも述べたよ
うにこの符号は、符号長15でデータ長9、検査ビ
ツトが6で3ビツトの密集した誤りが訂正できる
誤り訂正符号である。今ここではこの符号を12ビ
ツトに短縮化し、これを6ビツトずつに分け、6
ビツトを1ブロツクとして並列伝送する場合を考
える。
Next , the generator polynomial G(x) used in the explanation of the serial error correction circuit can be expressed as The operation of the decoder 22 shown in FIG. 2 will be explained. As mentioned earlier, this code is an error correction code with a code length of 15, a data length of 9, and a check bit of 6, which can correct 3-bit clustered errors. Now, we will shorten this code to 12 bits, divide it into 6 bits each, and
Consider the case where bits are transmitted in parallel as one block.

今この符号において、データ例として〓〓〓
000011を伝送する場合を考える。但しここでは3
ビツト短縮化しているので、先頭の3ビツトは常
に0として無視する。この符号を多項式で表現す
ると、x+1で、第2図中の符号器20では先に
述べた構成により、これにx6を乗じ、これにG
(x)で割つた剰余を付加することにより、 x7+x6+x5+x4+x なる伝送符号を生成する。これはビツトパターン
で書くと、 (000011110010)であり、これを先頭から6ビ
ツトごとに並列に伝送するのであるから第2図中
の伝送線路21には1クロツクタイミングごとに
(000011)、(110010)が順次送出されることにな
る。第2図の復号器22ではこれを順次受信する
が、まず(000011)を受信し、これを並列の記憶
手段27にとり込むと共に、ゲート手段28を経
て並列割算回路29に入る。並列割算回路29は
第3図のような構成になつている。第3図におい
てラツチ51は最初0となつており、受信された
(000011)なるデータは排他的論理和回路52を
通つて組合せ論理回路53に入る。組合せ論理回
路53の構成は第4図に示す通りであり、
(000011)なる入力が得られた時の出力は
(110010)である。この出力はラツチ51にとり
込まれる。
Now, in this code, as an example of data 〓〓〓
Consider the case of transmitting 000011. However, here 3
Since the bits are shortened, the first 3 bits are always treated as 0 and ignored. If this code is expressed as a polynomial, it is x+1, and the encoder 20 in FIG.
By adding the remainder after dividing by (x), a transmission code of x 7 +x 6 +x 5 +x 4 +x is generated. When written as a bit pattern, this is (000011110010), and since this is transmitted in parallel every 6 bits from the beginning, (000011), (000011), ( 110010) will be sent out sequentially. The decoder 22 in FIG. 2 receives these sequentially, but first receives (000011), takes this into the parallel storage means 27, and enters the parallel division circuit 29 via the gate means 28. The parallel divider circuit 29 has a configuration as shown in FIG. In FIG. 3, the latch 51 is initially set to 0, and the received data (000011) passes through the exclusive OR circuit 52 and enters the combinational logic circuit 53. The configuration of the combinational logic circuit 53 is as shown in FIG.
When an input of (000011) is obtained, the output is (110010). This output is taken into latch 51.

次のタイミングで今度は次のデータ(110010)
が第2図の記憶手段27にとり込まれる。この時
第3図の並列割算回路の入力にも(110010)が現
われ、これとラツチ51の出力との間で排他的論
理和がとられる結果この出力はすべて零となる。
従つて並列割算回路の出力も零で、この場合は誤
りが発生していないことが分かり、次のタイミン
グで第2図の記憶装置27に蓄えられていたデー
タは、排他的論理和を経てそのまま出力信号線3
6にとり出されることになる。
At the next timing, next data (110010)
is taken into the storage means 27 in FIG. At this time, (110010) also appears at the input of the parallel divider circuit in FIG. 3, and as a result of exclusive ORing between this and the output of latch 51, the outputs become all zero.
Therefore, the output of the parallel divider circuit is also zero, indicating that no error has occurred in this case, and at the next timing, the data stored in the storage device 27 in FIG. 2 is processed through exclusive OR. Output signal line 3 as is
It will be taken out on the 6th.

次に第2図の伝送線路21において前述の
(000011)、(110010)なるデータに誤りが生じた
結果、(001×1×1×1)、(110010)とデータビツ

が3ビツト変化したとする。(3ビツトのバース
ト誤り)、この時第3図の並列割算回路には
(001101)が入力される。最初ラツチ51はクリ
アされているのでこのデータは直接組合せ割算回
路53に入り、この出力には(000011)が現わ
れ、ラツチ51に蓄えられる。次に信号線50に
は(110010)が現われ、ラツチ51と排他的論理
和をとることにより、(110001)が組合せ割算回
路53の入力となる。この時組合せ割算回路53
の出力には(100011)が得られる。原送信データ
は3ビツト短縮化しているので、これに更にx3
乗じることによつて誤りパターンが得られる。但
しこの場合の演算はG(x)を法とする乗算であ
るので、実際にはx3/G(x)の演算となる。一
般にxl/G(x)(lは整数)の演算は第3図に
示す組合せ割算回路53と同じ構成で実現でき、
考え方も同じである。
Next, as a result of an error occurring in the data (000011) and (110010) mentioned above in the transmission line 21 in Figure 2, the data bits changed by 3 bits to (001 x 1 x 1 x 1) and (110010). do. (3-bit burst error) At this time, (001101) is input to the parallel divider circuit of FIG. Since latch 51 is initially cleared, this data goes directly into combinational divider circuit 53, and (000011) appears at its output, which is stored in latch 51. Next, (110010) appears on the signal line 50, and by performing an exclusive OR with the latch 51, (110001) becomes an input to the combinational division circuit 53. At this time, the combinational division circuit 53
The output will be (100011). Since the original transmission data has been shortened by 3 bits, an error pattern can be obtained by further multiplying this by x3 . However, since the operation in this case is a multiplication modulo G(x), it is actually an operation of x 3 /G(x). Generally, the operation of x l /G(x) (l is an integer) can be realized with the same configuration as the combinational division circuit 53 shown in FIG.
The idea is the same.

第9図にx3/G(x)(但し、G(x)=x6+x5
+x4+x3+1)の一実施例を示す。同図におい
て、70は入力信号線、71は排他的論理和回
路、72は出力信号線である。この回路は第2図
では掛算回路30に相等する。今第9図の入力信
号線70に前述の第2図の組合せ割算回路29の
出力(100011)が入力された時、その出力は
(001110)となる。この出力は第2図の零検出回
路31に入力される。零検出回路31は入力され
たデータの一端からの零の数と、他端からの零の
数の和を監視しており、その和がこの場合3以上
であるので誤り検出が行なわれたとして第2図の
信号線33を論理1にしてゲート34を開く。こ
の時前述の記憶手段27に記憶されていた先のデ
ータ(001101)が読み出され、排他的論理和回路
35により排他的論理和がとられる。
In Figure 9, x 3 /G(x) (G(x) = x 6 + x 5
+x 4 +x 3 +1). In the figure, 70 is an input signal line, 71 is an exclusive OR circuit, and 72 is an output signal line. This circuit is equivalent to multiplication circuit 30 in FIG. Now, when the output (100011) of the combinational division circuit 29 of FIG. 2 described above is input to the input signal line 70 of FIG. 9, the output becomes (001110). This output is input to the zero detection circuit 31 shown in FIG. The zero detection circuit 31 monitors the sum of the number of zeros from one end of the input data and the number of zeros from the other end, and since the sum is 3 or more in this case, it is assumed that an error has been detected. The signal line 33 in FIG. 2 is set to logic 1 and the gate 34 is opened. At this time, the previous data (001101) stored in the storage means 27 mentioned above is read out and exclusive ORed by the exclusive OR circuit 35.

(0011001)(001110) =(000011) この結果出力信号線36には誤りの訂正された
データがとり出される。
(0011001) (001110) = (000011) As a result, error-corrected data is taken out to the output signal line 36.

なお、零検出回路31で検出される3ビツトの
誤りパターンは第6図に示すとおりで、いずれも
両端の零の数の和が3である。2ビツト以下の誤
りの時は零の数の和は4以上となる。
The 3-bit error pattern detected by the zero detection circuit 31 is as shown in FIG. 6, and the sum of the numbers of zeros at both ends is three. If the error is 2 bits or less, the sum of the number of zeros will be 4 or more.

なお検査ビツトに誤りが生じた場合、特に訂正
する必要はないが、もし訂正が必要な場合は、第
2図の組合せ割算回路29に2組のデータをとり
込んでシンドロームを計算した後、もう一度この
シンドロームを第3図のラツチ51を通じて組合
せ割算回路53に帰還することによつて先に述べ
たデータ上位に誤りが発生した場合と同様の扱い
ができる。
Note that if an error occurs in the test bit, there is no particular need to correct it; however, if correction is necessary, input the two sets of data into the combinational division circuit 29 in FIG. 2, calculate the syndrome, and then By feeding this syndrome back to the combinational division circuit 53 through the latch 51 in FIG. 3, it can be handled in the same way as when an error occurs in the upper part of the data as described above.

次に第2図における零検出回路31についてそ
の構成例を説明する。これは複数本の並行信号線
上において、その一端から数えたときの論理
「0」である信号線の数と、他端から数えた論理
「0」である信号線の数の和がある特定数(又は
それ以上或はそれ以下)であることを検出するた
めの回路である。
Next, a configuration example of the zero detection circuit 31 shown in FIG. 2 will be explained. This is a specific number that is the sum of the number of signal lines that are logic "0" when counted from one end and the number of signal lines that are logic "0" counted from the other end on multiple parallel signal lines. (or more or less).

第7図はそのブロツク図である。第7図におい
て101は0の個数を検出しようとしているk本
の並列信号線である。この信号線をS1,S2,……
kとする。102並びに103は優先順位回路
であり、その回路図を第8図に示す。第8図にお
いて、117はk本の入力信号線で、これをi1
i2……ikとする。入力信号線117のうちi1は直
接に出力信号線118のうちの1本に接続されて
いる。この出力信号線をO1とし、残りをO2〜Ok
とする。O2〜Okなる信号線はアンドゲート11
6の各ゲートA2〜Akの出力となつており、A2
kのアンドゲートの入力はi2〜ikの信号線と更
に入力信号線のうち自分より添字の若い信号線の
論理を否定したものが入力されている。
FIG. 7 is a block diagram thereof. In FIG. 7, 101 is k parallel signal lines whose number of 0's is to be detected. Connect these signal lines to S 1 , S 2 ,...
Let it be S k . 102 and 103 are priority circuits, the circuit diagram of which is shown in FIG. In FIG. 8, 117 is k input signal lines, which are connected to i 1 ,
i 2 ...i k . Of the input signal lines 117, i 1 is directly connected to one of the output signal lines 118. This output signal line is O 1 , and the rest are O 2 ~ O k
shall be. The signal line O 2 ~O k is AND gate 11
It is the output of each gate A 2 to A k of 6, and A 2 to A k
The inputs of the AND gate of A k are input with the signal lines i 2 to i k and the logics of the signal lines with lower subscripts than the input signal lines that are negated.

今仮にi1に論理「1」(以下単に1と略記す
る)が入力された場合、出力信号線O1は論理1
となるが、他の出力信号線O2〜Okはi1を否定し
たものでゲートされているので、入力信号の値に
かかわらず出力は0である。同様にしてiI(I
≦kなる自然数)にはじめて1が現われた時は、
それ以下のゲートが禁止され、出力信号線OI
みに1が現われる。即ち第8図の優先順位回路は
i1側から見て最初に論理1になつた信号線の出力
のみに論理1が現われる回路である。
Now, if logic " 1 " (hereinafter simply abbreviated as 1) is input to i 1, output signal line O 1 becomes logic 1.
However, since the other output signal lines O 2 to O k are gated with the negation of i 1 , the output is 0 regardless of the value of the input signal. Similarly, i I (I
When 1 appears for the first time in natural numbers ≦k,
Gates below this are prohibited, and 1 appears only on the output signal line O I. In other words, the priority circuit in Figure 8 is
This is a circuit in which logic 1 appears only in the output of the signal line that first becomes logic 1 when viewed from the i1 side.

今第7図において優先順位回路102の入力信
号線i1〜ikはそれぞれ101なる信号線S1〜Sk
に接続されており、103なる優先順位回路では
kがS1に、i1がSkにというように102の場合
とは丁度逆の関係に入力信号線が接続されてい
る。102並びに103の優先順位回路の出力は
104並びに105なる信号線を経て106並び
に107なる符号器に入り、104並びに105
なる信号線の論理1が発生した位置に対応した2
進符号に変換される。110は2進の加算回路で
あり、106並びに107によつて得られた2進
符号を加算する。110なる加算回路の出力は1
12なる数値比較器により111なる信号線で与
えられる特定2進数値と比較され、大きければ1
13なる信号線に1が、等しければ114に、小
さければ115に1が出力される。以上により信
号線101の一端と他端に上記特定2進数で示さ
れる所定の個数の零の連続が発生したことが検出
され、誤りパターンが検出されたとみなすことが
できる。
In FIG. 7, the input signal lines i 1 to i k of the priority circuit 102 are 101 signal lines S 1 to S k , respectively.
In the priority circuit 103, the input signal lines are connected in exactly the opposite relationship to the case of 102, such as i k to S 1 and i 1 to S k . The outputs of the priority circuits 102 and 103 enter the encoders 106 and 107 via signal lines 104 and 105, and are input to the encoders 104 and 105.
2 corresponding to the position where logic 1 of the signal line occurs
Converted to decimal code. 110 is a binary addition circuit, which adds the binary codes obtained by 106 and 107. The output of the adder circuit 110 is 1
It is compared with the specific binary value given by the signal line 111 by the numerical value comparator 12, and if it is larger, it is 1.
1 is output to the signal line 13, if they are equal, 1 is output to 114, and if they are smaller, 1 is output to 115. As a result of the above, it is detected that a predetermined number of consecutive zeros indicated by the above-mentioned specific binary numbers have occurred at one end and the other end of the signal line 101, and it can be considered that an error pattern has been detected.

本発明によれば、以上のように1データをnビ
ツト並列に誤り訂正を行なうことにより、誤り訂
正の処理を高速化できる。
According to the present invention, by performing error correction on n bits of one data in parallel as described above, error correction processing can be speeded up.

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

第1図は一般的な誤り訂正方式を説明する図、
第2図は本発明の並列型誤り訂正方式の実施例を
示すブロツク図、第3図は本発明に用いる並列型
割算回路を示す図、第4図は並列型割算回路に用
いる組合せ割算回路を示す図、第5図は組合せ割
算回路の論理を説明する図、第6図は誤りのビツ
トパターンを説明する図、第7図は本発明に用い
られる零検出回路の実施例を示すブロツク図、第
8図は零検出回路に使用する優先順位回路を示す
図、第9図はx3/G(x)の演算回路の一実施例
を示す図である。 20……符号器、22……復号器、24……並
列割算回路、27……記憶手段、28……第1の
ゲート手段、29……並列割算回路、30……掛
算回路、31……零検出回路、34……第2のゲ
ート手段、35……排他的論理和手段。
Figure 1 is a diagram explaining a general error correction method.
FIG. 2 is a block diagram showing an embodiment of the parallel error correction system of the present invention, FIG. 3 is a diagram showing a parallel divider circuit used in the present invention, and FIG. 4 is a combinatorial divider diagram used in the parallel divider circuit. FIG. 5 is a diagram showing the logic of the combinational division circuit, FIG. 6 is a diagram explaining error bit patterns, and FIG. 7 is an example of the zero detection circuit used in the present invention. FIG. 8 is a diagram showing a priority circuit used in the zero detection circuit, and FIG. 9 is a diagram showing an embodiment of an arithmetic circuit for x 3 /G(x). 20... Encoder, 22... Decoder, 24... Parallel division circuit, 27... Storage means, 28... First gate means, 29... Parallel division circuit, 30... Multiplication circuit, 31 . . . zero detection circuit, 34 . . . second gate means, 35 . . . exclusive OR means.

Claims (1)

【特許請求の範囲】[Claims] 1 巡回符号を用いた誤り訂正方式によつてデー
タ伝送中に生じたビツト誤りを訂正する受信方式
で、巡回符号のnビツト(ただし、nは2以上の
整数であつて、各ビツトをao-1o-2……a0とす
る)を1単位としてこの単位ごとに並列にビツト
を処理することを特徴とし、該処理手段は受信さ
れた巡回符号の情報ビツト部分を前記の1単位ご
とに並列に記憶する記憶手段と、受信された巡回
符号をゲートする第1のゲート手段と、前記第1
のゲート手段からの出力を巡回符号において定め
られたm次の生成多項式で割り算し、その剰余を
計算する割り算手段と、前記割り算手段の出力b
n-1n-2…b0において、bn-1+bn-2+……+bn
−i<1を満足する最大のiをinax,b0+b1+……
+bi-1<1を満足する最大のiをi′naxとすると
き、inax+i′naxを求める零検出手段と、前記零
検出手段の出力が前記生成多項式で予め決まる一
定値以上であることを検出したとき、前記割り算
手段の出力bn-1n-2……b0を出力する第2のゲ
ート手段と、前記第2のゲート手段の出力bn-1
n-2……b0と前記記憶手段の出力ao-1o-2……
a0との間で排他的論理和を取り、この結果を誤り
訂正出力とする排他的論理和手段を有し、かつ、
前記割り算手段は、先に計算された剰余出力を入
力側に帰還し、この剰余の上位nビツトbn-1n
−2……bn-oと次に受信されるnビツトのデータ
a′o-1a′o-2……a′0との間で排他的論理和を取つた
後、前記生成多項式で割り算を行ない、その結果
の剰余の上位m−nビツトb′n-1b′n-2……b′n-o
先の剰余出力の下位ビツトbn-o-1n-o-2……b0
との間で排他的論理和を取り、その結果得られる
b″n-1b″n-2……b″0が新たな剰余として出力され
るように構成した誤り訂正装置。
1 A reception method that corrects bit errors that occur during data transmission using an error correction method using a cyclic code, in which n bits of the cyclic code (n is an integer greater than or equal to 2, and each bit is a -1 a o- 2 . a first gate means for gating the received cyclic code; and a first gate means for gating the received cyclic code;
a dividing means for dividing the output from the gate means by an m-th order generator polynomial determined in the cyclic code and calculating the remainder; and an output b of the dividing means.
n-1 b n-2 …at b 0 , b n-1 +b n-2 +……+b n
The maximum i that satisfies −i < 1 is i nax , b 0 +b 1 +...
+b i-1 < 1, where i' nax is the maximum i, and zero detection means for determining i nax +i' nax , and the output of the zero detection means is greater than or equal to a certain value predetermined by the generating polynomial. a second gate means which outputs an output b n-1 b n-2 ...b 0 of the dividing means when it detects that
b n-2 ... b 0 and the output of the storage means a o-1 a o-2 ...
has exclusive OR means for performing an exclusive OR with a 0 and outputting this result as an error correction output, and
The dividing means feeds back the previously calculated remainder output to the input side, and divides the upper n bits of this remainder b n-1 b n
-2 ...b no and the next n bits of data received
a' o-1 a ' o-2 .... After performing exclusive OR with a' 0 , division is performed by the generator polynomial, and the upper m-n bits of the resulting remainder are b' n- 1 b′ n-2 ...b′ no and the lower bit of the previous remainder output b no-1 b no-2 ...b 0
Take the exclusive OR between and get the result
b″ n-1 b″ n-2 …b″ An error correction device configured so that 0 is output as a new remainder.
JP12051578A 1978-09-30 1978-09-30 Error corrector Granted JPS5546665A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12051578A JPS5546665A (en) 1978-09-30 1978-09-30 Error corrector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12051578A JPS5546665A (en) 1978-09-30 1978-09-30 Error corrector

Publications (2)

Publication Number Publication Date
JPS5546665A JPS5546665A (en) 1980-04-01
JPS623619B2 true JPS623619B2 (en) 1987-01-26

Family

ID=14788125

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12051578A Granted JPS5546665A (en) 1978-09-30 1978-09-30 Error corrector

Country Status (1)

Country Link
JP (1) JPS5546665A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0159403A3 (en) * 1984-04-27 1987-11-11 Siemens Aktiengesellschaft Arrangement for correcting bundle errors in reduced-cyclic block codes
JPH07114377B2 (en) * 1987-05-01 1995-12-06 日本電気株式会社 Single error correction mechanism
JPH03222523A (en) * 1990-01-29 1991-10-01 Hitachi Ltd Parallel error detection circuit

Also Published As

Publication number Publication date
JPS5546665A (en) 1980-04-01

Similar Documents

Publication Publication Date Title
US4649541A (en) Reed-Solomon decoder
US5440570A (en) Real-time binary BCH decoder
CA1295744C (en) Error correction method using reed-solomon code
EP0431629A2 (en) Mutual division circuit
EP0032055A1 (en) Document processing system
JP2001502153A (en) Hardware-optimized Reed-Solomon decoder for large data blocks
US5442578A (en) Calculating circuit for error correction
US5694330A (en) Error correction method including erasure correction, and apparatus therefor
EP0249982B1 (en) Decoder
US5818854A (en) Reed-solomon decoder
JPH0728227B2 (en) Decoding device for BCH code
EP0366331B1 (en) System and method for error detection in the result of an arithmetic operation
US4592054A (en) Decoder with code error correcting function
EP0431576A2 (en) BCH code decoder and method for decoding a BCH code
US4644543A (en) Forward error correction hardware for a data adaptor
JPS623619B2 (en)
JPH10112660A (en) Error decoding method and device utilizing reed solomon code
JP3614978B2 (en) Galois field division method and division apparatus
JP2001036414A (en) Crc code generation circuit and crc error detection circuit
US5031137A (en) Two input bit-serial multiplier
JP3953397B2 (en) Reed-Solomon encoding circuit and Reed-Solomon decoding circuit
CA1314995C (en) Method and apparatus for decoding reed-solomon code
JP2575506B2 (en) Chain search circuit
JPS6217256B2 (en)
JP3071482B2 (en) Error correction circuit of packet receiver