[go: up one dir, main page]

JPH0332229A - Arithmetic and logic unit - Google Patents

Arithmetic and logic unit

Info

Publication number
JPH0332229A
JPH0332229A JP1159803A JP15980389A JPH0332229A JP H0332229 A JPH0332229 A JP H0332229A JP 1159803 A JP1159803 A JP 1159803A JP 15980389 A JP15980389 A JP 15980389A JP H0332229 A JPH0332229 A JP H0332229A
Authority
JP
Japan
Prior art keywords
modulo
remainder
input
adder
value
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
JP1159803A
Other languages
Japanese (ja)
Inventor
Alexander Bergers Jan
ジヤン・アレクサンダー・バーガース
Bryan Marshall Christopher
クリストファー・ブライアン・マーシャル
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.)
Koninklijke Philips NV
Original Assignee
Philips Gloeilampenfabrieken NV
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 Philips Gloeilampenfabrieken NV filed Critical Philips Gloeilampenfabrieken NV
Priority to JP1159803A priority Critical patent/JPH0332229A/en
Publication of JPH0332229A publication Critical patent/JPH0332229A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To unnecessitate a complicated design by receiving a residue expression value by a first adder input terminal, receiving the output of a lookup table equivalent to an integer by a second adder input terminal, and collectively generating the residue expression value of each kind of sum of received modulo by the additive modulo of each integer. CONSTITUTION: This unit is provided with a subtracter 1, a lookup table 2, and an adder 3, and the subtracter 1 is provided with substracter sub-circuits 1A and 1B, and the adder 3 is provided with adder sub-circuits 3A and 3B. In the lookup table 2, a residue expression modulo n1(j1 ) is generated in a field 8A of an output terminal 8 in response to the supply of a modulo (p-1) expression value to input terminals 7A and 7B. In the adder sub-circuit 3A, the residue expression modulo n1 of the sum (r1 +j1 ) of first and second values is generated at an output terminal 13A is response to the supply of the residua expression value of the modulo n1. In the same way, in the adder sub-circuit 3B, a remainder expression modulo n2 of the sum (r2 +j2 ) of first and second values r2 and j2 is generated at an output terminal 13B. Thus, a need for complicated design can be eliminated.

Description

【発明の詳細な説明】 〔発明の分野〕 本発明は、g X = XとするX及びgk/ = Y
とするyの入力剰余表現モジュロ(p−1)が供給され
るのに応答して生成元旦をモジュロp演算で値(X+A
−Y)とすべく累乗させる必要のあるべき指数1の剰余
表現モジュロ(p−1)を生成するための演算装置に関
するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of the Invention] The present invention relates to X where g X = X and gk/ = Y
In response to the input remainder representation modulo (p-1) of y being supplied, the generated New Year's Day is calculated by modulo p operation to the value (X+A
The present invention relates to an arithmetic device for generating a remainder expression modulo (p-1) with an exponent of 1 that needs to be raised to a power of -Y).

〔発明の背景〕[Background of the invention]

斯種の装置については”The Theory of 
ErrorCorrection Code”  (ノ
ース−ホランドパブリッシング社工977年、パー11
  P、J、阿acWi l ] iams及びN、J
、A、 5loane著)の第91〜92頁に説明され
ている。
For information on this type of device, see “The Theory of
Error Correction Code” (North-Holland Publishing Co., Ltd. 977, Par 11
P, J, acWi l]iams and N, J
, A., 5loane), pages 91-92.

入力量の算術和の計算は入力量の算術積の計算よりも速
く、これには対数が用いられ、これにより乗法又は除法
演算を加法演算又は減法演算にそれぞれ変換する。しか
し、これには先ず入力量をそれらの対数に変換し、しか
も最後には出力をその逆対数に変換する必要がある。こ
のような欠点は後に詳述する所謂ゼソヒ(Zech)テ
ーブルの導入により成る程度までは軽減されたが、それ
でも相変らずかなり複雑な設計が必要である。
Computing the arithmetic sum of the input quantities is faster than computing the arithmetic product of the input quantities and uses logarithms to convert multiplication or division operations into addition or subtraction operations, respectively. However, this requires first converting the input quantities into their logarithms, and finally converting the outputs into their inverse logarithms. Although these drawbacks have been alleviated to an extent with the introduction of so-called Zech tables, which will be described in detail later, they still require a fairly complex design.

〔発明の開示〕[Disclosure of the invention]

本発明の目的は、生成元旦のベキそのものを剰余数系に
よってそれぞれ表わすことができると云う事実を利用し
て、特に、冒頭にて述べたような装置のためになるよう
にすることにある。
It is an object of the present invention to make use of the fact that the power of the generated New Year's Day itself can be expressed by a remainder number system, in particular, to make it useful for the device as mentioned at the beginning.

本発明は、gX=XとするX及びg、V = Yとする
yの入力剰余表現モジュロ(p−4)が供給されるのに
応答して生成元旦をモジュロp演算で値(X+A−Y)
とすべく累乗させる必要のあるヘキ指数iの剰余表現モ
ジュロ(p−Hを生成するための演算装置において、i
、X及びyの各剰余表現値を、互いに素数で、しかも積
が(p−1)に等しくなるそれぞれ整数の一様集合の各
複数個のn剰余成分モジュロで構成し、前記各整数に対
して前記装置が、該整数に対する入力剰余表現値を受信
する別個の入力減算器と、全ての減算器の出力が供給さ
れるルックアップテーブルであって、χとyの各組の表
現値に対する減算結果の受信時に、前記各整数の複数個
のn剰余成分の各モジュロをそれぞれルックアップテー
ブルの出力端子に生成すると共に、これらの各モジュロ
が相俟って、kの集合値の内の任意数の剰余表現モジュ
ロ(pl)がルックアップテーブルの入力端子に供給さ
れるのに応答しでgをg″+Aとすべく累乗させる必要
のあるべき指数jの剰余表現モジュロ(p−1)を構成
するためのルックアップテーブルと、第1加算器入力端
子が入力剰余表現値の内の1つの表現値の前記整数に対
する剰余表現値を受信し、且つ第2加算器入力端子が前
記整数と回し整数に相当するルックアップテーブルの出
力を受信して、これらの各整数の加法モジュロによって
受信モジュロ(p−1,)の各便の和の剰余表現値を集
合的に生成するための別個の加算器とを有し、且つAに
対する許容値を→−1.−1とすることを特徴とする。
In the present invention, in response to the input remainder representation modulo (p-4) of X where gX = )
In the arithmetic unit for generating the remainder expression modulo (pH) of the hex index i that needs to be raised to a power to
, X and y are each composed of a plurality of n remainder components modulo of a uniform set of integers that are mutually prime numbers and whose product is equal to (p-1), and for each integer, a separate input subtractor receiving an input remainder representation value for the integer; and a look-up table to which the outputs of all the subtractors are supplied; Upon receipt of the result, each modulo of the plurality of n remainder components of each of the integers is generated at the output terminal of the lookup table, and each of these modulos together generates an arbitrary number among the set values of k. In response to the remainder representation modulo (pl) of is supplied to the input terminal of the lookup table, construct the remainder representation modulo (p-1) of the exponent j that needs to be raised to the power of g to be g''+A. and a first adder input terminal receives a remainder representation value for said integer of one of the input remainder representation values, and a second adder input terminal receives said integer representation value and said integer representation value; a separate adder for receiving the output of the look-up table corresponding to and collectively producing a remainder representation value of the sum of each flight of the received modulo (p-1,) by the additive modulo of each of these integers; and the tolerance value for A is →-1.-1.

〔従来例の説明] 以下、先ず従来の所定の構成要素を評価する。[Explanation of conventional example] Hereinafter, first, predetermined conventional components will be evaluated.

先ず基本演算は剰余数系(RNS)にて行なうことがで
きる。乗法演算モジュロp (ここにpは素数又はその
ベキとする)がモジュロ(p−1,)加法に写像(マツ
プ)することば、T、E4.E、Trans。
First, basic operations can be performed using the remainder number system (RNS). A word in which the multiplicative operation modulo p (where p is a prime number or its power) maps to modulo (p-1,) addition, T, E4. E. Trans.

on Computers Vol、 C−25No、
11 (1976年11月)に発表されたS、S、Ya
u及びJ、Chungによる論文°0nthe Des
tgn of Modulo Arithmetic 
l1nits Ba5edon Cyclic Gro
upsl′及びlE、E、li、 Trans、 on
 Computers、 Vol、 C−29No、1
0 (1980年10月)に発表されたG、八、 Ju
llienによる論文” Implementatio
nof Multiplication、 Modul
o a Prime Number、 withapp
lications to Number Theor
etic Transformsから既知である。換言
するに、モジコ4ロp基底入力オベラント’(gを(p
−1)乗根の単位、即ちg(p−”  = Imod 
pとする生成光gの各ヘキ)の「対数」は、それら自体
モジュロ(p −1)である。従って、簡単な例として
、基底演算をRNSチャネルのモジュロ13で行なう場
合(これにはg−2を適用する)には、先ず基底入力オ
ペランドをつぎの表に従ってそれらの「対数」に変換す
ることができる。
on Computers Vol, C-25No.
11 (November 1976) S, S, Ya
Paper by U and J. Chung °0nthe Des
tgn of Modulo Arithmetic
l1nits Ba5edon Cyclic Gro
upsl' and lE, E, li, Trans, on
Computers, Vol. C-29No. 1
0 (October 1980) G, 8, Ju
Paper by llien” Implementation
no Multiplication, Modul
o a Prime Number, withapp
lications to Number Theor
etic Transforms. In other words, let mojiko4rop base input oberant'(g be (p
-1) Unit of root, i.e. g(p-” = Imod
The "logarithms" of each hex) of the generated light g, where p is itself modulo (p-1). Therefore, as a simple example, if you want to perform basis operations modulo 13 of the RNS channel (applying g-2), first convert the basis input operands to their "logarithms" according to the following table: I can do it.

’  mod13=n) この場合の乗法演算は、例えば2つのモジュロ13人カ
オペランド旧と02とで、Xモジュロ12の対応する値
を一緒に力■算し、この加算結果に対応する値を見つけ
ることによって行なうことができる。
'mod13=n) The multiplication operation in this case is, for example, using two modulo 13 couple operands old and 02, calculate the corresponding values of X modulo 12 together, and find the value corresponding to this addition result. This can be done by

例えば3に5を掛けるためには4と9モジユロ12を加
えてl nod 12とする。表からx=1はn=2に
相当し、これは要求されるような15 mod 13で
ある。多くの計算は乗法/除法及び加法/減法を混合し
て行なう。−旦対数変換を行ったら、逆対数をとって得
られる結果で進めない限り加算/減算を行なうのが困難
であり、その結果をもう一度対数変換する必要もある。
For example, to multiply 3 by 5, add 4 and 9 modulo 12 to get l nod 12. From the table, x=1 corresponds to n=2, which is 15 mod 13 as required. Many calculations involve a mixture of multiplication/division and addition/subtraction. - Once logarithmic transformation has been performed, it is difficult to perform addition/subtraction unless one proceeds with the result obtained by taking the inverse logarithm, and the result also needs to be logarithmically transformed again.

これでは最初に対数をとることによって得られる利点を
少なくとも部分的に無効にすることになる。このような
欠点をなくすために、少なくともガロア域で計算を行な
う際に、第1図にブロック図にて示した処理/装置を使
用することは例えば前記文献の第91〜92頁から既知
である。gk−X−1−Yとし、gを生成光とする場合
の出力量iの表現値は、入力量X及びy(ここにgX=
X及びgy=Y)の表現値から減算器1と、ルック−ア
ップテーブル2と、加算器3とによって生成される。こ
れは実際には入力及び出力量を対数形態に維持しながら
加法演算を行なうため、全計算の終了時に「逆対数」を
とるだけで済む。入力量X及びyの表現値をそれぞれ入
力端子10及び11を経て減算器1の入力端子4及び5
にそれぞれ供給する。この減算器1の出力端子6はルッ
クアップテーブル2の入力端子7に接続する。ルックア
ップテーブル2の出力端子8ば加算器3の一方の入ノノ
端子9に接続し、この加算器3の第2入力端子12は入
力O:!f子11に接続し、従ってこの第2入力端子に
は入力量yの表現値を供給する。加算器3の出力端子1
3は装置の出力端子14に接続する。減算器1はその出
力端子6に量(x−y)の表現値を生威する。ルックア
ップテーブル2は所謂ゼッヒ(Zech)テーブルであ
り、これは量に−(x−y)の表現値が入力端子7に供
給される際に出力端子8に量jの表現値を生威し、こ\
にg J −g l″+1である。加算器3は出力端子
13に量t=r+j (こ覧にgk = gゞ+1)の
表現値を生成する。なお、所望されるように、g”−g
y ′J = g yg j= g y (g x −
y +1) = g J、 g y =X+Yとなり、
しかもこの結果は1度の減法演算と、1度の加法演算と
、1度のルックアップ演算0 とによって得られた。例えば、モジ、:I−口13基底
演算に対するg=2の場合のゼッヒテーブルはつぎの通
りである。
This at least partially negates the advantage gained by taking the logarithm first. In order to eliminate such drawbacks, it is known, for example, from pages 91 to 92 of the above-mentioned document, to use the processing/device shown in the block diagram in FIG. 1, at least when performing calculations in the Galois domain. . The expression value of the output amount i when gk-X-1-Y and g is the generated light is the input amount X and y (where gX=
X and gy=Y) are generated by a subtracter 1, a look-up table 2, and an adder 3. Since this actually performs an addition operation while maintaining the input and output quantities in logarithmic form, it is sufficient to simply take the "anti-logarithm" at the end of the entire calculation. Expression values of input quantities X and y are input to input terminals 4 and 5 of subtractor 1 via input terminals 10 and 11, respectively.
supply each. An output terminal 6 of this subtracter 1 is connected to an input terminal 7 of a look-up table 2. The output terminal 8 of the lookup table 2 is connected to one input terminal 9 of the adder 3, and the second input terminal 12 of the adder 3 is connected to the input O:! It is connected to the f-son 11 and thus supplies this second input terminal with the representation value of the input quantity y. Output terminal 1 of adder 3
3 is connected to the output terminal 14 of the device. The subtractor 1 produces at its output terminal 6 the representation value of the quantity (x-y). The lookup table 2 is a so-called Zech table, which outputs the expression value of the quantity j to the output terminal 8 when the expression value of -(x-y) is supplied to the input terminal 7. ,child\
then g J −g l″+1.The adder 3 produces at the output terminal 13 the representation value of the quantity t=r+j (here gk=gゞ+1). Note that, as desired, g” -g
y′J = g yg j= g y (g x −
y + 1) = g J, g y = X + Y,
Moreover, this result was obtained by one subtraction operation, one addition operation, and one lookup operation. For example, the Zech table for g=2 for Moji, :I-mouth 13 basis operations is as follows.

1 記入項目rNij2」はg7の形態で表わすことができ
ないために別の方法で表わさなければならない数Oに相
当する特殊な状態を示す。
1 entry rNij2'' indicates a special state corresponding to the number O which cannot be expressed in the form g7 and must therefore be expressed in another way.

上述した例は、例えばRNS順列の所定のチャネルでの
基底演算が素数ρ(この場合にはp=1.3)又は素数
のベキを法(モジュロ)とする場合に、入力オペランド
が変換される生成元gのベキが、それ自身分解し得る(
この場合には3と4)数(この場合にはP−1=12)
を法とする例である。
In the above example, the input operand is transformed when the base operation in a predetermined channel of the RNS permutation is modulo a prime number ρ (p=1.3 in this case) or a power of a prime number. A power of the generator g can itself be decomposed (
In this case 3 and 4) number (P-1=12 in this case)
This is an example where the modulus is .

従って、これらのベキも前記2つの文献の最初の方の文
献に示されるように、必要とされる計算のためにそれら
のベキを取扱う期間中剰余数系によって表わすことがで
きる。従って、上記表の入力及び出力量nはつぎのよう
に表わすことができる。
Therefore, these powers can also be expressed by a system of remainder numbers during which we deal with those powers for the required calculations, as shown in the first of the two documents mentioned above. Therefore, the input and output quantities n in the above table can be expressed as follows.

2 n        n  mod  3       
n  mod  40        0      
   01        1          1
2        2         23    
    0         34        1
         05        2     
    16        0         2
7        1         38    
    2         09        0
          110        1   
       211       2       
  3n−12(使用したモジュラスの積)からは表現
が繰返し、12=0.0;13=L 1等となるが、独
特に表わすことのできるnの値の数はもっと大きい及び
/又はさらに多くのモジュラスを用いることによって随
意拡張されることができることは明らかである。算術演
算は個々の剰余成分について独3 立して行なうことができる。例えば、4+5−(1,0
)+ (2,1)= (1+2.0+1) −(Omo
d 3.1 mod 4)であり、これは要求サレルよ
うな9の表現値である。同様に、2X3= (2゜2)
X (0,3) −(2XO,2X3)=(Omod3
、2 mod 4)であり、これは要求されるような6
の表現値である。
2 n n mod 3
n mod 40 0
01 1 1
2 2 23
0 34 1
05 2
16 0 2
7 1 38
2 09 0
110 1
211 2
From 3n-12 (the product of the moduli used), the expression repeats, 12 = 0.0; 13 = L 1, etc., but the number of values of n that can be uniquely represented is larger and/or even larger. It is clear that it can be extended arbitrarily by using the modulus of . Arithmetic operations can be performed independently on each remainder component. For example, 4+5-(1,0
)+ (2,1)= (1+2.0+1) −(Omo
d 3.1 mod 4), which is the representation value of 9 as required. Similarly, 2X3= (2゜2)
X (0,3) −(2XO,2X3)=(Omod3
, 2 mod 4), which is 6 as required
is the expression value of

これらの計算には時間のかかる桁上げ伝播を伴わず、又
種々のモジュラスでの演算は互いに全く無関係である。
These calculations do not involve time-consuming carry propagation, and the operations on the various moduli are completely independent of each other.

〔他の考察〕[Other considerations]

第1図に示した一般的な種類の装置は、入力量が複数の
剰余形式のもので、しかも出力量を複数の剰余形式にす
る必要のある場合でも用いることができ、これは各入力
量を非複数剰余形式に変換する必要なく行なうことがで
きる。加法演算は一対のベキ表現入力オペランドについ
て行なうことができ、各オペランドは正又は負とするこ
とができ、この場合におけるそれぞれのベキそのものは
複数剰余形式のものであり、又この演算の実行に4 は複数剰余表現の恩恵を相変らずかなり受げる。
A device of the general type shown in Figure 1 can be used even when the input quantity is of more than one remainder form and the output quantity needs to be of more than one remainder form; can be done without needing to convert to non-plural remainder form. The addition operation can be performed on a pair of power-expressing input operands, each operand can be positive or negative, each power itself in this case is of plural remainder form, and the execution of this operation requires 4 still benefits considerably from plural remainder representation.

X又はYが0である場合には、工又はヱの対応する値は
−のである。減算器、力Il算器及びルックアップテー
ブルの各回路はx−0の場合に正確に応答すべく簡単に
構成配置することができるが、Y−0の場合には問題が
生ずる。これがため、Y=0が実際に有り得る場合には
、Y−0に相当するyの表現値が装置の第2入力端子に
供給される時を検出すると共に、さもなければこの状態
に応答して装置の出力端子に供給されることになるいず
れかの表現値を、この場合に装置の第1入力端子に供給
されるいずれかの表現値と置換する回路を装置に設ける
のが好適である。このようにする場合にはY−0,の場
合でも装置は正しい出力を発生する。
If X or Y is 0, the corresponding value of 鈥 or 鈱 is -. While the subtracter, force Il calculator, and look-up table circuits can be easily arranged to respond accurately for x-0, problems arise for Y-0. Therefore, if Y=0 is indeed possible, detect when a representation value of y corresponding to Y-0 is applied to the second input of the device, and otherwise respond to this condition. Preferably, the device is provided with a circuit for replacing any representation value that is to be applied to the output of the device with any representation value that is in this case applied to the first input of the device. In this case, the device will generate a correct output even in the case of Y-0.

加算器及び減算器のサブ回路の入力及び出力量に用いる
表現値は任意に選定することができる。
The representation values used for the input and output quantities of the adder and subtracter subcircuits can be chosen arbitrarily.

これらは例えば各々1−アウト−オブーmコート形式と
することができ、こ!にmは対応する前記各整数とする
These can, for example, each be in the form of a 1-out-of-m coat, and this! Let m be each corresponding integer.

〔実施例〕〔Example〕

以下実施例につき図面を参照して説明するに、第2図ば
g)l=X及びgY=Yとする場合に、X及びyの剰余
表現モジュロ(p−1,)が供給されるのに応答して生
成元gをモジ、〜口p演算で値(X +Y )とすべく
累乗させる必要のあるべき指数iの剰余表現モジュロ(
p−1,)を土載するための装置を第1図と同様にブロ
ック図にて示したものである。第2図のブロック図に実
線にて示す部分は第1図に示した装置と同様に減算器1
、ルックアップテーブル2及び加算器3を図示のような
接続で具えている。しかし、この場合の減算器1は2個
の減算器サブ回路IA及びIBをそれぞれ具えており、
又加算器3も2個の力11算器・す゛ブ回路3A及び3
Bをそれぞれ具えている。装置入力端子10は2つの成
分端子1〇八とIOBとを有しており、これらはその入
力が互いに重り合わない非重畳フィールド(non−o
verlapping field )を構成する。又
装置の入力端子11も2つの成分端子11Aと11B 
とを有し、これらも非重畳フィールドを構成する。成分
端子10A及びIIAは減算器サブ回路LAの各入力端
子4八及び5八に接続し、成分端子10B及び11Bは
減算器サブ回路IBの各入力端子4B及び5Bに接続す
る。ルックアップテーブル2の入力端子7は非重畳フィ
ールドを構成する2成分端子7A及び7Bを有し、これ
らの成分端子は減算器1の出力端子6A及び6Bにそれ
ぞれ接続する。出力端子6八及び6Bに現れる成分は減
算器出力端子6の各非重畳フィールドを構成する。ルッ
クアンプテーブル2の出力端子8も同様に非重畳フィー
ルドを構成する2戒分端子8Aと8Bとを有し、これら
の成分端子は加算器サブ回路3A及び3Bの第1入力端
子9A及び9Bにそれぞれ接続する。装置入力端子11
の成分端子11A及びIIBは加算器サブ回路3A及び
3Bの第2入力端子12A及び12Bにそれぞれ接続す
る。装置出力端子14もそれぞれ非重畳フィールドを構
成する2威分端子14A及び14Bを有し、これらの成
分端子は加算器ナブ回路3八及び3Bの出力端子13A
及び13Bにそれぞれ接続する。これらの出力端子13
A及び13Bの成分は加算器回路の出力13の各非重畳
7 フィールドを構成する。破線にて示す他の構成要素につ
き下記に説明する。
An example will be explained below with reference to the drawings. In response, the generator g is modulo, and the remainder expression modulo (
1, p-1,) is shown in a block diagram similar to FIG. 1. The part indicated by the solid line in the block diagram of FIG. 2 is the subtracter 1, similar to the device shown in FIG.
, a look-up table 2, and an adder 3 connected as shown. However, the subtracter 1 in this case comprises two subtracter subcircuits IA and IB, respectively;
Also, the adder 3 has two power 11 adder/sub circuits 3A and 3.
Each has B. The device input terminal 10 has two component terminals 108 and IOB, which have non-overlapping fields (non-overlapping fields) whose inputs do not overlap with each other.
verlapping field). The input terminal 11 of the device also has two component terminals 11A and 11B.
and these also constitute a non-overlapping field. Component terminals 10A and IIA are connected to respective input terminals 48 and 58 of subtracter subcircuit LA, and component terminals 10B and 11B are connected to respective input terminals 4B and 5B of subtractor subcircuit IB. The input terminal 7 of the look-up table 2 has two component terminals 7A and 7B constituting a non-overlapping field, which component terminals are connected to the output terminals 6A and 6B of the subtractor 1, respectively. The components appearing at output terminals 68 and 6B constitute respective non-overlapping fields of subtractor output terminal 6. The output terminal 8 of the look amplifier table 2 similarly has two component terminals 8A and 8B forming a non-overlapping field, and these component terminals are connected to the first input terminals 9A and 9B of the adder subcircuits 3A and 3B. Connect each. Device input terminal 11
component terminals 11A and IIB are connected to second input terminals 12A and 12B of adder subcircuits 3A and 3B, respectively. The device output terminal 14 also has two component terminals 14A and 14B, each forming a non-overlapping field, and these component terminals are connected to the output terminals 13A of the adder nub circuits 38 and 3B.
and 13B, respectively. These output terminals 13
The A and 13B components constitute each non-overlapping 7 field of the output 13 of the adder circuit. Other components indicated by broken lines will be explained below.

減算器ザブ回路1八は、その入力端子4A及び5Aに第
1量x、と第2量y、のモジュロn1の剰余表現値が供
給されるのに応答して第1量×1と第2量y1との差(
x+−y+)の特定整数nlの剰余表現モジュロを出力
端子6Aに土載すべく構成する。同様に、減算器サブ回
路1Bも、その入力端子4B及び5Bに第1量x2と第
2量y2のモジュロn2の剰余表現値が供給されるのに
応答して、第1量×2と第2’ttyzとの差(×2y
z)の特定整数n2の剰余表現モジュロを出力端子6B
に土載すべく構成する。nl及びn2は互いに素とし、
即ちこれらは1以外の共通因数を持たないものとする。
The subtracter subcircuit 18 responds to the input terminals 4A and 5A being supplied with the remainder representation values of the first quantity x and the second quantity y modulo n1. The difference from the quantity y1 (
The remainder representation modulo of a specific integer nl of x+-y+) is configured to be output to the output terminal 6A. Similarly, the subtracter subcircuit 1B responds to the fact that its input terminals 4B and 5B are supplied with the remainder representation value of the first quantity x2 and the second quantity y2 modulo n2. Difference from 2'ttyz (×2y
output terminal 6B for the remainder expression modulo of the specific integer n2 of z)
It will be configured to be placed on the ground. nl and n2 are relatively prime;
That is, they do not have a common factor other than 1.

これがため、減算器サブ回路IAとIBとから成る減算
器1ば量X及びyの表現値が装置入力端子10及び11
にそれぞれ供給されるのに応答し、これらの表現値の各
々は剰余形式のモジュロn1及びn2であり、即ちXは
XI mod nl、 X2 mod n2の形■ 置入力端子10及び11の各フィールド10A、 IO
B、 IIA及びIIBに供給され、減算器1の出力端
子6にx−yの表現値を生成する。x−yの表現値その
ものは剰余形式のモジュロn1及びn2であり、剰余モ
ジユロn1 (−x+−V+)ば出力端子6のフィール
ド6Aに生成され、又剰余モジュロn2 (−X2−’
7z)は出力端子6のフィールド6Bに生成される。こ
れらの剰余表現値を剰余成分に、及びに2としてルック
アップテーブル2の入力端子7の各フィールド7A及び
7Bにそれぞれ供給する。
This makes it possible for the subtracter 1, consisting of subtractor subcircuits IA and IB, to represent the values
Each of these representation values is of the form modulo n1 and n2, i.e. X is of the form XI mod nl, X2 mod n2. , IO
B, IIA and IIB to produce an xy representation value at the output terminal 6 of the subtractor 1. The expression value of x-y itself is the modulo n1 and n2 of the remainder form, and the remainder modulo n1 (-x+-V+) is generated in the field 6A of the output terminal 6, and the remainder modulo n2 (-X2-'
7z) is generated in field 6B of output terminal 6. These remainder expression values are supplied as remainder components and 2 to respective fields 7A and 7B of input terminal 7 of look-up table 2, respectively.

ルックアップテーブル2は、kの集合値の内の任意の数
に対するkのモジュロ(p−1)表現値が入力端子7A
、 7Bに供給されるのに応答して、生成元gをモジユ
ロn1算で値gkl−lとすべく累乗させる必要のある
べき指数jの表現モジュロ(p −1)を出力端子8に
生成し、こ\にn1Xn2−(p−1)とし、jの表現
値を剰余形式のモジュロn1及びn2とし、剰余表現モ
ジュロn1(j+)が出力端子8のフィールド8訂こ生
成され、しかも剰余表現モジュロn2(jz)が出力端
子8のフィールド8B■ 番こ生成されるべく構成する。
The lookup table 2 is such that the modulo (p-1) expression value of k for an arbitrary number among the set values of k is input to the input terminal 7A.
, 7B, generates at the output terminal 8 the expression modulo (p −1) of the exponent j that needs to be raised to the power of the generator g to the value gkl−l by modulo n1 arithmetic. , where n1Xn2-(p-1), the representation value of j is the modulo n1 and n2 of the remainder form, the remainder representation modulo n1(j+) is generated by the field 8 of the output terminal 8, and the remainder representation modulo The configuration is such that n2(jz) is generated in the field 8B of the output terminal 8.

加算器サブ回路3Aは、その各入力端子1.2Aと9八
に第1量r1及び第2量j1のモジュロn1の剰余表現
値が供給されるのに応答して、これらの第1及び第2量
の和(r++j+)の剰余表現モジュロn1を出力端子
13Aに生成すべく構成する。同様に、加算器サブ回路
3Bも、その各入力端子12Bと9Bに第1量r2と第
2量j2のモジュロn2の剰余表現値が供給されるのに
応答して、これらの第1及び第2量r2及びy2の和(
rz+jz)の剰余表現モジュロn2を出力端子13B
に生成すべく構成する。これがため、加算器サブ回路3
八と3Bとから戒る加算器3はその入力端子9及び12
に量y(−r)及びjの表現値が供給されるのに応答し
、これらの各表現値は剰余形n2形式となり、こ覧にV
z y21 j+及びy2の表現値は入力フィールド1
2A、 12B、 9A及び9Bにそれぞれ供給されて
、出力端子13にy+jの表現(l!iを生成する。こ
の表現値iそのものが剰余形式のモジ0 ュロn1及びn2であり、剰余モジュロn1(=y++
j−r + )の表現値がフィールド13Aに生成され
て、装置出力端子のフィールド14八に供給され、又剰
余モジュロn2の表現値がフィールl” 13 Bに生
成されて、装置出力端子のフィールド14Bに供給され
る。
The adder subcircuit 3A, in response to being supplied at its respective input terminals 1.2A and 98 with the remainder representation values modulo n1 of the first quantity r1 and the second quantity j1, It is configured to generate a remainder expression modulo n1 of the sum of two quantities (r++j+) at the output terminal 13A. Similarly, the adder subcircuit 3B, in response to being supplied to its respective input terminals 12B and 9B with the remainder representation values modulo n2 of the first quantity r2 and the second quantity j2, The sum of two quantities r2 and y2 (
output terminal 13B for the remainder expression modulo n2 of rz+jz)
Configure to generate. Therefore, adder subcircuit 3
8 and 3B, the adder 3 has its input terminals 9 and 12.
is supplied with the representation values of the quantities y(-r) and j, each of these representation values is of the form n2, as seen in V
z y21 j+ and y2 expression values are input field 1
2A, 12B, 9A and 9B, respectively, to generate a representation (l!i) of y+j at the output terminal 13. This representation value i itself is in the remainder form modulo n1 and n2, and the remainder modulo n1 (=y++
j−r + ) is produced in field 13A and supplied to field 148 of the device output terminal, and a representation value of the remainder modulo n2 is produced in field l” 13B and supplied to field 148 of the device output terminal. 14B.

これがため、第2図に示す本発明による装置の出力端子
は人カフイールドIOA及びIOBへのXの表現(l!
χ1及びに2の供給及び入カフイールドIIA及ヒlI
Bへのyの表現値yl及びy2の供給に応答し、こ−に
gX−X及びgy=yとし、出力フィールド14A及び
14Bにそれぞれiの表現値11及び12を生成する。
For this reason, the output terminals of the device according to the invention shown in FIG. 2 are the representations of X (l!
Supply and input fields IIA and HII of χ1 and 2
In response to the supply of the representation values yl and y2 of y to B, it sets gX-X and gy=y, producing representation values 11 and 12 of i in output fields 14A and 14B, respectively.

剰余表現値の各々は、例えばコンパクト2進コード、又
は「1アウトオブm」コードの形式とすることができ、
こ\にmは該当する表現値に用いた絶対値(モジュラス
)とする。従って、後者の場合には、第2図の入力10
A及びIOBは入力11^及びIIB及び出力14A及
び14Bと同様にそれぞれn1ビツト及びn2ビシ1〜
広くすることができ、この1 場合に該当する表現値がとり得る多値は関連ピントの各
々に対して2進数の「1」 (又は「0」)の値によっ
て示される。簡単な例として、n、及びn2の値をそれ
ぞれ3及び4とする場合には、0〜11の数nを例えば
つぎのように表わすことができる。
Each of the remainder representation values may be in the form of a compact binary code, or a "1 out of m" code, for example;
Here, m is the absolute value (modulus) used for the corresponding expression value. Therefore, in the latter case, input 10 in FIG.
A and IOB are inputs 11^ and IIB and outputs 14A and 14B, respectively, n1 bit and n2 bit 1~
The multiple values that the expression value corresponding to this one case can take are indicated by a binary value of "1" (or "0") for each associated focus. As a simple example, when the values of n and n2 are 3 and 4, respectively, the number n from 0 to 11 can be expressed as follows.

n  nod  3         n  mocl
ool           0001010    
      0010 100         0100 001          1000 010          0001 100          0010 001          0100 010          1000 100          0001 001          0010 010         0100 100          1000 2 上記コード化法を第2図のルックアップテーブル2への
入力量(x−y)及びこのルックアップテーブルからの
出力量jに対して用いる場合には、このルックアップテ
ーブルをその入力コードと出力コードとの間にてつぎの
ような関係を発生すべくプログラムする必要がある。
n nod 3 n mocl
ool 0001010
0010 100 0100 001 1000 010 0001 100 0010 001 0100 010 1000 100 0001 001 0010 010 0100 100 1000 2 The above encoding method can be expressed as the input amount (x-y) to lookup table 2 in FIG. from up table When used for the output quantity j, it is necessary to program this lookup table to generate the following relationship between its input code and output code.

大左二二上     班匁λ二上 N1j2      001  0001001  0
001    010  0010010  0010
    010  0001100  0100   
 001  0010001  1000    10
0  0001010  0001    100  
0100100  001’0    100  10
00001  0100       N1j2010
  1000    001  0100100  0
001    010  0100001  0010
    100  0010010  0100   
 01.0  1000100  1000    0
01  10003 記入項目rNiff」は特別の独特なコート、例えば1
.110000によって表わすことができる。このよう
な関係は、例えば読取専用メモリを適当にプログラム化
するか、又は適当な組合せ論理回路によって得ることが
できる。
Daisa 22 Upper Ban Momme λ 2 Upper N1j2 001 0001001 0
001 010 0010010 0010
010 0001100 0100
001 0010001 1000 10
0 0001010 0001 100
0100100 001'0 100 10
00001 0100 N1j2010
1000 001 0100100 0
001 010 0100001 0010
100 0010010 0100
01.0 1000100 1000 0
01 10003 Entry "rNiff" is a special unique coat, e.g.
.. It can be represented by 110000. Such a relationship can be obtained, for example, by suitably programming a read-only memory or by means of suitable combinatorial logic.

第3図は第2図のモジュロ3加算器サブ回路3Aに対し
、上述したコード化法及び「NiI!、」に対して特定
のコードを用いる場合の回路構成を示したものである。
FIG. 3 shows a circuit configuration for the modulo-3 adder subcircuit 3A of FIG. 2 when the above-described encoding method and a specific code for "NiI!" are used.

この第3図に示す構成の回路はプログラム化したロジッ
クアレイ (1) L A )で実行させるのが好適で
あり、これは図示のように相互接続され、しかも入力端
子12A及び9八と、出力端子13Aに接続される12
個のNANDゲート15〜26と、6個のインパーク2
7〜32とを具えている。入力1yに対するコードの連
続ビンl’y+o+ y+。、y12を入力端子12A
の各ラインに供給し、又入力量jlに対するコードの連
続ビットjlo+L++L2を入力端子9Aの各ライン
に供給する。出力量りに対するコードの連続ビソトII
O+ jll、L2 は出力端子13への各ラインに現
われる。第3図の構成に対する真4 理値表が必要とされることは明らかである。
This circuit of the configuration shown in FIG. 3 is preferably implemented in a programmed logic array (1) LA) which is interconnected as shown and has input terminals 12A and 98 and an output 12 connected to terminal 13A
NAND gates 15 to 26 and 6 imparks 2
7 to 32. Consecutive bins of codes l'y+o+y+ for input 1y. , y12 to input terminal 12A
and successive bits jlo+L++L2 of the code for the input quantity jl are supplied to each line of the input terminal 9A. Continuous Bisotto II of code for output weighing
O+ jll, L2 appears on each line to output terminal 13. It is clear that a true 4 logic table for the configuration of FIG. 3 is required.

第3図の回路構成は第2図のモジュロ3減算器サブ回路
14として用いるのにも好適であり、この場合には第3
図で入力端子及び出力端子に用いた参照符号12^+ 
9A+ 13A+ V+o+ Vll+ VI2+ J
IO+ J目+JI2111゜+ Ill及び11□を
4^+ 5A+ 6A+ X+o+ X++XI21 
  y+o+   3’+z+   yl ++(x+
J+)o+   (x+=y −)+   及び(X+
−V+)zと置き換える必要があり、こ覧にx+。
The circuit configuration of FIG. 3 is also suitable for use as the modulo-3 subtracter subcircuit 14 of FIG.
Reference symbol 12^+ used for input terminal and output terminal in the figure
9A+ 13A+ V+o+ Vll+ VI2+ J
IO + Jth + JI2111゜+ Ill and 11□ 4^+ 5A+ 6A+ X+o+ X++XI21
y+o+ 3'+z+ yl ++(x+
J+)o+ (x+=y −)+ and (X+
-V+) It is necessary to replace it with z, as shown here x+.

X11及びX1□は入力量X、に対するコードの連続ビ
ットであり、又 (x+−y+)。+ (X+−V+)
z (X+−y+Lは出力量(X+−y+)に対するコ
ードの連続ビットである。これらの置換には、負の成る
数が(p−1)からその数を差引いた数に等しくなると
云うことを使用する。
X11 and X1□ are consecutive bits of the code for the input quantity X, and (x+-y+). + (X+-V+)
z (X+-y+L are the consecutive bits of the code for the output quantity (X+-y+). These permutations require that a negative number is equal to (p-1) minus that number. use.

第4図は特定のコード化法を用いる場合の第2図のモジ
ュロ4加算器サブ回路3Bに対する回路構成の一例を示
したものである。この構成の回路もプログラム化したロ
ジックアレイで実行させるのが好適であり、これは図示
のように接続され、しかも入力端子12B及び9Bと、
出力端子13Bに接続5 される17個のNANDゲート33〜49と、8個のイ
ンハーク50〜57とを具えている。入力It y z
に対するコードの連続ビットyz。、y21+ Y2□
及びy23を図示のように入力端子12Bの各ラインに
供給し、又入力量j2に対するコードの連続ビットJt
o−J21. jzz及びiz3を図示のように入力端
子9Bの各ラインに供給する。出力量12に対するコー
ドの連続ピッI〜12゜+ +21+ 122及びiz
3は図示のように出力端子13Bの各ラインに現われる
FIG. 4 shows an example of a circuit configuration for the modulo-4 adder subcircuit 3B of FIG. 2 when a particular encoding method is used. A circuit of this configuration is also preferably implemented in a programmed logic array, which is connected as shown and has input terminals 12B and 9B.
It includes 17 NAND gates 33-49 connected to the output terminal 13B and 8 in-hook gates 50-57. Input It y z
Consecutive bits of code for yz. ,y21+ Y2□
and y23 are supplied to each line of the input terminal 12B as shown, and the consecutive bits Jt of the code for the input quantity j2 are supplied to each line of the input terminal 12B as shown.
o-J21. jzz and iz3 are supplied to each line of the input terminal 9B as shown. Continuous pitch of code I~12°+ +21+ 122 and iz for output amount 12
3 appears on each line of the output terminal 13B as shown.

第4図の回路構成は第2園のモジュロ4減算回路IBと
して用いるのにも好適であり、この場合には第4図で入
力端子及び出力端子に用いた参照符号12B+ 9B+
 13B+ Vzo+ yz+、 V2z+ y231
 jzo、 jzj 221 jz++ iz。+ 1
21+ 122及び123を48.5B、 68X20
1 X211 χZZ+ X23+ V20+ y23
.V22+ V2++(X2yz)。、(Xz−Vz)
++ (にz−Vzh及び(Xz−Vz) 3とそれぞ
れ置き換える必要があり、こ\にX20+χ21. X
22及びL23は量×2に対するコードの連続ビットで
あり、又(Xi−yz)。+ (Xi−!/2) + 
+ (Xi−V2) 2及び(Xi−VzLは量(Xz
−yz)に対するコードの連続ビソ6 トである。
The circuit configuration shown in FIG. 4 is also suitable for use as the modulo 4 subtraction circuit IB of the second garden, and in this case, the reference numeral 12B+ 9B+ used for the input terminal and output terminal in FIG.
13B+ Vzo+ yz+, V2z+ y231
jzo, jzz 221 jz++ iz. +1
21+ 122 and 123 48.5B, 68X20
1 X211 χZZ+ X23+ V20+ y23
.. V22+ V2++ (X2yz). , (Xz-Vz)
++ It is necessary to replace each with (z-Vzh and (Xz-Vz) 3, and here \X20+χ21.X
22 and L23 are consecutive bits of the code for quantity x 2, and (Xi-yz). + (Xi-!/2) +
+ (Xi-V2) 2 and (Xi-VzL are the quantities (Xz
-yz) is a continuous bit of code.

第2図に実線にて示した回路は、入力端子11八。The circuit shown in solid lines in FIG. 2 is the input terminal 118.

11Bに供給されるコードV1. y2によって表わさ
れる量がrNij2」(これ自身はY=、Oのへキ表現
値である)である場合には正しい結果を持たらさない。
The code V1.11B supplied to V1.11B. If the quantity represented by y2 is ``rNij2'' (which itself is the hex expression value of Y=,O), it will not give a correct result.

加算器3から得られる出力はXのベキ表現値である量、
即ち、これらの状況下ではXI、 X2とすべきである
が、実際上ルックアップテーブル2の出力は0となり、
加算器3からの出力はIFi I Jとなる。このよう
な1FipJの値がy++ y2に対して有り得る場合
には、回路がこのような場合でも正しい出力を与えるよ
うにするために、第2図に破線にて示した他の回路部品
も設けるのが良く、これらの回路部品はデコーダ58及
びマルチプレクサ61であり、デコーダ58の入力端子
59及び60は装置入力端子11の各成分端子11A及
びJIBに接続し、マルチプレクサ61の制御入力端子
62はデコーダ58の出力端子63に接続する。マルチ
プレクサ6エの第1信号入力端子64の各成分端子64
八及び64Bは装置入力端子10の各成分入力端子]、
OA及びIOBに接続し、又マルチプレクサ61の第2
信号入力端子65の成分入力端子65A及び65Bは加
算器回路3の各出力端子13A及び13Bにそれぞれ接
続する。マルチプレクサ61の出力端子14′の成分出
力端子14八′及び14B′は装置の新規の各成分出力
端子を構成する。
The output obtained from the adder 3 is a quantity that is a power expression value of X,
That is, under these circumstances, it should be XI and X2, but in reality the output of lookup table 2 is 0,
The output from adder 3 becomes IFi IJ. If such a value of 1FipJ is possible for y++ y2, other circuit components shown in dashed lines in Figure 2 should also be provided to ensure that the circuit gives the correct output even in such a case. These circuit components are a decoder 58 and a multiplexer 61, the input terminals 59 and 60 of the decoder 58 are connected to the respective component terminals 11A and JIB of the device input terminal 11, and the control input terminal 62 of the multiplexer 61 is connected to the decoder 58. Connect to the output terminal 63 of. Each component terminal 64 of the first signal input terminal 64 of the multiplexer 6e
8 and 64B are each component input terminal of the device input terminal 10],
connected to OA and IOB, and also the second
Component input terminals 65A and 65B of the signal input terminal 65 are connected to respective output terminals 13A and 13B of the adder circuit 3, respectively. Component output terminals 148' and 14B' of output terminal 14' of multiplexer 61 constitute new respective component output terminals of the device.

デコーダ58は装置入力端子11A、 IIBにおける
rNij2」に対するコードを検出し、このコードが発
生ずる際に出力端子63に信号を発生ずべく構成する。
Decoder 58 detects the code for "rNij2" at device input terminals 11A and IIB and is configured not to generate a signal at output terminal 63 when this code occurs.

マルチプレクリ・61ば、デコーダ58からの出力信号
が制御入力端子62に供給されるのに応答して、その第
1入力端子64の成分端子64A及び6411をその出
力端子14の各成分出力端子14八′及び14「に接続
し、デコーダ58からの出力信号がない場合には、マル
チプレクサ61の第2入力端子65の成分端子65A及
び65Bを出力端子14の成分出力端子14/l ’及
び14B′にそれぞれ接続するように構成する。
In response to the output signal from the decoder 58 being supplied to the control input terminal 62, the multiplexer 61 switches the component terminals 64A and 6411 of the first input terminal 64 to each component output terminal 14 of the output terminal 14. When there is no output signal from the decoder 58, the component terminals 65A and 65B of the second input terminal 65 of the multiplexer 61 are connected to the component output terminals 14/l' and 14B' of the output terminal 14. Configure it to connect to each.

これがため、入力端子111]、Bに供給されるコード
が1FizJである場合以外では、第2図に示す装置は
これが出力端子14^、 14Bに発生するのと同じ出
力コードを出力端子14^’ 、 14B’に発生ずる
ことになる。この最後に述べた場合には、コードXl+
 x2が出力端子141)’ 、 14B’に要求通り
に現われる。
Therefore, unless the code supplied to input terminal 111], B is 1FizJ, the device shown in FIG. , 14B'. In this last case, the code Xl+
x2 appears as requested at the output terminals 141)', 14B'.

第2図のルックアップテーブル回路2は、その出力端子
8A、 8Bにベキ指数jの剰余表現モジ31口(p−
1)を生成すべく構成することもでき、これにはkの集
合値の内の任意数の表現モジュロ(p−1)が入力端子
711.7Bに供給されるのに応答してgの値を累乗さ
せてモジ二ロp演算で植gk1となるようにする必要が
ある。このような場合には、g゛−gy゛−gygl−
(gX−V−1)−gX −gy=X−Y、即ち出力端
子14A、 14Bに生成される複数剰余表現値はベキ
指数1の剰余表現値となり、これにはgを累乗して値(
x+、y)の代りにモジュロpfi算で値(X−Y)と
する必要がある。例えば、第2図につき説明した図示の
例で・上述したように旧及びn2の値をそれぞれ3及び
4とし、しかもルックアップテーブル2の入力及び出力
量の各々も罰述したように1−アウト−第9 ブ3コードと共に1−アウト−オフ4コートとして表わ
す場合には、ルックアップテーブル2の入力コードと出
力コードとの間につぎのような関係が得られるようにル
ックアップテーブルをプログラム化することもできる。
The look-up table circuit 2 in FIG. 2 has 31 outputs (p-
1) may be configured to generate the value of g in response to the representation modulo (p-1) of any number of set values of k being provided to input terminal 711.7B. It is necessary to raise it to a power and use the modinilo p operation to obtain the expression gk1. In such a case, g゛-gy゛-gygl-
(gX - V - 1) - g
Instead of x+, y), it is necessary to calculate the value (X-Y) using modulo pfi calculation. For example, in the illustrated example described with reference to FIG. - When representing the 9th B3 code as 1-out-off 4 coats, program the lookup table so that the following relationship is obtained between the input code and output code of lookup table 2. You can also.

込ヱ6七二旦     徂カコー1 Njjl!       001  0100001 
 0001        Ni!!。
Include 672 Dan So Kako 1 Njjl! 001 0100001
0001 Ni! ! .

010  0010    001  0001100
  0100    010  0001001  1
000    100  1000010  0001
   、、  010  0010100  0010
    001 .0010001  0100   
 010  1000010  1000、    0
10  0100too   0001    001
  1000001  0010    100  0
100010  0100    1.00  000
1100  1000   .100  0010モジ
ュロp−13演算と、n−2剰余成分モジュ0 ロ3及び4形式の量x、y (−r)、(x−y)(−
k)、j及びiとを実施例の通りに選択した。
010 0010 001 0001100
0100 010 0001001 1
000 100 1000010 0001
,, 010 0010100 0010
001. 0010001 0100
010 1000010 1000, 0
10 0100too 0001 001
1000001 0010 100 0
100010 0100 1.00 000
1100 1000. 100 0010 modulo p-13 operation and n-2 remainder component modulo 0 lo 3 and 4 quantities x, y (-r), (x-y) (-
k), j and i were selected as in the example.

実際には相当大きなpの値が用いられる。従って、他の
例として、モジュOp =181演算を用いることがで
き、量χ、y、  (x−y)、j及びiの各表現値を
それぞれn=3剰余成分モジュロ4.5及び9の形式と
することができる。このような場合には減算器回路1を
モジュロ4、モジュロ5及びモジュロ9を演算する3個
の減算器サブ回路で構成する必要があり、又これらの各
サブ回路には入力端子10及び11の各対応する非重畳
フィールドからそれぞれ入力量を供給し、加算器間11
83も回様にモジュロ4、モジュロ5及びモジュロ9を
演算する3個の加算器サブ回路で構成する必要があり、
又これらの各サブ回路にはルックアップテーブル2の入
力端子11及び出力端子8の各対応する非重畳フィール
ドから入力を供給する。
In practice, fairly large values of p are used. Thus, as another example, the operation modulo Op =181 can be used, where each representation value of the quantities χ, y, (x-y), j, and i is divided into n=3 remainder components modulo 4.5 and 9, respectively. It can be a format. In such a case, it is necessary to configure the subtracter circuit 1 with three subtracter subcircuits that calculate modulo 4, modulo 5, and modulo 9, and each of these subcircuits has input terminals 10 and 11. Between the adders 11
83 also needs to be configured with three adder subcircuits that calculate modulo 4, modulo 5, and modulo 9.
Each of these sub-circuits is also supplied with an input from each corresponding non-overlapping field of the input terminal 11 and output terminal 8 of the look-up table 2.

上述した例では、ルックアップテーブル2からの出力を
ライン6A、 6Bでの複合アドレス指定の下でライン
9A、 9Bに生成されるようにしたが、ルッ1 クアップテーブルは組合せロジックとして構成すること
ができる。加算器又は減算器サブ回路IA1B、3^及
び3Bを例えば第3及び4図につき説明したように組合
せ論理回路によって構成することもできるので、これら
の各々を適当にプログラム化した読取専用メモリにまり
形成することができることは明らかである。
In the example described above, the output from lookup table 2 was generated on lines 9A, 9B under composite addressing on lines 6A, 6B, but lookup table 2 could also be configured as combinatorial logic. can. The adder or subtracter subcircuits IA1B, 3^ and 3B can also be implemented by combinatorial logic circuits, for example as described with respect to FIGS. 3 and 4, so that each of them can be stored in an appropriately programmed read-only memory It is clear that it can be formed.

上述したように、装置の各部分に対する量としては同じ
コード化法を用いるけれども、必ずしもそのようにする
必要はないこと明らかである。例えば、量XI+ X2
+ V++ y2+ j+及び12には1−アウト−オ
ブNコード化法を用いることができるのに対し、減算器
回路IA及びIBと、ルックアンプテーブル2は、それ
らの出力端子に慣例のコンパクト2進コード形式で出力
を発生すべく構成することができ、ルックアップテーブ
ル2及び加算器サブ回路3A及び3Bは使用するコンパ
クト2進コードに所望な方法で応答するようにそれにな
らって変更させる。
Although, as mentioned above, the same encoding scheme is used for the quantities for each part of the device, it is clear that this need not be the case. For example, the amount XI + X2
+ V++ y2+ j+ and 12 can use a 1-out-of-N coding method, whereas the subtracter circuits IA and IB and the look amplifier table 2 have conventional compact binary coding at their output terminals. The output can be configured to produce an output in the form of a code, with the lookup table 2 and adder subcircuits 3A and 3B being modified accordingly to respond in a desired manner to the compact binary code used.

演算処理は3つの別個の段、即ち減算、ルック2 アップ及び加算段にて行なうため、所謂「パイプライン
方式」を用いて連続入力オペランドに対する処理を至る
所で容易に最適に行なうことができる。
Since the arithmetic processing is carried out in three separate stages, namely the subtraction, look 2 up and addition stages, the so-called "pipelining" can easily be used to optimize the processing of successive input operands everywhere.

所要に応し、本発明による装置には本願人の出願に係る
特願昭      号に記載しであるようなゼッヒテー
ブル2の寸法を縮小する技法を用いることができる。
If desired, techniques for reducing the dimensions of the Zech table 2, such as those described in the applicant's co-pending Japanese Patent Application No. 1, may be used in the device according to the invention.

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

第1図は従来の演算装置の一例を示すブロック図; 第2図は本発明による演算装置の第1例を示すブロック
図; 第3園は第2図の装置におけるモジュロ3加算器サブ回
路の構成の一例を示すブロック図;第4園は第2園の装
置におけるモジュロ4減算器サブ回路の構成の一例を示
すブロック図である。 l・・・減算器      IA、 IB・・・減算器
サブ回路2・・・ルックアップテーブル 3・・・加算器      3A、 3B・・・加算器
サブ回路3 15〜26・・・NANDゲート 33〜49・・・NANDゲート 58・・・デコーダ 27〜32・・・インバータ 50〜57・・・インハ゛−タ ロ1・・・マルチプレクサ
FIG. 1 is a block diagram showing an example of a conventional arithmetic device; FIG. 2 is a block diagram showing a first example of the arithmetic device according to the present invention; FIG. Block diagram showing an example of the configuration; The fourth garden is a block diagram showing an example of the configuration of the modulo 4 subtracter subcircuit in the device of the second garden. l...Subtractor IA, IB...Subtractor subcircuit 2...Lookup table 3...Adder 3A, 3B...Adder subcircuit 3 15-26...NAND gate 33- 49...NAND gate 58...Decoder 27-32...Inverter 50-57...Inverter 1...Multiplexer

Claims (1)

【特許請求の範囲】 1、g^x=Xとする¥x¥及びg^y=Yとする¥y
¥の入力剰余表現モジュロ(p−1)が供給されるのに
応答して生成元¥g¥をモジュロp演算で値(X+A・
Y)とすべく累乗させる必要のあるべき指数iの剰余表
現モジュロ(p−1)を生成するための演算装置におい
て、i、x及びyの各剰余表現値を、互いに素数で、し
かも積が(p−1)に等しくなるそれぞれ整数の一様集
合の各複数個のn剰余成分モジュロで構成し、前記各整
数に対して前記装置が、該整数に対する入力剰余表現値
を受信する別個の入力減算器と、全ての減算器の出力が
供給されるルックアップテーブルであって、xとyの各
組の表現値に対する減算結果の受信時に、前記各整数の
複数個のn剰余成分の各モジュロをそれぞれルックアッ
プテーブルの出力端子に生成すると共に、これらの各モ
ジュロが相俟って、kの集合値の内の任意数の剰余表現
モジュロ(p−1)がルックアップテーブルの入力端子
に供給されるのに応答してgをg^k+Aとすべく累乗
させる必要のあるべき指数jの剰余表現モジュロ(p−
1)を構成するためのルックアップテーブルと、第1加
算器入力端子が入力剰余表現値の内の1つの表現値の前
記整数に対する剰余表現値を受信し、且つ第2加算器入
力端子が前記整数と同じ整数に相当するルックアップテ
ーブルの出力を受信して、これらの各整数の加法モジュ
ロによって受信モジュロ(p−1)の各値の和の剰余表
現値を集合的に生成するための別個の加算器とを有し、
且つAに対する許容値を+1、−1とすることを特徴と
する演算装置。 2、Y=0に相当するyの表現値が演算装置の第2入力
端子に供給される時点を検出すると共に、さもなければ
この状態に応答して演算装置の出力端子に供給されるこ
とになるいずれかの表現値を、この場合に演算装置の第
1入力端子に供給されるいずれかの表現値と置き換える
回路を設けたことを特徴とする請求項1に記載の演算装
置。
[Claims] 1. ¥x¥ where g^x=X and ¥y where g^y=Y
In response to the input remainder representation modulo (p-1) of ¥ being supplied, the generator ¥g¥ is converted to a value (X+A・
In an arithmetic unit for generating a remainder expression modulo (p-1) of a power index i that needs to be raised to a power of Y), each residue expression value of i, x, and y is (p-1), each comprising a plurality of n-residue components modulo of a uniform set of integers, each of which is equal to (p-1), and for each said integer said device receives an input remainder representation value for said integer; a subtractor and a look-up table to which the outputs of all the subtractors are provided, the modulo of each of the plurality of n remainder components of each said integer upon receipt of the subtraction result for each set of representation values of x and y; are generated at the output terminal of the lookup table, and together, the remainder representation modulo (p-1) of an arbitrary number of the set values of k is supplied to the input terminal of the lookup table. The remainder expression modulo (p−
1) a lookup table for constructing the integer, a first adder input terminal receiving a remainder representation value for the integer of one of the input remainder representation values, and a second adder input terminal receiving the remainder representation value for the integer; separate integers for receiving the outputs of lookup tables corresponding to the same integers and collectively generating a remainder representation value of the sum of each value of the received modulo (p-1) by the additive modulo of each of these integers. has an adder of
An arithmetic device characterized in that the allowable values for A are +1 and -1. 2. Detecting when a representation value of y corresponding to Y=0 is provided to the second input terminal of the arithmetic device, and otherwise being provided to the output terminal of the arithmetic device in response to this condition. 2. The arithmetic device according to claim 1, further comprising a circuit for replacing any one of the expression values with any one of the expression values supplied to the first input terminal of the arithmetic device in this case.
JP1159803A 1989-06-23 1989-06-23 Arithmetic and logic unit Pending JPH0332229A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1159803A JPH0332229A (en) 1989-06-23 1989-06-23 Arithmetic and logic unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1159803A JPH0332229A (en) 1989-06-23 1989-06-23 Arithmetic and logic unit

Publications (1)

Publication Number Publication Date
JPH0332229A true JPH0332229A (en) 1991-02-12

Family

ID=15701600

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1159803A Pending JPH0332229A (en) 1989-06-23 1989-06-23 Arithmetic and logic unit

Country Status (1)

Country Link
JP (1) JPH0332229A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5595371A (en) * 1993-04-09 1997-01-21 Nippon Steel Corporation Vibration isolating supporter

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5595371A (en) * 1993-04-09 1997-01-21 Nippon Steel Corporation Vibration isolating supporter

Similar Documents

Publication Publication Date Title
WO2023055479A1 (en) Systems and methods for accelerating the computation of the exponential function
Kumar et al. New algorithm for signed integer comparison in $\{2^{n+ k}, 2^{n}-1, 2^{n}+ 1, 2^{n\pm 1}-1\} $ and its efficient hardware implementation
CN110888623A (en) Data conversion method, multiplier, adder, terminal device and storage medium
JP3276444B2 (en) Division circuit
Samavi et al. Modular array structure for non-restoring square root circuit
US3842250A (en) Circuit for implementing rounding in add/subtract logic networks
CN112214200B (en) Quantum subtraction operation method, device, electronic device and storage medium
JPH0332229A (en) Arithmetic and logic unit
JPH05291891A (en) Primary random pulse train generating circuit device
Haghparast et al. Designing novel quaternary quantum reversible subtractor circuits
US7840628B2 (en) Combining circuitry
Pieper et al. Efficient Dedicated Multiplication Blocks for 2's Complement Radix-2m Array Multipliers.
CN116149605A (en) Modulus Multiplication Circuit and Method for Calculating Modulus Multiplication
CN113504892A (en) Method, system, equipment and medium for designing multiplier lookup table
Thornton A signed binary addition circuit based on an alternative class of addition tables
US6903663B2 (en) Method for converting the binary representation of a number in a signed binary representation
Stouraitis et al. Hybrid signed digit logarithmic number system processor
Zamanlooy et al. Mixed-signal VLSI neural network based on continuous valued number system
US10572223B2 (en) Parallel decimal multiplication hardware with a 3x generator
KR102412872B1 (en) Processing element, method of operation thereof, and accelerator including the same
US20210303979A1 (en) Neural network device, neural network system, and operation method executed by neural network device
Soni et al. FPGA Implementation of Ternary Multiplier Using Reconfigurable Logic
Xu et al. High-efficiency realization of SRT division on ternary optical computers
CN119046282A (en) Data processing method, task processing method, corresponding device, equipment and gate circuit
Moses et al. Novel approximate Booth multipliers (ABm-eRx) based on efficient encoding and reduction for error-tolerant applications