JPH04256017A - Multiplying circuit - Google Patents

Multiplying circuit

Info

Publication number
JPH04256017A
JPH04256017A JP1661891A JP1661891A JPH04256017A JP H04256017 A JPH04256017 A JP H04256017A JP 1661891 A JP1661891 A JP 1661891A JP 1661891 A JP1661891 A JP 1661891A JP H04256017 A JPH04256017 A JP H04256017A
Authority
JP
Japan
Prior art keywords
data
output
input
bits
serially
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
JP1661891A
Other languages
Japanese (ja)
Other versions
JP3237122B2 (en
Inventor
Mitsuharu Oki
光晴 大木
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP01661891A priority Critical patent/JP3237122B2/en
Publication of JPH04256017A publication Critical patent/JPH04256017A/en
Application granted granted Critical
Publication of JP3237122B2 publication Critical patent/JP3237122B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To obtain the multiplying circuit of a small scale having operation speed corresponding to the data rate of a system in the system in which input data is supplied by the way of time division by using one or plural signal lines. CONSTITUTION:This multiplication circuit us provided with a basic unit 6 which sums cumulatively the multiplied result of the data a0 of each bit of a number of one side inputted serially and the preset number of the other side as feeding back carried output successively, and outputs serially the data q0 of a minimum digit, parallel/serial conversion circuits 7, 8 which serial-convert the summed result of this basic unit 6 excepting the minimum digit, and addition circuits 9, 10 which sum cumulatively the data b0, b1 outputted serially from these parallel/serial conversion circuits 7, 8 as feeding back the carried output successively, and output serially the data q1 of the minimum digit.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、例えばシリアルに入力
されるデータに所定の係数を乗算して得られた結果をシ
リアルに出力する乗算回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multiplication circuit that multiplies, for example, serially input data by a predetermined coefficient and serially outputs the obtained result.

【0002】0002

【従来の技術】例えば第1の語長の入力数(‥‥,Ii
+1 ,Ii ,‥‥)と第2の語長の係数との積を求
める乗算回路として、従来は図15に示すように夫々キ
ャリセイブアダー構造の加算器1A,1B,‥‥をその
入力数の語長の個数だけ重ねた構造の乗算回路が知られ
ている。例えば、加算器1Aの最小桁の和出力Si0は
そのままその積の一部となり、その最小桁より上の和出
力Si1〜Sin及び全ての桁上げ出力CAi0〜CA
inは夫々上段の加算器1Bに供給され、この加算器1
Bでは加算器1Aから供給されたデータに入力数のビッ
トIi+1 と係数との部分積を加算することにより、
その積の1桁上の値が求められる。しかしながら、図1
5の乗算回路では入力語長が長ければ長い程に加算器1
A,1B,‥‥の段数が増加して、動作速度が遅くなる
[Prior art] For example, the number of inputs of the first word length (..., Ii
+1, Ii, ...) and the coefficient of the second word length, conventionally, adders 1A, 1B, ..., each having a carry save adder structure, are used as shown in FIG. A multiplier circuit is known in which the number of multiplication circuits is stacked by the number of words corresponding to the word length. For example, the sum output Si0 of the minimum digit of the adder 1A becomes part of the product as it is, and the sum outputs Si1 to Sin above the minimum digit and all carry outputs CAi0 to CA
in are respectively supplied to the upper stage adder 1B, and this adder 1
In B, by adding the partial product of bit Ii+1 of the input number and the coefficient to the data supplied from adder 1A,
The value one digit higher than the product is found. However, Figure 1
In the multiplication circuit No. 5, the longer the input word length, the more the adder 1
The number of stages A, 1B, . . . increases, and the operation speed becomes slower.

【0003】これに対して、図16は動作速度を向上す
るため図15例をパイプライン化した乗算回路を示し、
この図16において、例えば加算器1A,1B,‥‥の
入出力部には夫々パイプライン用のレジスタ群3,4,
5,‥‥が接続されている。この構造により1回の乗算
時間は全加算器1個分程度の処理時間となり、動作速度
は極めて高速化される。ただし、パイプライン化したこ
とにより入力データの上位ビットほど入力を遅らせて前
段の加算器出力との同期をとる必要がある。
On the other hand, FIG. 16 shows a multiplier circuit in which the example shown in FIG. 15 is pipelined in order to improve the operating speed.
In FIG. 16, for example, the input/output portions of adders 1A, 1B, etc. include pipeline register groups 3, 4, respectively.
5,... are connected. With this structure, the time required for one multiplication is approximately the time required for one full adder, and the operation speed is extremely high. However, due to the pipeline structure, it is necessary to delay the input of the more significant bits of the input data to synchronize with the output of the adder in the previous stage.

【0004】0004

【発明が解決しようとする課題】また、システムによっ
ては入力データが1個又は複数の信号ラインを介して時
分割的に伝送され、そのデータレートが全加算器の数個
分程度の処理時間と同等の場合がある。しかしながら、
図16の乗算回路において、入力データレートが例えば
全加算器3個分程度の処理時間と同等とすると、この乗
算回路では演算速度が必要な仕様の3倍になるため、処
理能力が充分に活かされないと共に回路構成に無駄があ
る不都合がある。即ち、演算速度をその入力データレー
トに応じて低くすれば、回路規模をより小型化できる見
込みがある。
[Problems to be Solved by the Invention] Also, in some systems, input data is transmitted in a time-division manner via one or more signal lines, and the data rate is equivalent to the processing time of several full adders. There are cases where they are equivalent. however,
In the multiplication circuit shown in Fig. 16, if the input data rate is equivalent to the processing time of three full adders, for example, the calculation speed of this multiplication circuit will be three times the required specification, so the processing capacity will not be fully utilized. In addition, there is a disadvantage that the circuit configuration is wasteful. That is, if the calculation speed is lowered according to the input data rate, there is a possibility that the circuit scale can be further reduced.

【0005】入力データを時分割的に伝送するシステム
の一例につき図17を参照して説明する。先ず図17A
の例は、1本の信号線で語長が3ビットのデータ列A,
B,C,‥‥を順次伝送するものである。即ち、3ビッ
トのデータを夫々A=(A2,A1,A0),B=(B
2,B1,B0),C=(C2,C1,C0),‥‥と
すると、その1本の信号線を1サイクルに1ビットずつ
の伝送速度でA0,A1,A2,B0,B1,B2,C
0,‥‥の順序でデータが伝送される。
An example of a system for time-divisionally transmitting input data will be described with reference to FIG. 17. First, Figure 17A
In this example, a data string A with a word length of 3 bits is generated using one signal line.
B, C, . . . are transmitted sequentially. That is, 3 bits of data are respectively A=(A2, A1, A0), B=(B
2, B1, B0), C=(C2, C1, C0),..., then one signal line is A0, A1, A2, B0, B1, B2 at a transmission rate of 1 bit per cycle. ,C
Data is transmitted in the order of 0, . . . .

【0006】また、図17Bの例は、語長6ビットのデ
ータ列A,B,C,‥‥を上位3ビットと下位3ビット
とに分けて2本の信号線で伝送するものである。即ち、
6ビットのデータを夫々A=(A5,A4,A3,A2
,A1,A0),B=(B5,B4,B3,B2,B1
,B0),C=(C5,C4,C3,C2,C1,C0
),‥‥とすると、その2本の内の第1の信号線を1サ
イクルに1ビットずつの伝送速度でA0,A1,A2,
B0,B1,B2,C0,‥‥の順序でデータが伝送さ
れ、第2の信号線をその第1の信号線に対して3サイク
ル遅れてA3,A4,A5,B3,B4,B5,C3,
‥‥の順序でデータが伝送される。
Further, in the example shown in FIG. 17B, a data string A, B, C, . . . with a word length of 6 bits is divided into upper 3 bits and lower 3 bits and transmitted over two signal lines. That is,
Each 6-bit data is A=(A5, A4, A3, A2
, A1, A0), B=(B5, B4, B3, B2, B1
, B0), C=(C5, C4, C3, C2, C1, C0
),..., then the first signal line of the two is A0, A1, A2, A0, A1, A2, at a transmission rate of 1 bit per cycle.
Data is transmitted in the order of B0, B1, B2, C0,..., and the second signal line is transmitted 3 cycles later than the first signal line, A3, A4, A5, B3, B4, B5, C3. ,
Data is transmitted in the order of...

【0007】同様に、図17Cの例は夫々が語長9ビッ
トのデータ列A,B,C,‥‥を上位3ビット、中位3
ビット及び下位3ビットに分けて3本の信号線で伝送す
るものである。例えば、データAを(A8,‥‥,A1
,A0)とすると、下位3ビット(A0,A1,A2)
が第1の信号線で伝送され、それから3サイクル遅れて
中位3ビット(A3,A4,A5)が第2の信号線で伝
送され、それから更に3サイクル遅れて上位3ビット(
A6,A7,A8)が第3の信号線で伝送される。 また、データBを(B8,‥‥,B1,B0)とすると
、データ(Aj,Aj+1,Aj+2)に続いて各信号
線でデータ(Bj,Bj+1,Bj+2)が伝送され、
それに続いてデータCの各ビットが伝送される。
Similarly, in the example shown in FIG. 17C, data strings A, B, C, .
The data is divided into bits and lower three bits and transmitted through three signal lines. For example, data A is (A8,...,A1
, A0), the lower 3 bits (A0, A1, A2)
is transmitted on the first signal line, then the middle three bits (A3, A4, A5) are transmitted on the second signal line with a delay of three cycles, and then the upper three bits (A3, A4, A5) are transmitted on the second signal line with a further three cycles delay.
A6, A7, A8) are transmitted on the third signal line. Furthermore, if data B is (B8, . . . , B1, B0), then data (Aj, Aj+1, Aj+2) is transmitted followed by data (Bj, Bj+1, Bj+2) on each signal line,
Subsequently, each bit of data C is transmitted.

【0008】図17の伝送方式を一般化すると、nを3
の整数倍として、語長nのデータ列A,B,C,‥‥を
n/3本の信号線で時分割的に伝送することができる。 この場合のデータ列のデータ構造は次の数1のようにな
っている。ただし、An−1,Bn−1等が最大桁(M
SB)であり、A0,B0等が最小桁(LSB)である
[0008] Generalizing the transmission system shown in FIG. 17, n is 3
Data strings A, B, C, . . . of word length n can be transmitted in a time-division manner over n/3 signal lines as an integral multiple of n. The data structure of the data string in this case is as shown in Equation 1 below. However, An-1, Bn-1, etc. are the maximum digit (M
SB), and A0, B0, etc. are the least significant digits (LSB).

【0009】[0009]

【数1】 A=(An−1,An−2,‥‥,A1,A0)B=(
Bn−1,Bn−2,‥‥,B1,B0)C=(Cn−
1,Cn−2,‥‥,C1,C0)‥‥‥‥‥‥
[Equation 1] A=(An-1, An-2,..., A1, A0) B=(
Bn-1, Bn-2,..., B1, B0)C=(Cn-
1, Cn-2,..., C1, C0)...

【0010】また、数1のデータ列を図18に示すよう
に、2×n/6本の信号線を用いて時分割的に伝送する
こともできる。図18Aは、語長6ビットのデータ列A
,B,C,‥‥を2本の信号線を用いて伝送する場合を
示し、図18Bは、語長12ビットのデータ列A,B,
C,‥‥を4本の信号線で伝送する場合を示し、図18
Cは、語長18ビットのデータ列A,B,C,‥‥を6
本の信号線で伝送する場合を示す。この外にも例えばn
を4の整数倍として、語長nビットのデータ列をn/4
本の信号線で伝送するような方式等も考えることができ
る。
[0010] Furthermore, as shown in FIG. 18, the data string of Equation 1 can be transmitted in a time-division manner using 2×n/6 signal lines. FIG. 18A shows a data string A with a word length of 6 bits.
, B, C, ... are transmitted using two signal lines, and FIG. 18B shows a case in which data strings A, B,
Figure 18 shows the case where C,... is transmitted using four signal lines.
C consists of 6 data strings A, B, C, etc. with a word length of 18 bits.
This shows the case of transmission using a main signal line. In addition to this, for example, n
is an integer multiple of 4, and the data string with a word length of n bits is n/4.
It is also possible to consider a method of transmitting signals using actual signal lines.

【0011】本発明は斯かる点に鑑み、図17及び図1
8に示すように入力データが1本又は複数の信号線を用
いて時分割的に供給されるようなシステムにおいて、こ
のシステムのデータレートに応じた演算速度を有する回
路規模の小さな乗算回路を提供することを目的とする。
[0011] In view of this point, the present invention
As shown in 8, in a system where input data is supplied in a time-sharing manner using one or more signal lines, we provide a small-scale multiplication circuit that has an operation speed that corresponds to the data rate of this system. The purpose is to

【0012】0012

【課題を解決するための手段】本発明による乗算回路は
、例えば図1及び図2に示す如く、シリアルに入力され
る一方の数の各ビットのデータa0と予め設定されてい
る他方の数(Cj+2,Cj+1,Cj)との乗算結果
を順次桁上げ出力をフィードバックしながら累加算して
最小桁のデータq0をシリアルに出力する1段又は並列
接続された複数段の演算ユニット(6)と、この1段又
は複数段の演算ユニット(6)の最小桁を除く累加算結
果をシリアル変換するパラレル/シリアル変換回路(7
,8)と、このパラレル/シリアル変換回路(7,8)
よりシリアルに出力されるデータb0,b1を順次桁上
げ出力をフィードバックしながら累加算して最小桁のデ
ータq1をシリアルに出力する加算回路(9,10)と
を有するものである。
[Means for Solving the Problems] A multiplication circuit according to the present invention, as shown in FIGS. 1 and 2, has data a0 of each bit of one number serially input and the other number ( Cj+2, Cj+1, Cj), and a one-stage or parallel-connected multi-stage arithmetic unit (6) that cumulatively adds the multiplication results with Cj+2, Cj+1, Cj) while sequentially feeding back the carry output, and serially outputs the minimum digit data q0; A parallel/serial conversion circuit (7) that serially converts the cumulative addition result excluding the minimum digit of this one-stage or multiple-stage arithmetic unit (6).
, 8) and this parallel/serial conversion circuit (7, 8)
It has an adder circuit (9, 10) that cumulatively adds the data b0 and b1 that are serially output while sequentially feeding back the carry output, and serially outputs the minimum digit data q1.

【0013】[0013]

【作用】斯かる本発明によれば、シリアルに入力される
一方の数の語長がmビット、予め設定されている他方の
数の語長がnビットであるとすると、その一方の数が1
ビット入力される毎にn個の部分積(a0・Cj等)が
発生すると共に、その部分積の桁は前のサイクルの部分
積よりも1桁高い。そこで、その演算ユニット(6)で
各部分積を1ビット下側にシフトしたデータを新たに得
られた部分積に順次加算することにより、全体の積の下
位ビット側が計算される。この場合、その演算ユニット
(6)は(n−1)ビットの数同士をパイプライン方式
で加算するだけでよいため、例えば(n−1)個の全加
算器で構成することができる。
[Operation] According to the present invention, if the word length of one serially input number is m bits and the word length of the other preset number is n bits, then the one number is 1
Every time a bit is input, n partial products (a0, Cj, etc.) are generated, and the digit of the partial product is one digit higher than the partial product of the previous cycle. Therefore, the lower bit side of the entire product is calculated by sequentially adding data obtained by shifting each partial product downward by one bit to the newly obtained partial product in the arithmetic unit (6). In this case, since the arithmetic unit (6) only needs to add (n-1) bits together in a pipeline manner, it can be configured with, for example, (n-1) full adders.

【0014】また、そのシリアルに入力される一方の数
の入力が完了した後に全体の積の上位ビット側がその加
算回路(9,10)により順次計算されるが、この加算
回路は例えば1個の全加算器で構成することができ、全
体として例えばn個の全加算器で乗算回路を構成するこ
とができる。これに対して従来の図16の回路構成では
n×m個の全加算器が必要であり、本発明によれば時分
割されて伝送される入力データをそのままのデータレー
トで処理できると共に、回路規模を略1/m程度にする
ことができる。
[0014] Furthermore, after the input of one of the serially input numbers is completed, the high-order bit side of the entire product is calculated sequentially by the adder circuit (9, 10). It can be configured with full adders, and the multiplication circuit can be configured with, for example, n full adders as a whole. On the other hand, the conventional circuit configuration shown in FIG. 16 requires n×m full adders, but according to the present invention, input data transmitted in a time-divided manner can be processed at the same data rate, and the circuit configuration shown in FIG. The scale can be approximately 1/m.

【0015】[0015]

【実施例】以下、本発明の第1実施例につき図1〜図6
を参照して説明しよう。この第1実施例は、順次シリア
ルに供給される語長3ビットの入力データと語長3ビッ
トの係数データとを乗算して語長6ビットの積を得て、
この積をその入力データに同期して順次シリアルに出力
するものであり、その入力データは図17Aに示す形式
で時分割されて供給されるものとする。
[Embodiment] The following is a first embodiment of the present invention shown in FIGS. 1 to 6.
Let's explain with reference to. In this first embodiment, input data with a word length of 3 bits, which are serially supplied, is multiplied by coefficient data with a word length of 3 bits to obtain a product with a word length of 6 bits,
This product is sequentially output serially in synchronization with the input data, and the input data is time-divided and supplied in the format shown in FIG. 17A.

【0016】図1は本例の乗算回路を示し、この図1に
おいて、6は基本ユニットであり、この基本ユニット6
の入力端子INに各3ビットの入力データa0をシリア
ルに順次供給し、この基本ユニット6の入力端子Q0,
R0,Q1及びR1に値が“0”のデータを供給する。 この基本ユニット6の出力端子OUよりその6ビットの
積の下位3ビットのデータq0がシリアルに出力される
と共に、出力端子U1,T1,U2及びT2より夫々中
間データd0,d1,d2及びd3が出力される。これ
ら中間データの内、データd0及びd2を3入力の第1
のパラレル/シリアル(P/S)変換器7の上位側の2
ビットの入力部に供給し、データd1及びd3を第2の
パラレル/シリアル(P/S)変換器8の上位側の2ビ
ットの入力部に供給し、それらP/S変換器7及び8の
最小桁の入力部に夫々“0”のデータを供給する。これ
らP/S変換器7及び8は、夫々入力部に供給されたデ
ータを上位ビット側からシリアルにデータb0及びb1
として出力する。
FIG. 1 shows the multiplication circuit of this example. In FIG. 1, 6 is a basic unit;
Each 3-bit input data a0 is serially supplied to the input terminal IN of the basic unit 6, and the input terminals Q0,
Data with a value of "0" is supplied to R0, Q1, and R1. Data q0 of the lower 3 bits of the 6-bit product is serially output from the output terminal OU of this basic unit 6, and intermediate data d0, d1, d2 and d3 are output from the output terminals U1, T1, U2 and T2, respectively. Output. Among these intermediate data, data d0 and d2 are input to the first of three inputs.
2 on the upper side of the parallel/serial (P/S) converter 7
data d1 and d3 are supplied to the upper 2-bit input part of the second parallel/serial (P/S) converter 8, Data of "0" is supplied to each input section of the minimum digit. These P/S converters 7 and 8 serially convert the data supplied to the input section into data b0 and b1 from the upper bit side.
Output as .

【0017】9は全加算器(Full Adder)を
示し、この全加算器9の2個の入力端子にそれら2個の
データb0及びb1を供給し、この全加算器9の桁上げ
出力b2を1クロック遅延用のレジスタ10を介してこ
の全加算器9の残りの1個の入力端子にデータb3とし
て帰還する。この全加算器9の和出力端子Sよりその積
の上位3ビットのデータq1がシリアルに出力される。
Reference numeral 9 denotes a full adder, which supplies the two input terminals with these two data b0 and b1, and receives the carry output b2 of the full adder 9. The data is fed back to the remaining input terminal of the full adder 9 as data b3 via the one-clock delay register 10. The sum output terminal S of the full adder 9 serially outputs data q1 of the upper three bits of the product.

【0018】図2は図1で使用されている基本ユニット
6の構成例を示し、この図6において、Cj,Cj+1
及びCj+2は夫々本例の3ビットの係数データCの1
桁目,2桁目及び3桁目のビットに対応する。これら各
ビットデータは予め設定されているものであり、これら
各ビットデータCj,Cj+1及びCj+2を夫々アン
ドゲート11,12及び13の一方の入力端子に供給し
、これらアンドゲート11〜13の他方の入力端子に入
力端子INを共通に接続する。これらアンドゲート11
〜13より夫々入力データa0と係数データCの各ビッ
トとの積であるa0・Cj〜a0・Cj+2が出力され
る。
FIG. 2 shows an example of the configuration of the basic unit 6 used in FIG. 1. In FIG. 6, Cj, Cj+1
and Cj+2 are 1 of the 3-bit coefficient data C in this example, respectively.
Corresponds to the bits in the 1st, 2nd, and 3rd digits. Each of these bit data is set in advance, and each of these bit data Cj, Cj+1 and Cj+2 is supplied to one input terminal of AND gates 11, 12 and 13, respectively, and the other input terminal of these AND gates 11 to 13 is supplied. Commonly connect the input terminals IN to the input terminals. These and gates 11
.about.13 outputs a0.Cj to a0.Cj+2, which are the products of input data a0 and each bit of coefficient data C, respectively.

【0019】14〜17は夫々2入力のデータセレクタ
を示し、アンドゲート11及びデータセレクタ14,1
5の出力端子を夫々一方の全加算器18の3個の入力端
子に接続し、データセレクタ14及び15の一方の入力
端子に夫々入力端子Q0及びR0を接続し、アンドゲー
ト12及びデータセレクタ16,17の出力端子を夫々
他方の全加算器19の3個の入力端子に接続し、データ
セレクタ16及び17の一方の入力端子に入力端子Q1
及びR1を接続する。また、一方の全加算器18の桁上
げ出力c0をレジスタ20Aを介して中間データd0と
して出力端子U1及びデータセレクタ14の他方の入力
端子に供給し、この全加算器18の和出力を出力端子O
Uに供給し、他方の全加算器19の和出力c1をレジス
タ20Bを介して中間データd1として出力端子T1及
びデータセレクタ15の他方の入力端子に供給する。そ
して、この全加算器19の桁上げ出力c2をレジスタ2
0Cを介して中間データd2として出力端子U2及びデ
ータセレクタ16の他方の入力端子に供給し、アンドゲ
ート13の出力データc3をレジスタ20Dを介して中
間データd3として出力端子T2及びデータセレクタ1
7の他方の入力端子に供給する。
Reference numerals 14 to 17 each indicate two-input data selectors, and the AND gate 11 and the data selectors 14 and 1
5 are connected to three input terminals of one full adder 18, input terminals Q0 and R0 are connected to one input terminal of data selectors 14 and 15, respectively, and AND gate 12 and data selector 16 are connected. , 17 are respectively connected to the three input terminals of the other full adder 19, and one input terminal of the data selectors 16 and 17 is connected to the input terminal Q1.
and R1 are connected. Further, the carry output c0 of one full adder 18 is supplied as intermediate data d0 to the output terminal U1 and the other input terminal of the data selector 14 via the register 20A, and the sum output of this full adder 18 is supplied to the output terminal O
The sum output c1 of the other full adder 19 is supplied to the output terminal T1 and the other input terminal of the data selector 15 as intermediate data d1 via the register 20B. Then, the carry output c2 of this full adder 19 is sent to the register 2.
0C as intermediate data d2 to output terminal U2 and the other input terminal of data selector 16, and output data c3 of AND gate 13 as intermediate data d3 via register 20D to output terminal T2 and data selector 1.
7 to the other input terminal.

【0020】入力データa0として3ビットの入力デー
タI(=(I2,I1,I0))を供給し、3ビットの
係数Cとして係数(C2,C1,C0)を設定した場合
の本例の乗算回路における計算過程につき説明するに、
その乗算で得られる積Oは次のような6ビットの数とな
る。
Multiplication in this example when 3-bit input data I (=(I2, I1, I0)) is supplied as input data a0 and coefficients (C2, C1, C0) are set as 3-bit coefficient C. To explain the calculation process in the circuit,
The product O obtained by this multiplication is a 6-bit number as shown below.

【0021】[0021]

【数2】 O=C×I=(O5,O4,O3,O2,O1,O0)
その入力データIと係数Cとの乗算は図3のように3個
の部分積の和で表すことができる。また、本例では、図
4Aに示すように入力データa0として3ビットの入力
データIがシリアルに供給され、図4Bに示すように下
位3ビットの出力データq0として積Oの下位3ビット
がシリアルに出力され、それに続いて図4Cに示すよう
に上位3ビットの出力データq1として積Oの上位3ビ
ットがシリアルに出力される。本例では図3の計算を図
5A〜Fに示す計算に分解して実行するが、先ず、図3
の計算が図5A〜Fに示す計算と等価であることを示す
[Math. 2] O=C×I=(O5, O4, O3, O2, O1, O0)
The multiplication of the input data I and the coefficient C can be expressed as the sum of three partial products as shown in FIG. In addition, in this example, as shown in FIG. 4A, 3-bit input data I is serially supplied as input data a0, and as shown in FIG. 4B, the lower 3 bits of product O are serially supplied as output data q0 of lower 3 bits. Subsequently, as shown in FIG. 4C, the upper three bits of the product O are serially output as the upper three bits of output data q1. In this example, the calculation in Figure 3 is broken down into the calculations shown in Figures 5A to 5F.
shows that the calculations are equivalent to those shown in FIGS. 5A-F.

【0022】即ち、図5Aの計算は図3の最初の部分積
(C2・I0,C1・I0,C0・I0)に単に(0,
0)と(0,0)とを加算したものである。この場合に
は値は変化しないが、形式的に3ビット目及び2ビット
目への桁上げの対を(Z2,X1)とする。また、桁上
げを除いた和の最小桁が積Oの最小桁(LSB)である
O0であるため、その和を(C2・I0,Y1,O0)
と置くことができる。このように加算結果を桁上げと和
とに分離して表現することを冗長な表現という。そして
、その冗長な表現の上位2ビットを、図5Bに示すよう
に図3の中間の部分積(C2・I1,C1・I1,C0
・I1)に加算して、この加算結果も桁上げ(Z3,X
2)と和(C2・I1,Y2,O1)とで冗長に表現す
る。この和のLSBは積Oの2ビット目のデータに等し
い。
That is, the calculation in FIG. 5A simply adds (0,
0) and (0,0). In this case, the value does not change, but formally the pair of carries to the third and second bits is (Z2, X1). Also, since the minimum digit of the sum excluding carry is O0, which is the least digit (LSB) of the product O, the sum is (C2・I0, Y1, O0)
You can put it as Expressing the addition result separately into a carry and a sum in this way is called redundant expression. Then, as shown in FIG. 5B, the upper two bits of the redundant expression are converted into the intermediate partial product (C2・I1, C1・I1, C0
・I1), and this addition result is also carried (Z3,
2) and the sum (C2・I1, Y2, O1). The LSB of this sum is equal to the second bit data of the product O.

【0023】また、この冗長な表現の上位2ビットを、
図5Cに示すように図3の最後の部分積(C2・I2,
C1・I2,C0・I2)に加算して、この加算結果も
桁上げ(Z4,X3)と和(C2・I2,Y3,O2)
とで冗長に表現する。この和のLSBが積Oの3ビット
目であるが、積Oの上位3ビットが冗長に表現されてい
るため、この冗長な表現を通常の表現に戻す必要がある
。そこで、図5Cの桁上げのLSBであるX3と和の2
ビット目であるY3とを抜きだして、図5Dに示すよう
に“0”に加算して、2ビットの和(W4,O3)を得
る。更に、この2ビットの和の2ビット目であるW4と
図5CのデータC2・I2及びZ4とを、図5Eに示す
ように加算して2ビットの和(W5,O4)を得た後に
、この和の2ビット目であるW5に形式的に図5Fに示
すように2個の“0”を加算することにより和(0,O
5)を得る。最後の和の2ビット目の“0”はダミービ
ットである。図5D〜Fで得られた和のLSBが夫々積
Oの4ビット目〜6ビット目である。
[0023] Furthermore, the upper two bits of this redundant expression are
As shown in FIG. 5C, the last partial product (C2・I2,
C1・I2, C0・I2), and this addition result is also carried (Z4, X3) and sum (C2・I2, Y3, O2)
It is expressed redundantly. The LSB of this sum is the third bit of product O, but since the upper three bits of product O are expressed redundantly, it is necessary to return this redundant expression to normal expression. Therefore, X3, which is the LSB of the carry in Figure 5C, and 2 of the sum
The bit Y3 is extracted and added to "0" as shown in FIG. 5D to obtain a 2-bit sum (W4, O3). Furthermore, after adding W4, which is the second bit of this 2-bit sum, and data C2, I2, and Z4 of FIG. 5C as shown in FIG. 5E to obtain a 2-bit sum (W5, O4), By adding two “0”s to W5, which is the second bit of this sum, as formally shown in FIG. 5F, the sum (0, O
5) is obtained. The second bit “0” in the final sum is a dummy bit. The LSBs of the sums obtained in FIGS. 5D to 5F are the 4th to 6th bits of the product O, respectively.

【0024】図6を参照して図1及び図2の乗算回路が
図5に示す計算を実行する動作について説明するに、図
2の係数Cj,Cj+1,Cj+2として夫々C0,C
1,C2を設定する。先ず1サイクル目に入力データa
0(図6A)としてデータI0が基本ユニット6に供給
され、アンドゲート11,12,13より夫々C0・I
0,C1・I0,C2・I0が出力される。2入力のデ
ータセレクタ14〜17には夫々外部からコントロール
信号を与えて入力端子Q0〜R1側を選択するようにす
る。入力端子Q0〜R1には夫々“0”が供給されてい
るので、全加算器18及び19では図5Aの加算が実行
され、図6B〜Fに示すように基本ユニット6の出力デ
ータq0,全加算器18の桁上げ出力c0,全加算器1
9の和出力c1,全加算器19の桁上げ出力c2及びア
ンドゲート13の出力c3は夫々O0,X1,Y1,Z
2,C2・I0になる。
Referring to FIG. 6, the operation of the multiplication circuits of FIGS. 1 and 2 to execute the calculations shown in FIG. 5 will be described.
1, set C2. First, in the first cycle, input data a
0 (FIG. 6A), data I0 is supplied to the basic unit 6, and the AND gates 11, 12, and 13 output C0 and I
0, C1·I0, and C2·I0 are output. A control signal is applied to each of the two-input data selectors 14-17 from the outside to select the input terminals Q0-R1. Since "0" is supplied to the input terminals Q0 to R1, the full adders 18 and 19 execute the addition shown in FIG. 5A, and the output data q0 of the basic unit 6, the total Carry output c0 of adder 18, full adder 1
9, the carry output c2 of the full adder 19, and the output c3 of the AND gate 13 are O0, X1, Y1, Z, respectively.
2, becomes C2・I0.

【0025】2サイクル目には、出力c0〜c3が夫々
レジスタ20A〜20Dに保持されて出力d0〜d3と
なり、入力データa0としてデータI1が基本ユニット
6に供給され、アンドゲート11,12,13より夫々
C0・I1,C1・I1,C2・I1が出力される。こ
れ以後のサイクルでは2入力のデータセレクタ14〜1
7には夫々外部からコントロール信号を与えてレジスタ
20A〜20Dの出力を選択するようにする。これによ
り全加算器18及び19では図5Bの加算が実行され、
出力データq0として積Oの2ビット目であるO1が出
力され、出力c0〜c3は夫々X2,Y2,Z3,C2
・I1になる。同様に3サイクル目には、出力データq
0として積Oの3ビット目であるO2が出力され、出力
c0〜c3は夫々X3,Y3,Z4,C2・I2になる
In the second cycle, the outputs c0 to c3 are held in the registers 20A to 20D and become the outputs d0 to d3, and the data I1 is supplied to the basic unit 6 as the input data a0, and the AND gates 11, 12, 13 C0.I1, C1.I1, and C2.I1 are output from each of them. In subsequent cycles, 2-input data selectors 14 to 1
A control signal is applied to each of the registers 7 from the outside to select the output of the registers 20A to 20D. As a result, the addition shown in FIG. 5B is executed in the full adders 18 and 19,
O1, which is the second bit of product O, is output as output data q0, and outputs c0 to c3 are X2, Y2, Z3, and C2, respectively.
・It becomes I1. Similarly, in the third cycle, output data q
The third bit O2 of the product O is output as 0, and the outputs c0 to c3 become X3, Y3, Z4, and C2·I2, respectively.

【0026】4サイクル目には、P/S変換器7及び8
の入力部の上位2ビットにレジスタ20A〜20Dを介
してX3,Y3,Z4,C2・I2が供給され、P/S
変換器7及び8の入力部のLSBに“0”が供給される
(図6G〜I及び図6K〜M参照)。従って、P/S変
換器7からの出力データb0は図6Jに示すように、4
サイクル目,5サイクル目及び6サイクル目に夫々X3
,Z4及び“0”となり、P/S変換器8からの出力デ
ータb1は図6Nに示すように、4サイクル目,5サイ
クル目及び6サイクル目に夫々Y3,C2・I2及び“
0”となる。そして、その4サイクル目には出力データ
b0及びb1が夫々X3及びY3になると共に、レジス
タ10の保持値は“0”であるため、全加算器9では図
5Dの計算が実行され、全加算器9の和出力q1として
積Oの4ビット目のデータO3が得られる。
In the fourth cycle, P/S converters 7 and 8
X3, Y3, Z4, C2 and I2 are supplied to the upper two bits of the input section of P/S via registers 20A to 20D.
A "0" is applied to the LSB of the inputs of converters 7 and 8 (see FIGS. 6G-I and 6K-M). Therefore, the output data b0 from the P/S converter 7 is 4 as shown in FIG. 6J.
X3 in each cycle, 5th cycle, and 6th cycle
.
Then, in the fourth cycle, the output data b0 and b1 become X3 and Y3, respectively, and the value held in the register 10 is "0", so the full adder 9 performs the calculation in FIG. 5D. This is executed, and the fourth bit data O3 of the product O is obtained as the sum output q1 of the full adder 9.

【0027】同様に、全加算器9においては5サイクル
目及び6サイクル目に夫々図5E及びFに示す計算が実
行され、出力b1,b3,q1,b2は図6N〜Qに示
すように変化する。なお、6サイクル目には全加算器9
において、(W5+0+0)が実行されるが、この計算
では桁上げは発生しないので、桁上げ出力b2は乗算が
終了した時点で常に“0”にリセットされている。従っ
て、次の乗算の4サイクル目ではレジスタ10に常に“
0”が保持されることになる。
Similarly, in the full adder 9, the calculations shown in FIGS. 5E and F are executed in the 5th and 6th cycles, respectively, and the outputs b1, b3, q1, and b2 change as shown in FIGS. 6N to Q. do. In addition, in the 6th cycle, the full adder 9
, (W5+0+0) is executed, but since no carry occurs in this calculation, the carry output b2 is always reset to "0" when the multiplication is completed. Therefore, in the fourth cycle of the next multiplication, register 10 is always “
0'' will be held.

【0028】本例の乗算回路の動作で注目すべき点は、
基本ユニット6は1〜3サクル目でのみ使用され、全加
算器9は4〜6サイクル目でのみ使用されていることで
ある。これにより、図17Aに示すように連続的に入力
されて来る語長3ビットの入力データに次々と語長3ビ
ットの係数Cを乗算し、この乗算結果である6ビットの
積Oを2本の信号ラインを介して連続的に出力すること
ができる。
The points to note in the operation of the multiplication circuit of this example are as follows:
The basic unit 6 is used only in the 1st to 3rd cycles, and the full adder 9 is used only in the 4th to 6th cycles. As a result, as shown in FIG. 17A, input data with a word length of 3 bits that is input continuously is multiplied one after another by a coefficient C with a word length of 3 bits, and the 6-bit product O, which is the result of this multiplication, is It can be output continuously through the signal line.

【0029】次に、本発明の第2実施例につき図7〜図
10を参照して説明する。この第2実施例は、順次2本
の入力ラインを介してシリアルに供給される語長6ビッ
トの入力データI(I5,I4,‥‥,I0)と語長3
ビットの係数データC(C2,C1,C0)とを乗算し
て語長9ビットの積O(O8,O7,‥‥,O0)を得
て、この積をその入力データに同期して3本の出力ライ
ンを介して順次シリアルに出力するものであり、その入
力データは図17Bに示す形式で2本の信号ラインを介
して時分割されて供給されるものとする。また、図7に
おいて図1と対応する部分には同一符号を付してその詳
細説明を省略する。
Next, a second embodiment of the present invention will be explained with reference to FIGS. 7 to 10. This second embodiment consists of input data I (I5, I4, . . . , I0) with a word length of 6 bits that is serially supplied via two input lines, and
Multiply the bit coefficient data C (C2, C1, C0) to obtain the product O (O8, O7,..., O0) with a word length of 9 bits, and synchronize this product with the input data to create three lines. It is assumed that the input data is sequentially output serially through the output lines of , and the input data is time-divided and supplied through two signal lines in the format shown in FIG. 17B. Further, in FIG. 7, parts corresponding to those in FIG. 1 are given the same reference numerals, and detailed explanation thereof will be omitted.

【0030】図7は本例の乗算回路を示し、この図7に
おいて、6A及び6Bは夫々図1の基本ユニット6と同
一構成の基本ユニットである。そして、基本ユニット6
A及び6Bの入力端子INに夫々入力データa0及びa
1を供給し、第1の基本ユニット6Aの入力端子Q0,
R0,Q1,R1に“0”のデータを供給し、この基本
ユニット6Aの出力端子U1,T1,U2,T2を夫々
第2の基本ユニット6Bの入力端子Q0,R0,Q1,
R1に接続し、この基本ユニット6Bの出力端子U1及
びU2を第1のP/S変換器7の上位2ビットの入力端
子に接続し、この基本ユニット6Bの出力端子T1及び
T2を第2のP/S変換器8の上位2ビットの入力端子
に接続する。他の構成は図1と同じである。
FIG. 7 shows the multiplication circuit of this example. In FIG. 7, 6A and 6B are basic units having the same configuration as the basic unit 6 of FIG. 1, respectively. And basic unit 6
Input data a0 and a to input terminals A and 6B, respectively.
1 to the input terminals Q0, of the first basic unit 6A,
"0" data is supplied to R0, Q1, R1, and the output terminals U1, T1, U2, T2 of this basic unit 6A are connected to the input terminals Q0, R0, Q1, of the second basic unit 6B, respectively.
R1, the output terminals U1 and U2 of this basic unit 6B are connected to the upper 2 bit input terminals of the first P/S converter 7, and the output terminals T1 and T2 of this basic unit 6B are connected to the second Connect to the input terminal of the upper 2 bits of the P/S converter 8. The other configurations are the same as in FIG.

【0031】図8A〜Eに示すように、本例では最初の
3サイクルにデータa0として入力データIの下位3ビ
ット(I0,I1,I2)が供給され、それに続く3サ
イクルにデータa1として入力データIの上位3ビット
(I3,I4,I5)が供給され、最初の3サイクルに
基本ユニット6Aの出力端子OUよりデータq0として
積Oの下位3ビット(O0,O1,O2)が出力され、
それに続く3サイクルに基本ユニット6Bの出力端子O
Uよりデータq1として積Oの中位3ビット(O3,O
4,O5)が出力され、それに続く3サイクルに全加算
器9の和出力端子Sよりデータq2として積Oの上位3
ビット(O6,O7,O8)が出力される。この積Oは
、図9に示すように、入力データIと係数Cとを乗算す
ることにより求められるものである。
As shown in FIGS. 8A to 8E, in this example, the lower three bits (I0, I1, I2) of input data I are supplied as data a0 in the first three cycles, and are input as data a1 in the following three cycles. The upper three bits (I3, I4, I5) of data I are supplied, and in the first three cycles, the lower three bits (O0, O1, O2) of the product O are output as data q0 from the output terminal OU of the basic unit 6A.
In the following three cycles, the output terminal O of the basic unit 6B
The middle 3 bits of the product O (O3, O
4, O5) is output, and in the following three cycles, the top 3 of the product O is output as data q2 from the sum output terminal S of the full adder 9.
Bits (O6, O7, O8) are output. This product O is obtained by multiplying the input data I and the coefficient C, as shown in FIG.

【0032】本例でも、図9の演算が図10A〜Iに示
す部分積の加算に分解されて実行される。この場合、図
10A〜Fまでの加算結果は和と桁上げとにより冗長に
表現され、その和のLSBが夫々その積OのビットO0
〜O5になり、図10G〜Iに示す演算により積Oのビ
ットO6〜O8が求められる。具体的に、1サイクル目
〜3サイクル目までは第1の基本ユニット6Aにおいて
図10A等に示す加算が実行され、4サイクル目には基
本ユニット6Aの出力端子U1,T1,U2,T2を介
して基本ユニット6Bに中間データX3,Y3,Z4,
C2・I2が供給される。この中間データを初期値とし
て4サイクル目〜6サイクル目までは基本ユニット6B
において図10F等に示す加算が実行される。そして、
6サイクル目の終わりには基本ユニット6Bの出力端子
U1,T1,U2,T2より夫々図10Fの計算結果で
あるX6,Y6,Z7,C2・I5が出力されるので、
それに続く7サイクル目〜9サイクル目において、全加
算器9は図10G〜Iの加算を実行する。
In this example as well, the calculation in FIG. 9 is decomposed and executed into the addition of partial products shown in FIGS. 10A to 10I. In this case, the addition results in FIGS. 10A to 10F are redundantly expressed by a sum and a carry, and the LSB of the sum is the bit O0 of the product O, respectively.
~O5, and bits O6 to O8 of the product O are determined by the operations shown in FIGS. 10G to I. Specifically, from the first cycle to the third cycle, the addition shown in FIG. 10A etc. is executed in the first basic unit 6A, and in the fourth cycle, the addition shown in FIG. and send the intermediate data X3, Y3, Z4, to the basic unit 6B.
C2 and I2 are supplied. Using this intermediate data as the initial value, from the 4th cycle to the 6th cycle, the basic unit 6B
In this step, the addition shown in FIG. 10F etc. is executed. and,
At the end of the 6th cycle, the calculation results of FIG. 10F, X6, Y6, Z7, C2 and I5, are output from the output terminals U1, T1, U2, and T2 of the basic unit 6B, respectively.
In the subsequent 7th to 9th cycles, the full adder 9 executes the additions shown in FIGS. 10G to 10I.

【0033】次に、本発明の第3実施例につき図11〜
図13を参照して説明する。この第3実施例は、図12
Aに示すようにシリアルにデータa0として供給される
語長3ビットの入力データI(I2,I1,I0)と語
長6ビットの係数データC(C5,C4,‥‥,C0)
とを乗算して語長9ビットの積O(O8,O7,‥‥,
O0)を得て、図12B〜Dに示すように、この積をそ
の入力データに同期して3本の出力ラインを介してデー
タq0〜q2として順次シリアルに出力するものである
。また、図11において図7と対応する部分には同一符
号を付してその詳細説明を省略する。
Next, regarding the third embodiment of the present invention, FIGS.
This will be explained with reference to FIG. This third embodiment is shown in FIG.
As shown in A, input data I (I2, I1, I0) with a word length of 3 bits and coefficient data C (C5, C4, ..., C0) with a word length of 6 bits are serially supplied as data a0.
and the product of word length 9 bits O(O8, O7, . . .
O0), and as shown in FIGS. 12B to 12D, this product is serially output as data q0 to q2 via three output lines in synchronization with the input data. Further, in FIG. 11, parts corresponding to those in FIG. 7 are given the same reference numerals, and detailed explanation thereof will be omitted.

【0034】図11は本例の乗算回路を示し、この図1
1において、22は2入力のデータセレクタであり、第
1の基本ユニット6Aの入力端子INとそのデータセレ
クタ22の一方の入力端子とを3個のレジスタ21A〜
21Cを介して接続し、そのデータセレクタ22の出力
端子を第2の基本ユニット6Bの入力端子に接続する。
FIG. 11 shows the multiplication circuit of this example.
1, 22 is a two-input data selector, and the input terminal IN of the first basic unit 6A and one input terminal of the data selector 22 are connected to three registers 21A to 21A.
21C, and the output terminal of the data selector 22 is connected to the input terminal of the second basic unit 6B.

【0035】そして、その第1の基本ユニット6Aの入
力端子IN及び先頭のレジスタ21Aに共通に入力デー
タa0を供給し、データセレクタ22の他方の入力端子
に入力データa1を供給する。他の構成は図7と同様で
ある。この場合、データセレクタ22で入力データa1
を選択すると、図11の乗算回路は図7の乗算回路と同
じ動作を実行する。以下ではデータセレクタ22でレジ
スタ21Cの出力を選択する場合の動作につき説明する
Input data a0 is commonly supplied to the input terminal IN of the first basic unit 6A and the first register 21A, and input data a1 is supplied to the other input terminal of the data selector 22. The other configurations are the same as those in FIG. 7. In this case, the data selector 22 selects the input data a1.
, the multiplication circuit of FIG. 11 performs the same operation as the multiplication circuit of FIG. The operation when the data selector 22 selects the output of the register 21C will be described below.

【0036】3ビットの入力データIと6ビットの係数
Cとの乗算は、図13に示すように3個の部分積N1〜
N3の加算で表すことができるが、本例ではその3個の
部分積の加算を更に6個の部分積の加算で表す。即ち、
図13に示すように、最初の6ビットの部分積N1を3
ビットの小部分積N5とN6とに分け、同様に他の6ビ
ットの部分積N2及びN3も夫々2個の3ビットの小部
分積に分け、(0,0)と(0,0)とよりなるデータ
N4を初期値としてこれら6個の小部分積を桁の小さい
順序で加算する。この図13の下段の演算は図9の演算
と同じであるため、この図13の演算は実質的に図7の
乗算回路で実行することができる。
Multiplication of 3-bit input data I and 6-bit coefficient C is performed using three partial products N1 to 6 as shown in FIG.
Although it can be expressed as an addition of N3, in this example, the addition of those three partial products is further expressed as an addition of six partial products. That is,
As shown in FIG. 13, the partial product N1 of the first 6 bits is
Divide into bit partial products N5 and N6, and similarly divide other 6-bit partial products N2 and N3 into two 3-bit partial products, (0,0) and (0,0). These six partial products are added in descending order of digits using data N4 consisting of as an initial value. Since the calculations in the lower part of FIG. 13 are the same as those in FIG. 9, the calculations in FIG. 13 can be substantially executed by the multiplication circuit in FIG.

【0037】ただし、図13の演算では入力データIi
は3サイクル遅れて繰り返して使用されているので、図
11の乗算回路では入力データa0をレジスタ21A〜
21Cを介して3サイクル遅らせてなるデータを第2の
基本ユニット6Bに供給するようにしている。また、図
11の乗算回路では、第1の基本ユニット6Aの内部の
係数Cj,Cj+1,Cj+2として夫々C0,C1,
C2が設定され、第2の基本ユニット6Bの内部の係数
Cj,Cj+1,Cj+2として夫々C3,C4,C5
が設定される。
However, in the calculation of FIG. 13, the input data Ii
is used repeatedly with a delay of 3 cycles, so the multiplier circuit in FIG.
The data delayed by three cycles is supplied to the second basic unit 6B via 21C. In addition, in the multiplication circuit of FIG. 11, the internal coefficients Cj, Cj+1 and Cj+2 of the first basic unit 6A are C0, C1, Cj+2, respectively.
C2 is set, and C3, C4, C5 are set as internal coefficients Cj, Cj+1, Cj+2 of the second basic unit 6B, respectively.
is set.

【0038】また、入力データIの語長が6ビットで係
数データCの語長が6ビットである場合には、その係数
データを上位3ビットと下位3ビットとに分けて、6ビ
ット×6ビットの演算を6ビット×上位3ビットの小演
算と6ビット×下位3ビットの小演算とに分解する。そ
して、これら2個の小演算を夫々図7の乗算回路で実行
して、夫々の演算結果を加算するようにすればよい。
Furthermore, when the word length of the input data I is 6 bits and the word length of the coefficient data C is 6 bits, the coefficient data is divided into the upper 3 bits and the lower 3 bits, and is divided into 6 bits x 6 bits. A bit operation is divided into a small operation of 6 bits x upper 3 bits and a small operation of 6 bits x lower 3 bits. Then, these two small operations may be executed by the multiplication circuit shown in FIG. 7, respectively, and the respective operation results may be added.

【0039】上述の実施例は入力データが図17の形式
で伝送されるシステムに本発明を適用したものであるが
、入力データが図18の形式で伝送されるシステムに本
発明を適用した場合には、図14に示す基本ユニットを
使用する。この図14において、入力端子IN1及びI
N2には夫々入力データの偶数ビット及び奇数ビットの
データをシリアルに供給し、第1の入端子IN1をアン
ドゲート23〜26の一方の入力端子に共通に接続し、
これらアンドゲート23〜26の他方の入力端子に夫々
係数データCj〜Cj+3を供給する。また、2入力の
データセレクタ27〜32の一方の入力端子に夫々入力
端子Q0,R0,Q1,R1,Q2,R2を接続し、デ
ータセレクタ27,28及びアンドゲート23の出力を
全加算器33の入力部に供給し、データセレクタ29,
30及びアンドゲート24の出力を全加算器34の入力
部に供給し、データセレクタ31,32及びアンドゲー
ト25の出力を全加算器35の入力部に供給する。
In the above embodiment, the present invention is applied to a system in which input data is transmitted in the format shown in FIG. 17, but when the present invention is applied to a system in which input data is transmitted in the format shown in FIG. For this purpose, the basic unit shown in FIG. 14 is used. In this FIG. 14, input terminals IN1 and I
Even bits and odd bits of input data are serially supplied to N2, and the first input terminal IN1 is commonly connected to one input terminal of AND gates 23 to 26.
Coefficient data Cj to Cj+3 are supplied to the other input terminals of these AND gates 23 to 26, respectively. Further, the input terminals Q0, R0, Q1, R1, Q2, and R2 are connected to one input terminal of the two-input data selectors 27 to 32, respectively, and the outputs of the data selectors 27 and 28 and the AND gate 23 are connected to the full adder 33. data selector 29,
The outputs of the data selectors 31 and 32 and the AND gate 25 are supplied to the input part of the full adder 34, and the outputs of the data selectors 31, 32 and the AND gate 25 are supplied to the input part of the full adder 35.

【0040】また、第2の入力端子IN2をアンドゲー
ト36〜39の一方の入力端子に共通に接続し、これら
アンドゲート36〜39の他方の入力端子に夫々係数デ
ータCj〜Cj+3を供給する。そして、全加算器33
の桁上げ出力,全加算器34の和出力及びアンドゲート
36の出力を全加算器40の入力部に供給し、全加算器
34の桁上げ出力,全加算器35の和出力及びアンドゲ
ート37の出力を全加算器41の入力部に供給し、全加
算器35の桁上げ出力,アンドゲート26の出力及びア
ンドゲート38の出力を全加算器42の入力部に供給し
、全加算器33及び40の和出力を夫々第1の出力端子
OU1及び第2の出力端子OU2に供給する。また、全
加算器40の桁上げ出力,全加算器41の和出力及び桁
上げ出力,全加算器42の和出力及び桁上げ出力並びに
アンドゲート39の出力を夫々レジスタ43A〜43F
を介して出力端子U2,T2,U3,T3,U4及びT
4に供給し、これら出力端子U2〜T4を夫々データセ
レクタ27〜32の他方の入力端子にも接続する。
Further, the second input terminal IN2 is commonly connected to one input terminal of AND gates 36 to 39, and coefficient data Cj to Cj+3 are supplied to the other input terminals of these AND gates 36 to 39, respectively. And full adder 33
The carry output of the full adder 34, the sum output of the full adder 34, and the output of the AND gate 36 are supplied to the input section of the full adder 40, and the carry output of the full adder 34, the sum output of the full adder 35, and the AND gate 37 The output of the full adder 35 is supplied to the input part of the full adder 41, the carry output of the full adder 35, the output of the AND gate 26, and the output of the AND gate 38 are supplied to the input part of the full adder 42. and 40 are supplied to the first output terminal OU1 and the second output terminal OU2, respectively. Further, the carry output of the full adder 40, the sum output and carry output of the full adder 41, the sum output and carry output of the full adder 42, and the output of the AND gate 39 are input to registers 43A to 43F, respectively.
via output terminals U2, T2, U3, T3, U4 and T
4, and these output terminals U2 to T4 are also connected to the other input terminals of data selectors 27 to 32, respectively.

【0041】この図14の基本ユニットも初段では入力
端子Q0〜R2に夫々“0”のデータを供給し、2段目
以降では入力端子Q0〜R2に夫々前段の基本ユニット
の出力端子U2〜T4を接続するようにする。この図1
4の基本ユニットは、加算器2段毎にパイプライン化し
た乗算回路を時分割多重したものである。また、図14
の乗算回路を一般化すると、k段の加算器毎にパイプラ
イン化した乗算回路を時分割多重した回路を使用するこ
とにより、ln/k本の信号線を使用して語長nビット
のデータが伝送されて来るシステム用の乗算回路も容易
に構成することができる。
The basic unit in FIG. 14 also supplies "0" data to the input terminals Q0 to R2 at the first stage, and from the second stage onwards, the output terminals U2 to T4 of the previous stage basic unit are supplied to the input terminals Q0 to R2, respectively. to connect. This figure 1
The basic unit No. 4 is one in which pipelined multiplication circuits are time-division multiplexed for every two stages of adders. Also, Figure 14
Generalizing the multiplier circuit, by using a time-division multiplexed circuit of pipelined multiplier circuits for each k-stage adder, data with a word length of n bits can be processed using ln/k signal lines. A multiplier circuit for a system in which the signal is transmitted can also be easily constructed.

【0042】このように、本発明は上述実施例に限定さ
れず本発明の要旨を逸脱しない範囲で種々の構成を取り
得ることは勿論である。
As described above, it goes without saying that the present invention is not limited to the above-described embodiments, but can take various configurations without departing from the gist of the present invention.

【0043】[0043]

【発明の効果】本発明によれば、予め演算ユニット内に
設定されている他方の数のビット数を調整することによ
り、演算速度をそのシステムに合う最適の速度に設定で
きると共に、演算ユニットを繰り返して使用するように
しているので、回路規模を小さくすることができる利益
がある。
According to the present invention, by adjusting the number of bits of the other number set in advance in the arithmetic unit, the arithmetic speed can be set to the optimum speed suitable for the system, and the arithmetic unit can be Since it is used repeatedly, there is an advantage that the circuit scale can be reduced.

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

【図1】本発明による乗算回路の第1実施例を示す構成
図である。
FIG. 1 is a configuration diagram showing a first embodiment of a multiplication circuit according to the present invention.

【図2】第1実施例中の基本ユニットを示す構成図であ
る。
FIG. 2 is a configuration diagram showing a basic unit in the first embodiment.

【図3】第1実施例の3ビット×3ビットの乗算の一例
を示す線図である。
FIG. 3 is a diagram showing an example of 3-bit×3-bit multiplication in the first embodiment.

【図4】第1実施例の入出力データの一例を示すタイミ
ングチャート図である。
FIG. 4 is a timing chart diagram showing an example of input/output data of the first embodiment.

【図5】図3の計算を分解した計算の流れを示す線図で
ある。
FIG. 5 is a diagram illustrating the flow of calculations in which the calculations in FIG. 3 are broken down;

【図6】図5の計算を実行するときの第1実施例の動作
の説明に供するタイミングチャート図である。
6 is a timing chart diagram for explaining the operation of the first embodiment when executing the calculation of FIG. 5; FIG.

【図7】本発明による乗算回路の第2実施例を示す構成
図である。
FIG. 7 is a configuration diagram showing a second embodiment of a multiplication circuit according to the present invention.

【図8】第2実施例の入出力データの一例を示すタイミ
ングチャート図である。
FIG. 8 is a timing chart diagram showing an example of input/output data of the second embodiment.

【図9】第2実施例の6ビット×3ビットの乗算の一例
を示す線図である。
FIG. 9 is a diagram illustrating an example of 6-bit×3-bit multiplication in the second embodiment.

【図10】図9の乗算を分解した計算の流れを示す線図
である。
FIG. 10 is a diagram showing the flow of computation in which the multiplication in FIG. 9 is broken down;

【図11】本発明による乗算回路の第3実施例を示す構
成図である。
FIG. 11 is a configuration diagram showing a third embodiment of a multiplication circuit according to the present invention.

【図12】第3実施例の入出力データの一例を示す線図
である。
FIG. 12 is a diagram showing an example of input/output data of the third embodiment.

【図13】第3実施例の3ビット×6ビットの乗算の一
例を示す線図である。
FIG. 13 is a diagram showing an example of 3 bits x 6 bits multiplication in the third embodiment.

【図14】基本ユニットの他の例を示す構成図である。FIG. 14 is a configuration diagram showing another example of the basic unit.

【図15】従来の乗算回路の一例の要部を示す構成図で
ある。
FIG. 15 is a configuration diagram showing a main part of an example of a conventional multiplication circuit.

【図16】従来の乗算回路の他の例の要部を示す構成図
である。
FIG. 16 is a configuration diagram showing a main part of another example of a conventional multiplication circuit.

【図17】信号を時分割的に伝送するシステムの一例を
示すタイミングチャート図である。
FIG. 17 is a timing chart diagram illustrating an example of a system that transmits signals in a time-division manner.

【図18】信号を時分割的に伝送するシステムの他の例
を示すタイミングチャート図である。
FIG. 18 is a timing chart diagram showing another example of a system that transmits signals in a time-division manner.

【符号の説明】[Explanation of symbols]

6  基本ユニット 7,8  パラレル/シリアル変換器 9  全加算器 10  レジスタ 11〜13  アンドゲート 18,19  全加算器 20A〜20D  レジスタ a0  入力データ q0,q1  出力データ 6 Basic unit 7, 8 Parallel/serial converter 9 Full adder 10 Register 11-13 And Gate 18, 19 Full adder 20A-20D register a0 Input data q0, q1 Output data

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  シリアルに入力される一方の数の各ビ
ットのデータと予め設定されている他方の数との乗算結
果を順次桁上げ出力をフィードバックしながら累加算し
て最小桁のデータをシリアルに出力する1段又は並列接
続された複数段の演算ユニットと、該1段又は複数段の
演算ユニットの最小桁を除く累加算結果をシリアル変換
するパラレル/シリアル変換回路と、該パラレル/シリ
アル変換回路よりシリアルに出力されるデータを順次桁
上げ出力をフィードバックしながら累加算して最小桁の
データをシリアルに出力する加算回路とを有する乗算回
路。
Claim 1: Multiplying the data of each bit of one number input serially by the other number set in advance, and cumulatively adding the result while feeding back the carry output, and serially inputting the data of the smallest digit. one stage or multiple stages of arithmetic units connected in parallel, a parallel/serial converter circuit that serially converts the cumulative addition result excluding the minimum digit of the one stage or multiple stages of arithmetic units, and the parallel/serial converter. A multiplication circuit that includes an adder circuit that cumulatively adds data serially output from the circuit while feeding back carry outputs and serially outputs data of the minimum digit.
JP01661891A 1991-02-07 1991-02-07 Multiplication circuit Expired - Fee Related JP3237122B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP01661891A JP3237122B2 (en) 1991-02-07 1991-02-07 Multiplication circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01661891A JP3237122B2 (en) 1991-02-07 1991-02-07 Multiplication circuit

Publications (2)

Publication Number Publication Date
JPH04256017A true JPH04256017A (en) 1992-09-10
JP3237122B2 JP3237122B2 (en) 2001-12-10

Family

ID=11921326

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01661891A Expired - Fee Related JP3237122B2 (en) 1991-02-07 1991-02-07 Multiplication circuit

Country Status (1)

Country Link
JP (1) JP3237122B2 (en)

Also Published As

Publication number Publication date
JP3237122B2 (en) 2001-12-10

Similar Documents

Publication Publication Date Title
US4994997A (en) Pipeline-type serial multiplier circuit
JPS6131658B2 (en)
EP0152702B1 (en) Arithmetic circuit of finite field
US5185714A (en) Arithmetic operation processing apparatus
EP0281132B1 (en) Vector calculation circuit capable of rapidly carrying out vector calculation of three input vectors
JPH06216706A (en) Transversal filter
JPH10307706A (en) Wallace tree multiplier using half-adder and full-adder
US4142242A (en) Multiplier accumulator
US9928035B2 (en) Multiply-and-accumulate unit in carry-save adder format and application in a feedback loop equalizer
JPH04256017A (en) Multiplying circuit
US5189635A (en) Digital data processing circuit
JPH0330877B2 (en)
US5262975A (en) Serial input multiplier apparatus
JPS58162120A (en) Transversal filter
US5031137A (en) Two input bit-serial multiplier
US5150321A (en) Apparatus for performing serial binary multiplication
WO2005002051A1 (en) Digital filter
JP2864597B2 (en) Digital arithmetic circuit
JPH04257025A (en) Multiplying circuit for serial input
WO2000034853A1 (en) A serial-parallel binary multiplier
JPS63163927A (en) Multiplication circuit
JP3851024B2 (en) Multiplier
JPH05299973A (en) Decimation filter
Makarenko et al. A VLSI multiprecision matrix multiplier and polynomial evaluator
JPH02206217A (en) Digital filter

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees