JPS63163674A - Compound arithmetic circuit - Google Patents

Compound arithmetic circuit

Info

Publication number
JPS63163674A
JPS63163674A JP30884086A JP30884086A JPS63163674A JP S63163674 A JPS63163674 A JP S63163674A JP 30884086 A JP30884086 A JP 30884086A JP 30884086 A JP30884086 A JP 30884086A JP S63163674 A JPS63163674 A JP S63163674A
Authority
JP
Japan
Prior art keywords
multiplication
arithmetic
accumulation
input
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.)
Pending
Application number
JP30884086A
Other languages
Japanese (ja)
Inventor
Toshihiro Minami
俊宏 南
Hiroki Yamauchi
寛紀 山内
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP30884086A priority Critical patent/JPS63163674A/en
Publication of JPS63163674A publication Critical patent/JPS63163674A/en
Pending legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

PURPOSE:To simplify the scale of a circuit by providing three selectors, selecting each selector, and omitting a multiplier. CONSTITUTION:ALU 30-37 which respectively associate with bits b0-b7 showing a coefficient alpha supplied from a memory (MEM) 1 through a bus bar 2 and form a computer element (ALU) array 3 are provided. The first and the second selectors (SEL) 40-47 and 50-57 are provided at first and second input joints of every ALU 30-37 and these selectors select the real numbers X1-X7 of and Y1-Y7 of them at an accumulation time and at an estimation time, they select the associated bits among accumulation values A from a bus bar 6 and the bits b0-b7 which show the coefficience alpha given from the bus bar 2 and input to each ALU 30-37. Thus the accumulation and the multiplication are executed in the same circuit, and the multiplier is not needed to provide.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、文字、図形等のパターンマツチング処理に主
として用いられる複合演算回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a complex arithmetic circuit mainly used for pattern matching processing of characters, figures, etc.

〔従来の技術〕[Conventional technology]

文字、図形等のパターンマツチング処理においては、ベ
クトルデータの各要素に対し所定の算術演算を施し、か
つ、この演算値を累算した後、この累算値へ係数を乗算
することが行なわれておシ、この演算は、各要素を示す
第1および第2の実数をXi、Yi、任意な算術演算を
@、同様の係数をαとすれば、次式によシ示される。
In pattern matching processing of characters, figures, etc., a predetermined arithmetic operation is performed on each element of vector data, the calculated value is accumulated, and then this accumulated value is multiplied by a coefficient. This operation is expressed by the following equation, where Xi and Yi are the first and second real numbers representing each element, @ is an arbitrary arithmetic operation, and α is a similar coefficient.

α・Σ(xl@yt)・・・・・・・・・ (1)また
、(1)式の演算を行なうには、ディジタル・シグナル
・プロセッサ(以下、DSP)によるのが一般的となっ
ておシ、例えば「日経エレクトロニクスJ 1986年
8月25日号NO,402、第183〜220頁(日経
マグロウヒル社刊)によシ、Dspの詳細が開示されて
いる0 すなわち、DSPによる場合、各実数x5ytを演算器
へ与えて所定の算術演算を施し、この演算値をレジスタ
へ逐次蓄積して再度演算器へ与え、これによ!lll累
算を反復して行なったうえ、最終累算値を乗算器へ与え
、こ\において係数の乗算を行なうものとなっている。
α・Σ(xl@yt)・・・・・・・・・ (1) Also, to perform the calculation of equation (1), it is common to use a digital signal processor (hereinafter referred to as DSP). For example, the details of DSP are disclosed in "Nikkei Electronics J August 25, 1986 issue No. 402, pages 183-220 (published by Nikkei McGraw-Hill)." In other words, when using DSP, Each real number x5yt is given to the arithmetic unit, a predetermined arithmetic operation is performed, and the calculated value is sequentially accumulated in a register and given to the arithmetic unit again. The value is given to the multiplier, which multiplies the coefficients.

たソし、前述の構成では、実数Xi、Ylを与えてから
、!A算までに2サイクルを要し、演′算速度が低下す
るため、各々異なる実数Xi、Yi〜Xi+n、Yi+
n毎に演算器を設けると共に、これらの各出力を累算す
る累算器を加算器とレジスタとによシ構成して設け、−
挙に累算値を求め、別途に係数の乗算を行なうことが考
えられる。
However, in the above configuration, after giving real numbers Xi and Yl,! It takes two cycles to calculate A, which reduces the calculation speed, so different real numbers Xi, Yi~Xi+n, Yi+
An arithmetic unit is provided for each n, and an accumulator for accumulating each of these outputs is provided consisting of an adder and a register, and -
It is conceivable to calculate the cumulative value at the same time and separately perform multiplication by a coefficient.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかし、累算器を用いる場合にも、別途に乗算器を要し
、これが加算器に比し回路規模の複雑なものとなるため
、全般的に高価となる問題を生ずる0 〔問題点を解決するための手段〕 前述の問題を解決するため、本発明はつぎの手段によシ
樽成するものとなっている。
However, even when an accumulator is used, a separate multiplier is required, which makes the circuit scale more complex than that of an adder, resulting in an overall high cost. Means for Solving the Problem] In order to solve the above-mentioned problem, the present invention is constructed by the following means.

すなわち、第1および第2の実数へ所定の算術演算を施
しかつこの演算値の累算を行ない、このメ4算値へ係数
の乗算を行なう演j軍回路において、係数を示す各ビッ
トと対応して設けた各ビットaの演算器と、累算時に各
々異なる第1の実数を選択し乗算時には累算値を選択し
各演算器の第1の入力へ与えるこれらの各演算器毎に設
けた第1のセレクタと、累算時に各々異なる第2の実数
を選択し乗算時には係数の対応するビットを選択し各演
算器の第2の入力へ与えるこれらの各演算器毎に設けた
第2のセレクタと、各演算話中最下位ビットから互に隣
接する各演算器の出力を1対毎に加算すると共にこれら
の各加算値を下位ビット側から互に隣接して1対毎に順
次加算し最終的に全加算値を求める樹枝状かつ複数段に
配置された加算器群と、これら各加算器の上位ビット側
入力へ各個に挿入されこれらの加算器の属する段数およ
び対応するビット位に応じ与えられた入力を最上位ビッ
ト側へシフトを行なう複数のシフトレジスタと、累算時
に各シフトレジスタを側路する経路を選択し乗算時には
各シフトレジスタの出力を選択し対応する加算器の入力
へ与える各シフトレジスタ毎に設けた第3のセレクタと
、加算器群の全加算値を記憶し乗算時に記憶内容を累算
値として各演算器へ与える記憶手段とを備えたものであ
る。
That is, in the operation circuit that performs a predetermined arithmetic operation on the first and second real numbers, accumulates the calculated value, and multiplies the calculated value by a coefficient, each bit indicating the coefficient corresponds to an arithmetic unit for each bit a, and an arithmetic unit that selects a different first real number at the time of accumulation, selects the accumulated value at the time of multiplication, and supplies it to the first input of each arithmetic unit. and a second selector provided for each of these arithmetic units, which selects different second real numbers during accumulation, selects corresponding bits of coefficients during multiplication, and supplies them to the second input of each arithmetic unit. selector, and the outputs of each adjacent arithmetic unit from the least significant bit in each operation are added pair by pair, and these added values are sequentially added pair by pair from the least significant bit side. Finally, there is a group of adders arranged in multiple stages in a dendritic form that obtains the total addition value. Multiple shift registers that shift the given input to the most significant bit side, select a bypass route through each shift register during accumulation, select the output of each shift register during multiplication, and select the input of the corresponding adder. The third selector is provided for each shift register, and a storage means is provided for storing all the added values of the adder group and providing the stored contents as an accumulated value to each arithmetic unit at the time of multiplication.

〔作用〕[Effect]

したがって、各セレクタの選択によシ、各演算器および
加算器群が累算と乗算との共用となシ、同一の回路を用
いて(1)式の全演算が行なわれるため、別途に乗算器
を設ける必要性が排除される。
Therefore, depending on the selection of each selector, each arithmetic unit and adder group is not shared for accumulation and multiplication, and all operations in equation (1) are performed using the same circuit, so multiplication is performed separately. The need for a container is eliminated.

〔実施例〕〔Example〕

以下、実施例を示す図によって本発明の詳細な説明する
Hereinafter, the present invention will be explained in detail with reference to figures showing examples.

第1図は全構成を示すブロック図であり、メモリ(以下
、MEM)1から母線2を介して与えられる係数αを示
す各ピッ)bo−b7の各々と対応し、演算器(以下、
ALU)アレイ3を形成するAL030〜3フが設けて
あり、これらの図上左方側および右方側の第1および第
2の各入力には、各々ALU3o〜3丁毎に第1および
第2のセレクタ(以下、5EL)40−17.50〜5
7が設けてあ)、これらは累算時に各々が例えば8ビツ
トからなシかつ各々が異なる第1および第2の実数X5
−X7、Y1〜Y丁を選択し、積算時には母線6からの
例えば16ビツトからなる累算値Aおよび母線2からの
係数αを示すピッ)bo〜bγ中対応するビットを選択
し、各々ALU3o〜37の各入カヘ与えるものとなっ
ている。
FIG. 1 is a block diagram showing the entire configuration.
ALU030-3 are provided to form the ALU array 3, and the first and second inputs on the left and right sides of the figure are connected to the first and second inputs for each ALU3o-3, respectively. 2 selector (hereinafter referred to as 5EL) 40-17.50~5
7), which when accumulated are first and second real numbers
-X7, Y1 to Yth are selected, and at the time of integration, select the corresponding bits in ALU3o to Bγ indicating the accumulated value A consisting of, for example, 16 bits from bus line 6 and the coefficient α from bus line 2. It is given to each of the 37 inputs.

また、各ALU30〜3T の各出力は、タイミング整
合用のレジスタ(以下、REG)80〜8フを弁構成す
るADDアレイ9へ与えられ、 ここにおいて、まずA
DD911へ914によシ、ALUso〜37中最下位
ビットのALU30から互に隣接する各ALU30−3
1.32.3B、3;・35.36・37の出力が1対
毎に加算され、更にこれらの各加算値が下位ビット側の
ADD9 t t から互に隣接して1対毎に順次AD
D9zx、922.931によシ加算され、ADD 9
31 の出力として最終的に全加算値が求められるもの
となっている。
In addition, each output of each ALU 30 to 3T is given to an ADD array 9 that constitutes a timing matching register (hereinafter referred to as REG) 80 to 8.
914 to the DD 911, each adjacent ALU 30-3 from the least significant bit ALU 30 among ALUso~37
The outputs of 1.32.3B, 3;, 35.36, and 37 are added pair by pair, and each of these added values is sequentially added pair by pair from ADD9 t t on the lower bit side, adjacent to each other.
D9zx, added by 922.931, ADD 9
The total addition value is finally obtained as the output of 31.

たソし、各ADD911〜931の各上位ビット側入力
すなわち図上右方の入力には、λDD91t〜931の
属する段数および対応するビット位に応じ、REG81
,8s、83,8? から与えられた入力を後述のとお
シ最上位ビット側ヘシフトするシフトレジスタ(以下、
5RG)1011〜1014.1021,102へ10
31が各個に挿入しであると共に、これらと各ADD9
1t 〜9stとの間には各ADD 9 t 1〜93
1と対応して第3の5EL1111〜1114、N21
、IH2,1131が設けてあシ、累算時にはREG8
1.83.85.8フの各出力を選択し、5RG1G1
1〜1031を側路する経路を選択する一方、積算時に
は5RGIOII〜1031の各出力を選択し、対応す
るADD911〜931の入力へ与えるものとなってお
’)、ADD93tの出力は記憶手段としてのFLEG
12へ一時蓄積されたうえ、母線6を介しこれも記憶手
段として設けたMEMl3へ格納された後、または母線
6を介して直接、累算値AとしてALU30〜37へ与
えられるものとなっている。
In addition, the upper bit side input of each ADD 911 to 931, that is, the input on the right side of the figure, is provided with REG 81 according to the number of stages to which λDDs 91t to 931 belong and the corresponding bit position.
,8s,83,8? A shift register (hereinafter referred to as
5RG) 1011-1014.10 to 1021, 102
31 is inserted into each individual, and these and each ADD9
Between 1t and 9st, each ADD 9t 1 to 93
Corresponding to 1, the third 5EL1111 to 1114, N21
, IH2, 1131 is provided, REG8 is set during accumulation.
1. Select each output of 83, 85, 8, 5RG1G1
1 to 1031 is selected, and at the time of integration, each output of 5RGIOII to 1031 is selected and given to the input of the corresponding ADD911 to 931'), and the output of ADD93t is used as a storage means. FLEG
12, and is then stored via the bus 6 in the MEM13, which is also provided as a storage means, or directly provided as the accumulated value A to the ALUs 30 to 37 via the bus 6. .

一方、これらに対し、マイクロプロセッサ等のプロセッ
サ(以下、CPU)’14が設けてあムこれが各種の制
御信号を送出し、各部の制御および動作上のタイミング
規制を行ない、全体として累算および積算動作を正規に
行なうものとしている。
On the other hand, for these, a processor (hereinafter referred to as CPU) '14 such as a microprocessor is installed. It is assumed that the operation is performed normally.

したがって、各5EL40〜47.50〜57.111
1〜1131を図上左方の入力を選択する状態とし、各
実数Xo〜X7、YO〜Y7を与えると共に、ALU3
゜〜37へ所定の算術演算@を行なわせることによシR
EG12へΣ(xt@yt)の累算値が蓄積される。
Therefore, each 5EL40~47.50~57.111
1 to 1131 are in the state of selecting the input on the left side of the diagram, giving each real number Xo to X7, YO to Y7, and ALU3
By performing a predetermined arithmetic operation on ゜~37,
The cumulative value of Σ(xt@yt) is accumulated in the EG12.

ついで、REG12の内容をピッ)Io−Byの並列デ
ータからなる累算値人として5EL4o〜47へ与え、
または、MEMl3へ格納してからこれの読出しにより
同様に与えると共に、MEMlの係数αをピッ)bo〜
b?毎に5EL5o〜57へ与える一方、5EL40〜
47.50〜57.10口〜1Q31  を図上右方の
入力を選択するものとし、ALU30〜37へ論理積算
を行なわせ、かつ、5RGIOII〜1031へ各々所
定のビット数づ\最上位ビット側へのシフトを行なわせ
れば、つぎに述べるとおシ累算値Aへ係数αを乗する演
算がなされ、この結果がREG12によシ蓄積される。
Next, give the contents of REG12 to 5EL4o to 47 as an accumulated value consisting of Io-By parallel data,
Alternatively, store it in MEMl3 and then read it to give it in the same way, and also give the coefficient α of MEMl by p)bo~
b? While giving to 5EL5o~57 every time, 5EL40~
47.50 to 57.10 to 1Q31 are selected as the inputs on the right side of the diagram, ALUs 30 to 37 are made to perform logical addition, and 5RGIOII to 1031 are each given a predetermined number of bits on the most significant bit side. When the shift is performed, an operation is performed in which the accumulated value A is multiplied by a coefficient α, and this result is stored in the REG 12.

すなわち、Aが&0〜a7の8ビツト、αがbo〜b7
の8ビツト、これらの積Pが16ビツトによシ構成され
るとき、この乗算アルゴリスムは次表によシ示されると
おシとなシ、部分積PPoがALU30によム同様にp
PlがALU s sによシ、PP2がALU32によ
シ、PP3がALU33によシ求められ、以降、PP4
〜PPyがALU34〜37によシ各個に求められるた
め、第1段の5RG1011〜1014では、5RGI
OIIが最上位ビット(以下、MSB)側へ1ビツト、
3RG1QxzがMSB側へ3ビツト、5RG10x3
がMSB側へ5ビツト、5RG1014がMSB側へ7
ビツトのシフトを各個に行なうと共に、第2段の5RG
1(1!x11zgでは5RQ1Q21が同様に2ビツ
ト、5RG1022が同様に6ピツトのシフトを行ない
、第3段の5RG1031においては、同様に4ビツト
のシフトを行ない、各5RG1011〜1031が各々
の属する段数および対応するビット位に応じてシフトを
行なうものとすれば、部分ytppo−PP7を構成す
るビット積PG−P15の和として積算値Pを求めるこ
とができる。
That is, A is 8 bits from &0 to a7, and α is bo to b7.
8 bits, and when their product P is composed of 16 bits, the multiplication algorithm is as shown in the following table.
Pl is determined by ALU s s, PP2 is determined by ALU32, PP3 is determined by ALU33, and thereafter PP4
~PPy is determined individually by the ALUs 34 to 37, so in the first stage 5RG1011 to 1014, 5RGI
OII moves 1 bit to the most significant bit (hereinafter referred to as MSB),
3RG1Qxz 3 bits to MSB side, 5RG10x3
is 5 bits to the MSB side, 5RG1014 is 7 bits to the MSB side
In addition to individually shifting the bits, the second stage 5RG
1 (In 1! If the shift is performed according to the corresponding bit position, the integrated value P can be obtained as the sum of the bit products PG-P15 forming the portion ytppo-PP7.

一方、A1αを各々8ビツトによる2の補数、Pを16
ビツトによる2の補数とし、かつ、A%Bが負数を含む
ものとしたとき、A% αは次式によシ示される。
On the other hand, A1α is a two's complement of 8 bits each, and P is 16
When it is assumed that it is a two's complement number based on bits and that A%B includes a negative number, A% α is expressed by the following equation.

A=−a72 +a62 +aS2 + ++m4畠Q
2  +m+ t2)α=−by2 +b62 +bs
2+・・−・−・・+b02  ・・−・・(3)また
、この場合の乗算アルゴリズムは次表に示すとおシとな
シ、■が負数を含む演算であシ、これから負数の部分を
抽出すると■のとおシとなシ、これの第1行目をボーク
・ウーレイ(Bangh −W6o1ey )の手法(
「コンピュータの高速演算方式J Kal Hwang
著、堀越弥〔ひさし〕訳、第180〜185頁、昭和5
5年9月1日、近代科学社発行・参照)によシ変形すれ
ば次式のものとなシ、第2行目も同様に変形できるため
、これらを示したものが■の部分となる。
A=-a72 +a62 +aS2 + ++m4 HatakeQ
2 +m+ t2) α=-by2 +b62 +bs
2+・・−・−・・+b02 ・・−・・・(3) Also, the multiplication algorithm in this case is shown in the table below. When extracted, the first line of
``Computer high-speed calculation method J Kal Hwang
Author, translated by Hisashi Horikoshi, pages 180-185, Showa 5
If you transform the equation according to the following (September 1, 2005, Published by Kindai Kagakusha), you will get the following formula.The second line can be transformed in the same way, so what shows these becomes the part ■. .

(−a7M2’−m)bs2’−4yb42’  −−
−a7b02°)φ27=(a7Ta2’−)−ayb
sf  ←トaフ’F;a 2’−1−・−・・−−・
−←ト17b02゜1γ・(2’+2’+244−・・
・・・・・・・+2°)・27=(ayba2’−ht
bs2’−1,tb42,4+−・−−−)s7b02
゜17・(2−1))・27 =(a7b@26−f−@7bs2’−)−@t−2’
−f−=・”・・・+a 7b02゜イア2’−2’−
h?)・27 こ\において、PI3は符号を示す桁であシ、これから
の桁上げを無視することにより、Pigの「−1」を省
略してもよ(、P=A・αを第2表の■に示すとおり正
数の加算およびMSB側へのシフトのみによシ求めるこ
とができる。
(-a7M2'-m)bs2'-4yb42' --
-a7b02°)φ27=(a7Ta2'-)-ayb
sf ←Tof'F;a 2'-1-・-・・--・
-←To17b02゜1γ・(2'+2'+244-...
......+2°)・27=(ayba2'-ht
bs2'-1,tb42,4+-・---)s7b02
゜17・(2-1))・27 = (a7b@26-f-@7bs2'-)-@t-2'
-f-=・”...+a 7b02゜ia2'-2'-
h? )・27 In this case, PI3 is a digit indicating the sign, and the “-1” of Pig can be omitted by ignoring the carry from now on (, P=A・α is shown in Table 2). As shown in (2), it can be obtained only by adding positive numbers and shifting to the MSB side.

第2図は、前述の機能を実現する場合のブロック図であ
シ、第1図の構成に対し第2表の部分積PPmを求める
機能を追加すればよいため、ALU311、REG8g
、およびADD9otを追加し、ALU311ヘビツ)
&7、b?を与えると共に、REG8Bを介するALU
8sの出力と、ALU37のREG8yを介する出力と
をADD901 によシ加算しているほかは第1図と同
様であり、これによって第2表の積算値PがREG12
により蓄積される。
FIG. 2 is a block diagram for realizing the above-mentioned functions. Since it is only necessary to add the function of calculating the partial product PPm shown in Table 2 to the configuration shown in FIG.
, and add ADD9ot, ALU311 Hebitsu)
&7,b? and ALU via REG8B
The process is the same as in Figure 1 except that the output of 8s and the output via REG8y of ALU37 are added by ADD901, and thereby the integrated value P in Table 2 becomes REG12.
Accumulated by

なお、条件に応じ、MEMI、13と母線2.6との間
へタイミング整合用のREGを挿入してもよく、あるい
はREG8o〜88を省略することもできる一方、°取
扱うビット数に応じて各部の数を定め、かつ、ADD群
9の段数を定めればよい。
Depending on the conditions, a REG for timing alignment may be inserted between the MEMI 13 and the bus 2.6, or REGs 8o to 88 may be omitted. , and the number of stages of the ADD group 9.

また、ALU3o〜38が加算およびシフト機能を備え
れば、これの入力側において論理積を求め、ALU3o
〜38をADD群9の一部としてもよく、REG12と
MEM13とのいずれか一方のみとしてもよい等、積々
の変形が自在である。
Furthermore, if the ALU3o to 38 have addition and shift functions, the logical product is calculated on the input side of these, and the ALU3o
- 38 may be a part of the ADD group 9, or only one of the REG 12 and the MEM 13, and many other modifications are possible.

〔発明の効果〕〔Effect of the invention〕

以上の説明により明らかなとおり本発明によれば、同一
の回路により累算および乗算がなされ、特に乗算器を設
ける必要がなく、構成の簡略化および低価化が実現し、
累算を含む算術演算および累算値へ係数を乗する演算を
行なう各種の用途において顕著な効果が得られる。
As is clear from the above description, according to the present invention, accumulation and multiplication are performed by the same circuit, there is no need to provide a multiplier, and the structure is simplified and the cost is reduced.
Remarkable effects can be obtained in various applications in which arithmetic operations including accumulation and operations in which an accumulated value is multiplied by a coefficient are performed.

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

図は本発明の実施例を示し、第1図は全構成のブロック
図、第2図は他の実施例を示すブロック図である。 3036・・・・ALU (演算器)、40〜4γ、5
0〜57.1111〜1131 ・働・・5EL(セレ
シタ)、9・・・・ADD群(加算器群)、911〜9
31・・・−ADD(加算器)、1011〜1031・
・・・5RG(シフトレジスタ)、12・e・・REG
(レジスタ)、13・・・拳MEM(メモリ)、Xo−
Xt、YO−Yy @ @ @ @ 実数。
The figures show an embodiment of the present invention, with FIG. 1 being a block diagram of the entire configuration, and FIG. 2 being a block diagram showing another embodiment. 3036...ALU (operating unit), 40 to 4γ, 5
0~57.1111~1131 ・Work...5EL (selector), 9...ADD group (adder group), 911~9
31...-ADD (adder), 1011 to 1031.
...5RG (shift register), 12.e..REG
(register), 13...Fist MEM (memory), Xo-
Xt, YO-Yy @ @ @ Real number.

Claims (1)

【特許請求の範囲】[Claims] 第1および第2の実数へ所定の算術演算を施しかつ該演
算値の累算を行ない、該累算値へ係数の乗算を行なう演
算回路において、前記係数を示す各ビットと対応して設
けた前記各ビット毎の演算器と、前記累算時に各々異な
る前記第1の実数を選択し前記乗算時には前記累算値を
選択し前記各演算器の第1の入力へ与える該各演算器毎
に設けた第1のセレクタと、前記累算時に各々異なる前
記第2の実数を選択し前記乗算時には前記係数の対応す
るビットを選択し前記各演算器の第2の入力へ与える該
各演算器毎に設けた第2のセレクタと、前記各演算器中
最下位ビットから互に隣接する各演算器の出力を1対毎
に加算すると共に該各加算値を下位ビット側から互に隣
接して1対毎に順次加算し最終的に全加算値を求める樹
枝状かつ複数段に配置された加算器群と、これら各加算
器の上位ビット側入力へ各個に挿入され該加算器の属す
る段数および対応するビット位に応じ与えられた入力を
最上位ビット側へシフトを行なう複数のシフトレジスタ
と、前記累算時に前記各シフトレジスタを側路する経路
を選択し前記乗算時には前記各シフトレジスタの出力を
選択し対応する加算器の入力へ与える前記各シフトレジ
スタ毎に設けた第3のセレクタと、前記加算器群の全加
算値を記憶し前記乗算時に記憶内容を前記累算値として
各演算器へ与える記憶手段とを備えたことを特徴とする
複合演算回路。
In an arithmetic circuit that performs a predetermined arithmetic operation on the first and second real numbers, accumulates the calculated value, and multiplies the accumulated value by a coefficient, an arithmetic circuit is provided corresponding to each bit indicating the coefficient. Each of the arithmetic units for each bit and each arithmetic unit that selects a different first real number at the time of the accumulation, selects the accumulated value at the time of the multiplication, and supplies it to the first input of each of the arithmetic units. a first selector provided; and a first selector that selects the second real numbers, which are different during the accumulation, selects a corresponding bit of the coefficient during the multiplication, and supplies the selected bits to the second inputs of the respective arithmetic units. A second selector provided at A group of adders arranged in multiple stages in a dendritic manner that sequentially adds each pair to obtain a final total addition value, and the number of stages to which the adder belongs and the correspondence that is inserted into the upper bit side input of each adder. A plurality of shift registers that shift a given input to the most significant bit side according to the bit position to be processed, a route that bypasses each of the shift registers during the accumulation, and an output of each of the shift registers during the multiplication are selected. A third selector provided for each of the shift registers selected and applied to the input of the corresponding adder, and a third selector provided for each of the shift registers, and storing all added values of the adder group, and transmitting the stored contents as the accumulated value at the time of the multiplication to each arithmetic unit. 1. A complex arithmetic circuit comprising: a storage means for storing data.
JP30884086A 1986-12-26 1986-12-26 Compound arithmetic circuit Pending JPS63163674A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30884086A JPS63163674A (en) 1986-12-26 1986-12-26 Compound arithmetic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30884086A JPS63163674A (en) 1986-12-26 1986-12-26 Compound arithmetic circuit

Publications (1)

Publication Number Publication Date
JPS63163674A true JPS63163674A (en) 1988-07-07

Family

ID=17985915

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30884086A Pending JPS63163674A (en) 1986-12-26 1986-12-26 Compound arithmetic circuit

Country Status (1)

Country Link
JP (1) JPS63163674A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0282352A (en) * 1988-09-19 1990-03-22 Hitachi Ltd Arithmetic unit
JPH02181257A (en) * 1989-01-06 1990-07-16 Hitachi Ltd Information processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0282352A (en) * 1988-09-19 1990-03-22 Hitachi Ltd Arithmetic unit
JPH02181257A (en) * 1989-01-06 1990-07-16 Hitachi Ltd Information processor

Similar Documents

Publication Publication Date Title
US6735611B2 (en) Arithmetic processor
US3515344A (en) Apparatus for accumulating the sum of a plurality of operands
JPS6347874A (en) Arithmetic unit
EP0464493B1 (en) High-radix divider
US5261001A (en) Microcircuit for the implementation of RSA algorithm and ordinary and modular arithmetic, in particular exponentiation, with large operands
US6009450A (en) Finite field inverse circuit
JPH0542013B2 (en)
US5010511A (en) Digit-serial linear combining apparatus useful in dividers
US6963644B1 (en) Multi-word arithmetic device for faster computation of cryptosystem calculations
JPH1195982A (en) Circuit, method and system for arithmetic processing
KR100481586B1 (en) Apparatus for modular multiplication
JPS63163674A (en) Compound arithmetic circuit
US5206826A (en) Floating-point division cell
US6157939A (en) Methods and apparatus for generating multiplicative inverse product
KR100235536B1 (en) A circuit for multiplier and divider
JP3793505B2 (en) Arithmetic unit and electronic circuit device using the same
EP1197874B1 (en) Signal processor and product-sum operating device for use therein with rounding function
JP2605792B2 (en) Arithmetic processing unit
JPS63254525A (en) Dividing device
JP3122622B2 (en) Division device
Hong et al. A Novel and Scalable RSA Cryptosystem Based on 32-Bit Modular Multiplier
JPH06301710A (en) Method and device for double precision product-sum operation
CN117667011A (en) Post adder in digital signal processing module
JPH0414173A (en) Fixed point product sum computing element
KR19990021768A (en) Digital signal processor