JPH02150962A - arithmetic device - Google Patents

arithmetic device

Info

Publication number
JPH02150962A
JPH02150962A JP63304883A JP30488388A JPH02150962A JP H02150962 A JPH02150962 A JP H02150962A JP 63304883 A JP63304883 A JP 63304883A JP 30488388 A JP30488388 A JP 30488388A JP H02150962 A JPH02150962 A JP H02150962A
Authority
JP
Japan
Prior art keywords
data
bits
multiplication
circuit
result
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
JP63304883A
Other languages
Japanese (ja)
Other versions
JPH0758483B2 (en
Inventor
Yukihiro Fujimoto
幸広 藤本
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP30488388A priority Critical patent/JPH0758483B2/en
Publication of JPH02150962A publication Critical patent/JPH02150962A/en
Publication of JPH0758483B2 publication Critical patent/JPH0758483B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、数置演算を行うための演算装置に関する。[Detailed description of the invention] Industrial applications The present invention relates to an arithmetic device for performing numerical arithmetic operations.

従来の技術 第3図は、従来の演算装置を示し、第2図は。Conventional technology FIG. 3 shows a conventional arithmetic device, and FIG.

第3図の加算付き乗算回路な示す。The multiplication circuit with addition shown in FIG. 3 is shown.

この加算付き乗算回路は第2図(blに示すように。This multiplication circuit with addition is shown in FIG. 2 (bl).

それぞれ4ビットのデータX 3−o 、 Y 3−o
を乗算し。
4-bit data X 3-o, Y 3-o respectively
Multiply.

この乗算結果の上位4ビットのデータに4ビットのデー
タAH3−oを加算するとともに1乗算結果の下位4ビ
ットのデータに4ビットのデータALa−o + B 
L 3−0 ?:加算し、その加算結果の上位ビットの
データZH,oと下位4ビットのデータZL3−0を出
力するように構成されている。
4-bit data AH3-o is added to the upper 4-bit data of this multiplication result, and 4-bit data ALa-o + B is added to the lower 4-bit data of the 1 multiplication result.
L 3-0? : It is configured to add and output the upper bit data ZH, o and the lower 4 bit data ZL3-0 of the addition result.

第3図(alは、4つの加算付き乗算回路1〜4を用い
た演算装置を示し、この演算装置は、第3図回に示すよ
うに、8ビットの被乗数データa 7−0と8ビットの
乗数データb7−0を乗算し、16ビットの乗算結果P
15−0を出力するように構成されている。
FIG. 3 (al indicates an arithmetic device using four multiplication circuits 1 to 4 with addition, and as shown in FIG. 3, 8-bit multiplicand data a 7-0 and 8-bit is multiplied by the multiplier data b7-0, and the 16-bit multiplication result P
15-0.

この演算装置の動作を説明すると、加算付き乗算回路1
は、下位4ビットの被乗数データa 3−0と下位4ビ
ットの乗数データb 3−0を乗算し、この乗算結果の
上位4ビットのデータに4ビットのデータroo00J
を加算するとともに1乗算結果の下位4ビットのデータ
に4ビットのデータr0000J 、roooOjを加
算し、その加算結果の下位4ビットのデータを乗算結果
P 15−0の最下位の4ビットのデータP 3−0と
して出力する。
To explain the operation of this arithmetic unit, the multiplication circuit with addition 1
multiplies the lower 4 bits of multiplicand data a 3-0 and the lower 4 bits of multiplier data b 3-0, and adds 4 bits of data roo00J to the upper 4 bits of this multiplication result.
At the same time, add 4-bit data r0000J and roooOj to the lower 4-bit data of the 1 multiplication result, and multiply the lower 4-bit data of the addition result to the lowest 4-bit data P of 15-0. Output as 3-0.

加算付き乗算回路2は、上位4ビットの被乗数データa
7−4と下位4ビットの乗数データb 3−0を乗算し
、この乗算結果の上位4ビットのデータに4ビットのデ
ータ[0OOOJを加算するとともに1乗算結果の下位
4ビットのデータに4ビットのデー・夕10000J、
ro000Jを加算する。
The multiplier circuit 2 with addition uses the upper 4 bits of multiplicand data a
Multiply 7-4 by the lower 4 bits of multiplier data b 3-0, add 4 bits of data [0OOOJ to the upper 4 bits of this multiplication result, and add 4 bits to the lower 4 bits of the 1 multiplication result. day and evening 10,000J,
Add ro000J.

加算付き乗算回路3は、下位4ビットの被乗数データa
 3−0と上位4ビットの乗数データb7−4を乗算し
、この乗算結果の上位4ビットのデータに4ビットのデ
ータr0000Jを加算するとともに1乗算結果の下位
4ビットのデータに加算付き乗算回路2の演算結果の下
位4ビットのデータと、加算付き乗算回路1の演算結果
の上位4ビットのデータを加算し、その加算結果の下位
4ビットのデータを乗算結果P15−00第3位の4ビ
ットのデータP7−4として出力する。
The multiplication circuit with addition 3 receives the lower 4 bits of multiplicand data a
Multiply 3-0 by the upper 4 bits of multiplier data b7-4, add 4 bits of data r0000J to the upper 4 bits of this multiplication result, and add the lower 4 bits of data of the 1 multiplication result to the multiplication circuit with addition. The data of the lower 4 bits of the calculation result of step 2 and the data of the higher 4 bits of the calculation result of the multiplication circuit with addition 1 are added, and the data of the lower 4 bits of the addition result is multiplied to the result of P15-00 3rd place 4. It is output as bit data P7-4.

加算付き乗算回路4は、上位4ビットの被乗数データa
7−4  と上位4ビットの乗数データb7−4を乗算
し、この乗算結果の上位4ビットのデータに4ビットの
データro000Jを加算するとともに1乗算結果の下
位4ビットのデータに加算付き乗算回路2の演算結果の
上位4ビットのデータと、加算付き乗算回路3の演算結
果の上位4ビットのデータを加算し、その加算結果の上
位4ビットのデータを乗算結果P15−00最上位の4
ビットのデータP 15−12として出力し、加算結果
の下位4ビットのデータを乗算結果P15−0の第2位
の4ビットのデータpH−8として出力する。
The multiplication circuit with addition 4 receives the upper 4 bits of multiplicand data a
7-4 is multiplied by the upper 4 bits of multiplier data b7-4, and the 4-bit data ro000J is added to the upper 4 bits of the multiplication result, and the multiplication circuit with addition is added to the lower 4 bits of the data of the 1 multiplication result. Add the data of the upper 4 bits of the operation result of step 2 and the data of the upper 4 bits of the operation result of the multiplication circuit with addition 3, and multiply the data of the upper 4 bits of the addition result to the most significant 4 bits of the result P15-00.
It outputs as bit data P15-12, and the lower 4-bit data of the addition result is output as the second-order 4-bit data pH-8 of the multiplication result P15-0.

したがって、上記従来例によれば、4つの加算付き乗算
回路1〜4を用いて、8ビットの被乗数データa7−Q
と8ビットの乗数データb 7−Ok乗算し、 16ビ
ットの乗算結果P15−0として出力することができる
Therefore, according to the above conventional example, the 8-bit multiplicand data a7-Q is
and 8-bit multiplier data b 7-Ok, and can be output as a 16-bit multiplication result P15-0.

発明が解決しようとする課題 しかしながら、上記従来の演算装置では、例えば複素数
(al J b ) +  (c +J d )を乗算
する場合、a−c、b−d、a−d、b−cの乗算をそ
れぞれ1回、すなわち合計4回実行することにより各乗
算結果を得ることができるが、更に、a−c−b−dの
減算と、a−d−1−b−cの加算を実行する回路が必
要となり1時間がかかるという問題点がある。
Problems to be Solved by the Invention However, in the above-mentioned conventional arithmetic device, for example, when multiplying complex numbers (al J b ) + (c + J d ), a-c, b-d, a-d, b-c are Each multiplication result can be obtained by performing each multiplication once, that is, a total of 4 times, but in addition, subtraction of a-c-b-d and addition of a-d-1-b-c are performed. There is a problem in that it requires a circuit to do this, and it takes one hour.

本発明は上記従来の問題点に鑑み、複数のビットのデー
タを乗算することができるとともに、実数部と虚数部が
複数のビットにより構成される複素数を短時間で演算す
ることができる演算装置を提供することを目的とする。
In view of the above-mentioned conventional problems, the present invention provides an arithmetic device that is capable of multiplying data of multiple bits and is also capable of computing complex numbers whose real part and imaginary part are composed of multiple bits in a short time. The purpose is to provide.

課題を解決するための手段 本発明は上記目的を達成するために、2nビットの第1
のデータの下位nビットのデータと2nビットの第2の
データの下1inビットのデータを乗算する第1の乗算
回路と、nビット全てが「0」のデータ又は第1の乗算
回路の乗算結果の下位nビットのデータを選択的に出力
する第1の切換回路と、nビット全てが「0」のデータ
又は第1の乗算回路の乗算結果の上位nビットのデータ
を選択的に出力する第2の切換回路と、第1のデータの
上位nビットのデータと第2のデータの下(Inビット
のデータを乗算する第2の乗算回路と、nビット全てが
「0」のデータ又は第2の乗算回路の乗算結果の上位n
ビットのデータを選択的に出力する第3の切換回路と、
第3の切換回路の出力データ又は第1の切換回路の出力
データを選択的に出力する第4の切換回路と、第1のデ
ータの下inビットのデータと第2のデータの上位nビ
ットのデータな乗算し1乗算結果の上位nビットのデー
タに第3の切換回路の出力データを加算し。
Means for Solving the Problems In order to achieve the above object, the present invention provides the first
A first multiplication circuit that multiplies the data of the lower n bits of data by the data of the lower 1in bit of the second data of 2n bits, and the data where all n bits are "0" or the multiplication result of the first multiplication circuit. a first switching circuit that selectively outputs the lower n bits of data; and a first switching circuit that selectively outputs data in which all n bits are "0" or higher n bits of the multiplication result of the first multiplier circuit. A second switching circuit multiplies the data of the upper n bits of the first data and the data of the lower (In bits) of the second data, and a second multiplier circuit that multiplies the data of the upper n bits of the first data The top n of the multiplication results of the multiplication circuit
a third switching circuit that selectively outputs bit data;
a fourth switching circuit that selectively outputs the output data of the third switching circuit or the output data of the first switching circuit; and a fourth switching circuit that selectively outputs the output data of the third switching circuit or the output data of the first switching circuit; The output data of the third switching circuit is added to the data of the upper n bits of the multiplication result.

乗算結果の下位nビットのデータに前記第2の乗算回路
の乗算結果の下flnビットのデータと第2の切換回路
の出力データを加算する第3の乗算回路と、nビット全
てが「0」のデータ又は第3の乗算回路の乗算結果の上
finビットのデータを選択的に出力する第5の切換回
路と、第1のデータの上位nビットのデータと第2のデ
ータの上位nビットのデータを乗算し、乗算結果の上位
nビットのデータに対し、第2の切換回路の出力データ
を加算又は減算し1乗算結果の下位nビットのデータに
対し、第4.第5の切換回路の出力データを加算又は減
算する第4の乗算回路とを備えたものである〇 作    用 本発明は上記構成により、それぞれ20ビットの第1、
第2のデータのデータを乗算して40ビットの乗算結果
を得る場合は、第1の切換回路が第1の乗算回路の乗算
結果の下位nビットのデータを出力することにより、こ
のデータが4nビットの乗算結果の最下位のnビットの
データとなり。
a third multiplication circuit that adds the data of the lower n bits of the multiplication result to the data of the lower fln bits of the multiplication result of the second multiplication circuit and the output data of the second switching circuit; a fifth switching circuit that selectively outputs the data of the upper fin bits of the data or the upper fin bits of the multiplication result of the third multiplier circuit; The data are multiplied, the output data of the second switching circuit is added or subtracted to the data of the upper n bits of the multiplication result, and the data of the output of the second switching circuit is added or subtracted to the data of the lower n bits of the multiplication result. and a fourth multiplier circuit that adds or subtracts the output data of the fifth switching circuit.
When multiplying the data of the second data to obtain a 40-bit multiplication result, the first switching circuit outputs the data of the lower n bits of the multiplication result of the first multiplier circuit, so that this data is 4n This is the data of the lowest n bits of the bit multiplication result.

第3の乗算回路が第1のデータの下位nビットのデータ
と第2のデータの上inビットのデータを乗算し1乗算
結果の上位nビットのデータに第3の切換回路のnビッ
ト全てがrOJの出力データを加算し1乗算結果の下位
nビットのデータに第2の乗算回路の乗算結果の下位n
ビットのデータと第1の乗算回路の乗算結果の上(qn
ピッ゛トのデータを加算すると、4nビットの乗算結果
の第3位のnビットのデータとなる。
A third multiplier circuit multiplies the lower n bits of the first data by the upper in bits of the second data, and all n bits of the third switching circuit are added to the upper n bits of the multiplication result. The output data of rOJ is added to the data of the lower n bits of the 1 multiplication result, and the lower n bits of the multiplication result of the second multiplication circuit are added.
The bit data and the multiplication result of the first multiplier circuit (qn
When the data of the pits are added, it becomes the third n-bit data of the 4n-bit multiplication result.

また、第4の乗算回路が第1のデータの上位nビットの
データと第2のデータの上位nビットのデータを乗算し
1乗算結果の上位nビットのデータに第2の切換回路の
nビット全てが「0」の出力データを加算し1乗算結果
の下位nビットのデータに第1の乗算結果の上位nビッ
トのデータを加算すると、4nビットの乗算結果の最上
位、第2位のnビットのデータとなる。
Further, the fourth multiplication circuit multiplies the data of the upper n bits of the first data and the data of the upper n bits of the second data, and the data of the upper n bits of the first multiplication result is added to the data of the n bits of the second switching circuit. Adding the output data of all "0" and adding the data of the upper n bits of the first multiplication result to the data of the lower n bits of the 1 multiplication result, the most significant and second n bits of the multiplication result of 4n bits are added. It becomes bit data.

他方、実数部と虚数部がそれぞれnビットの第1、第2
の複素数データを乗算して実数部と虚数部がそれぞれ2
0ビットの乗算結果を得る場合は。
On the other hand, the real part and the imaginary part are the first and second bits of n bits, respectively.
By multiplying the complex number data of , the real part and imaginary part are each 2.
To obtain a 0-bit multiplication result.

第1の乗算回路が第1.第2の複素数データのそれぞれ
の虚数部を乗算し、第2の乗算回路が第1の複素数デー
タの実数部と第2の複素数データの虚数部を乗算し、第
3の乗算回路が第1の複素数データの虚数部と第2の複
素数データの実数部を乗算し2乗算結果の上位nビット
のデータに第2の乗算回路の乗算結果の上位nビットの
データを加算し1乗算結果の下位nビットのデータて前
記第2の乗算回路の乗算結果の下位nビットのデータと
第2の切換回路のnビット全てが「0」の出力データを
加算すると、加算結果の下位nビットのデータが2nビ
ットの虚数部の乗算結果の下位nビットのデータとなり
、また、第5の切換回路が第3の乗算回路の加算結果の
上位nビットのデータを出力すると、このデータが2n
ビットの虚数部の乗算結果の上位nビットのデータとな
る。
The first multiplier circuit is the first multiplier. The second multiplication circuit multiplies the imaginary part of each of the second complex data by the real part of the first complex data and the imaginary part of the second complex data, and the third multiplication circuit multiplies the imaginary part of the first complex data. Multiply the imaginary part of the complex number data by the real part of the second complex number data, add the data of the upper n bits of the multiplication result of the second multiplication circuit to the data of the upper n bits of the 2 multiplication result, and add the data of the upper n bits of the multiplication result of the 1st multiplication result. When the data of the lower n bits of the multiplication result of the second multiplier circuit and the output data of the second switching circuit in which all n bits are "0" are added, the data of the lower n bits of the addition result becomes 2n. When the fifth switching circuit outputs the data of the upper n bits of the addition result of the third multiplication circuit, this data becomes 2n
This is the data of the upper n bits of the multiplication result of the imaginary parts of the bits.

また、第4の乗算回路が第1.第2の複素数データのそ
れぞれの実数部を乗算し1乗算結果の上位nビットのデ
ータから第1の乗算回路の乗算結果の上位nビットのデ
ータを減算し1乗算結果の下位nビットのデータから第
1の乗算結果の下位nビットのデータと第5の切換回路
のnビット全てが「0」の出力データを減算すると、2
nビノトの実数部の乗算結果となる。
Further, the fourth multiplication circuit is connected to the first multiplication circuit. Multiply the real part of each of the second complex number data, subtract the data of the upper n bits of the multiplication result of the first multiplication circuit from the data of the upper n bits of the result of 1 multiplication, and then subtract the data of the upper n bits of the multiplication result of the 1 multiplication result from the data of the lower n bits of the result of 1 multiplication. When the data of the lower n bits of the first multiplication result and the output data of all n bits of the fifth switching circuit are "0" are subtracted, the result is 2.
This is the result of multiplication of the real parts of n-binots.

実施例 以下、図面を参照して本発明の詳細な説明する。第1図
(a)は0本発明に係る演算装置の一実施例を示すブロ
ック図、第1図(b)は、第1図(alの演算装置の動
作説明図、第2図fa)は、第1図(a)の加算付き乗
算回路を示すブロック図、第2図(b)は。
EXAMPLES Hereinafter, the present invention will be described in detail with reference to the drawings. FIG. 1(a) is a block diagram showing an embodiment of the arithmetic device according to the present invention, FIG. 1(b) is an explanatory diagram of the operation of the arithmetic device in FIG. , FIG. 2(b) is a block diagram showing the multiplication circuit with addition shown in FIG. 1(a).

第2図(alの加算付き乗算回路の動作説明図であり。FIG. 2 is an explanatory diagram of the operation of the multiplication circuit with addition (al).

第3図に示す構成部材と同一のものには同一の8照符号
を付す。
Components that are the same as those shown in FIG. 3 are designated by the same numerals.

第1図において、1〜3けそれぞれ、加算付き乗算回路
であり、この加算付き乗算回路1〜3はそれぞれ、第2
図に示すように、それぞれ4ビットのデータX3−o、
Y3−oを乗算し、この乗算結果の上位4ビットのデー
タに4ビットのデータAH3−oを加算するとともに、
乗算結果の下位4ビットのデータに4ビットのデータA
L3−6.BL3−0を加算し、その加算結果の上位ビ
ットのデータZH3−oと下位4ビットのデータZL3
−0を出力するように構成されている。
In FIG. 1, digits 1 to 3 are multiplication circuits with addition, and multiplication circuits 1 to 3 are multiplication circuits with addition, respectively.
As shown in the figure, 4-bit data X3-o,
Multiply by Y3-o, add 4-bit data AH3-o to the upper 4-bit data of this multiplication result, and
Add 4 bits of data A to the lower 4 bits of the multiplication result.
L3-6. BL3-0 is added, and the upper bit data ZH3-o and lower 4 bit data ZL3 of the addition result are
It is configured to output -0.

4aば、加算、減算付き乗算回路であり、この加算、減
算付き乗算回路4aは、4ビットのデータX 3−(1
、Y 3−oを乗算し、この乗算結果の上位4ビットの
データに対し、制御信号により4ビットのデータAH3
−0を加算又は減算するとともに、乗算結果の下位4ビ
ットのデータに対し、制御信号により4ビットのデータ
AL3−0.BL3−0を加算又は減算し、その加算結
果又は減算結果の上位ビットのデータZ l(3−oと
下位4ビットのデータZL3−0を出力するように構成
されている。
4a is a multiplication circuit with addition and subtraction, and this multiplication circuit 4a with addition and subtraction processes 4-bit data
, Y3-o, and the upper 4 bits of data of this multiplication result are multiplied by 4 bits of data AH3 by a control signal.
-0 is added or subtracted, and 4-bit data AL3-0 . It is configured to add or subtract BL3-0 and output the addition result or subtraction result, upper bit data Z1(3-o) and lower 4 bit data ZL3-0.

5〜7,9はそれぞれ、端子Iに入力した信号を制御信
号により2つの端子A又はBに選択的に出力する切換回
路であり、切換回路端子5〜7゜9はそれぞれ、選択さ
れない出力端子A、Bからはデータ「0」を出力する。
5 to 7 and 9 are respectively switching circuits that selectively output the signal input to terminal I to two terminals A or B according to a control signal, and switching circuit terminals 5 to 7 and 9 are respectively unselected output terminals. Data "0" is output from A and B.

8は、端子A又はBに入力した信号を端子Yに選択的に
出力する切換回路である。
8 is a switching circuit that selectively outputs the signal input to terminal A or B to terminal Y;

加算付き乗算回路1の上位、下位4ビットの出力端子は
それぞれ、切換回路6,5の入力端子■に接続され、切
換回路5の出力端子Bは、切換回路8の入力端子Bに接
続されている。切換回路6の出力端千人け、加算付き乗
算回路3のデータBL a−o用の入力端子に接続され
、出力端子Bけ加算、減算付き乗算回路4aのデータA
H3−0用の入力端子に接続されている。
The output terminals of the upper and lower 4 bits of the multiplication circuit with addition 1 are connected to the input terminals ■ of switching circuits 6 and 5, respectively, and the output terminal B of the switching circuit 5 is connected to the input terminal B of the switching circuit 8. There is. The output terminal of the switching circuit 6 is connected to the input terminal for data BL a-o of the multiplication circuit 3 with addition, and the output terminal B is connected to the input terminal for data A of the multiplication circuit 4a with addition and subtraction.
Connected to the input terminal for H3-0.

加算付き乗算回路2の上位、下位4ビットの出力端子は
それぞれ、切換回路70入力端子I、加算付き乗算回路
3のデータAL3−0用の入力端子に接続され、切換回
路7の出力端子Bけ、加算付き乗算回路3のデータA 
H3−0用の入力端子に接続され、出力端千人は、切換
回路80入力端子Aに接続されている。
The output terminals of the upper and lower 4 bits of the multiplication circuit with addition 2 are connected to the input terminal I of the switching circuit 70 and the input terminal for data AL3-0 of the multiplication circuit with addition 3, respectively, and are connected to the output terminal B of the switching circuit 7. , data A of multiplication circuit 3 with addition
It is connected to the input terminal for H3-0, and its output terminal is connected to the input terminal A of the switching circuit 80.

切換回路8の出力端子Yは、加算、減算付き乗算回路4
aのデータA L a−o用の入力端子に接続されてい
る。
The output terminal Y of the switching circuit 8 is connected to the multiplication circuit 4 with addition and subtraction.
It is connected to the input terminal for data AL a-o of a.

加算付き乗算回路3の上位4ビットの出力端子は、切換
回路90入力端子Iに接続され、切換回路9の出力端千
人け、加算、減算付き乗算回路4aのデータBL3−0
用の入力端子に接続されている。
The output terminal of the upper 4 bits of the multiplication circuit 3 with addition is connected to the input terminal I of the switching circuit 90, and the output terminal of the switching circuit 9 is connected to the data BL3-0 of the multiplication circuit 4a with addition and subtraction.
is connected to the input terminal for

次に、上記実施例の動作を説明する〇 第1図において、先ず、切換回路5〜90入力、出力端
子Aが選択されるとともに、加算、減算付き乗算回路4
aが加算を行うように制御される場合には、従来例と同
様に、8ビットの被乗数データa 7−0と8ビットの
乗数データb1−0を乗算し、16ビットの乗算結果P
15−0として出力するので、その詳細な動作説明は省
略する。
Next, the operation of the above embodiment will be explained. In FIG.
When a is controlled to perform addition, the 8-bit multiplicand data a7-0 is multiplied by the 8-bit multiplier data b1-0, as in the conventional example, and the 16-bit multiplication result P
Since it is output as 15-0, a detailed explanation of its operation will be omitted.

次に、実数部a(=[a3.al、at、ao )と虚
数部b(=「b3.bz、b+、bo  )より成る複
素数a 十j bと、実数部c (=[c3.c2.c
l。
Next, we have a complex number a, which consists of a real part a (=[a3.al, at, ao) and an imaginary part b (='b3.bz, b+, bo), and a real part c (=[c3.c2 .c.
l.

co)と虚数部d(=「’d3.dz、dt、do  
)より成る複素数c 十j dを乗算する場合の動作を
説明する。この場合、切換回路5〜90入力、出力端子
Bが選択されるとともに、加算、減算付き乗算回路4a
が減算を行うように制御される。
co) and the imaginary part d (='d3.dz, dt, do
) The operation when multiplying complex numbers c 10 j d will be explained. In this case, the switching circuits 5 to 90 input and output terminal B are selected, and the multiplication circuit 4a with addition and subtraction
is controlled to perform subtraction.

加算付き乗算回路1は、第1図(t)lに示すように、
虚数部す、3−0と虚数部d 3−0を乗算し、この乗
算結果の上位4ビットのデータに4ビットのデータro
oooJを加算するとともに、乗算結果の下位4ビット
のデータに4ビットのデータroo00J、「0000
」を加算し、その加算結果の下位4ビットのデータを切
換回路5,8を介して加算、減算付き乗算回路4aのデ
ータAL3−0用の入力端子に出力し、上位4ビットの
データを切換回路6を介して加算、減算付き乗算回路4
aのデータAH3−0用の入力端子に出力する。
As shown in FIG. 1(t)l, the multiplication circuit 1 with addition has
Multiply the imaginary part 3-0 by the imaginary part d 3-0, and add the 4-bit data ro to the upper 4 bits of the multiplication result.
oooJ is added, and 4-bit data roo00J, "0000" is added to the lower 4-bit data of the multiplication result.
'', the lower 4 bits of the addition result are outputted to the input terminal for data AL3-0 of the multiplication circuit 4a with addition and subtraction via switching circuits 5 and 8, and the upper 4 bits of data are switched. Multiplying circuit 4 with addition and subtraction via circuit 6
Output to the input terminal for data AH3-0 of a.

bo算付き乗算回路2は、実数部a3−Qと虚数部d3
−0を乗算し、この乗算結果の上位4ビットのデータに
4ビットのデータ「0000」を加算するとともに、乗
算結果の下位4ビットのデータに4ビットのデータr0
000J、「0000Jを加算し、その加算結果の下位
4ビットのデータを加算付き乗算回路3のデータAL3
−0用の入力端子に出力し、上位4ビットのデータを切
換回路7を介して加算付き乗算回路3のデータAH3−
o用の入力端子に出力する。
The multiplication circuit 2 with bo calculation has a real part a3-Q and an imaginary part d3.
-0, and add 4-bit data "0000" to the upper 4-bit data of this multiplication result, and add 4-bit data r0 to the lower 4-bit data of the multiplication result.
000J, "0000J are added, and the data of the lower 4 bits of the addition result is the data AL3 of the multiplication circuit with addition 3.
The data AH3- of the multiplication circuit with addition 3 is outputted to the input terminal for -0, and the upper 4 bits of data are passed through the switching circuit 7 to the data AH3-
Output to the input terminal for o.

加算付き乗算回路3u、虚数部b3−0と実数部C3−
0を乗算し、この乗算結果の上位4ビットのデータに加
算付き乗算回路2の演算結果の上位4ビットのデータを
加算するとともに、乗算結果の下位4ビットのデータに
加算付き乗算回路2の演算結果の下位4ビットのデータ
と、切換回路6の出力データr0000Jを加算し、そ
の加算結果の上位4ビットのデータを乗算結果の虚数部
(ad+bc)の上位4ビットのデータLy−nトして
出力し、下位4ビットのデータを虚数部(ad十bc)
の下位4ビットのデータI 3−0として出力する。
Multiplication circuit with addition 3u, imaginary part b3-0 and real part C3-
Multiply by 0, add the upper 4 bits of the operation result of the multiplication circuit 2 with addition to the upper 4 bits of the multiplication result, and add the operation of the multiplication circuit 2 with addition to the lower 4 bits of the multiplication result. The data of the lower 4 bits of the result and the output data r0000J of the switching circuit 6 are added, and the data of the higher 4 bits of the addition result is multiplied by the data of the upper 4 bits of the imaginary part (ad+bc) of the result, Ly-n. Output and convert the lower 4 bits of data to the imaginary part (ad + bc)
The lower 4 bits of data I3-0 are output.

加算、減算付き乗算回路4aは、実数部a 3−。The multiplication circuit 4a with addition and subtraction has a real number part a3-.

と実数部C3−0を乗算し、この乗算結果の上位4ビッ
トのデータから加算付き乗算回路10乗算結果の上位4
ビットのデータを減算するとともに、乗算結果の下位4
ビットのデータから加算付き乗算回路10乗算結果の下
位4ビットのデータと切換回路9の出力データr000
0J’に減算し、その減算結果の上位4ビットのデータ
を乗算結果の実数部(ac−bd)の上位4ビットのデ
ータ几7〜4として出力し、下位4ビットのデータを実
数部(ac−bd)の下位4ビットのデータ几3−0と
して出力する。
is multiplied by the real part C3-0, and from the data of the upper 4 bits of this multiplication result, the multiplication circuit with addition 10 calculates the upper 4 bits of the multiplication result.
While subtracting the bit data, the lower 4 of the multiplication result
From the bit data, the multiplication circuit with addition 10 multiplies the lower 4 bits of the multiplication result and the output data of the switching circuit 9 r000
0J', the upper 4 bits of the subtraction result are output as the upper 4 bits of data 7 to 4 of the real part (ac-bd) of the multiplication result, and the lower 4 bits are output as the real part (ac-bd). -bd) is output as the lower 4 bits of data 3-0.

したがって、上記実施例によれば、3つのDnn打付乗
算回路1〜3と、1つの加算、減算付き乗算回路4aと
、5つの切換回路5〜9により、8ビットの被乗数デー
タa 7−Qと8ビットの乗数データb7−0を乗算す
ることができるとともに、複素数(a+jb)、(c十
jd )を乗算する場合には、a−c−b−dの減算と
、a−d+b−cの加算を実行する回路が不要となる。
Therefore, according to the above embodiment, the three Dnn multiplication circuits 1 to 3, one multiplication circuit with addition and subtraction 4a, and five switching circuits 5 to 9 generate 8-bit multiplicand data a7-Q. can be multiplied by 8-bit multiplier data b7-0, and when multiplying complex numbers (a+jb), (c + jd), subtraction of a-c-b-d and a-d+b-c There is no need for a circuit to perform the addition of .

発明の詳細 な説明したように、本発明は、20ビットの第1のデー
タの下(Qnビットのデータと2nビットの第2のデー
タの下位nビットのデータを乗算する第1の乗算回路と
、nビット全てがrOJのデータ又は第1の乗算回路の
乗算結果の下位nビットのデータを選択的に出力する第
1の切換回路と、nビット全てがrOJのデータ又は第
1の乗算回路の乗算結果の上位nビットのデータを選択
的に出力する第2の切換回路と、第1のデータの上位n
ビットのデータと第2のデータの下位nビットのデータ
を乗算する第2の乗算回路と、nビット全てがrOJの
データ又は第2の乗算回路の乗算結果の上位nビットの
データを選択的に出力する第3の切換回路と、第3の切
換回路の出力データ又は第1の切換回路の出力データを
選択的だ出力する第4の切換回路と、第1のデータの下
位nビットのデータと第2のデータの上位nビットのデ
ータを乗算し、乗算結果の上位nビットのデータに第3
の切換回路の出力データを加算し、乗算結果の下位nビ
ットのデータに前記第2の乗算回路の乗算結果の下位n
ビットのデータと第2の切換回路の出力データを加算す
る第3の乗算回路と、nビット全てが「0」のデータ又
は第3の乗算回路の乗算結果の上位nビットのデータを
選択的に出力する第5の切換回路と、第1のデータの上
位nビットのデータと第2のデータの上1inビットの
データを乗算し、乗算結果の上位nビットのデータに対
し、第2の切換回路の出方データを加算又は減算し、乗
算結果の下位nビットのデータに対し、第4.第5の切
換回路の出力データを加算又は減算する第4の乗算回路
とを備えたので、それぞれ2nビットのデータを乗算す
ることができるとともに、実数部と虚数部がそれぞれn
ビットにより構成される複素数を短時間で演算すること
ができる。
As described in detail, the present invention includes a first multiplication circuit that multiplies the lower n bits of 20 bits of first data (Qn bits of data and 2n bits of second data). , a first switching circuit that selectively outputs data in which all n bits are rOJ or data in the lower n bits of the multiplication result of the first multiplier circuit; a second switching circuit that selectively outputs the upper n bits of data of the multiplication result; and a second switching circuit that selectively outputs the upper n bits of the multiplication result;
A second multiplication circuit that multiplies the data of the bit by the data of the lower n bits of the second data, and a second multiplication circuit that multiplies the data of the bit by the data of the lower n bits of the second data; a third switching circuit that outputs the output data of the third switching circuit or the output data of the first switching circuit; and a fourth switching circuit that selectively outputs the output data of the third switching circuit or the output data of the first switching circuit; and the data of the lower n bits of the first data. Multiply the data of the upper n bits of the second data, and add the data of the upper n bits of the multiplication result to the data of the third
The output data of the switching circuit is added to the data of the lower n bits of the multiplication result, and the lower n bits of the multiplication result of the second multiplication circuit are added.
A third multiplication circuit that adds the bit data and the output data of the second switching circuit, and selectively adds the data in which all n bits are "0" or the data of the upper n bits of the multiplication result of the third multiplication circuit. A fifth switching circuit that outputs data, and a second switching circuit that multiplies the upper n bits of the first data by the upper 1 inch bit of the second data, and outputs the upper n bits of the multiplication result. Add or subtract the output data of the fourth . Since the fourth multiplication circuit adds or subtracts the output data of the fifth switching circuit, it is possible to multiply data of 2n bits each, and the real part and the imaginary part are each n
Complex numbers made up of bits can be calculated in a short time.

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

第1図(a)は、本発明に係る演算装置の一実施例を示
すブロック図、第1図(b)は、第1図(a)の演算装
置の動作説明図、第2図(a)は、第1図(alの加算
付き乗算回路を示すブロック図、第2図(blは、第2
図(a)の加算付き乗算回路の動作説明図、第3図(a
lは、従来の演算装#を示すブロック図、第3図tb)
は、第3図(alの演算装置の動作説明図である。 1〜3・・・加算付き乗算回路、4・・・加算減算付き
乗算回路、5〜9・・・切換回路。 代理人の氏名 弁理士 粟 野 重 孝 ほか1名第 図 υλン (り 拘 ×2 f ×O 均Yl  スゲ1 XsYz  Xx”yi+  Xt’hXry、XaY
t l1Y2 Hs AH2 沼 AH。 Ls Lz AL。 AL。 ’f?Hs KHz  ZHt H0 ZL3 1’L2 ZL。 zL。 6〜9 1抄E3各 j!、こ郁ン 虫 山 α− 危収寿) b2b/b。
FIG. 1(a) is a block diagram showing one embodiment of the arithmetic device according to the present invention, FIG. 1(b) is an explanatory diagram of the operation of the arithmetic device of FIG. 1(a), and FIG. ) is a block diagram showing the multiplication circuit with addition in FIG. 1 (al), and FIG.
An explanatory diagram of the operation of the multiplication circuit with addition shown in Figure (a), Figure 3 (a)
l is a block diagram showing a conventional arithmetic unit #, Fig. 3 tb)
3 is an explanatory diagram of the operation of the arithmetic unit in FIG. Name Patent attorney Shigetaka Awano and 1 other person Fig.
t l1Y2 Hs AH2 Swamp AH. Ls Lz AL. A.L. 'f? Hs KHz ZHt H0 ZL3 1'L2 ZL. zL. 6~9 1st E3 each j! b2b/b.

Claims (1)

【特許請求の範囲】 2nビットの第1のデータの下位nビットのデータと2
nビットの第2のデータの下位nビットのデータを乗算
する第1の乗算回路と、 nビット全てが「0」のデータ又は前記第1の乗算回路
の乗算結果の下位nビットのデータを選択的に出力する
第1の切換回路と、 nビット全てが「0」のデータ又は前記第1の乗算回路
の乗算結果の上位nビットのデータを選択的に出力する
第2の切換回路と、 前記第1のデータの上位nビットのデータと前記第2の
データの下位nビットのデータを乗算する第2の乗算回
路と、 nビット全てが「0」のデータ又は前記第2の乗算回路
の乗算結果の上位nビットのデータを選択的に出力する
第3の切換回路と、 前記第3の切換回路の出力データ又は前記第1の切換回
路の出力データを選択的に出力する第4の切換回路と、 前記第1のデータの下位nビットのデータと前記第2の
データの上位nビットのデータを乗算し、乗算結果の上
位nビットのデータに前記第3の切換回路の出力データ
を加算し、乗算結果の下位nビットのデータに前記第2
の乗算回路の乗算結果の下位nビットのデータと前記第
2の切換回路の出力データを加算する第3の乗算回路と
、 nビット全てが「0」のデータ又は前記第3の乗算回路
の乗算結果の上位nビットのデータを選択的に出力する
第5の切換回路と、 前記第1のデータの上位nビットのデータと前記第2の
データの上位nビットのデータを乗算し、乗算結果の上
位nビットのデータに対し、前記第2の切換回路の出力
データを加算又は減算し、乗算結果の下位nビットのデ
ータに対し、前記第4、第5の切換回路の出力データを
加算又は減算する第4の乗算回路とを有する演算装置。
[Claims] Data of lower n bits of first data of 2n bits and 2
A first multiplier circuit that multiplies data of the lower n bits of the n-bit second data, and selects data in which all n bits are "0" or data of the lower n bits of the multiplication result of the first multiplier circuit. a first switching circuit that selectively outputs data in which all n bits are "0" or data of the upper n bits of the multiplication result of the first multiplication circuit; a second multiplication circuit that multiplies the data of the upper n bits of the first data and the data of the lower n bits of the second data; and the multiplication of data in which all n bits are "0" or the second multiplication circuit. a third switching circuit that selectively outputs data of the upper n bits of the result; and a fourth switching circuit that selectively outputs the output data of the third switching circuit or the output data of the first switching circuit. and multiplying the data of the lower n bits of the first data by the data of the higher n bits of the second data, and adding the output data of the third switching circuit to the data of the higher n bits of the multiplication result. , the second
a third multiplier circuit that adds the data of the lower n bits of the multiplication result of the multiplier circuit and the output data of the second switching circuit; a fifth switching circuit that selectively outputs data of the upper n bits of the result; and a fifth switching circuit that multiplies the data of the upper n bits of the first data by the data of the upper n bits of the second data; Adding or subtracting the output data of the second switching circuit to the upper n-bit data, and adding or subtracting the output data of the fourth and fifth switching circuits to the lower n-bit data of the multiplication result. and a fourth multiplication circuit.
JP30488388A 1988-12-01 1988-12-01 Arithmetic unit Expired - Lifetime JPH0758483B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30488388A JPH0758483B2 (en) 1988-12-01 1988-12-01 Arithmetic unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30488388A JPH0758483B2 (en) 1988-12-01 1988-12-01 Arithmetic unit

Publications (2)

Publication Number Publication Date
JPH02150962A true JPH02150962A (en) 1990-06-11
JPH0758483B2 JPH0758483B2 (en) 1995-06-21

Family

ID=17938426

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30488388A Expired - Lifetime JPH0758483B2 (en) 1988-12-01 1988-12-01 Arithmetic unit

Country Status (1)

Country Link
JP (1) JPH0758483B2 (en)

Also Published As

Publication number Publication date
JPH0758483B2 (en) 1995-06-21

Similar Documents

Publication Publication Date Title
EP0890899B1 (en) Multiplication method and apparatus
EP0328063B1 (en) Absolute value calculating circuit having a single adder
JPS60229140A (en) Double precision multiplier
DE102007014808A1 (en) Multiplier and multiplier and adder unit
US4495593A (en) Multiple bit encoding technique for combinational multipliers
KR100305530B1 (en) Double precision. Single precision. Multiplier capable of internal calculation and complex multiplication.
US3641331A (en) Apparatus for performing arithmetic operations on numbers using a multiple generating and storage technique
US4190894A (en) High speed parallel multiplication apparatus with single-step summand reduction
EP0529755B1 (en) Method and apparatus for negating an operand of a multiplication operation
JPS6222178A (en) Multiplier for multiplying two complex numbers
JPH01267728A (en) Multiplier
JPH0784762A (en) Multiplication circuit
JP3394052B2 (en) Multi-precision calculation method and multi-precision calculation device
SU842796A1 (en) Device for computing fractional rational function
JPS63310023A (en) Signed fixed-point multiplier
JP3460780B2 (en) Numerical arithmetic unit
JP2654062B2 (en) Information processing device
SU824197A1 (en) Computing device
JP3528334B2 (en) Data select circuit
SU1501052A1 (en) Function computing device
JPH0784758A (en) Processor
JPH0758483B2 (en) Arithmetic unit
JPH04328630A (en) Floating point multiplication/division device
JPH01161437A (en) division device
Schwarz et al. Direct Computation of the Polynomial Expression Ax/sup 2/+ Bx+ C