JPH09162753A - Decoding system for code word - Google Patents

Decoding system for code word

Info

Publication number
JPH09162753A
JPH09162753A JP7316206A JP31620695A JPH09162753A JP H09162753 A JPH09162753 A JP H09162753A JP 7316206 A JP7316206 A JP 7316206A JP 31620695 A JP31620695 A JP 31620695A JP H09162753 A JPH09162753 A JP H09162753A
Authority
JP
Japan
Prior art keywords
partial
syndrome
error
code word
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
JP7316206A
Other languages
Japanese (ja)
Inventor
Fukiyou Ri
富強 李
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP7316206A priority Critical patent/JPH09162753A/en
Publication of JPH09162753A publication Critical patent/JPH09162753A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Error Detection And Correction (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce the time required for arithmetic operation of a syndrome relating to the case of decoding a code word which is able to correct a t- multiple error for a series consisting of 255 sets consecutive symbols each in 8-bit structure being an element on an extended Galois field. SOLUTION: A prescribed number from a symbol series of a code word, for example, two partial series consisting of symbols extracted by two each are generated, and a partial arithmetic means 10 is provided to each partial series and a partial syndrome with respect to each partial series is calculated simultaneously in parallel, an overall arithmetic means 20 combines two partial syndromes to integrate the result into a syndrome Sp relating to the code word, then repetitive arithmetic operations of 255 times having been required by a conventional system is reduced to 128 times. Then the syndrome arithmetic time is reduced to a half.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は誤り訂正符号を含む
シンボル系列としてなる符号語,とくにいわゆるリード
・ソロモン符号(以下,RS符号と呼ぶ)を用いる符号
語を復号ないしはデコードするに際して,誤りの有無を
検出した上で必要に応じて誤りを訂正するための符号語
の復号方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to the presence / absence of an error in decoding or decoding a code word which is a symbol sequence including an error correction code, particularly a code word using a so-called Reed-Solomon code (hereinafter referred to as RS code). The present invention relates to a codeword decoding method for detecting an error and correcting an error as necessary.

【0002】[0002]

【従来の技術】ディジタルな情報ないしデータを取り扱
う種々な分野では、周知のようにその伝送時や記憶媒体
からの読み取り時に発生しやすい誤りを検出しかつ訂正
をするため情報に情報理論に基づいた誤り訂正符号を付
加して両者を含む符号語の形に符号化しておき、伝送後
や読み取り後にそれを復号する際にも常にこの符号語を
単位として取り扱うのが一般的である。例えば前述のR
S符号を用いる符号語はいわゆる拡張ガロア体 GF
(2m ) 上の元としてのmビット構成のシンボルをn個
(n=2 m −1)並べた系列であり、ふつうm=8として8
ビット構成のシンボル,すなわち各1バイトのデータが
255個並んだシンボル系列とする。
2. Description of the Related Art In various fields handling digital information or data, it is well known that information is based on information theory in order to detect and correct errors that are likely to occur during transmission or reading from a storage medium. It is general that an error correction code is added and encoded in the form of a code word containing both of them, and this code word is always treated as a unit even when decoding it after transmission or reading. For example, the above R
The code word using the S code is a so-called extended Galois field GF
(2 m ) n symbols with m-bits as elements on
(n = 2 m −1), which is an arrayed sequence, and is usually 8 with m = 8.
Bit-structured symbols, that is, each 1-byte data
It is a series of 255 symbols.

【0003】このRS符号を用いる符号語において、t
重の誤りをバイト単位で訂正可能とするにはn個のシン
ボルの内の2t個を誤り訂正符号に割り当てて符号語内の
正味情報量をn-2t個のバイト分とする。その符号化の際
は拡張ガロア体 GF(2m ) の原始元をαとしてαp (p=
0,1〜2t-1) で表される2t個の根を有する生成多項式を
用い、符号語多項式W(x)=ΣWixi がこの生成多項式で
割り切れるようにする。ただし、Σは変数iについての
i=n-1〜0 の範囲内の加算を示し、Wiは符号語のi番目
のシンボル, xは見せ掛けの変数である。
In a codeword using this RS code, t
To make it possible to correct double errors in byte units, 2t of n symbols are assigned to the error correction code, and the net amount of information in the codeword is n-2t bytes. At the time of encoding, let α p (p = p = p = p ) be the primitive element of the extended Galois field GF (2 m ).
A generator polynomial having 2t roots represented by 0,1 to 2t-1) is used, and the codeword polynomial W (x) = ΣWix i is divisible by this generator polynomial. However, Σ is
i represents the addition within the range of i = n-1 to 0, Wi is the i-th symbol of the codeword, and x is a pseudo variable.

【0004】この符号語を受信して復号する際は符号語
多項式W(x)の変数xにαp を入れることによりまず受信
した符号語の一種の病状を示すシンドロームSp=W
p ) を求める。符号化したときの符号語の多項式W
(x)が根αp をもつ生成多項式で割り切れるのであるか
ら、受信符号語に誤りがなけれはシンドロームSiは0で
あり、そうでない場合は誤りが発生していることがわか
る。図3にかかるシンドロームSp=W(αp ) =ΣWiαpi
を求める従来の要領を示す。
When this code word is received and decoded, a syndrome Sp = W indicating a kind of medical condition of the received code word is first set by inserting α p into the variable x of the code word polynomial W (x).
Find (α p ). Codeword polynomial W when encoded
Since (x) is divisible by the generator polynomial having the root α p , it can be seen that the syndrome Si is 0 if there is no error in the received codeword, and an error has occurred otherwise. Syndrome according to FIG. 3 Sp = W (α p ) = ΣWiα pi
The conventional procedure for obtaining

【0005】図3の左上部に示すメモリ1は受信した符
号語を構成するn個のシンボルWiを記憶しており、アド
レス指定回路2からパルスDPに応じ逐次デクリメントさ
れるアドレスADを受けて8ビットのバス3上に i=n-1か
ら始まるシンボルWiを順次に乗せる。このバス3からシ
ンボルWiを順次に受けてシンドロームS0, S1〜Sp等を求
めるためシンドローム演算回路4がそれぞれ設けられ
る。前述のt重の誤りを検出かつ訂正する場合は、これ
らシンドローム演算手段4は p=0〜2t-1の範囲のシンド
ロームSpを求めるために2t個設けられる。
The memory 1 shown in the upper left portion of FIG. 3 stores n symbols Wi constituting the received code word, and receives the address AD which is sequentially decremented according to the pulse DP from the address designating circuit 8 The symbols Wi starting from i = n-1 are sequentially placed on the bit bus 3. Syndrome arithmetic circuits 4 are provided for sequentially receiving the symbols Wi from the bus 3 to obtain the syndromes S0, S1 to Sp and the like. When detecting and correcting the above-mentioned t-fold error, 2t of these syndrome calculation means 4 are provided to obtain the syndrome Sp in the range of p = 0 to 2t-1.

【0006】シンドロームS0用の演算手段4は各8ビッ
ト構成の加算回路5とレジスタ6とからなり、加算回路
5はバス4から8ビットのシンボルWiを受けたつどにそ
れをレジスタ6の8ビットの記憶内容にビットごとに加
えて行くが、加算が2を法とするMod2なので8個のイク
スクルーシブオアゲートで構成される。レジスタ6は演
算回路4の動作開始時にクリアされ、前述のデクリメン
トパルスDPに同期したラッチパルスLPに応じて加算回路
5から加算結果を読み取る。シンドロームSOはシンボル
Wiの単純な和ΣWiであるから、最後のシンボルW0の加算
が完了した後にレジスタ6からこれを取り出せばよいこ
とになる。
The arithmetic means 4 for the syndrome S0 is composed of an adder circuit 5 and a register 6 each having an 8-bit structure. The adder circuit 5 receives the 8-bit symbol Wi from the bus 4 and outputs it to the 8-bit register 6 bit. Although it is added to the memory content of each bit, since it is Mod2 whose addition is modulo 2, it is composed of 8 exclusive or gates. The register 6 is cleared at the start of the operation of the arithmetic circuit 4, and the addition result is read from the addition circuit 5 in response to the latch pulse LP synchronized with the above-described decrement pulse DP. Syndrome SO is a symbol
Since it is a simple sum ΣWi of Wi, it is sufficient to take it out from the register 6 after the addition of the last symbol W0 is completed.

【0007】シンドロームS1以降用の演算手段4には加
算回路5とレジスタ6のほかに乗算回路7を組み込み、
レジスタ6の記憶内容にシンドロームS1の場合は原始元
α,シンドロームSpの場合はαp を乗算して加算回路5
に出力させる。演算手段4の動作をシンドロームSpにつ
いて説明すると、レジスタ6の記憶内容のクリア後に最
初のシンボル Wn-1 を受けたときラッチパルスLPに応じ
てレジスタ6内にこのシンボルWn-1 が読み込まれる。
次のシンボルWn-2 を受けたとき加算回路5はそれに乗
算回路7の出力αp n-1 を加算するから、レジスタ6
はαp n-1 +Wn-2 を記憶する。以降は同様にして最
後のW0 を受けた後のレジスタ6の記憶内容はαp(n-1)
n-1p(n-2)n-2 〜αW1+W0 =ΣWiαpi=Spにな
るから、これをp次のシンドロームとして取り出せばよ
いことになる。
In addition to the adder circuit 5 and the register 6, the multiplication circuit 7 is incorporated in the arithmetic means 4 for the syndrome S1 and thereafter,
The content stored in the register 6 is multiplied by the primitive element α in the case of the syndrome S1 and by α p in the case of the syndrome Sp, and the addition circuit 5
Output. The operation of the calculating means 4 will be described with respect to the syndrome Sp. When the first symbol W n-1 is received after the memory contents of the register 6 are cleared, this symbol W n-1 is read into the register 6 in response to the latch pulse LP. .
When receiving the next symbol W n-2 , the adding circuit 5 adds the output α p W n-1 of the multiplying circuit 7 to it, so that the register 6
Stores α p W n-1 + W n-2 . After that, similarly, the stored content of the register 6 after receiving the last W 0 is α p (n-1)
Since W n-1 + α p (n-2) W n-2 to α W 1 + W 0 = ΣWiα pi = Sp, this can be taken out as a p-th order syndrome.

【0008】2t個のシンドロームSp(p=0〜2t-1) がすべ
て0であれば誤りはないが、そうでない場合は誤りを訂
正する必要があり、そのためにはまず誤り位置と誤りの
値をこれらシンドロームSpから求める。このため, 誤り
があるシンボルの符号語内の番号をj(j=0〜t-1)として
誤り位置を誤りロケータαj で表し、その逆数α-jを根
とするt次の誤り位置多項式を作る。次に、誤りの値が
Ejである誤り多項式をE(x)=ΣEjxj とすると、シンド
ロームはSp=E(αp ) =ΣEjαpjであることを利用して
ピーターソン法, バーレンカンプ・マッツィ法, ユーク
リッド法として知られている手法により誤り位置多項式
を0と置いた方程式を解くことによって誤りロケータα
j を求め, 次に誤りの値Ejを求める。かかる誤りロケー
タαj と誤りの値Ejの判明後はj番目のシンボルWjの誤
りを誤りの値Ejを加算することにより訂正し、これで符
号語の復号が完了する。
If all of the 2t syndromes Sp (p = 0 to 2t-1) are 0, there is no error, but if not, it is necessary to correct the error. For that purpose, first, the error position and the value of the error. From these syndromes Sp. Therefore, the error position is represented by an error locator α j, where the number in the code word of the errored symbol is j (j = 0 to t-1), and the reciprocal α -j is the root of the error position polynomial of degree t. make. Then the wrong value is
If the error polynomial Ej is E (x) = ΣEjx j , the syndrome is known as Peterson's method, Bahrenkamp-Mazzi method, and Euclidean method using Sp = E (α p ) = ΣEj α pj. The error locator α
Find j and then find the error value Ej. After the error locator α j and the error value Ej are known, the error of the jth symbol Wj is corrected by adding the error value Ej, and the decoding of the code word is completed.

【0009】[0009]

【発明が解決しようとする課題】以上に説明した符号語
の復号を種々な用途に容易に適用できるようにするには
復号機能を集積回路装置に組み込むのが望ましいが、実
際には演算規模が非常に大きくなるのでVLSIとする必要
があり、その構成を簡単化するためシストニックアルゴ
リズムを用いてパイプライン処理をすることが考えられ
ている (例えば、Trans. on Computers, Vol. C-34, N
o.5, May 1985, p.383-403 や電子通信学会論文誌, 198
6/3, Vol.J69-A, No.3, p.420-428を参照) 。しかし、
従来技術ではその復号動作のための演算, とくにシンド
ロームの演算にかなりの時間を要する点がその実用面で
の最大の問題点になっている。
It is desirable to incorporate a decoding function into an integrated circuit device so that the decoding of the code word described above can be easily applied to various purposes. Since it becomes very large, it must be a VLSI, and pipeline processing using a stonic algorithm has been considered to simplify its configuration (for example, Trans. On Computers, Vol. C-34, N
o.5, May 1985, p.383-403 and IEICE Transactions, 198
6/3, Vol.J69-A, No.3, p.420-428). But,
In the prior art, the point that a considerable amount of time is required for the calculation for the decoding operation, especially the calculation of the syndrome, is the biggest problem in practical use.

【0010】例えば図3のような従来方式では、符号語
が8ビットの 255個のシンボルからなる場合のシンドロ
ームSp用の演算手段4は乗算回路7によりレジスタ6の
記憶内容にαp を乗算しかつ加算回路5により乗算結果
にシンボルWiを加算して行く積和の演算を255 回も繰り
返す必要があるため、演算手段4を図のように複数個設
けて並行して動作させてもシンドロームの演算だけにか
なりの時間が掛かってしまう。また、シンドロームの演
算は前述のように復号のための一連の動作中の最初のス
テップなのでパイプライン処理に不適であり、図3のメ
モリ1内に受信符号語を一旦取り込んだ上でそのシンボ
ルWiを1個ずつ取り出して演算手段4に与えねばならな
いので、メモリ1に対する多数回のアクセスに必要な時
間が復号速度を高める上での障害になっているのが実情
である。
In the conventional system as shown in FIG. 3, for example, when the code word is composed of 255 symbols of 8 bits, the arithmetic means 4 for the syndrome Sp multiplies the storage content of the register 6 by α p by the multiplication circuit 7. Moreover, since it is necessary to repeat the product-sum operation of adding the symbol Wi to the multiplication result by the adder circuit 255 times, even if a plurality of operation means 4 are provided as shown in FIG. Only the calculation takes a considerable amount of time. Moreover, since the calculation of the syndrome is the first step in the series of operations for decoding as described above, it is not suitable for pipeline processing, and once the received codeword is loaded into the memory 1 of FIG. Since it has to be taken out one by one and given to the computing means 4, the time required for a large number of accesses to the memory 1 is an obstacle to increasing the decoding speed.

【0011】かかる事情に鑑み、本発明の目的は符号語
を復号する際のシンドローム演算に要する時間を短縮す
ることにある。
In view of such circumstances, it is an object of the present invention to reduce the time required for the syndrome calculation when decoding a codeword.

【0012】[0012]

【課題を解決するための手段】本発明によれば上記の目
的は、シンボル系列としてなる符号語の復号に際して系
列から所定個数ごとにシンボルを抽出してシンボルの部
分系列を作って各部分系列ごとに部分演算手段を設け、
これらの部分演算手段により複数の部分系列に関するシ
ンドロームの部分演算を同時に進行させ、複数個の部分
演算結果を統合演算手段により組み合わせて符号語に関
するシンドロームを演算することにより達成される。こ
の本発明の復号方式は符号語にRS符号を用い,そのシ
ンボルが拡張ガロア体上の例えば8ビットの元である場
合にとくに適する。
According to the present invention, the above object is achieved by decoding each predetermined number of symbols from a sequence when decoding a code word as a symbol sequence to create a partial sequence of symbols and generate each partial sequence. Partial calculation means is provided in
It is achieved by simultaneously performing partial operations of the syndromes related to a plurality of partial sequences by these partial operation means, and combining a plurality of partial operation results by the integrated operation means to calculate the syndromes related to the code word. The decoding method of the present invention uses an RS code as a code word, and is particularly suitable when the symbol is, for example, an 8-bit element on an extended Galois field.

【0013】本発明方式を実施する際は、復号すべき符
号語がメモリから乗せられるバスにシンボル系列のシン
ボルを部分演算手段に対応する個数ずつ同時に乗せ、各
部分演算手段にこれらのシンボルをバスから並列に読み
込むのがメモリへのアクセス時間を短縮する上で非常に
有利である。例えば、16ビットのバスに各8ビットのシ
ンボルを2個同時に乗せ、これに対応して部分演算手段
を2個設けてそれらにシンボル系列中の偶数番目のシン
ボルと奇数番目のシンボルからなる部分系列に関するシ
ンドロームの部分演算を分担させるのがよい。
When the method of the present invention is implemented, the symbols of the symbol series are simultaneously placed on the bus on which the codeword to be decoded is placed from the memory by the number corresponding to the partial operation means, and each partial operation means is loaded with these symbols. It is very advantageous to read from the memory in parallel in order to shorten the access time to the memory. For example, two 8-bit symbols are simultaneously placed on a 16-bit bus, and two partial operation means are provided correspondingly to each of them, and a partial sequence consisting of an even-numbered symbol and an odd-numbered symbol in the symbol sequence. It is better to share the partial operation of the syndrome regarding.

【0014】本発明で用いる部分演算手段にはシンボル
の加算回路とその加算結果に対する乗算回路を用い、乗
算回路の乗算結果に加算回路により部分系列の各シンボ
ルを繰り返し加算して行くことでよく、複数の部分演算
手段はすべて同じ構成とするのが有利である。また、統
合演算手段としては部分演算手段の演算結果に対する乗
算回路とその乗算結果に対する加算回路とを用い、かつ
乗算回路の方は特定の1個を除く部分演算手段に対応し
て設け、その乗算結果と特定の部分演算手段による演算
結果を加算して符号語のシンドロームに統合することで
よい。さらに、これらの部分演算手段と統合演算手段に
用いる乗算回路には線状フィードバックシフトレジスタ
を用い、その乗算動作のためのシフト動作回数を符号語
に関して求めるべきシンドロームの次数に応じて設定す
るのが有利であり、この態様では乗算回路が元々不要な
0次のシンドローム用は別として部分演算手段や統合演
算手段をすべて同じ回路構成とすることができる。
It is sufficient to use a symbol addition circuit and a multiplication circuit for the addition result as the partial calculation means used in the present invention, and repeatedly add each symbol of the partial sequence to the multiplication result of the multiplication circuit by the addition circuit. It is advantageous that all of the plurality of partial calculation means have the same configuration. Further, a multiplication circuit for the calculation result of the partial calculation means and an addition circuit for the multiplication result are used as the integrated calculation means, and the multiplication circuit is provided corresponding to the partial calculation means except for one specific multiplication means. It suffices to add the result and the operation result of the specific partial operation means and integrate them into the syndrome of the code word. Further, a linear feedback shift register is used for the multiplication circuits used in these partial operation means and integrated operation means, and the number of shift operations for the multiplication operation is set according to the order of the syndrome to be obtained for the code word. This is advantageous, and in this mode, apart from the 0th-order syndrome which originally requires no multiplication circuit, the partial arithmetic means and the integrated arithmetic means can all have the same circuit configuration.

【0015】本発明方式は誤りの訂正段階にも適用でき
る。この場合は誤り訂正手段を2個設けてシンドローム
から求めた誤り位置と誤りの値に基づいて誤りの値を与
えるべき誤り訂正手段を誤り位置に応じて選択しなが
ら、誤りが発生したシンボルに誤りの値を加算して訂正
するのがよい。かかる誤り訂正手段としては選択回路と
加算回路とその加算結果を記憶するレジスタを用い、選
択回路により加算回路に誤りの値とシンボルの値を切り
換えながら順次与えて、そのつどレジスタの記憶内容に
加算させた上でレジスタから訂正済みのシンボルを取り
出すことでよい。また、誤り位置と誤りの値を受ける切
換手段を用い、誤り位置が示す符号語内の誤りが発生し
たシンボルの番号が偶数か奇数かに応じ誤りの値を与え
るべき誤り訂正手段を切り換えないし選択させるのがよ
い。
The method of the present invention can also be applied to the error correction stage. In this case, two error correction means are provided, and while the error correction means that should give the error value based on the error position and the error value obtained from the syndrome are selected according to the error position, the error occurred in the symbol in which the error occurred. It is better to add the value of and correct it. As the error correction means, a selection circuit, an addition circuit, and a register for storing the addition result are used. The selection circuit sequentially supplies the addition circuit with an error value and a symbol value while adding to the stored contents of the register. Then, the corrected symbol can be taken out from the register. Further, switching means for receiving the error position and the error value is used to switch or select the error correction means which should give the error value depending on whether the number of the symbol in the code word indicated by the error position in which the error has occurred is even or odd. It is better to let them do it.

【0016】本発明はシンドロームが従来技術の項で述
べたような多項式,すなわち複数の項の和の形や積の項
の和の形で表され、和の結果は項の加算順序を組み換え
ても同じである点に着目して、シンボル系列を複数個の
部分系列に分割してそれらに関する部分演算を並列ない
し同時に進行させることによりシンドロームの演算に要
する時間を短縮するとともに、これらの部分系列を符号
語のシンボル系列から所定個数ごとにシンボルを抽出し
て作ることにより、すべての部分系列に関する部分演算
をシンボルのメモリからの読み出しに同期して円滑にか
つ同様な要領で進め得るようにしたものである。なお、
符号語のシンボル数が部分系列の個数で割り切れない場
合は内容が0のシンボルを適宜追加して部分系列のシン
ボル数を揃えることにより部分演算を円滑にかつ正確に
進めることができる。これをより具体的に述べると次の
とおりである。
According to the present invention, the syndrome is represented by a polynomial as described in the section of the prior art, that is, a form of sum of a plurality of terms or a form of sum of product terms, and the result of the sum is rearranged in the addition order of the terms. Paying attention to the same point, the symbol sequence is divided into a plurality of partial sequences, and by performing partial operations related to them in parallel or at the same time, the time required for the operation of the syndrome is shortened, and these partial sequences are By creating symbols by extracting a predetermined number of symbols from a codeword symbol sequence, partial operations for all subsequences can be performed smoothly and in a similar manner in synchronization with the reading of symbols from memory. Is. In addition,
If the number of symbols in the codeword is not divisible by the number of subsequences, a symbol whose content is 0 is added as appropriate to make the number of symbols in the subsequences uniform, so that the partial operation can proceed smoothly and accurately. This will be described more specifically as follows.

【0017】従来技術の項で述べたようにシンドローム
Spは一般には積の和の多項式であるSp=Σαipi (i=0
〜n-1)で表され、本発明では符号語のn個のシンボルW
i の系列からシンボルを所定個数ごとに抽出してr個の
部分系列に分割し、部分演算手段によって各部分系列に
関する部分シンドロームSpj (j=0〜r-1)を上と同様な形
の Spj=Σr αpii+j の多項式で演算する。ただし,
Σr は変数iをrずつ0,r,2r・・・imのように変化させ
たときの和を示す。また、変数iの最大値imは符号語の
シンボル数nが部分系列の個数rで割り切れる場合には
n-rとするが、そうでない場合には n-r+1とし, かつ添
字 i+jが n-1を越えるシンボルWi+j を0とおくものと
する。本発明ではこれら部分シンドロームSpj をr個の
部分演算手段により前述のように並行して同時に演算す
る。
As described in the section of the prior art, the syndrome
Sp is generally a polynomial of the sum of products Sp = Σα ip W i (i = 0
~ N-1), and in the present invention, n symbols W of the code word
A predetermined number of symbols are extracted from the i series and divided into r partial series, and the partial syndrome Spj (j = 0 to r-1) regarding each partial series is spj in the same form as above by the partial calculation means. = Σ r α pi W i + j polynomial. However,
Σ r represents the sum when the variable i is changed by r as 0, r, 2r ... im. Further, the maximum value im of the variable i is obtained when the symbol number n of the codeword is divisible by the number r of subsequences.
If it is nr, otherwise it is n-r + 1, and the symbol W i + j whose subscript i + j exceeds n-1 is set to 0. In the present invention, these partial syndromes Spj are simultaneously calculated in parallel by the r partial calculation means as described above.

【0018】部分系列に関するシンドロームSpj の演算
後は、統合演算手段により符号語に関するシンドローム
Spに統合する。符号語のシンボル系列から一定の個数ご
とにシンボルを抽出して部分系列としたので、部分シン
ドロームSpj から上と同様な積の和の形をもつ多項式Sp
=ΣαjpSpj によりシンドロームSpを簡単に短時間で演
算できる。従って、本発明では部分シンドロームSpj の
並列演算によりシンドロームSpの演算時間を従来のほぼ
r分の1に短縮でき、かつ複数個のシンボルの並列読み
出しによりメモリアクセス時間もr分の1に短縮でき
る。
After the calculation of the syndrome Spj of the subsequence, the syndrome of the codeword is calculated by the integrated calculation means.
Integrate into Sp. Since a certain number of symbols are extracted from the codeword symbol sequence to form a partial sequence, the partial syndrome Spj is a polynomial Sp having the same product sum form as above.
= Σα jp Spj can easily calculate the syndrome Sp in a short time. Therefore, in the present invention, the operation time of the syndrome Sp can be shortened to about 1 / r of the conventional time by the parallel operation of the partial syndrome Spj, and the memory access time can also be shortened to 1 / r by the parallel reading of a plurality of symbols.

【0019】[0019]

【発明の実施の形態】図を参照しながら本発明による符
号語の復号方式の実施例を説明する。図1に本発明をシ
ンドロームの演算に適用した実施例を,図2に誤りの訂
正に適用した実施例をそれぞれ示す。これらの実施例で
は符号語は拡張ガロア体 GF(28 ) の元である8ビット
のシンボルがn=255個並んだ多項式W(x)=Σxi i
(ただしΣはi=0〜n-1 の和を示す) で表されるt重の
誤りを訂正可能なRS符号によるシンボルWi の系列と
し、シンドロームSp(p=0〜2t-1) を演算する際はシンボ
ル系列をそれから1個おきに抽出されたシンボル, すな
わち偶数番目と奇数番目のシンボルからなる2個の部分
系列に分けるものとする。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a codeword decoding system according to the present invention will be described with reference to the drawings. FIG. 1 shows an embodiment in which the present invention is applied to syndrome calculation, and FIG. 2 shows an embodiment in which it is applied to error correction. In these embodiments, the code word is a polynomial W (x) = Σx i W i in which n = 255 8-bit symbols that are elements of the extended Galois field GF (2 8 ) are arranged.
(However, Σ represents the sum of i = 0 to n-1) is defined as a sequence of symbols W i by an RS code capable of correcting an error of t-fold, and the syndrome Sp (p = 0 to 2t-1) is At the time of calculation, the symbol sequence is divided into two subsequences each having a symbol extracted every other symbol, that is, an even-numbered symbol and an odd-numbered symbol.

【0020】図1の左上部に示すメモリ1は受信した符
号語W(x) のシンボルWi の系列を記憶しており、アド
レス指定回路2からデクリメントパルスDPに応じて逐次
切り換わるアドレスADで指定されたシンボルがこれから
バス3に乗せられるが、この実施例ではシンボル系列を
2個の部分系列に分けるのに対応してバス3を同時に2
個の8ビットのシンボルを乗せ得る16ビットのバスと
し、シンボル対(W0 W1),(W2 W3) 等を乗せるようにす
る。なお、 Wn-1 を含むシンボル対はnが 255より小さ
い偶数, 例えば 254のときは(Wn-2 W n-1)とし, この実
施例のように奇数のときは(Wn-1 0)とすることでよい。
A memory 1 shown in the upper left portion of FIG. 1 stores a series of symbols W i of the received code word W (x), and is an address AD which is sequentially switched from the address designating circuit 2 according to a decrement pulse DP. The designated symbols are to be placed on the bus 3 from now on. In this embodiment, the bus 3 is divided into 2 sub-sequences at the same time corresponding to dividing the symbol sequence into two partial sequences.
A 16-bit bus capable of carrying eight 8-bit symbols is used to carry symbol pairs (W 0 W 1 ), (W 2 W 3 ), etc. Incidentally, when the W n-1 symbol pair n is less than 255 even number including, for example, 254 and (W n-2 W n- 1), when the odd as in this embodiment (W n-1 It should be 0).

【0021】図にはかかるシンボル対をバス3から受け
るシンドロームS0とS1とSp用の部分演算手段10と統合演
算手段20とを一点鎖線で囲んで示す。部分演算手段10の
方は各シンドロームごとに1対設け、その内の図の上側
と下側にそれぞれ偶数番目と奇数番目のシンボルを含む
部分系列を与える。さて、シンドロームSpは符号語の多
項式W(x) =Σxi i の変数xにαp を入れればよい
からSp=Σαpii となり、これを偶数番目と奇数番目
のシンボルに分けて整理すると、 Sp=Σ2 αpii +αp Σ2 αpii+1 となる。Σ2 は変数iを0, 2, 4 のように2ずつ変化さ
せた和を表し、第1項は偶数番目, 第2項は奇数番目の
シンボルに関する。そこで Spe=Σ2 αpii ,Spo=Σ
2 αpii+1 と置くと上式はSp= Spe+αp Spo とな
る。上側と下側の部分演算手段10はこれら部分シンドロ
ーム Speと Spoの演算用であり、これらは統合演算手段
20によりシンドロームSpに統合される。
In the drawing, the partial arithmetic means 10 for the syndromes S0, S1 and Sp for receiving such a symbol pair from the bus 3 and the integrated arithmetic means 20 are shown surrounded by a chain line. The partial arithmetic means 10 is provided with one pair for each syndrome, and gives partial sequences including even-numbered and odd-numbered symbols on the upper and lower sides of the figure, respectively. By the way, the syndrome Sp is Sp = Σα pi W i because it is sufficient to put α p in the variable x of the polynomial W (x) = Σx i W i of the code word, and this is divided into even-numbered and odd-numbered symbols and arranged Then, Sp = Σ 2 α pi W i + α p Σ 2 α pi W i + 1 . Σ 2 represents a sum obtained by changing the variable i by 2 such as 0, 2, 4, and the first term relates to even-numbered symbols and the second term relates to odd-numbered symbols. Then Spe = Σ 2 α pi W i , Spo = Σ
Putting 2 α pi W i + 1 , the above equation becomes Sp = Spe + α p Spo. The upper and lower partial computing means 10 are for computing these partial syndromes Spe and Spo, and these are integrated computing means.
20 to be integrated into Syndrome Sp.

【0022】このように部分シンドローム Speと Spoは
シンボルが偶数番目か奇数番目かが異なるだけで同形の
式で表されるので、2個の部分演算手段10を同じ構成と
することができる。符号語のシンボル系列からシンボル
を所定の個数ごとに抽出する限り任意のr個の部分系列
に分ける場合も同じである。シンドロームS0の場合の部
分演算手段10は演算すべき部分シンドロームSpe, Spoが
それぞれ非常に簡単なΣ2 i とΣ2 i+1 の形になる
ので加算回路11とレジスタ12だけで構成して、バス3か
ら受けるシンボルを加算回路11によりレジスタ12の記憶
内容に加算し、レジスタ12にラッチ指令LP1 を与えてこ
の加算結果を記憶させる。この実施例のレジスタ12は8
ビットレジスタであり、加算は2を法とする Mod2の加
算なので加算回路は8個のイクスクルーシブオアゲート
で構成される。
As described above, since the partial syndromes Spe and Spo are represented by the same equation except that the symbols are even-numbered or odd-numbered, the two partial arithmetic means 10 can have the same configuration. The same applies to the case of dividing into arbitrary r partial sequences as long as a predetermined number of symbols are extracted from a codeword symbol sequence. In the case of the syndrome S0, the partial operation means 10 is composed of only the adder circuit 11 and the register 12 because the partial syndromes Spe and Spo to be operated are very simple Σ 2 W i and Σ 2 W i + 1 , respectively. Then, the symbol received from the bus 3 is added to the stored contents of the register 12 by the adder circuit 11, and the latch command LP1 is given to the register 12 to store the addition result. The register 12 in this embodiment is 8
It is a bit register, and the addition circuit is composed of 8 modulo 2 OR gates, because the addition is a mod 2 modulo addition.

【0023】pが0以外のシンドロームSp用の場合は部
分演算手段10に上述の加算回路11とレジスタ12のほかに
乗算回路13を組み込み、レジスタ12の記憶内容に対しα
2pを乗算した上で加算回路11に与えさせる。前述のΣ2
αpii やΣ2 αpii+1 のΣ2 では変数iが2ずつ変
化するから、乗算回路13によるこのα2pの乗算により部
分シンドローム Speや Spoを演算することができる。こ
の乗算回路13には線状フィードバックシフトレジスタ
(以下LFSRという) を用い、読取指令RP1に応じレジス
タ12の記憶内容を読み込んだ上でクロックに応じその内
容をシフトさせて原始元αを乗算できるようにするのが
有利である。
In the case of the syndrome Sp in which p is not 0, the multiplication circuit 13 is incorporated in the partial operation means 10 in addition to the above-mentioned addition circuit 11 and register 12, and the content stored in the register 12 is α.
The result is multiplied by 2p and then given to the adder circuit 11. Σ 2 above
Since alpha pi W i and Σ 2 α pi W i + 1 of the sigma 2 the variable i is changed by 2, it is possible to calculate the partial syndrome Spe and Spo by the multiplication of the alpha 2p by multiplier circuit 13. A linear feedback shift register (hereinafter referred to as LFSR) is used as the multiplication circuit 13 so that the content stored in the register 12 is read according to the read command RP1 and the content is shifted according to the clock so that the primitive element α can be multiplied. Is advantageous.

【0024】よく知られているように、このLFSRはこの
実施例では8段のシフトレジスタの各段の記憶内容を通
常のようにクロックに応じてシフトさせると同時に、終
段の記憶内容を所定の原始多項式に対応する段の内容に
加算する形でフィードバックすることにより、αを乗算
すると同時に乗算結果の多項式を原始多項式で除した剰
余が自動的に得られるようにするものである。図1の実
施例ではかかるLFSRを乗算回路13に用い、シンドローム
S1用の場合はそれに2個のクロックC2を与えてα2 を乗
算させ, シンドロームSp用の場合はそれに2p個のクロッ
クC2p を与えてα2pを乗算させるようになっている。こ
のようにして図1の実施例では、求めるシンドロームSp
の次数pが1以上の場合は、部分演算回路10として乗算
回路13に用いるLFSRに与えるべきクロックの個数が次数
pに応じて異なるだけで同じ回路構成のものを用いるこ
とができる。
As is well known, in this embodiment, the LFSR shifts the stored contents of each stage of the 8-stage shift register in accordance with a clock as usual, and at the same time, stores the stored contents of the final stage. By feeding back to the content of the stage corresponding to the primitive polynomial of (1), the multiplication is performed by α, and at the same time, the remainder obtained by dividing the polynomial of the multiplication result by the primitive polynomial is automatically obtained. In the embodiment shown in FIG. 1, the LFSR is used in the multiplication circuit 13, and the syndrome
In the case of S1, two clocks C2 are given to multiply by α 2, and in the case of syndrome Sp, 2p clocks C2p are given to multiply by α 2p . In this way, in the embodiment shown in FIG. 1, the desired syndrome Sp
If the order p is 1 or more, the same circuit configuration can be used, except that the number of clocks to be given to the LFSR used for the multiplication circuit 13 as the partial arithmetic circuit 10 differs depending on the order p.

【0025】統合演算手段20は部分演算手段10の演算結
果であるこの実施例では2個の部分シンドローム Speと
Spoを加算を含む演算によってシンドロームSpに統合す
る。0次のシンドロームS0の場合はこれらを単に加算す
ればよいから、8個のイクスクルーシブオアゲートから
なる加算回路21により前述のΣ2 i とΣ2 i+1 を加
算した上でレジスタ22にラッチ指令LP2を与えてその結
果をシンドロームS0として記憶させる。1次以上のシン
ドロームSpの場合は、統合演算手段20内に乗算回路23を
設けて部分シンドローム Spoを読取指令RP2に応じて読
み込んでαp を乗算させ、加算回路21にその乗算結果に
部分シンドローム Speを加算させた上でレジスタ22に記
憶させる。乗算回路23もLFSRとするのがよく、シンドロ
ームSpの場合はこれにp個のクロックCpを与えてαp
乗算させる。これにより、0次を除くシンドロームの統
合演算手段20は同じ回路構成になる。
The integrated calculation means 20 is the calculation result of the partial calculation means 10. In this embodiment, two partial syndromes Spe and
Integrate Spo into syndrome Sp by an operation including addition. In the case of the 0th-order syndrome S0, it is sufficient to simply add these, so the above-mentioned Σ 2 W i and Σ 2 W i + 1 are added by the adder circuit 21 consisting of eight exclusive OR gates, and then the register is added. The latch command LP2 is given to 22 and the result is stored as the syndrome S0. In the case of the first-order or higher-order syndrome Sp, the multiplication circuit 23 is provided in the integrated calculation means 20, the partial syndrome Spo is read according to the read command RP2 and multiplied by α p , and the addition circuit 21 makes the multiplication result the partial syndrome. Spe is added and then stored in the register 22. The multiplication circuit 23 is also preferably LFSR, and in the case of the syndrome Sp, p clocks Cp are given to this and multiplied by α p . As a result, the integrated arithmetic means 20 for syndromes other than the 0th order has the same circuit configuration.

【0026】以上のように構成された図1の実施例で
は、部分演算手段10内のレジスタ12と統合演算手段20内
のレジスタ22をまずクリアした後に、メモリ1から16ビ
ットのバス3に復号をすべき符号語W(x) =Σxi i
の各8ビットのシンボルWi の系列中の例えば最後の W
n-1 を含むシンボル対から始めて1対ずつ乗せながら、
これを順次受ける各シンドロームSp用の2個の部分演算
手段10を並行動作させて部分シンドローム Speと Spoを
同時に演算させ、さらに統合演算手段20もすべて同時に
動作させて各2個の部分シンドローム Speと Spoをシン
ドロームSpに統合演算させる。なお、この演算結果とし
てのシンドロームSpは各統合演算手段20のレジスタ22か
ら随時読み出すことができる。
In the embodiment of FIG. 1 configured as described above, the register 12 in the partial arithmetic means 10 and the register 22 in the integrated arithmetic means 20 are first cleared and then decoded from the memory 1 to the 16-bit bus 3. Code word W (x) = Σx i W i
For example, the last W in the sequence of each 8-bit symbol W i of
Starting with the symbol pair containing n-1 and loading one by one,
Receiving this sequentially, the two partial operation means 10 for each syndrome Sp are operated in parallel to operate the partial syndromes Spe and Spo at the same time, and the integrated operation means 20 are also operated all at the same time to operate the two partial syndromes Spe. Integrate Spo into syndrome Sp. The syndrome Sp as the calculation result can be read from the register 22 of each integrated calculation means 20 at any time.

【0027】このように本発明方式では符号語のシンボ
ル系列を2個, 一般にはr個の部分系列に分け、それら
に関する部分シンドロームの演算を複数の部分演算手段
10に分担させて同時に演算させる。複数の部分シンドロ
ームは統合演算手段20により符号語に関するシンドロー
ムに統合する必要はあるが、それに要する演算時間は部
分演算手段10に比べるとずっと短くてよいので、本発明
によりシンドロームの演算に必要な時間を短縮して従来
のほぼ2分の1, 一般にはr分の1で済ませることがで
きる。さらにメモリ1から2個, 一般にはr個のシンボ
ルを纏めて読み出すことができるので、本発明方式では
メモリアクセス時間も従来の2分の1,一般にはr分の
1に短縮することができる。
As described above, in the method of the present invention, the symbol sequence of the codeword is divided into two, generally r, partial sequences, and the partial syndromes related thereto are calculated by a plurality of partial calculation means.
Allocate to 10 and calculate at the same time. It is necessary to integrate a plurality of partial syndromes into the syndrome concerning the code word by the integrated calculation means 20, but the calculation time required for this may be much shorter than that of the partial calculation means 10. Therefore, the time required for the calculation of the syndrome according to the present invention. Can be shortened to about one half of the conventional one, generally one-rth. Furthermore, since two symbols, generally r symbols, can be read collectively from the memory 1, the memory access time can also be shortened to half of the conventional memory access period, generally to one rth, in the method of the present invention.

【0028】なお、シンボル系列をrが3以上の個数の
部分系列に分ける場合は、統合演算手段20により r-1個
の部分シンドロームに乗算を施しかつ r-1回の加算を施
して符号語に関するシンドロームに統合する必要はある
が、乗算は同時に施せるので複数の乗算に要する時間は
1個分の乗算時間と大差がなく, 加算回数は増えてもイ
クスクルーシブオアゲートを用いる各加算時間が短いの
で、統合演算手段20の演算時間の僅かな増加は部分演算
手段10の動作時間の短縮効果で充分に補える。メモリア
クセス時間はrが大きいほど短くなり、rを4とすれば
32ビットバスを利用してアクセス時間を4分の1に短縮
できる。
When the symbol sequence is divided into partial sequences in which r is 3 or more, the integrated operation means 20 multiplies r-1 partial syndromes and adds them r-1 times to obtain codewords. However, the time required for multiple multiplications is not much different from the time required for one multiplication, and even if the number of additions increases, each addition time using exclusive OR gates must be integrated. Since it is short, a slight increase in the calculation time of the integrated calculation means 20 can be sufficiently compensated by the effect of shortening the operation time of the partial calculation means 10. The memory access time becomes shorter as r becomes larger, and if r is 4,
The access time can be reduced to 1/4 using the 32-bit bus.

【0029】また、図1の実施例では部分演算手段10や
統合演算手段20の回路構成をシンドロームSpの0以外の
次数pに関せず同じとするためにそれらの乗算回路13や
23にLFSRを用いたが、前述のように繰り返しクロックを
受けて動作するLFSRではその順序制御にまだ余分に時間
がかかるので、回路構成を次数pに応じ変える必要はあ
るが乗算回路13や23を論理ゲートだけで構成すれば、演
算に必要な時間を一層大幅に短縮することができる。な
お、この場合の乗算回路13や23は複数段構成になるが、
例えばイクスクルーシブオアゲートによる加算要素だけ
で構成できる。
Further, in the embodiment of FIG. 1, in order to make the circuit configurations of the partial arithmetic means 10 and the integrated arithmetic means 20 the same regardless of the order p of the syndrome Sp other than 0, their multiplication circuits 13 and
Although an LFSR was used for 23, the LFSR that operates by repeatedly receiving a clock as described above requires extra time to control its sequence. Therefore, it is necessary to change the circuit configuration according to the order p, but the multiplication circuits 13 and 23 If it is composed of only logic gates, the time required for calculation can be further shortened. In this case, the multiplication circuits 13 and 23 have a multi-stage configuration,
For example, it can be configured only by an addition element by an exclusive OR gate.

【0030】図2に示す実施例では本発明を受信符号語
のシンボルに発生した誤りの訂正に適用する。図1で説
明したようにして求められたシンドロームSp(p=0〜2t-
1) に基づき前述のピーターソン法やバーレンカンプ・
マッツィ法やユークリッド法を利用して誤り位置, すな
わちシンボル系列中の誤りが発生したt個のシンボルの
番号iとその誤りの値Eiが求められ、図の右上部に示す
メモリ1a内に記憶されているものとする。メモリ1aは図
の右下部に示すメモリ1と同じであってよいが、図示の
都合上分けて示されており、これから16ビットのバス3a
を介してレジスタ3bと3cにそれぞれ誤り位置iと誤りの
値Eiが一つずつ取り出される。
In the embodiment shown in FIG. 2, the present invention is applied to the correction of an error occurring in a symbol of a received codeword. Syndrome Sp (p = 0 to 2t- obtained as described in FIG.
1) based on the above-mentioned Peterson method or Bahrenkamp
Using the Mazzi method or Euclidean method, the error position, that is, the number i of the t symbols in the symbol sequence where the error occurred and the value Ei of the error are obtained and stored in the memory 1a shown in the upper right part of the figure. It is assumed that The memory 1a may be the same as the memory 1 shown in the lower right part of the figure, but is shown separately for convenience of illustration, and the 16-bit bus 3a
The error position i and the error value Ei are fetched one by one into the registers 3b and 3c via.

【0031】この図2の実施例では誤り訂正手段30を1
対設けてそれぞれ選択回路31と加算回路32とレジスタ33
とバッファ回路34とから構成し、誤り位置iが偶数の場
合は右側の, 奇数の場合は左側の誤り訂正手段30を用い
る。その上側に示された切換手段40はレジスタ3b内に記
憶されている誤り位置iに応じ誤り訂正動作をさせるべ
き左右の誤り訂正手段30を選択するものである。
In the embodiment of FIG. 2, the error correction means 30 is set to 1
A pair is provided for each of the selection circuit 31, the addition circuit 32, and the register 33.
And the buffer circuit 34, the error correction means 30 on the right side is used when the error position i is even, and the left side error correction means 30 is used when the error position i is odd. The switching means 40 shown on the upper side is for selecting the left and right error correction means 30 for performing the error correction operation according to the error position i stored in the register 3b.

【0032】また、符号語のシンボル系列を受信時の状
態のままで記憶しているメモリ1に付随してアドレス指
定回路2と補助指定回路2aを設け、レジスタ3bから補助
指定回路2aに誤り位置iを指定してメモリ1の相対アド
レスADrに換算させ、これを受けるアドレス指定回路2
にさらに絶対アドレスADに換算させた上でメモリ1に与
えるようにする。これに応じてメモリ1から誤りが発生
したシンボルWiを含むシンボル対が16ビットのバス3に
乗せられる。
Further, an address designating circuit 2 and an auxiliary designating circuit 2a are provided in association with the memory 1 which stores the code word symbol sequence as it is at the time of reception, and the register 3b stores the error position in the auxiliary designating circuit 2a. An address designating circuit 2 for designating i and converting it to a relative address ADr of the memory 1 and receiving it
Then, it is converted into an absolute address AD and then given to the memory 1. In response to this, the symbol pair including the error-generated symbol Wi is loaded from the memory 1 onto the 16-bit bus 3.

【0033】切換手段40は例えば図示のようにアンドゲ
ートで構成され、その枠内に簡略に示す右側と左側のア
ンドゲート41と42には各8個のアンドゲートが用いられ
る。この切換手段40はレジスタ3bから8ビットの誤り位
置iの最下位ビットを受け、誤り位置iが偶数でその最
下位ビットが0の場合には右側のアンドゲート群41をイ
ネーブルしてレジスタ3cから8ビットの誤りの値Eiを右
側の誤り訂正手段30に与え、逆に誤り位置iが奇数の場
合は左側のアンドゲート群42をイネーブルして誤りの値
Eiを左側の誤り訂正手段30に与えるようになっている。
また、誤り訂正手段30の選択回路31はこの切換手段40か
ら受ける誤りの値Eiとバス3から受けるシンボルのいず
れかを選択指令Scの論理値による指定に応じ選択してそ
の下側の加算回路32に与えるもので、右側と左側の選択
回路31はバス3上のシンボル対の内のそれぞれ偶数番目
と奇数番目のシンボルを受ける。
The switching means 40 is composed of, for example, AND gates as shown in the figure, and eight AND gates are used for each of the right and left AND gates 41 and 42 which are simply shown in the frame. The switching means 40 receives the least significant bit of the error position i of 8 bits from the register 3b, and when the error position i is even and the least significant bit is 0, the right AND gate group 41 is enabled and the register 3c is activated. An 8-bit error value Ei is given to the right error correction means 30, and conversely, when the error position i is an odd number, the left AND gate group 42 is enabled to enable the error value.
Ei is given to the error correction means 30 on the left side.
Further, the selection circuit 31 of the error correction means 30 selects either the error value Ei received from the switching means 40 or the symbol received from the bus 3 according to the designation by the logical value of the selection command Sc, and the addition circuit below it. 32, the right and left select circuits 31 receive the even and odd symbols of the symbol pair on bus 3, respectively.

【0034】誤りの訂正に際してはまず誤り訂正手段30
のレジスタ33をクリアした後、選択指令Scにより選択回
路31に例えば誤りの値Eiの方を選択させる。これにより
誤り位置iが偶数か奇数かに応じ選択回路31から誤りの
値Eiが右側または左側の加算回路32に与えられるので、
レジスタ32にラッチ指令LP3を与えて加算回路32からそ
れを読み取って記憶させる。誤りの値Eiを受けなかった
方の誤り訂正手段30のレジスタ33にはもちろん0が記憶
される。次に選択指令Scの論理値を切り換えてバス3上
のシンボルを選択回路31を介して加算回路32に与え、レ
ジスタ33の記憶内容に加算させ、さらにレジスタ33にラ
ッチ指令LP3を与えてこの加算の結果を記憶させる。こ
れにより、レジスタ33には誤りの値Eiを受けた方ではそ
の加算により訂正されたシンボルが記憶され、そうでな
い方では元のシンボルがそのまま記憶されているので、
例えばバスドライバであるバッファ回路34を介してそれ
をバス3に乗せてメモリ1に読み取らせる。
When correcting an error, first, the error correction means 30
After clearing the register 33, the selection circuit 31 causes the selection circuit 31 to select, for example, the error value Ei. As a result, the error value Ei is given from the selection circuit 31 to the right or left addition circuit 32 according to whether the error position i is even or odd.
A latch command LP3 is given to the register 32 to read it from the adder circuit 32 and store it. Of course, 0 is stored in the register 33 of the error correction means 30 which has not received the error value Ei. Next, the logical value of the selection command Sc is switched and the symbol on the bus 3 is given to the addition circuit 32 via the selection circuit 31 to be added to the stored contents of the register 33, and further the latch command LP3 is given to the register 33 to perform this addition. Remember the result of. Thereby, in the register 33, the symbol corrected by the addition is stored in the one receiving the error value Ei, and the original symbol is stored in the register 33 as it is,
For example, it is loaded on the bus 3 via the buffer circuit 34 which is a bus driver and read by the memory 1.

【0035】以上説明した実施例に限らず本発明は種々
な態様で実施をすることができる。例えば、実施例では
符号語をすべてRS符号によるとしたが本発明はこれと
密に関連するBCH符号(Bose-Chaudhuri-Hocquenghem
code)等を用いる符号語にも演算すべきシンドロームの
次数が若干変わってくるが同様に適用できる。また、シ
ンボルはすべて8ビットとしたがそれが任意の複数ビッ
トあるいは単一ビット構成であっても本発明を適用でき
る。
The present invention is not limited to the embodiments described above, and the present invention can be implemented in various modes. For example, although the codewords are all RS codes in the embodiment, the present invention is closely related to the BCH code (Bose-Chaudhuri-Hocquenghem).
The order of the syndrome to be calculated is slightly different for codewords using (code) etc., but the same can be applied. Further, although all symbols are 8 bits, the present invention can be applied even if the symbols have arbitrary plural bits or single bit configuration.

【0036】[0036]

【発明の効果】以上説明したとおり本発明の復号方式で
は、符号語のシンドロームが複数項の和や積の和の形の
多項式で表され, 項の加算順序を組み換えてもシンドロ
ームの演算結果は変わらない点に着目して、シンボルの
系列としてなる符号語の復号に際して系列から所定個数
ごとにシンボルを抽出して部分系列を作り、各部分系列
ごとに部分演算手段を設けて複数の部分系列に関する部
分シンドロームの演算を同時に進行させ、統合演算手段
により複数個の部分シンドロームを組み合わせて符号語
に関するシンドロームに統合することにより、以下に述
べる効果を挙げることができる。
As described above, in the decoding method of the present invention, the syndrome of the codeword is represented by a polynomial in the form of the sum of a plurality of terms or the sum of products, and even if the addition order of terms is recombined, the calculation result of the syndrome is Focusing on the point that does not change, when decoding a code word that is a sequence of symbols, a predetermined number of symbols are extracted from the sequence to create a partial sequence, and partial calculation means is provided for each partial sequence to relate to a plurality of partial sequences. The following effects can be obtained by simultaneously executing the partial syndrome calculations and combining a plurality of partial syndromes by the integration calculating means to integrate them into the codeword-related syndrome.

【0037】(a) 符号語のシンボル系列を2個, 一般に
はr個の部分系列に分割して、部分系列ごとに設けた部
分演算手段によりそれらに関する部分シンドロームの演
算を並行して進行させ, 各部分演算に要する繰り返し演
算の回数を減少させることにより、シンドロームの演算
に要する時間を従来のほぼ2分の1, 一般にはr分の1
に短縮することができる。
(A) The symbol sequence of the code word is divided into two, generally r, partial sequences, and the partial arithmetic means provided for each partial sequence causes the partial syndrome operations relating to them to proceed in parallel. By reducing the number of repetitive calculations required for each sub-calculation, the time required for the calculation of the syndrome can be reduced to about one half of the conventional time, and generally to one rth.
Can be shortened.

【0038】(b) 符号語のシンボル系列から所定個数ご
とにシンボルを抽出して部分系列を作り、メモリからの
シンボルの読み出しに同期して複数の部分系列に関する
部分演算を同時に進行させることにより、メモリへのア
クセスに要する時間を従来の2分の1, 一般にはr分の
1に短縮することができ、さらには複数の部分シンドロ
ームの演算をすべて同じ要領で進め, かつ統合演算手段
により容易に符号語のシンドロームに統合できるように
なる。
(B) By extracting a predetermined number of symbols from the symbol sequence of the codeword to create a partial sequence, and performing partial operations on a plurality of partial sequences simultaneously in synchronization with the reading of the symbols from the memory, The time required to access the memory can be shortened to one half of the conventional one, generally one rth, and further, the calculation of multiple partial syndromes can all proceed in the same way, and easily by the integrated calculation means. Can be integrated into the codeword syndrome.

【0039】このように、本発明方式はシンドロームの
演算とメモリへのアクセスに時間を要する従来からの問
題を簡単な構成で解決して、符号語の復号に用いる集積
回路装置等の実用性を大幅に高める貢献を果たし得るも
のである。なお、リード・ソロモン符号による符号語の
構成シンボルを拡張ガロア体上の8ビットの元とする態
様は実用上最も利用価値が高い本発明の適用形態であ
り、シンボル系列を偶数番目と奇数番目のシンボルから
なる2個の部分系列に分ける態様は最も容易に実施でき
る利点がある。復号すべき符号語用のバスにシンボル系
列中のシンボルを部分系列数に対応する個数ずつ乗せて
部分演算手段に並列に読み込む態様は、上述のアクセス
時間の短縮効果のほかにプロセッサ等の例えば16ビット
の内部バスをそのまま利用して符号語を復号できる利点
がある。
As described above, the method of the present invention solves the conventional problem that it takes time to calculate the syndrome and to access the memory with a simple structure, and makes the integrated circuit device used for decoding the code word practical. It can make a significant contribution. It should be noted that the mode in which the symbols constituting the code word by the Reed-Solomon code is the 8-bit element on the extended Galois field is an application form of the present invention having the highest practical utility value, and the symbol sequences are even-numbered and odd-numbered. The mode of dividing the symbol into two partial sequences is advantageous in that it can be easily implemented. In addition to the above-described effect of shortening the access time, a processor such as 16 There is an advantage that the code word can be decoded using the bit internal bus as it is.

【0040】さらに、複数の部分演算手段を同じ回路構
成とする実施態様, および部分演算手段と統合演算手段
に組み込む乗算回路に線状フィードバックシフトレジス
タを用い, 乗算動作時のそのシフト回数をシンドローム
の次数に応じ設定して0次のシンドローム用以外の部分
演算手段や統合演算手段をすべて同じ回路構成とする実
施態様はシンドロームの演算回路を簡単に構成できる効
果を有する。
Further, a linear feedback shift register is used in an embodiment in which a plurality of partial operation means have the same circuit configuration, and a multiplication circuit incorporated in the partial operation means and the integrated operation means, and the number of shifts during the multiplication operation is determined by the syndrome. The embodiment in which the partial arithmetic means other than the 0th-order syndrome and the integrated arithmetic means are all configured to have the same circuit configuration by setting according to the order has the effect of easily configuring the arithmetic circuit of the syndrome.

【0041】本発明を誤りの訂正に適用する際に、誤り
訂正手段を1対設けてシンドロームから求められた誤り
を含むシンボルの符号語内の位置と誤りの値に基づき誤
りの値を受ける誤り訂正手段を誤り位置に応じ切り換え
ながら, 誤りの値を加算して訂正する態様は、マイクロ
プロセッサ等の内部バスを利用して誤りの訂正を能率よ
く進め得る利点があり、各誤り訂正手段内に選択回路を
組み込んで加算回路に誤りの値と誤りを含むシンボルを
順次与えながら訂正を進める態様、および誤り位置と誤
りの値を受ける切換手段を用い, 誤りを含むシンボルが
偶数番目か奇数番目かに応じて誤りの値を与える誤り訂
正手段を選択する態様は、いずれも誤り訂正手段の回路
構成を簡易化する効果を有する。
When the present invention is applied to error correction, a pair of error correction means is provided and an error value is received based on the position in the code word of the symbol including the error and the error value obtained from the syndrome. The mode of adding and correcting the error value while switching the correction means according to the error position has an advantage that the error correction can be efficiently advanced by using an internal bus such as a microprocessor. A mode in which a correction circuit is incorporated by sequentially providing an error value and an error-containing symbol to an adder circuit and a switching means for receiving an error position and an error value are used to determine whether the error-containing symbol is an even number or an odd number. Any of the modes in which the error correction means that gives an error value according to the above is selected has the effect of simplifying the circuit configuration of the error correction means.

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

【図1】本発明による符号語の復号方式をシンドローム
の演算に適用した実施例を示す回路図である。
FIG. 1 is a circuit diagram showing an embodiment in which a codeword decoding method according to the present invention is applied to a syndrome calculation.

【図2】本発明方式を誤りの訂正に適用した実施例を示
す回路図である。
FIG. 2 is a circuit diagram showing an embodiment in which the system of the present invention is applied to error correction.

【図3】従来の復号方式におけるシンドローム演算回路
の回路図である。
FIG. 3 is a circuit diagram of a syndrome arithmetic circuit in a conventional decoding system.

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

1 受信符号語のシンボル系列を記憶するメモリ 1a 誤り位置と誤りの値を記憶するメモリ 2 メモリに対するアドレス指定回路 2a メモリに対するアドレスの補助指定回路 3,3a バス 3b 誤り位置を記憶するレジスタ 3c 誤りの値を記憶するレジスタ 10 部分演算手段 11 部分演算手段用の加算回路 12 部分演算手段用のレジスタ 13 部分演算手段用の乗算回路 20 統合演算手段 21 統合演算手段用の加算回路 22 統合演算手段用のレジスタ 23 統合演算手段用の乗算回路 30 誤り訂正手段 31 誤り訂正手段用の選択回路 32 誤り訂正手段用の加算回路 33 誤り訂正手段用のレジスタ 34 誤り訂正手段用のバッファ回路 40 誤り訂正用の切換回路 41,42 切換回路用のアンドゲート S0 0次のシンドローム S1 1次のシンドローム Sp p次のシンドローム 1 Memory for storing symbol sequence of received codeword 1a Memory for storing error position and error value 2 Addressing circuit for memory 2a Sub addressing circuit for memory 3,3a Bus 3b Register for error position 3c Error Registers for storing values 10 Partial calculation means 11 Addition circuit for partial calculation means 12 Register for partial calculation means 13 Multiplication circuit for partial calculation means 20 Integrated calculation means 21 Addition circuit for integrated calculation means 22 Integrated calculation means Register 23 Multiplication circuit for integrated operation means 30 Error correction means 31 Selection circuit for error correction means 32 Adder circuit for error correction means 33 Register for error correction means 34 Buffer circuit for error correction means 40 Switch for error correction Circuit 41,42 AND gate for switching circuit S0 0th-order syndrome S1 1st-order syndrome Sp p-third syndrome

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】シンボルが並んだ系列としてなる符号語を
復号するためそれに関するシンドロームを求める際に、
シンボル系列から所定個数ごとに抽出されたシンボルか
らなる複数の部分系列ごとに部分演算手段を設けて部分
系列に関するシンドロームの部分演算を同時に進行させ
た上で、統合演算手段により複数個の部分演算結果を組
み合わせて符号語に関するシンドロームを演算するよう
にしたことを特徴とする符号語の復号方式。
1. When obtaining a syndrome relating to a codeword, which is a series of symbols arranged in order to decode the codeword,
A partial operation means is provided for each of a plurality of partial series of symbols extracted from a predetermined number of symbols from a symbol series, and partial operations of the syndrome related to the partial series are simultaneously advanced, and then a plurality of partial operation results are obtained by the integrated operation means. A codeword decoding method characterized in that the syndromes for codewords are calculated by combining.
【請求項2】請求項1に記載の方式において、復号すべ
き符号語用のバスにシンボル系列のシンボルを部分演算
手段に対応する個数ずつ同時に乗せ、各部分演算手段に
これらのシンボルをバスから並列に読み込むようにした
ことを特徴とする符号語の復号方式。
2. The system according to claim 1, wherein symbols of a symbol sequence are simultaneously placed on a bus for a codeword to be decoded by a number corresponding to partial operation means, and each partial operation means receives these symbols from the bus. A codeword decoding method characterized by being read in parallel.
【請求項3】請求項1に記載の方式において、各部分演
算手段がシンボルの加算回路とその加算結果に対する乗
算回路とを含み、加算回路により乗算回路の乗算結果に
対して部分系列内の各シンボルを順次繰り返して加算し
て行くことにより、各部分系列に関するシンドロームを
演算するようにしたことを特徴とする符号語の復号方
式。
3. The system according to claim 1, wherein each partial operation means includes a symbol addition circuit and a multiplication circuit for the addition result, and the addition circuit causes each multiplication result of the multiplication circuit to be included in each partial sequence. A codeword decoding method characterized in that a syndrome for each partial sequence is calculated by sequentially and repeatedly adding symbols.
【請求項4】請求項3に記載の方式において、複数の部
分演算手段をすべて同じ回路構成とするようにしたこと
を特徴とする符号語の復号方式。
4. A code word decoding system according to claim 3, wherein all of the plurality of partial arithmetic means have the same circuit configuration.
【請求項5】請求項1に記載の方式において、統合演算
手段として部分演算手段の演算結果に対する乗算回路お
よびその乗算結果に対する加算回路を用い、1個を除く
部分演算手段に対し乗算回路を設けてその乗算結果と1
個の部分演算手段による演算結果を加算することにより
符号語のシンドロームを求めるようにしたことを特徴と
する符号語の復号方式。
5. The method according to claim 1, wherein a multiplication circuit for the calculation result of the partial calculation means and an addition circuit for the multiplication result are used as the integrated calculation means, and a multiplication circuit is provided for the partial calculation means except one. And its multiplication result and 1
A codeword decoding method, characterized in that the syndrome of a codeword is obtained by adding the calculation results of a plurality of partial calculation means.
【請求項6】請求項3または5に記載の方式において、
乗算回路として線状フィードバックシフトレジスタを用
い、その乗算動作のためのシフト動作回数を符号語に関
し求めるべきシンドロームの次数に応じて設定するよう
にしたことを特徴とする符号語の復号方式。
6. The method according to claim 3 or 5,
A code word decoding method characterized in that a linear feedback shift register is used as a multiplication circuit, and the number of shift operations for the multiplication operation is set according to the order of the syndrome to be obtained for the code word.
【請求項7】請求項6に記載の方式において、0次のシ
ンドローム以外用の部分演算手段および統合演算手段を
同じ回路構成とするようにしたことを特徴とする符号語
の復号方式。
7. The code word decoding method according to claim 6, wherein the partial arithmetic means for the non-zero-order syndromes and the integrated arithmetic means have the same circuit configuration.
【請求項8】請求項1に記載の方式において、2個の部
分演算手段を設けてシンボル系列の偶数番目および奇数
番目のシンボルに対する部分演算をそれぞれ分担させる
ようにしたことを特徴とする符号語の復号方式。
8. The code word according to claim 1, wherein two partial operation means are provided so as to share partial operations for even-numbered symbols and odd-numbered symbols of a symbol sequence, respectively. Decryption method.
【請求項9】請求項1に記載の方式において、符号語に
はリード・ソロモン符号が用いられ、符号語を構成する
シンボルが拡張ガロア体上の8ビット構成の元であるこ
とを特徴とする符号語の復号方式。
9. The method according to claim 1, wherein a Reed-Solomon code is used for the code word, and the symbols forming the code word are elements of 8-bit structure on the extended Galois field. Codeword decoding method.
【請求項10】請求項1に記載の方式において、誤り訂
正手段を2個設けてシンドロームから求められた誤りを
含むシンボルの符号語内の位置と誤りの値に基づき誤り
の値を与えるべき誤り訂正手段を誤り位置に応じて切り
換えながら、誤りを含むシンボルを誤りの値を加算する
ことにより訂正するようにしたことを特徴とする符号語
の復号方式。
10. The method according to claim 1, wherein two error correction means are provided and an error value is to be given based on the position of the error-containing symbol in the code word and the error value obtained from the syndrome. A codeword decoding method characterized in that a symbol containing an error is corrected by adding an error value while switching the correcting means according to an error position.
【請求項11】請求項10に記載の方式において、誤り
訂正手段として選択回路と加算回路とその加算結果を記
憶するレジスタを用い、選択回路により加算回路に誤り
の値とシンボルの値を切り換えて順次与えながらそのつ
どレジスタの記憶内容に加算させた上で、レジスタから
訂正済みのシンボルを取り出すようにしたことを特徴と
する符号語の復号方式。
11. The system according to claim 10, wherein a selection circuit, an addition circuit and a register for storing the addition result are used as the error correction means, and the selection circuit switches the error value and the symbol value to the addition circuit. A code word decoding method characterized in that corrected symbols are taken out from the register after being sequentially added and added to the stored contents of the register.
【請求項12】請求項10に記載の方式において、誤り
位置と誤りの値とを受ける切換手段を用い、誤り位置が
示す符号語内の誤りがあるシンボルの番号が偶数か奇数
かに応じて誤りの値を与えるべき誤り訂正手段を選択す
るようにしたことを特徴とする符号語の復号方式。
12. A system according to claim 10, wherein a switching means for receiving an error position and an error value is used, and the number of a symbol having an error in a code word indicated by the error position is even or odd. A codeword decoding method characterized in that an error correction means for giving an error value is selected.
JP7316206A 1995-12-05 1995-12-05 Decoding system for code word Pending JPH09162753A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7316206A JPH09162753A (en) 1995-12-05 1995-12-05 Decoding system for code word

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7316206A JPH09162753A (en) 1995-12-05 1995-12-05 Decoding system for code word

Publications (1)

Publication Number Publication Date
JPH09162753A true JPH09162753A (en) 1997-06-20

Family

ID=18074488

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7316206A Pending JPH09162753A (en) 1995-12-05 1995-12-05 Decoding system for code word

Country Status (1)

Country Link
JP (1) JPH09162753A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008226300A (en) * 2007-03-09 2008-09-25 Nec Electronics Corp Method and circuit for decoding
US7458007B2 (en) * 2000-02-18 2008-11-25 Texas Instruments Incorporated Error correction structures and methods
US7644342B2 (en) 2001-11-21 2010-01-05 Kabushiki Kaisha Toshiba Semiconductor memory device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7458007B2 (en) * 2000-02-18 2008-11-25 Texas Instruments Incorporated Error correction structures and methods
US7644342B2 (en) 2001-11-21 2010-01-05 Kabushiki Kaisha Toshiba Semiconductor memory device
JP2008226300A (en) * 2007-03-09 2008-09-25 Nec Electronics Corp Method and circuit for decoding
US8055985B2 (en) 2007-03-09 2011-11-08 Renesas Electronics Corporation Decoding method and decoding circuit

Similar Documents

Publication Publication Date Title
US5170399A (en) Reed-Solomon Euclid algorithm decoder having a process configurable Euclid stack
US6374383B1 (en) Determining error locations using error correction codes
US6119262A (en) Method and apparatus for solving key equation polynomials in decoding error correction codes
US5517509A (en) Decoder for decoding ECC using Euclid's algorithm
JP3233860B2 (en) Reed-Solomon decoder
JPH0831803B2 (en) Method and apparatus for error correction
US5805617A (en) Apparatus for computing error correction syndromes
WO1995012850A1 (en) Reed-solomon decoder
EP0963047B1 (en) Reed Solomon coding apparatus and Reed Solomon coding method
GB2391769A (en) Reed-solomon decoder and decoding method for errors and erasures decoding
US4841300A (en) Error correction encoder/decoder
US5583499A (en) Method and apparatus for computing error locator polynomial for use in a Reed-Solomon decoder
KR100258952B1 (en) Rs decoder and method therefor having new polynomial arrangement architecture
KR100258951B1 (en) Rs decoder having serial expansion architecture and method therefor
JP3502583B2 (en) Error correction method and error correction device
US6978415B1 (en) Variable redundancy cyclic code encoders
KR100305618B1 (en) Multipurpose error correction calculation circuit
WO2003096546A2 (en) A method of soft-decision decoding of reed-solomon codes
US6263471B1 (en) Method and apparatus for decoding an error correction code
US5471486A (en) Methods and devices for encoding data symbols in accordance with a BCH code to obtain a code word in which parity symbols are located in the middle of the code word
JPH0865175A (en) Error position detecting circuit of reed-solomon decoder
JP3614978B2 (en) Galois field division method and division apparatus
JPH09162753A (en) Decoding system for code word
US5787100A (en) Apparatus for determining error evaluator polynomial for use in a Reed-Solomon decoder
EP0584864B1 (en) A hardware-efficient method and device for encoding BCH codes and in particular Reed-Solomon codes