JP2581534B2 - Arithmetic circuit - Google Patents

Arithmetic circuit

Info

Publication number
JP2581534B2
JP2581534B2 JP59177845A JP17784584A JP2581534B2 JP 2581534 B2 JP2581534 B2 JP 2581534B2 JP 59177845 A JP59177845 A JP 59177845A JP 17784584 A JP17784584 A JP 17784584A JP 2581534 B2 JP2581534 B2 JP 2581534B2
Authority
JP
Japan
Prior art keywords
full adder
bits
mod
arithmetic circuit
add1
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 - Lifetime
Application number
JP59177845A
Other languages
Japanese (ja)
Other versions
JPS6154722A (en
Inventor
悟 伊藤
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP59177845A priority Critical patent/JP2581534B2/en
Publication of JPS6154722A publication Critical patent/JPS6154722A/en
Application granted granted Critical
Publication of JP2581534B2 publication Critical patent/JP2581534B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 技術分野 本発明は誤り訂正符号等に用いられるガロア体GF
(2n)に係り、特にその乗除算に用いられるmod(2n
1)の演算回路に関する。
Description: TECHNICAL FIELD The present invention relates to a Galois field GF used for an error correction code or the like.
(2 n ), and in particular, mod (2 n
It relates to the arithmetic circuit of 1).

従来技術 一般に、符号化または復号化・訂正装置にあっては誤
り訂正符号としてガロア体GF(2n)が用いられており、
そのガロア体GF(2n)における乗除算をガロア体GF
(2n)の元を原始根αのべき形に変換したmod(2n
1)の加減算により求めるようにしている。
2. Description of the Related Art Generally, in an encoding or decoding / correction device, a Galois field GF (2 n ) is used as an error correction code.
The multiplication and division in the Galois field GF (2 n )
Mod (2 n −) which is obtained by converting the element of (2 n ) to the power form of primitive root α
It is determined by addition and subtraction in 1).

従来、例えばn=2のときのmod3の加算を行なわせる
には第3図ち示すように構成されたmod(2n−1)の演
算回路が用いられている。すなわち、それはA(A2,
A1)、B(B2,B1)からなる2ビット分の第1の全加算
器ADD1と同じく2ビット分の第2の全加算器ADD2とから
なり、第1の全加算器ADD1の桁上げ出力C2を第2の全加
算器ADD2の桁上げ入力C0′に与え、また第1の全加算器
ADD1におけるA,Bの加算出力Σ1を第2の全加算器A
DD2の一方のビット入力A1′,A2′となるようにするとと
もに、第2の全加算器ADD2における他方入力の最下位ビ
ットB1′にはアンド回路を通して第1の全加算器ADD1の
加算出力Σ1が全て“1"のときに“1"が与えられ、
また他のビットB2′には“0"が入力されるようにし、そ
の第2の全加算器ADD2における加算出力Σ′,Σ
をmod(2n−1)の演算結果とするようにしている。な
お、そのときの加算表を表1に示している。
Conventionally, for example, in order to perform addition of mod3 when n = 2, an arithmetic circuit of mod (2 n -1) configured as shown in FIG. 3 is used. That is, it is A (A 2 ,
A 1 ) and B (B 2 , B 1 ), each consisting of a first full adder ADD1 for two bits and a second full adder ADD2 for two bits. It gives the carry output C 2 to the second carry input C 0 of the full adder ADD2 ', also the first full adder
The addition outputs Σ 1 , Σ 2 of A, B in ADD1
One of the bit inputs A 1 ′, A 2 ′ of DD2 is provided, and the least significant bit B 1 ′ of the other input of the second full adder ADD2 is connected to the first full adder ADD1 through an AND circuit. When the addition outputs Σ 1 and Σ 2 are all “1”, “1” is given,
The other bits B 2 'The so "0" is input, the addition output sigma 1 at the second full adder ADD2', sigma 2 '
Is the calculation result of mod (2 n -1). Table 1 shows the addition table at that time.

この例からもわかるように、従来のmod(2n−1)の
演算回路では第1の全加算器ADD1の出力ビットが全て
“1"であるか否かを判定する手段を必要とし、特にnの
値が大きい場合には回路規模を増大させてしまう。
As can be seen from this example, the conventional mod (2 n -1) arithmetic circuit requires a means for determining whether or not all the output bits of the first full adder ADD1 are "1". When the value of n is large, the circuit scale increases.

目的 本発明は以上の点を考慮してなされたもので、第1の
全加算器の出力ビットが全て“1"であるか否かを判定す
る手段を設けることなく全体の回路構成を簡単にしたガ
ロア体GF(2n)におけるmod(2n−1)の演算回路を提
供するものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above points, and can simplify the entire circuit configuration without providing means for determining whether or not all output bits of the first full adder are "1". And an arithmetic circuit for mod (2 n −1) in the Galois field GF (2 n ).

構成 本発明ではその目的を達成するため、nビットの第1
の全加算器における最下位ビットの桁上げ入力に常に
“1"を与え、その第1の全加算器における最下位ビット
の桁上げ出力端と同じくnビットの第2の全加算器にお
ける最下位ビットの桁上げ入力端とを接続し、その第2
の全加算器において前記第1の全加算器の加算出力とn
ビット全てが“1"である数値とを加算させた結果をmod
(2n−1)の演算結果とするようにしたものである。
Configuration In the present invention, in order to achieve the object, an n-bit first
Is always given "1" to the carry input of the least significant bit of the full adder, and the least significant bit of the n-bit second full adder is the same as the carry output of the least significant bit of the first full adder To the carry input of the bit
Of the first full adder and n
Mod is the result of adding the value with all bits being "1"
The calculation result is (2 n -1).

以下、添付図面を参照して本発明の一実施例について
詳述する。
Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings.

いま説明を簡単にするために、ガロア体GF(2n)にお
けるn=2のときのmod3の加算を行なわせる場合につい
て詳述する。
For the sake of simplicity, a case will be described in which the addition of mod3 when n = 2 in the Galois field GF (2 n ) is performed.

第1図はそのときのmod(2n−1)の演算回路の構成
を示すもので、A(A2,A1)、B(B2,B1)からなる2ビ
ット分の第1の全加算器ADD1と同じく2ビット分の第2
の全加算器ADD2とからなり、第1の全加算器ADD1におけ
る最下位ビットの桁上げ入力C0に常に“1"を与えるとと
もに、その第1の全加算器ADD1における最上位ビットの
桁上げ出力C2を同じくnビットの第2の全加算器ADD2に
おける最下位ビットの桁上げ入力C0′に与え、その第2
の全加算器ADD2において第1の全加算器ADD1の加算出力
Σ1と全ビット“1"の数値(この場合にはB′=
1、B′=1でB=3)とを加算させた結果Σ′,Σ
′をmod3の演算結果とするようにしている。
FIG. 1 shows the configuration of the arithmetic circuit of mod (2 n -1) at that time, and the first 2 bits consisting of A (A 2 , A 1 ) and B (B 2 , B 1 ). Second for 2 bits as in full adder ADD1
Full adder consists ADD2 Prefecture, first with always give "1" to the carry input C 0 of the least significant bit in the full adders ADD1, the carry of the most significant bit in its first full adder ADD1 of It is given to a carry input C 0 'of the least significant bit in the second full adder ADD2 of same n-bit output C 2, the second
Full adder sum output sigma 1 of the first full adder ADD1 in ADD2, sigma 2 and figures all bits "1" (this is the case B '=
1, B ′ = 1 and B = 3) and { 1 ′, Σ
2 ′ is set as the result of the operation of mod3.

このように構成されたものにあって、各全加算器ADD
1、ADD2における加算内容を下記表2ないし表5にかか
げられた各真理値表に基いて説明する。
In such a configuration, each full adder ADD
1. The contents of addition in ADD2 will be described based on each truth table shown in Tables 2 to 5 below.

すなわち、第1の全加算器ADD1における加算は表2お
よび表3に示された真理値表にしたがって行なわれる。
That is, the addition in the first full adder ADD1 is performed according to the truth tables shown in Tables 2 and 3.

その際表2より、 Σ=A1B11 …(1) C1=A1+B1 …(2) また、表3より Σ=A2B2C1 …(3) C2=A2・B2+A2・C1+B2・C1 …(4) となる。 At this time, from Table 2, 1 1 = A 1 B 11 1 (1) C 1 = A 1 + B 1 (2) From Table 3, Σ 2 = A 2 B 2 C 1 (3) C 2 = a 2 · B 2 + a 2 · C 1 + B 2 · C 1 ... (4) become.

ただし、は排他的論理和、+は論理和をそれぞれ表
わしている。以下同様である。
Here, indicates exclusive OR, and + indicates OR. The same applies hereinafter.

また第2の全加算器ADD2における加算は表4および表
5に示された真理値表にしたがって行なわれる。
The addition in the second full adder ADD2 is performed according to the truth tables shown in Tables 4 and 5.

その際表4より、 Σ′=Σ1C1 …(5) C1′=Σ・C1 …(6) また、表5より Σ′=Σ1C1′ …(7) となる。 Than its revaluation 4, also Σ 1 '= Σ 1 1C 1 ... (5) C 1' = Σ 1 · C 1 ... (6), 2 from Table 5 Σ '= Σ 2 1C 1 ' ... (7) Become.

このように上記(5),(6)式によりそれぞれ得ら
れるmod3の加算結果Σ′,Σ′は前記表1にかかげ
た加算表と一致する。
As described above, the addition results Σ 1 ′ and Σ 2 ′ of mod3 obtained by the above equations (5) and (6) match the addition tables shown in Table 1 above.

また第2図に本発明によるmod(2n−1)の演算回路
をnビットに拡張したときの回路構成例を示している。
FIG. 2 shows a circuit configuration example when the mod (2 n -1) arithmetic circuit according to the present invention is extended to n bits.

ここでは1ビットの加算器をnビット分カスケード接
続させた第1の全加算器ADD1と、同じく1ビットの加算
器をnビット分カスケード接続させた第2の全加算器AD
D2とからなり、第1の全加算器ADD1における最下位ビッ
トの桁上げ入力C0に常に“1"を与えるとともに、その第
1の全加算器ADD1における最上位ビットと桁上げ出力Cn
を第2の全加算器ADD2における最下位ビットの桁上げ入
力C0′に与え、その第2の全加算器ADD2において第1の
全加算器ADD1の加算出力Σ〜Σと全ビット“1"の数
値とを加算させた結果Σ′〜Σ′をmod(2n−1)
の演算結果とするようにしている。
Here, a first full adder ADD1 in which 1-bit adders are cascaded by n bits and a second full adder AD in which 1-bit adders are cascaded by n bits
Consists D2 Prefecture, first with give always "1" to the carry input C 0 of the least significant bit in the full adders ADD1, the first full adder MSB and the carry in ADD1 output C n
The given to the second carry input C 0 of the least significant bit in the full adders ADD2 ', the second addition outputs Σ 1n and all the bits of the first full adder ADD1 in the full adders ADD2 " The result 加 算1 ′ to n n ′ obtained by adding the numerical value of 1 ”to mod (2 n −1)
Is calculated.

効果 以上、本発明によるmod(2n−1)の演算回路にあっ
ては、従来のように第1の全加算回路の出力ビットが全
て“1"であるか否かを判定する手段を設ける必要がなく
なり、そのため全体の回路構成が簡素化され、特にビッ
ト数が多くなる場合に有効なものとなるという優れた利
点を有している。
Effect As described above, the arithmetic circuit of mod (2 n -1) according to the present invention is provided with means for determining whether or not all the output bits of the first full adder circuit are "1" as in the related art. This eliminates the necessity, thereby simplifying the entire circuit configuration, and has an excellent advantage that it is effective particularly when the number of bits is large.

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

第1図は本発明によるmod(2n−1)の演算回路の一実
施例を示すブロック構成図、第2図は同じく本発明の他
の実施例を示すブロック構成図、第3図は従来のmod(2
n−1)の演算回路を示すブロック構成図である。 ADD1……第1の全加算器、ADD2……第2の全加算器
FIG. 1 is a block diagram showing an embodiment of a mod (2 n -1) arithmetic circuit according to the present invention, FIG. 2 is a block diagram showing another embodiment of the present invention, and FIG. Mod (2
FIG. 3 is a block diagram showing an arithmetic circuit of ( n- 1). ADD1... First full adder, ADD2... Second full adder

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】nビットの第1の全加算器および同じくn
ビットの第2の全加算器からなり、第1の全加算器にお
ける最下位ビットの桁上げ入力に常に“1"を与え、その
第1の全加算器における最下位ビットの桁上げ出力端と
第2の全加算器における最下位ビットの桁上げ入力端と
を接続し、その第2の全加算器において第1の全加算器
の加算出力とnビット全てが“1"である数値とを加算さ
せるようにしたmod(2n−1)の演算回路。
1. An n-bit first full adder and also n
A second full adder of bits, always giving "1" to a carry input of the least significant bit in the first full adder, and a carry output terminal of the least significant bit in the first full adder. The second full adder is connected to the carry input terminal of the least significant bit, and in the second full adder, the addition output of the first full adder and a numerical value in which all n bits are “1” are obtained. An arithmetic circuit of mod (2 n -1) to be added.
JP59177845A 1984-08-27 1984-08-27 Arithmetic circuit Expired - Lifetime JP2581534B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59177845A JP2581534B2 (en) 1984-08-27 1984-08-27 Arithmetic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59177845A JP2581534B2 (en) 1984-08-27 1984-08-27 Arithmetic circuit

Publications (2)

Publication Number Publication Date
JPS6154722A JPS6154722A (en) 1986-03-19
JP2581534B2 true JP2581534B2 (en) 1997-02-12

Family

ID=16038110

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59177845A Expired - Lifetime JP2581534B2 (en) 1984-08-27 1984-08-27 Arithmetic circuit

Country Status (1)

Country Link
JP (1) JP2581534B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55149106A (en) * 1979-05-02 1980-11-20 Mitsubishi Electric Corp Oxygen recycling type ozone generating system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5572250A (en) * 1978-11-22 1980-05-30 Nec Corp Decimal arithmetic circuit
JPS593644A (en) * 1982-06-30 1984-01-10 Nec Home Electronics Ltd Mod(2n-1) arithmetic circuit for galois field gf(2n)
JPS59186052A (en) * 1983-04-07 1984-10-22 Mitsubishi Electric Corp Method for coding and decoding error correcting code
JPS6229821U (en) * 1985-08-05 1987-02-23

Also Published As

Publication number Publication date
JPS6154722A (en) 1986-03-19

Similar Documents

Publication Publication Date Title
JP2744091B2 (en) Data processing method and apparatus for calculating multiplicative reciprocal element of finite field
JPH10135848A (en) Reed-solomon coder and its method
JPS645334B2 (en)
JPH0728782A (en) Operating circuit and operating method
JP3255386B2 (en) Error correction code decoder
JP2581534B2 (en) Arithmetic circuit
JP3343857B2 (en) Decoding device, arithmetic device, and methods thereof
JP2000244332A (en) Data error correction device
JPH06314978A (en) Chain search circuit
JPS5975732A (en) Decoder
JPS63107319A (en) Polynomial division circuit on expanded galois field
JPH0778748B2 (en) Galois field arithmetic unit
JPH06230991A (en) Method and apparatus for computation of inverse number of arbitrary element in finite field
JPS6217256B2 (en)
JPS6024650A (en) Operating circuit on galois field
JPS6355815B2 (en)
JP3105909B2 (en) Arithmetic unit on finite field
JP3280470B2 (en) Error correction circuit
JP2550597B2 (en) Squarer
JPH06314979A (en) Galois field multiplier circuit
JPS63104526A (en) Arithmetic circuit for finite body
JPH03190326A (en) Polynomial generating circuit for error correction calculation
JPH09185518A (en) System and device for generating power of source element alpha
KR920007506B1 (en) Multiplier and devider for error correcting
JPS6144416B2 (en)

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term