JPH1021218A - Product sum arithmetic method - Google Patents

Product sum arithmetic method

Info

Publication number
JPH1021218A
JPH1021218A JP16907896A JP16907896A JPH1021218A JP H1021218 A JPH1021218 A JP H1021218A JP 16907896 A JP16907896 A JP 16907896A JP 16907896 A JP16907896 A JP 16907896A JP H1021218 A JPH1021218 A JP H1021218A
Authority
JP
Japan
Prior art keywords
term
polynomial
circuits
degree
multiplication
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.)
Granted
Application number
JP16907896A
Other languages
Japanese (ja)
Other versions
JP3618905B2 (en
Inventor
Masami Aizawa
雅己 相沢
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP16907896A priority Critical patent/JP3618905B2/en
Publication of JPH1021218A publication Critical patent/JPH1021218A/en
Application granted granted Critical
Publication of JP3618905B2 publication Critical patent/JP3618905B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)
  • Error Detection And Correction (AREA)

Abstract

PROBLEM TO BE SOLVED: To make configuration simple, compact and economically advantageous by providing two kinds of storing means and plural selecting means for guiding to the storing means. SOLUTION: A multiplier Q(x) is inputted from a high-order device through a gate circuit 27. When the term of the highest degree of Q(x) is inputted, the term is multiplied by the respective terms of multipliers held is FF circuits 251, 252,... by multiplier circuits 281, 282,.... Then the multiplying results of the multiplier circuits 281, 282,... are stored in FF circuits 261, 262,... respectively through adder circuits 291, 292,... (which become through because a value to add is 0 at first) and selectors 301, 302,.... Next the term of the next degree of Q(x) is inputted. By repeating operation like this, the multiplied results are successively shifter. This operation is repeated until it reaches the constant term of Q(x). Then the multiplier becomes the term of sum in the next recurrence formula calculation.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、例えばRS(Re
ed-Solomon)符号の復号化システム等に使用して好適す
る積和演算方法に関する。
BACKGROUND OF THE INVENTION The present invention relates to an RS (Re
The present invention relates to a product-sum operation method suitable for use in a decoding system for ed-Solomon) codes and the like.

【0002】[0002]

【従来の技術】周知のように、BCH(Bose-Chaudhuri
-Hocquenghem)符号の一種でもあるRS符号は、ハード
ウェアに即した2値(排他的論理和回路で実現)の拡大
体から符号生成することが多く、バースト誤り等にも強
い誤り訂正方式として広く知られている。図5は、この
ようなRS符号を、ユークリッド互除法を用いて復号化
する復号化システムの全体的な構成を示している。
2. Description of the Related Art As is well known, BCH (Bose-Chaudhuri)
RS code, which is a type of Hocquenghem code, is often generated from a binary (implemented by an exclusive-OR circuit) expanded field that matches the hardware, and is widely used as an error correction method that is resistant to burst errors and the like. Are known. FIG. 5 shows the overall configuration of a decoding system that decodes such an RS code using the Euclidean algorithm.

【0003】この復号化システムは、受信語(RS符
号)が供給される入力端子11と、シンドロームS
(x)計算回路12と、ユークリッド除法を用いた誤り
評価多項式ω(x)算出回路13と、積和演算を用いた
誤り位置多項式σ(x)算出回路14と、チェンサーチ
回路15と、遅延回路16と、訂正実行回路17と、こ
の訂正実行回路17から復号された出力を取り出す出力
端子18とから構成されており、各演算は基本的にガロ
ア体で行なわれる。
This decoding system comprises an input terminal 11 to which a received word (RS code) is supplied, and a syndrome S
(X) calculation circuit 12, error evaluation polynomial ω (x) calculation circuit 13 using Euclidean division, error location polynomial σ (x) calculation circuit 14 using product-sum operation, Chien search circuit 15, delay It comprises a circuit 16, a correction execution circuit 17, and an output terminal 18 for extracting a decoded output from the correction execution circuit 17, and each operation is basically performed in a Galois field.

【0004】ここで、ユークリッド互除法とは、その詳
細は「符号理論」昭晃堂、宮川,岩垂,今井著に記載さ
れているので省略するが、2つの整数の最大公約数を求
める手法である。そして、上記した復号化システムで
は、この手法を多項式に適応して、X2tとシンドローム
S(x)との共通因子を取り出すことで、誤り評価多項
式(Error Evolutor Polynomial )及び誤り位置多項式
(Error Locator Polynomial)を導出している。
The Euclidean algorithm is described in "Coding Theory" by Shokodo, Miyagawa, Iwatari, and Imai, and its description is omitted. However, the Euclidean algorithm is a method for calculating the greatest common divisor of two integers. is there. In the decoding system described above, this method is applied to a polynomial to extract a common factor between X 2t and the syndrome S (x), thereby obtaining an error evaluation polynomial (Error Evolutor Polynomial) and an error location polynomial (Error Locator). Polynomial).

【0005】この導出手順は簡単で、除算、次数のチェ
ック及びレジスタの入れ替えを、終了条件を満たすまで
再帰的に繰り返し行なうことにより実現される。ただ
し、tは訂正能力であり、情報の冗長度は2t追加とな
る。すなわち、
[0005] This derivation procedure is simple, and is realized by recursively repeating division, order check, and register exchange until an end condition is satisfied. Here, t is the correction capability, and the information redundancy is added by 2t. That is,

【0006】[0006]

【数1】 を満たすように、順次Li (x)を求めていく。実際の
計算は、
(Equation 1) L i (x) is sequentially obtained so as to satisfy the following. The actual calculation is

【0007】[0007]

【数2】 として順次iをインクリメントしていき、Li (x)の
次元がt以下になったとき終了させる。そして、このと
きのLi (x)が、誤り評価多項式ω(x)になるとい
うことである。また、同時に、積和演算では、
(Equation 2) I is sequentially incremented, and the process ends when the dimension of L i (x) becomes t or less. Then, L i (x) at this time becomes the error evaluation polynomial ω (x). At the same time, in the product-sum operation,

【0008】[0008]

【数3】 なる式を演算する。この場合、上記したLi (x)の次
元がt以下になったという判定により、iのインクリメ
ントを終了させた時点でのri (x)が誤り位置多項式
σ(x)となる。この式の変化は、
(Equation 3) The following expression is calculated. In this case, when it is determined that the dimension of L i (x) has become equal to or smaller than t, r i (x) at the time when the increment of i is terminated becomes the error locator polynomial σ (x). The change in this equation is

【0009】[0009]

【数4】 となる。つまり、ri-1 (x)は(4)式における乗数
の項から(5)式における和の項となり、ri (x)は
(4)式における結果の項から(5)式における乗数の
項となり、ri-2 (x)は破棄される。
(Equation 4) Becomes That is, r i-1 (x) is a term of the sum in the equation (5) from the term of the multiplier in the equation (4), and r i (x) is a multiplier in the equation (5) from the term of the result in the equation (4). And r i-2 (x) is discarded.

【0010】次に、図6は、上記の積和演算を行なうた
めの従来の積和演算回路を示している。図6において、
3列に配置されたD(Delay )タイプのFF(Flip Flo
p )回路19,20,21の中の、最上位の行を構成す
る複数のFF回路191,192,……には、上記
(3)式で表現された多項式演算のうち、ri-1 (x)
が保持されている。
FIG. 6 shows a conventional product-sum operation circuit for performing the above product-sum operation. In FIG.
D (Delay) type FF (Flip Flo) arranged in three rows
p) A plurality of FF circuits 191, 192,... constituting the top row in the circuits 19, 20, 21 have r i−1 among the polynomial operations expressed by the above equation (3). (X)
Is held.

【0011】また、図6において、最下位の行を構成す
る複数のFF回路211,212,……には、ri-2
(x)が保持されている。なお、中央の行を構成する複
数のFF回路201,202,……は、多項式同士の乗
算において各次数毎に演算を行なうために、演算結果を
一時的に保持するレジスタとして機能している。
Further, in FIG. 6, a plurality of FF circuits 211 and 212 constituting the lowest row, the ......, r i-2
(X) is held. The plurality of FF circuits 201, 202,... Constituting the central row function as registers for temporarily holding the operation results in order to perform the operation for each degree in multiplication between polynomials.

【0012】まず、各FF回路201,202,……の
内容が全てクリアされる。その後、Q(x)の最上位の
次数の項が入力されると、その項は、乗算回路221,
222,……によって、FF回路191,192,……
に保持された乗数の各項と、それぞれ乗算される。そし
て、各乗算回路221,222,……の乗算結果は、F
F回路201,202,……にそれぞれ格納される。
First, all the contents of the FF circuits 201, 202,... Are cleared. Thereafter, when a term of the highest order of Q (x) is input, the term is multiplied by the multiplication circuit 221,
FF circuits 191, 192,.
Is multiplied by each term of the multiplier held in. The multiplication results of the multiplication circuits 221, 222,...
Are stored in the F circuits 201, 202,... Respectively.

【0013】次に、Q(x)の次の次数の項が入力され
ると、その項は、上記と同様に、乗算回路221,22
2,……によって、FF回路191,192,……に保
持された乗数の各項と、それぞれ乗算される。すると、
今度は、各乗算回路221,222,……の乗算結果
が、加算回路231,232,……によって、FF回路
201,202,……に格納されている先の乗算結果
と、それぞれ加算される。そして、各加算回路231,
232,……の加算結果は、再びFF回路201,20
2,……にそれぞれ格納される。
Next, when a term of the next order of Q (x) is input, the term is multiplied by the multiplication circuits 221 and 22 in the same manner as described above.
Are multiplied by the terms of the multipliers held in the FF circuits 191, 192,. Then
This time, the multiplication results of the multiplication circuits 221, 222,... Are respectively added to the previous multiplication results stored in the FF circuits 201, 202,. . Then, each of the adding circuits 231,
The addition results of 232,...
2,... Respectively.

【0014】このような動作が繰り返されることによ
り、最初に乗算された結果は、図中右方向に順次シフト
されることになる。これは、Q(x)が上位次数の項か
ら順次入力されていることに対応している。そして、最
後に、Q(x)の定数項が入力されると、その項は、乗
算回路221,222,……によって、FF回路19
1,192,……に保持された乗数の各項と、それぞれ
乗算される。
By repeating such an operation, the result of the first multiplication is sequentially shifted rightward in the figure. This corresponds to the fact that Q (x) is sequentially input from higher order terms. Finally, when a constant term of Q (x) is input, the term is multiplied by multiplication circuits 221, 222,.
Are multiplied by each term of the multiplier held in 1,192,....

【0015】この場合、各乗算回路221,222,…
…の乗算結果は、加算回路231,232,……を介し
た後、加算回路241,242,……によって、FF回
路211,212,……に保持された和の各項と、それ
ぞれ加算される。そして、各加算回路241,242,
……の加算結果は、FF回路191,192,……にそ
れぞれ格納される。
In this case, each of the multiplication circuits 221, 222,...
Are passed through addition circuits 231, 232,..., And then added by the addition circuits 241, 242,... To the respective terms of the sum held in the FF circuits 211, 212,. You. Then, each of the adding circuits 241, 242,
.. Are stored in the FF circuits 191, 192,.

【0016】このとき、同時に、今まで乗数として扱わ
れたFF回路191,192,……の値は、次の演算ス
テップでは和の項となるため、FF回路201,20
2,……に格納されるようになる。以上に述べた一連の
演算動作は、1回のぜんか式の演算を示しており、この
ぜんか式の演算はユークリッド除法処理が完了するまで
繰り返されることになる。
At this time, at the same time, the values of the FF circuits 191, 192,..., Which have been treated as multipliers, become sum items in the next operation step.
2, .... The above-described series of arithmetic operations shows one arithmetic operation of the ascetic expression, and this arithmetic operation of the ascetic expression is repeated until the Euclidean division processing is completed.

【0017】しかしながら、上記した従来の積和演算回
路では、多項式同士の演算となるため、その次数に対応
した数のFF回路を、図6に示したように、3列分設置
しなければならず、ハードウェアの規模が大きくなり経
済的な不利を招くという問題が生じることになる。
However, in the conventional product-sum operation circuit described above, since the operations are performed between polynomials, FF circuits of the number corresponding to the order must be provided for three columns as shown in FIG. However, there arises a problem that the scale of the hardware becomes large, which causes an economic disadvantage.

【0018】[0018]

【発明が解決しようとする課題】以上のように、従来の
積和演算回路では、ハードウェアの規模が大きくなりが
ちで経済的な不利を招くという問題を有している。そこ
で、この発明は上記事情を考慮してなされたもので、構
成簡易にして小型化を図り経済的にも有利とし得る極め
て良好な積和演算方法を提供することを目的とする。
As described above, the conventional product-sum operation circuit has a problem that the scale of hardware tends to be large, which causes an economic disadvantage. The present invention has been made in view of the above circumstances, and has as its object to provide a very good product-sum operation method that can be simplified in size, reduced in size, and economically advantageous.

【0019】[0019]

【課題を解決するための手段】この発明に係る積和演算
方法は、第1の多項式と第2の多項式とを乗算し、その
乗算結果と第3の多項式とを加算するような積和演算を
行なうものを対象としている。
A multiply-accumulate method according to the present invention multiplies a first polynomial by a second polynomial and adds the multiplication result to a third polynomial. It is intended for those who do.

【0020】そして、第1の多項式の各次数の項をそれ
ぞれ格納する複数の第1の格納手段と、第3の多項式の
各次数の項をそれぞれ格納する複数の第2の格納手段
と、第2の多項式を次数毎に入力する入力手段と、この
入力手段で入力された所定の次数の項と複数の第1の格
納手段に格納された各項とをそれぞれ乗算する複数の乗
算手段と、この複数の乗算手段から得られた各乗算結果
と第2の格納手段に格納された各項とをそれぞれ加算す
る複数の加算手段と、この複数の加算手段から得られた
各加算結果と複数の第1の格納手段に格納された各項と
を選択的に複数の第2の格納手段に導く複数の選択手段
とを備えるようにしたものである。
A plurality of first storage means for respectively storing the terms of each degree of the first polynomial; a plurality of second storage means for respectively storing the terms of each degree of the third polynomial; Input means for inputting a polynomial of 2 for each degree, a plurality of multiplying means for multiplying a term of a predetermined degree input by the input means and each term stored in the plurality of first storage means, A plurality of adding means for adding the respective multiplication results obtained from the plurality of multiplying means and the respective terms stored in the second storage means; and a plurality of adding results obtained from the plurality of adding means and A plurality of selection means for selectively guiding each item stored in the first storage means to a plurality of second storage means.

【0021】また、この発明に係る積和演算方法は、上
記の対象において、第1の多項式の各次数の項がそれぞ
れシフト可能に格納される複数の第1の格納手段と、第
3の多項式の各次数の項がそれぞれシフト可能に格納さ
れる複数の第2の格納手段と、第2の多項式を次数毎に
入力する入力手段と、この入力手段で入力された所定の
次数の項と複数の第1の格納手段でシフトされた各項と
を順次乗算する乗算手段と、この乗算手段から得られた
乗算結果と第2の格納手段でシフトされた各項とをそれ
ぞれ加算する加算手段と、この加算手段から得られた加
算結果と乗算手段に供給される第2の格納手段の出力と
を選択的に複数の第1及び第2の格納手段にそれぞれ供
給する選択手段とを備えるようにしたものである。
Further, in the above method, the product-sum operation method may further comprise a plurality of first storage means in which each degree term of the first polynomial is stored in a shiftable manner, and a third polynomial. A plurality of second storage means in which terms of each degree are respectively shiftably stored, an input means for inputting a second polynomial for each degree, and a plurality of terms of a predetermined degree input by the input means. Multiplying means for sequentially multiplying each of the terms shifted by the first storage means, and adding means for respectively adding the multiplication result obtained from the multiplication means and each of the terms shifted by the second storage means. Selection means for selectively supplying the addition result obtained from the addition means and the output of the second storage means supplied to the multiplication means to the plurality of first and second storage means, respectively. It was done.

【0022】上記のような各方法によれば、いずれも2
種類の格納手段を設けるだけで実現することができるた
め、構成簡易にして小型化を図り経済的にも有利とする
ことができる。
According to each of the above methods, each of them is 2
Since it can be realized only by providing the type of storage means, the configuration can be simplified, the size can be reduced, and it is economically advantageous.

【0023】[0023]

【発明の実施の形態】以下、この発明の第1の実施の形
態について図面を参照して詳細に説明する。図1におい
て、まず、最初に、先に(3)式に示した和の項ri-2
(x)が0の場合について説明する。このとき、同式に
おける乗数の項ri-1 (x)は、FF回路251,25
2,……に格納されている。また、FF回路261,2
62,……の内容は、全てクリアされている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a first embodiment of the present invention will be described in detail with reference to the drawings. In FIG. 1, first, the sum term r i−2 shown in the equation (3) is first used.
The case where (x) is 0 will be described. At this time, the term r i-1 (x) of the multiplier in the equation is calculated by the FF circuits 251, 25
2,.... In addition, the FF circuits 261, 261
62,... Are all cleared.

【0024】このような状態で、乗数Q(x)は、ゲー
ト回路27を介して上位から入力される。まず、Q
(x)の最上位の次数の項が入力されると、その項は、
乗算回路281,282,……によって、FF回路25
1,252,……に保持された乗数の各項と、それぞれ
乗算される。そして、各乗算回路281,282,……
の乗算結果は、加算回路291,292,……(最初は
加算する値が0であるためスルーとなる)及びセレクタ
301,302,……をそれぞれ介して、FF回路26
1,262,……に格納される。
In such a state, the multiplier Q (x) is inputted from the higher order through the gate circuit 27. First, Q
When the highest order term of (x) is input, the term is
By the multiplication circuits 281, 282,...
Are multiplied by the respective terms of the multiplier held in 1,252,.... Each of the multiplication circuits 281, 282,...
Are passed through the adder circuits 291, 292,... (Because the value to be added is 0 at first, so that the result is through) and the selectors 301, 302,.
1, 262,....

【0025】次に、Q(x)の次の次数の項が入力され
ると、その項は、上記と同様に、乗算回路281,28
2,……によって、FF回路251,252,……に保
持された乗数の各項と、それぞれ乗算される。すると、
今度は、各乗算回路281,282,……の乗算結果
が、加算回路291,292,……によって、FF回路
261,262,……に格納されている先の乗算結果
と、それぞれ加算される。そして、各加算回路291,
292,……の加算結果は、セレクタ301,302,
……を介して再びFF回路261,262,……にそれ
ぞれ格納される。
Next, when a term of the next order of Q (x) is input, the term is multiplied by the multiplication circuits 281 and 28 in the same manner as described above.
Are multiplied by the multipliers held by the FF circuits 251, 252,. Then
This time, the multiplication results of the respective multiplication circuits 281, 282,... Are respectively added to the previous multiplication results stored in the FF circuits 261, 262,. . Then, each adder circuit 291,
292,... Are output from selectors 301, 302,
Are stored again in the FF circuits 261, 262,.

【0026】このような動作が繰り返されることによ
り、乗算された結果は、図中右方向に順次シフトされる
ことになる。このことは、Q(x)が高い次数の項から
順次入力されていることに対応しており、Q(x)の次
数が下がるにつれて、ひとつ前の演算結果を1次数分上
げることになる。この動作が、Q(x)が定数項に達す
るまで繰り返される。最終的に定数項まで到達した場
合、ぜんか式に(1)式の終了を示し、その際は、乗数
が次のぜんか式演算において和の項となる。また、1つ
の演算結果は、次の乗数となる。
By repeating such an operation, the result of the multiplication is sequentially shifted rightward in the figure. This corresponds to the fact that Q (x) is sequentially input from a higher-order term. As the order of Q (x) decreases, the immediately preceding operation result is increased by one order. This operation is repeated until Q (x) reaches a constant term. If the constant term is finally reached, the end of equation (1) is indicated in the asperm equation, in which case the multiplier becomes the sum term in the next asperm operation. Further, one operation result is the following multiplier.

【0027】つまり、最後に、Q(x)の定数項が入力
されると、その項は、乗算回路281,282,……に
よって、FF回路251,252,……に保持された乗
数の各項と、それぞれ乗算される。この場合、各乗算回
路281,282,……の乗算結果は、加算回路29
1,292,……によって、FF回路261,262,
……に保持された値とそれぞれ加算される。
That is, when a constant term of Q (x) is input, the term is multiplied by each of the multipliers held in the FF circuits 251, 252,. Multiplied by the term. In this case, the multiplication results of the multiplication circuits 281, 282,.
, FF circuits 261, 262,.
Are added to the values held in....

【0028】その後、各加算回路291,292,……
の加算結果は、乗算係数を格納するFF回路251,2
52,……にそれぞれ格納される。このとき、各セレク
タ301,302,……は、FF回路251,252,
……から出力される乗数を選択して、FF回路261,
262,……に格納させるように動作する。このように
することにより、2つの項を1回で入れ替えることがで
き、構成の簡易化を図ることができる。
Thereafter, each of the adding circuits 291, 292,...
Are added to FF circuits 251 and 251 for storing multiplication coefficients.
52,... Respectively. At this time, the selectors 301, 302,...
The multiplier output from… is selected, and the FF circuit 261,
262,... By doing so, the two terms can be exchanged at one time, and the configuration can be simplified.

【0029】次に、上記した和の項ri-2 (x)の演算
を含む場合について説明する。最初のぜんか式では初期
値として和の値が0であったため、和の項を格納するF
F回路261,262,……をクリアして演算動作を開
始したが、和の項に値が存在する場合には、Q(x)の
次数が問題となってくる。そこで、多項式同士の乗算+
加算について、例を上げて説明することにする。この例
として、
Next, a case will be described in which the calculation of the sum term r i-2 (x) is included. Since the sum value was 0 as an initial value in the first assembler expression, F that stores the sum term
The arithmetic operation is started after clearing the F circuits 261, 262,..., But if there is a value in the sum term, the order of Q (x) becomes a problem. Therefore, multiplication between polynomials +
The addition will be described with an example. As an example of this,

【0030】[0030]

【数5】 の計算式について、(Equation 5) For the calculation formula,

【0031】[0031]

【数6】 と定義して計算内容を説明する。ただし、Qi (x)、
i-1 (x)及びLi-2(x)は、それぞれ2、2及び
1なる次数とする。すなわち、
(Equation 6) The calculation contents will be explained. Where Q i (x),
L i−1 (x) and L i−2 (x) are orders of 2, 2, and 1, respectively. That is,

【0032】[0032]

【数7】 が得られる。ただし、Q1 i xとLi-1 (x)との乗算
結果の各項と、Q2 i2 とLi-1 (x)との乗算結果
の各項とは、簡単のためにLQxn として示している。
また、Qi (x)・Li-1 (x)の演算結果も、簡単の
ためにxの係数を@として示している。なお、実際の計
算ではQの上位の項から乗算が行なわれた後、演算途中
の加算やシフトが行なわれる形となる。すなわち、先に
図6に示した従来の積和演算手段では、
(Equation 7) Is obtained. However, each term of the multiplication result of Q 1 ix and L i-1 (x) and each term of the multiplication result of Q 2 ix 2 and L i-1 (x) are, for simplicity, It is shown as LQx n.
The calculation result of Q i (x) · L i-1 (x) also shows the coefficient of x as x for simplicity. In the actual calculation, after the multiplication is performed from the high-order term of Q, addition or shift in the middle of the calculation is performed. That is, in the conventional product-sum operation means shown in FIG.

【0033】[0033]

【数8】 の計算順で行なわれる。ただし、WR(Working Resist
er)はFF回路201,202,……に相当し、FF1
はFF回路211,212,……に相当する。
(Equation 8) Are performed in the calculation order. However, WR (Working Resist
er) corresponds to the FF circuits 201, 202,...
Correspond to the FF circuits 211, 212,...

【0034】しかしながら、ここにおいて、上記(1)
のステップで(5)の処理を先に行なうようにすること
により、和の項Li-2 (x)を格納するレジスタを削除
することが可能となる。つまり、図1では、
However, here, (1)
By performing the processing of (5) first in the step of (1), the register storing the sum term Li-2 (x) can be deleted. That is, in FIG.

【0035】[0035]

【数9】 とすることができる。(Equation 9) It can be.

【0036】ここで、問題となるのが(1)′WR←L
i-2 (x)・x-2の項で、負の指数を持つために、より
低次のレジスタを必要とするということである。また、
乗算する指数分を、わざわざ割り算するという処理も生
じる。しかしながら、演算結果はレジスタの最大次数を
越えないという点に着目すると、少なくとも乗数はレジ
スタの最高次数分まで埋まらないため、レジスタの上位
の部分は0で占められることになる。
The problem here is (1) 'WR ← L
In term of i-2 (x) · x -2, in order to have a negative index is that it requires a lower order register. Also,
There is also a process that the exponent to be multiplied is bothersomely divided. However, paying attention to the fact that the operation result does not exceed the maximum order of the register, the upper part of the register is occupied by 0 because at least the multiplier does not fill up to the highest order of the register.

【0037】これを利用して、本来低次に表われるはず
の積和演算の和の部分を環状にして最高次数にまで戻し
てやることで実現が可能となる。つまり、図1におい
て、FF回路261,262,……の最高次数の項と最
低次数の項(定数項)とを環状につなぎ、左シフトして
おくことで実現することができる。または、回路的に逆
方向のシフトを行なうためには、多数のセレクタを必要
とするので、次数−左シフト数だけ、右に巡回させるよ
うにしても同様の動作が可能となる。
By utilizing this, the sum can be realized by making the sum part of the product-sum operation that should appear in the lower order circular and returning it to the highest order. That is, in FIG. 1, it can be realized by connecting the term of the highest order and the term of the lowest order (constant term) of the FF circuits 261, 262,... Alternatively, a large number of selectors are required to perform a shift in the reverse direction in terms of a circuit, so that the same operation can be performed even if the data is circulated to the right by the order-left shift number.

【0038】次に、図2は、この発明の第2の実施の形
態を示している。図1に示した第1の実施の形態では、
Q(x)の1つの次数の値とFF回路251,252,
……に格納された乗数とは、一度に乗算を行なっている
が、このような手法では、次数分だけ乗算回路や加算回
路を必要とし、訂正能力が高くなるほど、回路規模が増
大することになる。
Next, FIG. 2 shows a second embodiment of the present invention. In the first embodiment shown in FIG.
The value of one order of Q (x) and FF circuits 251, 252,
The multiplier stored in… is multiplied at a time. However, such a method requires a multiplication circuit and an addition circuit for the degree, and the circuit scale increases as the correction capability increases. Become.

【0039】そこで、この図2に示す第2の実施の形態
では、乗算回路を共有して多項式との乗算を次数毎に行
なうようにし、シリアル動作で回路規模の縮小を図るよ
うにしている。ただし、シリアル動作にした分、演算時
間は増大するので、目的に応じて第1の実施の形態に示
した方法と第2の実施の形態に示した方法とを、選択的
に使い分けるようにすれば良い。
Therefore, in the second embodiment shown in FIG. 2, the multiplication circuit is shared and the multiplication with the polynomial is performed for each order, and the circuit scale is reduced by serial operation. However, since the operation time is increased by the serial operation, the method described in the first embodiment and the method described in the second embodiment may be selectively used depending on the purpose. Good.

【0040】まず、最初は、先に(3)式に示した和の
項ri-2 (x)が0の場合について説明する。このと
き、同式における乗数の項ri-1 (x)は、FF回路3
11,312,……,31nに格納されている。また、
各FF回路321,322,……,32nの内容は、全
てクリアされている。
First, the case where the sum term r i-2 (x) shown in equation (3) is 0 will be described. At this time, the term r i-1 (x) of the multiplier in the same equation is
, 31n,..., 31n. Also,
The contents of each of the FF circuits 321, 322,..., 32n are all cleared.

【0041】このような状態で、乗数Q(x)は上位か
ら入力される。まず、Q(x)の最上位の次数の項が入
力されると、その項は、乗算回路33によって、FF回
路321,322,……,32nに保持された乗数の各
項と、順次乗算される。そして、この乗算回路33の乗
算結果は、加算回路34(最初は加算する値が0である
ためスルーとなる)及びセレクタ36をそれぞれ介し
て、FF回路321,322,……,32nに順次格納
される。
In such a state, the multiplier Q (x) is input from the higher order. First, when the highest order term of Q (x) is input, the term is sequentially multiplied by the multiplier 33 with each term of the multiplier held in the FF circuits 321, 322,. Is done. The multiplication result of the multiplication circuit 33 is sequentially stored in the FF circuits 321, 322,..., 32 n via the addition circuit 34 (initially, the value to be added is 0 so that the result is through) and the selector 36. Is done.

【0042】次に、Q(x)の次の次数の項が入力され
ると、その項は、上記と同様に、乗算回路33によっ
て、FF回路311,312,……,31nに保持され
た乗数の各項と、順次乗算される。すると、今度は、乗
算回路33の乗算結果が、加算回路34によって、FF
回路321,322,……,32nに格納されている先
の乗算結果と、順次加算される。そして、加算回路34
の加算結果は、セレクタ36を介して再びFF回路32
1,322,……,32nに順次格納される。
Next, when a term of the next order of Q (x) is input, the term is held in the FF circuits 311, 312,... Each term of the multiplier is multiplied sequentially. Then, the multiplication result of the multiplication circuit 33 is added to the FF by the addition circuit 34 this time.
, 32n are sequentially added to the previous multiplication results stored in the circuits 321, 322,..., 32n. Then, the addition circuit 34
Is added to the FF circuit 32 via the selector 36 again.
,..., 32n are sequentially stored.

【0043】このような乗算動作において、FF回路3
11,312,……,31nに格納された乗数は保持さ
れなくてはならないので、各FF回路311,312,
……,31nから順次出力される乗数は、セレクタ35
を介してFF回路311,312,……,31nに再び
戻されて格納されるようになっている。このため、乗数
の次数分だけ回ると、乗数は元のFF回路311,31
2,……,31nに戻される。そして、その後にQ
(x)の次の次数の項が入力されることになる。
In such a multiplication operation, the FF circuit 3
Since the multipliers stored in 11, 312,..., 31n must be held, each of the FF circuits 311, 312,.
The multipliers sequentially output from...
, Are returned to the FF circuits 311, 312,..., 31 n again and stored. For this reason, when the multiplier is turned by the order of the multiplier, the multiplier becomes the original FF circuits 311 and 31.
2,..., 31n. And then Q
The next order term of (x) will be input.

【0044】この一連の動作後で、次に乗算される前
に、乗算結果を1つ図中右方向にシフトする。このこと
は、Q(x)が高い次数の項から順次入力されているこ
とに対応しており、Q(x)の次数が下がるにつれて、
ひとつ前の演算結果を1次数分上げることになる。この
動作が、Q(x)が定数項に達するまで繰り返される。
最終的に定数項との乗算が行なわれる際には、ぜんか式
の(1)式の終了が示される。その際は、乗数が次のぜ
んか式演算において和の項となる。また、1つの演算結
果は、次の乗数となる。
After this series of operations, before the next multiplication, the result of the multiplication is shifted by one to the right in the drawing. This corresponds to the fact that Q (x) is sequentially input from a higher-order term, and as the order of Q (x) decreases,
The result of the immediately preceding operation is increased by the first order. This operation is repeated until Q (x) reaches a constant term.
When the multiplication with the constant term is finally performed, the end of equation (1) is indicated. In that case, the multiplier becomes a sum term in the next assembling operation. Further, one operation result is the following multiplier.

【0045】つまり、最後に、Q(x)の定数項が入力
されると、その項は、乗算回路33によって、FF回路
311,312,……,31nに保持された乗数の各項
と、順次乗算される。この場合、乗算回路33の乗算結
果は、加算回路34によってFF回路321,322,
……,32nに保持された値と順次加算される。
That is, finally, when a constant term of Q (x) is input, the term is multiplied by the multiplication circuit 33 with each term of the multiplier held in the FF circuits 311, 312,. Multiplied sequentially. In this case, the multiplication result of the multiplication circuit 33 is added by the addition circuit 34 to the FF circuits 321, 322,
,..., 32n are sequentially added.

【0046】その後、加算回路34の加算結果は、セレ
クタ35を介してFF回路311,312,……,31
nに順次格納される。このとき、セレクタ36は、FF
回路311,312,……,31nから順次出力される
乗数を選択して、FF回路321,322,……,32
nに格納させるように動作する。このようにすること
で、2つの項を特別な操作なしで入れ替えることがで
き、構成の簡易化を図ることができる。なお、図3
(a)〜(i)は、上記した条件において、t=4の場
合における、初期状態からの各レジスタの内容の変化を
示している。
After that, the addition result of the addition circuit 34 is supplied to the FF circuits 311, 312,.
n. At this time, the selector 36
The multipliers sequentially output from the circuits 311, 312,..., 31n are selected, and the FF circuits 321, 322,.
n. By doing so, the two terms can be exchanged without any special operation, and the configuration can be simplified. Note that FIG.
(A) to (i) show changes in the contents of each register from the initial state when t = 4 under the above conditions.

【0047】続いて、和の項ri-2 (x)の演算を含む
場合について説明する。先に説明したように、 Qi (x)・Li-1 (x)+Li-2 (x) の計算は、先にLi-2 (x)の項を格納することで実現
される。また、x-2の乗算を、図3では右シフトあるい
は左シフトで一回りさせることで実現したが、シリアル
動作において、FF回路311,312,……,31n
のシフトを停止させ、FF回路321,322,……,
32nの乗算係数をシフトさせることで、開始タイミン
グを変えることができるようになり、x-2の乗算に相当
する演算を余分な時間や回路の増加なしで実現すること
が可能となる。なお、図4(a)〜(i)は、上記した
条件において、t=4の場合における、レジスタの内容
の変化を示している。
Next, a case including the operation of the sum term r i-2 (x) will be described. As described above, the calculation of Q i (x) · L i−1 (x) + L i−2 (x) is realized by storing the term of L i−2 (x) first. . Further, although the multiplication of x −2 is realized by making one turn by right shift or left shift in FIG. 3, in serial operation, FF circuits 311, 312,.
Are stopped, and the FF circuits 321, 322,.
By shifting the 32n multiplication coefficient, the start timing can be changed, and the operation corresponding to the multiplication of x −2 can be realized without extra time or an increase in circuits. FIGS. 4A to 4I show changes in the contents of the register when t = 4 under the above conditions.

【0048】また、上記した第1及び第2の実施の形態
では、レジスタをFF回路を用いて構成するようにした
が、これは、例えばCPU(Central Processing Unit
)やMPU(Multi Processing Unit )等と、RAM
(Random Access Memory),乗算回路や加算回路とで構
成することも可能である。この場合、シフトレジスタ的
な動作は、動作ポインタを動かすことで実現が可能とな
る。当然のことながら、積和演算の和の部分は、x-2
乗算といった動作はポインタの位置をずらし、ループの
上のアドレス空間(アドレス計算にモディロ、剰余)計
算を用いることで実現が可能である。なお、この発明は
上記した各実施の形態に限定されるものではなく、この
外その要旨を逸脱しない範囲で種々変形して実施するこ
とができる。
In the above-described first and second embodiments, the register is configured by using the FF circuit. However, this is achieved by, for example, a CPU (Central Processing Unit).
), MPU (Multi Processing Unit) and RAM
(Random Access Memory), a multiplication circuit and an addition circuit. In this case, a shift register-like operation can be realized by moving the operation pointer. Naturally, the sum part of the multiply-accumulate operation can be realized by shifting the position of the pointer for operations such as x- 2 multiplication and using the address space (modulo and remainder for address calculation) on the loop. It is. It should be noted that the present invention is not limited to the above-described embodiments, and can be implemented with various modifications without departing from the scope of the present invention.

【0049】[0049]

【発明の効果】以上詳述したようにこの発明によれば、
構成簡易にして小型化を図り経済的にも有利とし得る極
めて良好な積和演算方法を提供することができる。
As described in detail above, according to the present invention,
It is possible to provide a very good sum-of-products calculation method that can be simplified in configuration, reduced in size, and economically advantageous.

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

【図1】この発明に係る積和演算方法の第1の実施の形
態を示すブロック構成図。
FIG. 1 is a block diagram showing a first embodiment of a product-sum operation method according to the present invention.

【図2】この発明に係る積和演算方法の第2の実施の形
態を示すブロック構成図。
FIG. 2 is a block diagram showing a second embodiment of the product-sum operation method according to the present invention.

【図3】同第2の実施の形態の動作を説明するために示
す図。
FIG. 3 is a view for explaining the operation of the second embodiment;

【図4】同第2の実施の形態の動作を説明するために示
す図。
FIG. 4 is a view for explaining the operation of the second embodiment;

【図5】RS符号の復号化システムの全体を示すブロッ
ク構成図。
FIG. 5 is a block diagram showing an entire RS code decoding system.

【図6】同システムに使用される従来の積和演算回路を
示すブロック構成図。
FIG. 6 is a block diagram showing a conventional product-sum operation circuit used in the system.

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

11…入力端子、 12…シンドロームS(x)計算回路、 13…誤り評価多項式ω(x)算出回路、 14…誤り位置多項式σ(x)算出回路、 15…チェンサーチ回路、 16…遅延回路、 17…訂正実行回路、 18…出力端子、 191,192,…… …FF回路、 201,202,…… …FF回路、 211,212,…… …FF回路、 221,222,…… …乗算回路、 231,232,…… …加算回路、 241,242,…… …加算回路、 251,252,…… …FF回路、 261,262,…… …FF回路、 27…ゲート回路、 281,282,…… …乗算回路、 291,292,…… …加算回路、 301,302,…… …セレクタ、 311〜31n…FF回路、 321〜32n…FF回路、 33…乗算回路、 34…加算回路、 35,36…セレクタ。 11: input terminal, 12: syndrome S (x) calculation circuit, 13: error evaluation polynomial ω (x) calculation circuit, 14: error location polynomial σ (x) calculation circuit, 15: Chien search circuit, 16: delay circuit, 17 correction execution circuit, 18 output terminal, 191, 192, FF circuit, 201, 202, FF circuit, 211, 212, FF circuit, 221, 222, multiplication circuit , 231,232,..., An addition circuit, 241,242,..., An addition circuit, 251,252,..., An FF circuit, 261,262,. ... Multiplication circuits 291,292,... Addition circuits 301,302,..., Selectors, 311-31n FF circuits, 321-32n FF circuits, 33 Multiplication circuits, 3 ... adder circuit, 35, 36 ... selector.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 第1の多項式と第2の多項式とを乗算
し、その乗算結果と第3の多項式とを加算する積和演算
を行なう積和演算方法において、前記第1の多項式の各
次数の項をそれぞれ格納する複数の第1の格納手段と、
前記第3の多項式の各次数の項をそれぞれ格納する複数
の第2の格納手段と、前記第2の多項式を次数毎に入力
する入力手段と、この入力手段で入力された所定の次数
の項と前記複数の第1の格納手段に格納された各項とを
それぞれ乗算する複数の乗算手段と、この複数の乗算手
段から得られた各乗算結果と前記第2の格納手段に格納
された各項とをそれぞれ加算する複数の加算手段と、こ
の複数の加算手段から得られた各加算結果と前記複数の
第1の格納手段に格納された各項とを選択的に前記複数
の第2の格納手段に導く複数の選択手段とを具備してな
ることを特徴とする積和演算方法。
1. A multiply-accumulate method for multiplying a first polynomial by a second polynomial and adding the multiplication result to a third polynomial, wherein each degree of the first polynomial is A plurality of first storage means for storing the terms of
A plurality of second storage means for respectively storing the terms of each degree of the third polynomial; input means for inputting the second polynomial for each degree; and a term of a predetermined degree inputted by the input means A plurality of multiplying means for respectively multiplying each of the terms stored in the plurality of first storing means, and a multiplication result obtained from each of the plurality of multiplying means and each of the terms stored in the second storing means. A plurality of adding means for respectively adding the terms, and selectively adding each of the addition results obtained from the plurality of adding means and each term stored in the plurality of first storage means to the plurality of second means. A product-sum operation method comprising: a plurality of selection means for leading to storage means.
【請求項2】 前記複数の第2の格納手段は、前記第3
の多項式の最低次数の項が格納された格納手段の出力端
と、前記第3の多項式の最高次数の項が格納された格納
手段の入力端とが接続されて環状に構成されることを特
徴とする請求項1記載の積和演算方法。
2. The method according to claim 1, wherein the plurality of second storage units include the third storage unit.
And an output end of the storage means in which the term of the lowest degree of the polynomial is stored and an input end of the storage means in which the term of the highest degree of the third polynomial is stored. 2. The product-sum operation method according to claim 1, wherein
【請求項3】 第1の多項式と第2の多項式とを乗算
し、その乗算結果と第3の多項式とを加算する積和演算
を行なう積和演算方法において、前記第1の多項式の各
次数の項がそれぞれシフト可能に格納される複数の第1
の格納手段と、前記第3の多項式の各次数の項がそれぞ
れシフト可能に格納される複数の第2の格納手段と、前
記第2の多項式を次数毎に入力する入力手段と、この入
力手段で入力された所定の次数の項と前記複数の第1の
格納手段でシフトされた各項とを順次乗算する乗算手段
と、この乗算手段から得られた乗算結果と前記第2の格
納手段でシフトされた各項とをそれぞれ加算する加算手
段と、この加算手段から得られた加算結果と前記乗算手
段に供給される前記第2の格納手段の出力とを選択的に
前記複数の第1及び第2の格納手段にそれぞれ供給する
選択手段とを具備してなることを特徴とする積和演算方
法。
3. A multiply-accumulate method for multiplying a first polynomial by a second polynomial and adding the multiplication result to a third polynomial, wherein each degree of the first polynomial is Are stored in a shiftable manner.
Storage means, a plurality of second storage means in which terms of each degree of the third polynomial are respectively stored in a shiftable manner, input means for inputting the second polynomial for each degree, and input means Multiplying means for sequentially multiplying the term of the predetermined degree inputted by the above and each of the terms shifted by the plurality of first storing means; and a multiplication result obtained from the multiplying means and the second storing means. Adding means for respectively adding the shifted terms; and an addition result obtained from the adding means and an output of the second storage means, which is supplied to the multiplying means, are selectively used as the plurality of first and second signals. And a selection means for supplying the sum to the second storage means.
JP16907896A 1996-06-28 1996-06-28 Product-sum operation unit Expired - Fee Related JP3618905B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16907896A JP3618905B2 (en) 1996-06-28 1996-06-28 Product-sum operation unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16907896A JP3618905B2 (en) 1996-06-28 1996-06-28 Product-sum operation unit

Publications (2)

Publication Number Publication Date
JPH1021218A true JPH1021218A (en) 1998-01-23
JP3618905B2 JP3618905B2 (en) 2005-02-09

Family

ID=15879924

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16907896A Expired - Fee Related JP3618905B2 (en) 1996-06-28 1996-06-28 Product-sum operation unit

Country Status (1)

Country Link
JP (1) JP3618905B2 (en)

Also Published As

Publication number Publication date
JP3618905B2 (en) 2005-02-09

Similar Documents

Publication Publication Date Title
US6049815A (en) Method and apparatus for finite field multiplication
US6760742B1 (en) Multi-dimensional galois field multiplier
CN102084335B (en) Implementation of arbitrary galois field arithmetic on a programmable processor
US4928280A (en) Fast processor for multi-bit error correction codes
US6467063B1 (en) Reed Solomon coding apparatus and Reed Solomon coding method
EP0621698B1 (en) Error correction method including erasure correction, and apparatus therefore
US5805617A (en) Apparatus for computing error correction syndromes
JP4210378B2 (en) Galois field multiplier and Galois field multiplication method
US20010054053A1 (en) Method and apparatus for finite field multiplication
US6263471B1 (en) Method and apparatus for decoding an error correction code
KR100258951B1 (en) Rs decoder having serial expansion architecture and method therefor
JP2001127645A (en) Error correction method and error correction device
JP3343857B2 (en) Decoding device, arithmetic device, and methods thereof
JP3614978B2 (en) Galois field division method and division apparatus
EP1947796A2 (en) Method and apparatus for dividing information bit string
JPH0476540B2 (en)
JP3913921B2 (en) Circuit for reciprocal of arbitrary element in finite field
JPH1021218A (en) Product sum arithmetic method
JP2662472B2 (en) Syndrome operation circuit for error correction processing
EP0793352B1 (en) Apparatus for determining the error evaluator polynomial for use in a Reed-Solomon decoder
JPH06230991A (en) Method and apparatus for computation of inverse number of arbitrary element in finite field
JP2907138B2 (en) Error correction arithmetic processing method and processing circuit
JP2000295116A (en) Error correction encoding method
US6704901B1 (en) Runtime programmable Reed-Solomon decoder
US5862159A (en) Parallelized cyclical redundancy check method

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040420

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040621

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040810

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041007

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20041109

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041111

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071119

Year of fee payment: 3

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081119

Year of fee payment: 4

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091119

Year of fee payment: 5

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101119

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101119

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111119

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121119

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131119

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees