JPH0137050B2 - - Google Patents
Info
- Publication number
- JPH0137050B2 JPH0137050B2 JP59097977A JP9797784A JPH0137050B2 JP H0137050 B2 JPH0137050 B2 JP H0137050B2 JP 59097977 A JP59097977 A JP 59097977A JP 9797784 A JP9797784 A JP 9797784A JP H0137050 B2 JPH0137050 B2 JP H0137050B2
- Authority
- JP
- Japan
- Prior art keywords
- adder
- mod
- carry
- input
- output
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
- 238000007792 addition Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
Landscapes
- Detection And Correction Of Errors (AREA)
- Error Detection And Correction (AREA)
Description
【発明の詳細な説明】
産業上の利用分野
本発明はデジタル通信やデジタル記録等で採用
される有限体GF(2n)上の誤り訂正符号の符号処
理に必要な乗算を行うのに用いることができる
MOD(2n−1)(nは2以上の整数)の加算回路
に関するものである。[Detailed Description of the Invention] Industrial Application Field The present invention can be used to perform multiplication necessary for code processing of error correction codes on a finite field GF(2 n ) employed in digital communication, digital recording, etc. can do
The present invention relates to an adder circuit of MOD(2 n -1) (n is an integer of 2 or more).
従来例の構成とその問題点
近年、デジタル通信やデジタル記録等で有限体
GF(2n)上の誤り訂正符号が広く用いられてお
り、その誤り訂正符号の訂正や検出などの符号処
理を行うにはGF(2n)上の乗算が必要である。Configuration of conventional examples and their problems In recent years, finite bodies have been used in digital communication, digital recording, etc.
Error correction codes on GF(2 n ) are widely used, and multiplication on GF(2 n ) is required to perform code processing such as correction and detection of the error correction codes.
GF(2n)上の乗算の1つの手法として、乗数、
被乗数をai、aj(a:GF(2n)上の生成元、i、j
は0以上2n−1未満の整数)としたときに、まず
i、jを求めて、k≡i+j(MOD(2n−1))、
0≦k<2n−1により、乗算結果ai×aj=akを求
める方法がある。その際、ai、ajからi、jを求
めるには、aiのベクタ表現をアドレス入力とし、
iをデータ出力とするテーブルROMを用いれば
よいし、kからakを求めるには、kをアドレス入
力とし、akのベクタ表現をデータ出力とするよう
なテーブルROMを用いればよい。従つて残る問
題は、MOD(2n−1)の加算回路をいかに構成す
るかということである。 One method of multiplication on GF(2 n ) is to use the multiplier,
Let the multiplicands be a i , a j (a: generator on GF(2 n ), i, j
is an integer greater than or equal to 0 and less than 2 n -1), first find i and j, and then k≡i+j (MOD (2 n -1)),
There is a method of obtaining the multiplication result a i ×a j =a k using 0≦k<2 n −1. At that time, to obtain i and j from a i and a j , use the vector representation of a i as the address input,
A table ROM that takes i as the data output may be used, and to obtain a k from k, a table ROM that uses k as the address input and a vector representation of a k as the data output may be used. Therefore, the remaining problem is how to configure the MOD(2 n -1) adder circuit.
以下図面を参照しながら従来のMOD(2n−1)
の加算回路について説明する。第1図は従来の
MOD(2n−1)の加算回路のブロツク図であり、
10はキヤリ入力端子のないnビツトのバイナリ
加算回路(Aとする)であり、20はキヤリ入力
端子のあるnビツトのバイナリ加算器(Bとす
る)である。Aのキヤリ出力CはBのキヤリ入力
端子に入力され、加算数X=x0、x1、……、
xo-1)(以下、V=(v0、v1、……、vo-1)と書く
と、数Vをバイナリ表現したときの名けたを下け
たから書いたときにv0、v1、……Vo-1となるもの
とする。)と被加算数Y=(y0、y1、……、yo-1)
とがAに入力され、Aの加算出力がBに加算数と
して入力され、Bの被加算数としては(0、0、
……、0)(すなわちnビツト分の0)が入力さ
れているように構成している。 Conventional MOD (2 n −1) with reference to the drawing below.
The adder circuit will be explained. Figure 1 shows the conventional
It is a block diagram of an adder circuit of MOD(2 n −1),
10 is an n-bit binary adder (referred to as A) without a carry input terminal, and 20 is an n-bit binary adder (referred to as B) with a carry input terminal. The carry output C of A is input to the carry input terminal of B, and the addition number X=x 0 , x 1 , ...,
x o-1 ) (hereinafter, V = (v 0 , v 1 , ..., v o-1 ), when the number V is expressed in binary, the name is lowered, so when written, v 0 , v 1 , ...V o-1 ) and the addend Y = (y 0 , y 1 , ..., y o-1 )
is input to A, the addition output of A is input to B as an addition number, and the addend of B is (0, 0,
..., 0) (that is, n bits of 0) are input.
以上のように構成されたMOD(2n−1)の加算
回路についてその動作を以下に説明する。前記の
MOD(2n−1)の加算回路の出力Z=(z0、z1、
……、zo-1)はその構成から考えて、Z≡X+Y
+C(MOD2n)(一般にU≡V+W(MOD(M))
と書くとVとWとをMOD(M)で加算した結果
がUになるということを意味する。)となる。S
≡X+Y(MOD(2n−1)、0≦S<2n−1とする
と、2n−1>X+Y≧0のときにはC=0となる
からZ=S=X+Yとなり、X+Y≧2nのときに
はC=1となるからZ=S=(X+Y+1)−2n=
X+Y−(2n−1)となる。従つてX+Y=2n−
1以外のときには、この加算回路の出力Zが加算
数、被加算数X、YのMOD(2n−1)の加算結果
となる。 The operation of the MOD (2 n -1) adder circuit configured as described above will be described below. the above
The output of the adder circuit of MOD (2 n −1) Z = (z 0 , z 1 ,
..., z o-1 ) is considered from its composition, Z≡X+Y
+C(MOD2 n ) (generally U≡V+W(MOD(M))
Writing this means that the result of adding V and W using MOD(M) is U. ). S
If ≡X+Y(MOD(2 n -1), 0≦S<2 n -1, then C=0 when 2 n -1>X+Y≧0, so Z=S=X+Y, and X+Y≧2 n Sometimes C=1, so Z=S=(X+Y+1)−2 n =
It becomes X+Y-(2 n -1). Therefore, X+Y=2 n −
When the value is other than 1, the output Z of this adder circuit becomes the addition result of MOD(2 n -1) of the addition number, the augends X and Y.
しかしながら、上記のような構成においては、
キヤリの伝搬が2つの加算器にまたがつているの
で演算速度が遅いという問題点を有していた。 However, in the above configuration,
Since the signal propagation spans two adders, there is a problem in that the calculation speed is slow.
発明の目的
本発明の目的は、高速なMOD(2n−1)の加算
回路を提供することである。OBJECT OF THE INVENTION An object of the present invention is to provide a high-speed MOD(2 n -1) adder circuit.
発明の構成
本発明のMOD(2n−1)の加算回路は、キヤリ
入力端子を有しないかまたは“0”をキヤリ入力
とするn(n:正の整数)ビツトのバイナリ加算
器(第1の加算器)と、“1”をキヤリ入力とす
るnビツトのバイナリ加算器(第2の加算器)
と、セレクタによつて構成され、前記セレクタに
より、第2の加算器のキヤリ出力が“0”のとき
には第1の加算器の加算結果を選択し、第2の加
算器のキヤリ出力が“1”のときには第2の加算
器の加算結果を選択するように構成したものであ
り、これにより高速にMOD(2n−1)の加算がで
きるものである。Structure of the Invention The MOD (2 n -1) adder circuit of the present invention is an n (n: positive integer) bit binary adder (first adder) and an n-bit binary adder with “1” as a carry input (second adder)
The selector selects the addition result of the first adder when the carry output of the second adder is "0", and selects the addition result of the first adder when the carry output of the second adder is "1". '', the addition result of the second adder is selected, thereby allowing the addition of MOD(2 n -1) at high speed.
実施例の説明
以下本発明の一実施例について図面を参照しな
がら説明する。DESCRIPTION OF EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.
第2図は本発明の一実施例におけるMOD(2n−
1)の加算回路のブロツク図を示すものである。
第2図において、1はキヤリ入力として“1”が
入力されているnビツトのバイナリ加算器(Eと
する)、2はキヤリ入力端子のないnビツトのバ
イナリ加算器(Fとする)、3はセレクタである。
EとFの両方に加算数X=(x0、x1、……、xo-1)
と被加算数Y=(y0、y1、……、yo-1)とを入力
し、それぞれの加算出力、Σ=(Σ0、Σ1、……、
Σo-1)とΣ′=(Σ0、Σ1、……、Σ′o-1)を前記セ
レ
クタに入力し、セレクタの出力Z=(z0、z1、…
…zo-1)は、Eのキヤリ出力CがC=0のときに
は、Z=Σ′となり、C=1のときには、Z=Σと
なるように構成している。 FIG. 2 shows MOD (2 n −
1) shows a block diagram of the adder circuit of FIG.
In Fig. 2, 1 is an n-bit binary adder (denoted as E) to which "1" is input as a carry input, 2 is an n-bit binary adder without a carry input terminal (denoted as F), and 3 is a selector.
The number of additions to both E and F is X = (x 0 , x 1 , ..., x o-1 )
and addend Y = (y 0 , y 1 , ..., y o-1 ) are input, and the respective addition outputs, Σ = (Σ 0 , Σ 1 , ...,
Σ o-1 ) and Σ′ = (Σ 0 , Σ 1 , ..., Σ′ o-1 ) are input to the selector, and the selector output Z = (z 0 , z 1 , ...
...z o-1 ) is configured such that when the carry output C of E is C=0, Z=Σ', and when C=1, Z=Σ.
以上のように構成された本実施例のMOD(2n−
1)の加算回路についてその動作を説明する。E
はΣ≡X+Y+1(MOD2n)を出力し、FはΣ′≡
X+Y(MOD2n)を出力するが、S≡X+Y
(MOD(2n−1))、0≦S≦2n−1とΣ、Σ′とを
比較すると、X+Y≧2n−1のときにはS=Σと
なり、2n−1>X+Y≧0のときには、S=Σ′と
なる。しかるにX+Y≧2n−1のときにはC=1
になり、2n−1>X+Y≧0のときにはC=0に
なるので、上記のように構成することにより、こ
のMOD(2n−1)の加算回路の出力Zは、Z=S
となる。 The MOD of this embodiment configured as described above (2 n −
The operation of the adder circuit 1) will be explained. E
outputs Σ≡X+Y+1 (MOD2 n ), and F outputs Σ′≡
Outputs X+Y (MOD2 n ), but S≡X+Y
(MOD(2 n -1)), 0≦S≦2 n -1 and comparing Σ and Σ', when X+Y≧2 n -1, S=Σ, and when 2 n -1>X+Y≧0, Sometimes S=Σ'. However, when X+Y≧2 n −1, C=1
When 2 n -1 >
becomes.
以上のように本実施例によれば、使用する2つ
の加算器間のキヤリ伝搬をなくしたことにより、
MOD(2n−1)の加算の演算時間を短縮してい
る。なお、上の実施例ではFの加算器をキヤリ入
力端子が存在しないとしたが、Fはキヤリ入力端
子を持つていてもよく、ただそのときにはキヤリ
入力は“0”でなければならない。またこの
MOD(2n−1)の加算器の入力である加算数X
か、被加算数Yのどちらか一方の各ビツトをすべ
て反転することにより、MOD(2n−1)の減算回
路を構成することができる。 As described above, according to this embodiment, by eliminating the carry propagation between the two adders used,
The calculation time for addition of MOD(2 n -1) is shortened. In the above embodiment, the adder of F does not have a carry input terminal, but F may have a carry input terminal, but in that case, the carry input must be "0". Also this
Addition number X, which is the input of the adder of MOD (2 n −1)
By inverting all the bits of either the augend Y or the augend Y, a MOD(2 n -1) subtraction circuit can be constructed.
発明の効果
以上の説明から明らかなように、本発明は使用
する2つのnビツトのバイナリ加算器同志のキヤ
リ伝搬をなくしたことにより、演算速度が従来の
ものよりも2倍近く向上するという優れた効果が
得られる。さらに加算数か被加算数のどちらか一
方の各ビツトをすべて反転して、本発明の加算回
路に入力することにより、MOD(2n−1)の減算
回路が容易に構成できる。Effects of the Invention As is clear from the above explanation, the present invention has the advantage of improving the calculation speed by nearly twice as much as the conventional one by eliminating the carry propagation between the two n-bit binary adders used. You can get the same effect. Further, by inverting all the bits of either the addend number or the addend number and inputting the inverted bits to the adder circuit of the present invention, a MOD(2 n -1) subtracter circuit can be easily constructed.
第1図は従来のMOD(2n−1)の加算回路のブ
ロツク図、第2図は本発明の一実施例における
MOD(2n−1)の加算回路のブロツク図である。
1,2,10,20……nビツトバイナリ加算
器、3……セレクタ。
Figure 1 is a block diagram of a conventional MOD (2 n -1) adder circuit, and Figure 2 is an example of an embodiment of the present invention.
FIG. 2 is a block diagram of an adder circuit of MOD(2 n -1). 1, 2, 10, 20... n-bit binary adder, 3... selector.
Claims (1)
キヤリ入力とするn(n:2以上の整数)ビツト
のバイナリの第1の加算器と、“1”をキヤリ入
力とするnビツトのバイナリの第2の加算器と、
セレクタとによつて構成され、前記セレクタは前
記第2の加算器のキヤリ出力が“0”のときには
前記第1の加算器の加算結果を選択し、前記第2
の加算器のキヤリ出力が“1”のときには前記第
2の加算器の加算結果を選択するように結線する
とともに、第1の加算器の2つの入力端子を2つ
の入力端子とし、前記セレクタの出力端子を出力
端子とすることを特徴とするMOD(2n−1)の加
算回路。1 An n (n: an integer of 2 or more) bit binary first adder that does not have a carry input terminal or has a carry input of “0” and an n-bit binary first adder that has a carry input of “1”. a second adder;
a selector, the selector selects the addition result of the first adder when the carry output of the second adder is "0", and selects the addition result of the first adder;
When the carry output of the adder is "1", the addition result of the second adder is connected, and the two input terminals of the first adder are used as two input terminals, and the selector is connected so that the addition result of the second adder is selected. A MOD (2 n −1) adder circuit characterized in that an output terminal is used as an output terminal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59097977A JPS60241333A (en) | 1984-05-16 | 1984-05-16 | MOD (2↑n-1) addition circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59097977A JPS60241333A (en) | 1984-05-16 | 1984-05-16 | MOD (2↑n-1) addition circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60241333A JPS60241333A (en) | 1985-11-30 |
| JPH0137050B2 true JPH0137050B2 (en) | 1989-08-03 |
Family
ID=14206717
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59097977A Granted JPS60241333A (en) | 1984-05-16 | 1984-05-16 | MOD (2↑n-1) addition circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS60241333A (en) |
-
1984
- 1984-05-16 JP JP59097977A patent/JPS60241333A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60241333A (en) | 1985-11-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4953115A (en) | Absolute value calculating circuit having a single adder | |
| KR900006666B1 (en) | Apparatus for multiplication in galois field | |
| JPH0479013B2 (en) | ||
| JP3487903B2 (en) | Arithmetic device and arithmetic method | |
| JPS645334B2 (en) | ||
| JPH0462617B2 (en) | ||
| JPH0137050B2 (en) | ||
| JPH0137049B2 (en) | ||
| CA1314995C (en) | Method and apparatus for decoding reed-solomon code | |
| JPH0345020A (en) | Cyclic code processing circuit | |
| JPH11317676A (en) | Reciprocal incarnation circuit for optional element of finite field | |
| JP2914813B2 (en) | Error correction decoding device | |
| JPS62122333A (en) | Syndrome circuit | |
| JP2546014B2 (en) | Digital signal processor | |
| JPS61189026A (en) | Adding circuit | |
| JPS6229821B2 (en) | ||
| SU1660054A1 (en) | Storage with module error correction | |
| JPH0133055B2 (en) | ||
| JPH0540607A (en) | Digital signal processing circuit | |
| JPH0664529B2 (en) | Rounding adder | |
| JPS58119046A (en) | Adder and subtracter | |
| JPH0241051B2 (en) | SAIKINCHIHANTEIKAIRO | |
| JPH01276227A (en) | Digital rounding circuit | |
| JPH06131158A (en) | Adding method and addition circuit | |
| JPS61258521A (en) | digital filter |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |