JPS6154722A - Arithmetic circuit - Google Patents

Arithmetic circuit

Info

Publication number
JPS6154722A
JPS6154722A JP59177845A JP17784584A JPS6154722A JP S6154722 A JPS6154722 A JP S6154722A JP 59177845 A JP59177845 A JP 59177845A JP 17784584 A JP17784584 A JP 17784584A JP S6154722 A JPS6154722 A JP S6154722A
Authority
JP
Japan
Prior art keywords
full
adder
full adder
bits
bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP59177845A
Other languages
Japanese (ja)
Other versions
JP2581534B2 (en
Inventor
Satoru Ito
悟 伊藤
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

Landscapes

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

Abstract

PURPOSE:To simplify the whole circuit constitution by composing the arithmetic circuit of the 1st and the 2nd (n)-bit full-adders, supplying 1 to the carry input of the least significant digit bit in the 1st full-adder all the time, and adding the addition output of the 1st full-adder to a numeral whose (n) bits are all 1 by the 2nd full-adder. CONSTITUTION:When addition of mod3 is performed when n=1 in a Galois field GF(2<n>), an mod(2<n>-1) arithmetic circuit consists of the 1st and the 2nd full-adders ADD2 for two bits of A(A2, A1) and B(B2, B1). Then 1 is supplied to the carry input C0 of the least significant digit bit of the 1st full-adder ADD1 all the time and the carry output C2 of the most significant digit bit of the 1st full- adder ADD1 is supplied to the carry input C0' of the least significant digit bit of the 2nd (n)-bit full-adder as well; and the 2nd full-adder ADD2 adds the numeral consisting of bits which are all 1 to addition outputs SIGMA1 and SIGMA2 of the 1st full-adder ADD1 to obtain SIGMA1' and SIGMA2' as arithmetic results of mod3.

Description

【発明の詳細な説明】 致亙公立 本発明は誤り訂正符号等に用いられるガロア体GF(2
’)に係り、特にその乗除算に用いられるmod(2’
−1)演算回路に関する。
[Detailed description of the invention] The present invention is a Galois field GF (2
'), especially mod (2') used for multiplication and division.
-1) Regarding arithmetic circuits.

、風速玉、椎 一般に、符号化または復号化・訂正装置にあっては誤り
訂正符号としてガロア体GF (2)が用いられており
、そのガロア体GF(2’)における乗除算をガロア体
GF (2”)の元を原始根αのべきの形に変換したm
ad(2−1)の加減算により求めるようにしている。
Generally, Galois field GF (2) is used as an error correction code in encoding or decoding/correction devices, and multiplication and division in Galois field GF (2') are performed using Galois field GF. m that converts the element of (2”) into the power form of the primitive root α
It is determined by addition and subtraction of ad(2-1).

従来1例えばn = 2のときのm o d 3の加算
を行なわせるには第3図に示すように44成されたmo
d(2%−1)演算回路が用いられている。すなわち、
それはA (A2 + AH)、B (Bz+ Bl)
からなる2ビット分の第1の全加算器A D D lと
同じく2ビット分の第2の全加算器ΔDD2とからなり
、第1の全加算器ADD 1の桁上げ出力C2を第2の
全加算器ADD 2の指上げ入力に。′に−Ijえ、ま
た第1の全角g器Al)DIにおけるA、13Q) j
olt n fB 力Σ0. Xz ヲm 2 (7)
 全角’j:I R’aΔD D 2の一方のビット人
力A、’ 、 AX’ となるよ・うにするとともに、
第2の全加算器ADD2における地方入力の最下位ビッ
ト81′ にはア、ンド回路を通して第Iの全力a算器
ΔDDIの加算出力Σ2.Σλが全て11171のとき
にl′”が与えられ、また池のビットIJJ′には# 
OIIが人力されるようにし、その第2の全加算器AD
D2における加算出力Σ、′、Σ2゛をmad(2−1
)の演算結果とするようにしている。
Conventionally 1 For example, in order to perform addition of mod 3 when n = 2, 44 mods were created as shown in Figure 3.
A d(2%-1) arithmetic circuit is used. That is,
That is A (A2 + AH), B (Bz + Bl)
It consists of a first full adder ADD1 for 2 bits and a second full adder ΔDD2 for 2 bits. For finger up input of full adder ADD 2. ' to -Ij and also the first full-width g device Al) A in DI, 13Q) j
olt n fB force Σ0. Xz wom 2 (7)
Full-width 'j: I R'aΔD D One bit of human power A, ', AX', and
The least significant bit 81' of the local input to the second full adder ADD2 is connected to the addition output Σ2. When Σλ is all 11171, l''' is given, and # is given to bit IJJ' of the pond.
Let OII be manually powered and its second full adder AD
The addition outputs Σ, ′, Σ2゛ in D2 are mad(2-1
) is used as the calculation result.

なお、そのときの加算表を表1に示している。Note that Table 1 shows the addition table at that time.

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

1煎 本発明は以上の点を考慮してなされたもので、第1の全
加算z:(の出力ビノ1−が全てII + IIである
か否かを判定する手段を設けることなく全体の回路構成
を簡単にしたガロア体GF(−=)におけるmad(2
7L−1)演算回路k Q (i”するものてAbる。
The present invention has been made in consideration of the above points, and it is possible to calculate the total sum without providing a means for determining whether the output binos 1- of the first total addition z:( are all II + II or not. mad(2
7L-1) Arithmetic circuit k Q (i") Ab.

韮 本発明ではその目的を達成するため、nピッ1−の第1
の全加算器における最下位ビットの桁1げ入力に常に′
“1”を与え、その第1の全加算器における最上位ビッ
トの桁上げ出力端と同じ< nビットの更2の全加算器
における最下位ピッ1−のH7上げ入力端とを接続し、
その第2の全加算器において前記第1の全加算器の加算
出力とnビット全て 。
In order to achieve the purpose of the present invention, the first
'
1, and connect the carry output terminal of the most significant bit in the first full adder to the H7 carry input terminal of the lowest bit 1- in the second full adder of the same < n bits,
The addition output of the first full adder and all n bits in the second full adder.

が11111である数値とを加算させた結果をm o 
d(2’−1)の演算結果とするようにしたものである
う 以下、添付図面を参照して本発明の−・実施例について
詳述する。
is 11111, and the result is m o
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

いま説明を簡単にするために、ガロア体GF(2“)に
おけるn=2のときのm o d :lの加算を行なわ
せる場合について詳述する。
To simplify the explanation, we will now discuss in detail the case where addition of mod :l is performed when n=2 in the Galois field GF(2'').

第1図はそのときのmo d (24′−1)演算回路
のもが成を示すもので、 A (A4. A+)、 B
 (BJIB、 )からなる2ビット分の第1の全加算
器ADDIと同じく2ビット分の第2の全加算器ADD
2とからなり、第1の全加算器ADr)lにおける最下
位ピッ1−の指上げ入力C,に常に″゛ビ′与えるとと
もに、その第1の全加算器ΔDDIにお(づる最上位ビ
ットの桁上げ出力C2を同じくnピッ1−の第2の全加
算器ADD2における最下位ピッ1への桁上げ人力C0
′に与え、その第2の全角$7器ADD2において第1
の全加算器A l) D Iの加算出力Σ1.Σ2と全
ピッド′“1”の数値(この場合にはB’ =1.8’
 =1でn=3)とを加算させた結果Σ1′、Σlをm
ad3の演算結果とするようにしている。
Figure 1 shows the structure of the mod (24'-1) arithmetic circuit at that time, with A (A4. A+), B
The first full adder ADDI for 2 bits consists of (BJIB, ) and the second full adder ADD for 2 bits as well.
2, it always gives "bi' to the raised finger input C, of the lowest bit 1- in the first full adder ADr)l, and also gives the most significant bit (to the first full adder ΔDDI) The carry output C2 is manually carried to the lowest pitch 1 in the second full adder ADD2 of n pitch 1-.
', and in its second full-width $7 device ADD2, the first
The addition output Σ1 of the full adder A l) D I. Σ2 and the value of all pits'"1" (in this case B' = 1.8'
= 1 and n = 3), the result is Σ1', Σl is m
The calculation result of ad3 is used.

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

すなわち、第1の全加算器Ar)D Iにおける加算は
表2および表3に示された真理1直表にし!七がって行
なわれる。
In other words, the addition in the first full adder Ar) DI should be in the truth 1 direct table shown in Tables 2 and 3! It is carried out in seven days.

表2 表:3 その除去2より。Table 2 Table: 3 From its removal 2.

Σ、=A、OB、■l        ・・・  (1
、  C,=A、+B、           ・・・
  (2)また、表3より Σユ” A4■B2■C1・・・  (3)c、 = 
Aよ・B、 + A、・C,+ B、・C1・・・(4
)となる。
Σ, = A, OB, ■l ... (1
, C,=A,+B,...
(2) Also, from Table 3, Σyu” A4 ■ B2 ■ C1... (3) c, =
A, B, + A, C, + B, C1... (4
).

ただし、■は排他的論理和、+は論理和をそれぞれ表わ
している。以下同様である。
However, ■ represents an exclusive OR, and + represents a logical OR. The same applies below.

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

表4 表5 その除去4より、 Σ1′=Σ、■l■C6・・・ (5)C1′=Σ、・
C1・・・  ((8)また1表5より Σ□′ =Σ2■l■C8′        ・  (
7)となる。
Table 4 Table 5 From its removal 4, Σ1'=Σ, ■l■C6... (5) C1'=Σ,
C1... ((8) Also, from Table 5, Σ□' = Σ2■l■C8' ・ (
7).

このように上記(5)、(6)式によりそれぞれ得られ
るmad3の加算結果Σ、′、Σλ′は前記表1にかか
げた加算器と−Mする。
In this way, the mad3 addition results Σ, ', Σλ' obtained by the above equations (5) and (6), respectively, are calculated by −M with the adder shown in Table 1 above.

また第2図に本発明によるmo d  (2” −1)
演算回路をnビットに拡張したときの回路11r#成例
を示している。
In addition, FIG. 2 shows the mod (2”-1) according to the present invention.
An example of circuit 11r# is shown when the arithmetic circuit is expanded to n bits.

ここでは1ビツトの加算器を【1ビツト分カスケード接
続させた第1の全加算器Ar)r) Iと、同じく1ビ
ツトの加算器をnピット分カスケード12続させた第2
の全加算器ΔDD2とからなり、第1の全加算器ADD
 lにおける最下位ピッ1−の桁上げ人力C・に常に″
I 11を与えるとともに、その第1の全加算器ADD
Iにおける最上位ピッ1−の桁上げ出力(4を第2の全
加算器ADD2にお番プる最下位ピッ1−の桁上げ入力
C0′ に与え、その第2の全加算器ADD2において
第1の全加算器ADD1の加算出力Σ、〜Σ2と全ビッ
ト″1°′の数値とを加算させた結果Σ1′〜Σ−をm
od(2’−1)の演算結果とするようにしている。
Here, a 1-bit adder is connected to a first full adder (Ar) I in which 1 bit of adder is cascaded, and a second 1-bit adder is connected in cascade to n pits.
a first full adder ΔDD2, and a first full adder ADD
The carry power of the lowest pick 1 in l is always ``
I 11 and its first full adder ADD
The carry output (4) of the most significant bit 1- in I is applied to the carry input C0' of the least significant bit 1- which is input to the second full adder ADD2. The addition output Σ, ~Σ2 of the full adder ADD1 of 1 and the numerical value of all bits "1°" are added, and the result Σ1' ~ Σ- is m
The calculation result is od(2'-1).

跋果 以上1本発明によるmad(2’−1)演算回路にあっ
ては、従来のように第1の全加算回路の出力ビットが全
て111Hgであるか否かを判定する手段を設ける必要
がなくなり、そのため全体の回路層成が簡素化され、特
にビット数が多くなる場合に有効なものとなるという優
れた利点を有してい
In the mad(2'-1) arithmetic circuit according to the present invention, it is necessary to provide means for determining whether all the output bits of the first full adder circuit are 111Hg, as in the conventional case. This has the great advantage of simplifying the overall circuit layering, which is especially useful when the number of bits increases.

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

第1図は本発明によるmod(2’−1)演算回路の一
実施例を示すブロック構成図、第2図は同じく本発明の
他の実施例を示すブロック構成図。 第3図は従来のmod(2″−1)演Q″回路を示すブ
ロック構成図である。 ADD L・・・第1の全加算器 At)D2・・・第
2の全加算器
FIG. 1 is a block diagram showing one embodiment of a mod (2'-1) arithmetic circuit according to the present invention, and FIG. 2 is a block diagram showing another embodiment of the present invention. FIG. 3 is a block diagram showing a conventional mod (2''-1) function Q'' circuit. ADD L...First full adder At)D2...Second full adder

Claims (1)

【特許請求の範囲】[Claims] nビットの第1の全加算器および同じくnビットの第2
の全加算器からなり、第1の全加算器における最下位ビ
ットの桁上げ入力に常に“1”を与え、その第1の全加
算器における最上位ビットの桁上げ出力端と第2の全加
算器における最下位ビットの桁上げ入力端とを接続し、
その第2の全加算器において第1の全加算器の加算出力
とnビット全てが“1”である数値とを加算させるよう
にしたmod(2^n−1)演算回路。
A first full adder of n bits and a second full adder also of n bits.
1 is always given to the carry input of the least significant bit of the first full adder, and the carry output terminal of the most significant bit of the first full adder and the carry input of the second full adder are Connect the carry input terminal of the least significant bit in the adder,
A mod (2^n-1) arithmetic circuit that causes the second full adder to add the addition output of the first full adder and a numerical value in which all n bits are "1".
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 true JPS6154722A (en) 1986-03-19
JP2581534B2 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)

Cited By (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

Citations (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

Patent Citations (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

Cited By (2)

* 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
JPS632883B2 (en) * 1979-05-02 1988-01-21 Mitsubishi Electric Corp

Also Published As

Publication number Publication date
JP2581534B2 (en) 1997-02-12

Similar Documents

Publication Publication Date Title
JPH0713741A (en) Alpha resultant conputing element
US4346451A (en) Dual moduli exponent transform type high speed multiplication system
JP3345894B2 (en) Floating point multiplier
JPH0391832A (en) Addition circuit
JPH04205026A (en) Divider circuit
JPH0317132B2 (en)
US3842250A (en) Circuit for implementing rounding in add/subtract logic networks
US4727507A (en) Multiplication circuit using a multiplier and a carry propagating adder
JP3537378B2 (en) Adders and integrated circuits
JPS6154722A (en) Arithmetic circuit
JPH0374419B2 (en)
US4190894A (en) High speed parallel multiplication apparatus with single-step summand reduction
JPH0460251B2 (en)
Wei et al. Modulo 2 P-1 arithmetic hardware algorithm using signed-digit number representation
EP0242600A2 (en) Carry look-ahead calculating method and circuits therefor
JPS6222178A (en) Multiplier for multiplying two complex numbers
EP0353041A2 (en) Signal processing apparatus and method using modified signed digit arithmetic
JP3190826B2 (en) Product-sum operation unit
JPS5880768A (en) Dividing device for galois field
EP0442220A2 (en) Decoder
EP0561411A2 (en) Adding multiplier
JPS58201141A (en) Multiplier
JPH03271931A (en) Multi-input adding circuit
JPS6386925A (en) Galois body multiplying circuit
JPH0784762A (en) Multiplication circuit

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term