JP3074958B2 - Serial multiplier with addition function - Google Patents

Serial multiplier with addition function

Info

Publication number
JP3074958B2
JP3074958B2 JP04246328A JP24632892A JP3074958B2 JP 3074958 B2 JP3074958 B2 JP 3074958B2 JP 04246328 A JP04246328 A JP 04246328A JP 24632892 A JP24632892 A JP 24632892A JP 3074958 B2 JP3074958 B2 JP 3074958B2
Authority
JP
Japan
Prior art keywords
output
bit
multiplier
parallel data
addition
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.)
Expired - Fee Related
Application number
JP04246328A
Other languages
Japanese (ja)
Other versions
JPH0695852A (en
Inventor
強之 高山
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 Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP04246328A priority Critical patent/JP3074958B2/en
Publication of JPH0695852A publication Critical patent/JPH0695852A/en
Application granted granted Critical
Publication of JP3074958B2 publication Critical patent/JP3074958B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明はディジタル信号処理回路
において、入力パラレルデータに乗算もしくは加減算処
理を行う演算回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an arithmetic circuit for multiplying or adding / subtracting input parallel data in a digital signal processing circuit.

【0002】[0002]

【従来の技術】近年、デジタル信号処理回路の集積化に
伴い、入力データに対して様々な処理を行う演算回路の
処理能力と回路構成が全体の回路規模を決定する大きな
要因となっている。
2. Description of the Related Art In recent years, with the integration of digital signal processing circuits, the processing capability and circuit configuration of an arithmetic circuit that performs various processes on input data have become major factors in determining the overall circuit scale.

【0003】以下、従来の演算回路の構成について、図
面を用いて説明する。まず、図3は従来のシリアル乗算
回路の構成を示すものである。図3において、4は入力
パラレルデータ1(D3,D2,D1,D0)と1ビット係数デー
タ2(K3,K2,K1,K0)との並列1ビット乗算を行う1ビ
ット乗算器、5はシリアル乗算器全体の1クロック前の
出力を帰還した信号と前記1ビット乗算器4の出力との
加算を行うフルアダー、6は前記フルアダー5の出力を
クロック信号9によりラッチする出力レジスタである。
さらに7はクリア信号8により、帰還信号をオールゼロ
にリセットするクリア回路である。
Hereinafter, the configuration of a conventional arithmetic circuit will be described with reference to the drawings. First, FIG. 3 shows a configuration of a conventional serial multiplication circuit. In FIG. 3, reference numeral 4 denotes a 1-bit multiplier for performing parallel 1-bit multiplication of input parallel data 1 (D3, D2, D1, D0) and 1-bit coefficient data 2 (K3, K2, K1, K0); Reference numeral 6 denotes an output register for latching the output of the full adder 5 with a clock signal 9 by adding a signal obtained by feeding back the output of the entire multiplier one clock before and the output of the 1-bit multiplier 4.
Reference numeral 7 denotes a clear circuit for resetting the feedback signal to all zeros by a clear signal 8.

【0004】以上のように構成された従来のシリアル乗
算器について、以下その動作を説明する。図4に各信号
のタイミングを示す。入力パラレルデータ1はクロック
信号9の4クロック分は同じ値をホールドし、1ビット
係数データ2はLSBファーストでクロック信号9の1
クロックごとにシリアルでデータ入力される。まず最初
の1クロック目では、クロック信号9に同期してクリア
信号8がローレベルとなり、これによって帰還信号10
はオールゼロにリセットされる。そしてそれと同時に入
力パラレルデータ1より入力されたデータD3(1)〜
D0(1)と1ビット係数データ2より入力された係数
データのLSBであるK0(1)とを並列1ビット乗算
した結果が1ビット乗算器4から出力される。
The operation of the conventional serial multiplier configured as described above will be described below. FIG. 4 shows the timing of each signal. The input parallel data 1 holds the same value for four clocks of the clock signal 9, and the 1-bit coefficient data 2 has the LSB first and the 1
Data is serially input for each clock. First, in the first first clock, the clear signal 8 goes low in synchronization with the clock signal 9, whereby the feedback signal 10
Is reset to all zeros. At the same time, data D3 (1) to
The result of parallel 1-bit multiplication of D0 (1) and K0 (1) which is the LSB of the coefficient data input from the 1-bit coefficient data 2 is output from the 1-bit multiplier 4.

【0005】そして、クリア回路7の出力がゼロとなっ
ているので、この1ビット乗算器4の出力がそのままフ
ルアダー5の出力となる。なおこの時、フルアダー5の
最下位ビットのキャリー入力は図3に示す通り「0」に
しておく。そして、前記フルアダー5のキャリー出力1
ビットとサム出力上位3ビットを出力レジスタ6によっ
てラッチし、そのパラレルデータ出力3をそのまま帰還
信号10として帰還する。2クロック目ではクリア信号
8がハイレベルとなるため、帰還信号10は1クロック
前のフルアダー5の出力を1ビットLSB方向にシフト
させた形でフルアダー5に入力される。また1ビット乗
算器4においては入力データD3(1)〜D0(1)と係
数データK1(1)とを並列1ビット乗算し、フルアダ
ー5において帰還信号10と前記1ビット乗算器4の出
力とを加算し、その加算結果を出力レジスタ6にて再度
ラッチする。さらに同様の動作を1クロックごとに1ビ
ット係数データ2の値を変えながら繰り返し、5クロッ
ク目の出力パラレルデータ3がD3(1)〜D0(1)と
K3(1)〜K0(1)の乗算結果(上位4ビット分)と
なる。
Since the output of the clear circuit 7 is zero, the output of the 1-bit multiplier 4 becomes the output of the full adder 5 as it is. At this time, the carry input of the least significant bit of the full adder 5 is set to "0" as shown in FIG. The carry output 1 of the full adder 5
The upper three bits of the bit and the sum output are latched by the output register 6, and the parallel data output 3 is fed back as it is as the feedback signal 10. Since the clear signal 8 becomes high level at the second clock, the feedback signal 10 is input to the full adder 5 in the form of shifting the output of the full adder 5 one clock before in the LSB direction by one bit. The 1-bit multiplier 4 multiplies the input data D3 (1) to D0 (1) by one bit in parallel with the coefficient data K1 (1), and in a full adder 5, the feedback signal 10 and the output of the 1-bit multiplier 4 And the result of the addition is latched again in the output register 6. Further, the same operation is repeated while changing the value of the 1-bit coefficient data 2 for each clock, and the output parallel data 3 at the fifth clock is D3 (1) to D0 (1) and K3 (1) to K0 (1). The result is the multiplication result (upper 4 bits).

【0006】次に従来の加算器、及び減算器の構成を図
5(a)と図5(b)に示す。図5におけるフルアダー
5、及び出力レジスタ6はそれぞれ図3におけるそれと
同じものである。また11は入力B3〜B0の各ビットを
反転させるためのインバータである。図5(a)に示し
た加算器においてはフルアダー5の最下位ビットのキャ
リー入力を「0」にしておき、入力A3〜A0と入力B3
〜B0をフルアダー5に入力する事により両者の加算を
行う。そしてその後加算結果をクロック信号9に同期し
て出力レジスタ6にてラッチする。また図5(b)に示
した減算器の場合は、フルアダー5の最下位ビットのキ
ャリー入力を「1」にしておき、入力B3〜B0をインバ
ータ11によってビット反転した信号と入力A3〜A0と
をフルアダー5にて加算する。そしてそれにより、入力
A3〜A0から入力B3〜B0を減算した事となる。そして
減算結果をクロック信号9に同期して出力レジスタ6に
てラッチする。
Next, the configurations of the conventional adder and subtractor are shown in FIGS. 5 (a) and 5 (b). The full adder 5 and output register 6 in FIG. 5 are the same as those in FIG. An inverter 11 inverts each bit of the inputs B3 to B0. In the adder shown in FIG. 5A, the carry input of the least significant bit of the full adder 5 is set to "0", and the inputs A3 to A0 and the inputs B3
BB0 are input to the full adder 5 to add both. Then, the addition result is latched by the output register 6 in synchronization with the clock signal 9. In the case of the subtractor shown in FIG. 5B, the carry input of the least significant bit of the full adder 5 is set to "1", and the signals obtained by inverting the inputs B3 to B0 by the inverter 11 and the inputs A3 to A0 In the full adder 5. Thus, the inputs B3 to B0 are subtracted from the inputs A3 to A0. Then, the subtraction result is latched by the output register 6 in synchronization with the clock signal 9.

【0007】[0007]

【発明が解決しようとする課題】しかしながら上記のよ
うな構成では、演算の種類によって別々の演算回路を必
要とする。さらに演算結果を同じデータバスに出力する
場合は、個々の演算回路の出力信号同士がぶつからない
ようにするため、個々の演算回路の出力部にトランスフ
ァーゲートやセレクタを必要とする。このため特に入力
パラレルデータのビット数が多い場合は、その回路規模
が非常に大きくなってしまうといった問題点を有してい
た。
However, in the above configuration, different operation circuits are required depending on the type of operation. Further, when the operation results are output to the same data bus, transfer gates and selectors are required at the output portions of the individual operation circuits in order to prevent the output signals of the individual operation circuits from colliding with each other. For this reason, especially when the number of bits of the input parallel data is large, there is a problem that the circuit scale becomes very large.

【0008】本発明は上記従来の問題点を解決するもの
で、様々な演算処理を一つの演算回路で行う事によっ
て、回路規模を小さくする事を目的としてなされたもの
である。
The present invention has been made to solve the above-mentioned conventional problems, and has been made for the purpose of reducing the circuit scale by performing various arithmetic processes with one arithmetic circuit.

【0009】[0009]

【課題を解決するための手段】上記課題を解決するため
に本発明による加算機能付きシリアル乗算器は、入力パ
ラレルデータと1ビット係数データとの並列1ビット乗
算を行う1ビット乗算器と、シリアル乗算器全体の出力
パラレルデータからのパラレル帰還信号をゼロにリセッ
トするクリア回路と、前記1ビット乗算器とクリア回路
の出力との加算を行うフルアダーと、前記フルアダーの
出力を1クロック遅らせる出力レジスタと、前記レジス
タの出力を1ビットシフトさせて帰還するかシフトさせ
ずに帰還するかを切り替えるセレクタとを有し、乗算時
にはLSBファーストで1クロックごとに1ビット係数
データをシリアル入力し、かつ前記レジスタの出力であ
るシリアル乗算器全体の出力パラレルデータをMSB側
に1ビットシフトさせて帰還する事により、入力パラレ
ルデータと1ビット係数データとのシリアル乗算を行
い、加算時には1ビット係数データを「1」に固定し
て、かつシリアル乗算器全体の出力パラレルデータをシ
フトせずに帰還する事によって、前記出力レジスタに蓄
えられた値と入力パラレルデータとの加算演算を行うよ
うに構成したものである。
In order to solve the above problems, a serial multiplier with an addition function according to the present invention comprises: a 1-bit multiplier for performing parallel 1-bit multiplication of input parallel data and 1-bit coefficient data; A clear circuit for resetting a parallel feedback signal from output parallel data of the entire multiplier to zero, a full adder for adding the output of the 1-bit multiplier and the output of the clear circuit, and an output register for delaying the output of the full adder by one clock; A selector for switching the output of the register by one bit for feedback or for feedback without shifting. When multiplication, 1-bit coefficient data is serially input for each clock in LSB first, and the register is Shifts the output parallel data of the entire serial multiplier, which is the output of, by one bit to the MSB side In this case, the input parallel data is serially multiplied by the 1-bit coefficient data. At the time of addition, the 1-bit coefficient data is fixed at "1" and the output parallel data of the entire serial multiplier is not shifted. , The addition operation of the value stored in the output register and the input parallel data is performed.

【0010】[0010]

【作用】本発明は上記した構成によって、従来の演算回
路において個々の演算回路ごとに別々に必要であったフ
ルアダーや出力レジスタを兼用する事ができる。さらに
演算回路としての出力が一つになるため、演算結果をデ
ータバスに出力する場合も従来のようにトランスファー
ゲートやセレクタを必要としない。このため特に入力パ
ラレルデータのビット数が多い場合は、その回路規模を
大幅に削減する事ができる。
According to the present invention, a full adder and an output register, which are separately required for each arithmetic circuit in the conventional arithmetic circuit, can be shared by the above configuration. Furthermore, since there is only one output as an arithmetic circuit, a transfer gate and a selector are not required as in the conventional case when an arithmetic result is output to a data bus. Therefore, particularly when the number of bits of the input parallel data is large, the circuit scale can be significantly reduced.

【0011】[0011]

【実施例】以下、本発明の加算機能付きシリアル乗算器
について図面を参照しながら説明する。図1は本発明の
一実施例の加算機能付きシリアル乗算器の構成図であ
る。図1において、1ビット乗算器4、フルアダー5、
出力レジスタ6、クリア回路7は図3に示したものと同
じものである。そして、12は入力パラレルデータ1を
正転もしくは反転させて1ビット乗算器4に入力させる
ためのEX−ORゲート、13は前記EX−ORゲート
の正転と反転を切り替える第1のスイッチ、14は1ビ
ット乗算器4の入力を1ビット係数データ2もしくは
「1」もしくは「0」に切り替える第2のスイッチ、1
5はフルアダー5の最下位ビットのキャリー入力を
「0」もしくは「1」に切り替える第3のスイッチ、そ
して16は出力レジスタ6の出力をシフトなしで帰還す
るか、1ビットシフトさせて帰還するかを切り替える第
4のスイッチである。さらに17はクリア回路7によっ
てクリアされた帰還信号のうち、特定のビットをセット
するためのORゲートであり、セット信号18によって
制御される。そして加算機能付きシリアル乗算器全体と
しての出力である出力パラレルデータ3(S3〜S0)
は、第4のスイッチ16の出力信号となる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A serial multiplier with an addition function according to the present invention will be described below with reference to the drawings. FIG. 1 is a configuration diagram of a serial multiplier with an addition function according to one embodiment of the present invention. In FIG. 1, a 1-bit multiplier 4, a full adder 5,
The output register 6 and the clear circuit 7 are the same as those shown in FIG. Reference numeral 12 denotes an EX-OR gate for inverting or inverting the input parallel data 1 to be input to the 1-bit multiplier 4, reference numeral 13 denotes a first switch for switching the EX-OR gate between inversion and inversion, and 14 Is a second switch for switching the input of the 1-bit multiplier 4 to 1-bit coefficient data 2 or “1” or “0”,
Reference numeral 5 denotes a third switch for switching the carry input of the least significant bit of the full adder 5 to "0" or "1", and reference numeral 16 denotes whether the output of the output register 6 is fed back without shifting or shifted by 1 bit. Is a fourth switch for changing over. Further, reference numeral 17 denotes an OR gate for setting a specific bit in the feedback signal cleared by the clear circuit 7, and is controlled by a set signal 18. Then, output parallel data 3 (S3 to S0) which is the output of the entire serial multiplier with the addition function
Is the output signal of the fourth switch 16.

【0012】以上のように構成された本発明の加算機能
付きシリアル乗算器について、以下その動作を説明す
る。まず、最初にシリアル乗算を行う場合は、第1のス
イッチ13を「0」に固定し、第2のスイッチ14を1
ビット係数データ2側に倒し、第3のスイッチ15を
「0」に固定し、第4のスイッチ16を1ビットシフト
させる側に倒す。このように設定する事により、図1に
示した本発明による加算機能付きシリアル乗算器は図3
に示した従来のシリアル乗算回路と全く同じものとな
る。従ってその動作タイミングも、図4に示したタイミ
ングチャートと全く同じとなる。また、図1において、
従来例と同様に演算を開始する前に帰還信号10をオー
ルゼロにクリアするためには、セット信号18をゼロに
固定しておけばよい。しかし、本発明による加算機能付
きシリアル乗算器は、帰還信号10をオールクリアした
後で特定のビットをセットする事により、乗算の結果得
られる値にあらかじめある一定の値を加算する事も可能
である。図1においてはクリア信号8を反転させた信号
をセット信号18とし加える事により初期値として「1
000B」といった値を加算している。この処理により
最終的に得られる乗算結果において、小数点以下のビッ
トを四捨五入演算によって丸める事が可能となる。
The operation of the serial multiplier with the addition function of the present invention configured as described above will be described below. First, when serial multiplication is first performed, the first switch 13 is fixed to “0”, and the second switch 14 is set to “1”.
The third switch 15 is fixed to “0”, and the fourth switch 16 is shifted to the side that shifts one bit. By setting as described above, the serial multiplier with the addition function according to the present invention shown in FIG.
Is exactly the same as the conventional serial multiplication circuit shown in FIG. Therefore, the operation timing is exactly the same as the timing chart shown in FIG. Also, in FIG.
In order to clear the feedback signal 10 to all zeros before starting the operation as in the conventional example, the set signal 18 may be fixed to zero. However, the serial multiplier with the addition function according to the present invention can add a certain value in advance to a value obtained as a result of the multiplication by setting a specific bit after all-clearing the feedback signal 10. is there. In FIG. 1, a signal obtained by inverting the clear signal 8 is added as a set signal 18 so that the initial value is “1”.
000B ". In the multiplication result finally obtained by this processing, bits after the decimal point can be rounded by rounding.

【0013】次に加算演算を行う場合について図2に示
したタイミングチャートを用いて説明する。まず、最初
に第1のスイッチ13を「0」に固定し、第2のスイッ
チ14を「1」に固定し、第3のスイッチ15を「0」
に固定する。そして、第4のスイッチ16をシフトしな
い側に倒す。これにより入力パラレルデータ1「D
(1)」はそのままフルアダー5に入力される事にな
る。そして、最初の1クロック目でクリア信号8とセッ
ト信号18をローレベルにし、帰還信号10をオールゼ
ロにリセットしてフルアダー5に入力する。これにより
フルアダー5の出力が入力パラレルデータ1「D
(1)」に等しくなり、次のクロックで加算すべき入力
パラレルデータ1が出力レジスタ6に蓄えられる。そし
て2クロック目でクリア信号8をハイレベルとする事に
より、さきほど出力レジスタ6に蓄えられたデータがそ
のまま帰還され、新たに入力パラレルデータ1より加え
られたデータ「D(2)」と加算され、加算結果「D
(1)+D(2)」が3クロック目で出力レジスタ6に
ラッチされ、出力される。
Next, the case of performing the addition operation will be described with reference to the timing chart shown in FIG. First, the first switch 13 is fixed to “0”, the second switch 14 is fixed to “1”, and the third switch 15 is set to “0”.
Fixed to. Then, the fourth switch 16 is moved to the non-shift side. Thereby, the input parallel data 1 “D
"(1)" is input to the full adder 5 as it is. Then, at the first first clock, the clear signal 8 and the set signal 18 are set to low level, the feedback signal 10 is reset to all zeros, and input to the full adder 5. As a result, the output of the full adder 5 becomes the input parallel data 1 “D
(1) ", and the input parallel data 1 to be added at the next clock is stored in the output register 6. By setting the clear signal 8 to the high level at the second clock, the data stored in the output register 6 is fed back as it is, and is added to the data "D (2)" newly added from the input parallel data 1. , The addition result "D
(1) + D (2) "is latched and output by the output register 6 at the third clock.

【0014】また、減算を行う場合は、まず、前記加算
の場合と同じ手順で入力パラレルデータ1「D(3)」
を出力レジスタ6に蓄える。そして2クロック目でクリ
ア信号8をハイレベルとすると同時に、第1のスイッチ
13を「1」として入力パラレルデータ1「D(4)」
をビット反転させる。そして第2のスイッチ14を
「1」に固定してスルーとし、さらに第3のスイッチ1
5を「1」としてフルアダー5にキャリー入力「+1」
を加える。これにより、最初に出力レジスタ6に蓄えら
れたデータ「D(3)」から、新たに入力パラレルデー
タ1より加えられたデータ「D(4)」が減算され、3
クロック目で出力レジスタ6に減算結果「D(3)−D
(4)」がラッチされて出力される。
When the subtraction is performed, first, the input parallel data 1 "D (3)" is processed in the same procedure as in the case of the addition.
Is stored in the output register 6. At the second clock, the clear signal 8 is set to the high level, and at the same time, the first switch 13 is set to “1” to input the parallel data 1 “D (4)”
Is bit-inverted. And the second switch 14
Fixed to "1" for through, and the third switch 1
5 as “1”, carry input to full adder 5 “+1”
Add. As a result, the data “D (4)” newly added from the input parallel data 1 is subtracted from the data “D (3)” initially stored in the output register 6, and 3
At the clock, the subtraction result “D (3) −D
(4) "is latched and output.

【0015】さらに第2のスイッチ14を「0」として
入力パラレルデータ1をオールゼロにクリアし、第3の
スイッチ15を「0」、第4のスイッチ16をシフトし
ない側に固定し、かつクリア信号8をハイレベル、セッ
ト信号18をローレベルとする事により、出力レジスタ
6に蓄えられたデータ「D(3)−D(4)」をホール
ドする事も出来る。
Further, the second switch 14 is set to "0" to clear the input parallel data 1 to all zeros, the third switch 15 is fixed to "0", the fourth switch 16 is fixed to the non-shift side, and a clear signal is set. By setting 8 to the high level and the set signal 18 to the low level, the data “D (3) -D (4)” stored in the output register 6 can be held.

【0016】また、上記加減算演算をシリアル乗算が終
了した後に連続的に行う場合は、最初の1クロック目で
入力パラレルデータ1を出力レジスタ6に蓄える必要が
ない。すなわち第4のスイッチ16を1ビットシフトさ
せる側に倒した状態で、加算もしくは減算演算における
前記2クロック目の動作を行えば、乗算結果と入力パラ
レルデータ1との加減算演算を1クロックで行う事が出
来る。
When the above addition / subtraction operation is performed continuously after the end of serial multiplication, it is not necessary to store the input parallel data 1 in the output register 6 at the first clock. That is, if the operation of the second clock in the addition or subtraction operation is performed with the fourth switch 16 shifted to the side that shifts one bit, the addition / subtraction operation of the multiplication result and the input parallel data 1 can be performed in one clock. Can be done.

【0017】[0017]

【発明の効果】以上述べたように本発明の加算機能付き
シリアル乗算器は、入力パラレルデータと1ビット係数
データとの並列1ビット乗算を行う1ビット乗算器と、
シリアル乗算器全体の出力パラレルデータからのパラレ
ル帰還信号をゼロにリセットするクリア回路と、前記1
ビット乗算器とクリア回路の出力との加算を行うフルア
ダーと、前記フルアダーの出力を1クロック遅らせる出
力レジスタと、前記レジスタの出力を1ビットシフトさ
せて帰還するかシフトさせずに帰還するかを切り替える
セレクタとを有し、乗算時にはLSBファーストで1ク
ロックごとに1ビット係数データをシリアル入力し、か
つ前記レジスタの出力であるシリアル乗算器全体の出力
パラレルデータをMSB側に1ビットシフトさせて帰還
する事により、入力パラレルデータと1ビット係数デー
タとのシリアル乗算を行い、加算時には1ビット係数デ
ータを「1」に固定して、かつシリアル乗算器全体の出
力パラレルデータをシフトせずに帰還する事によって、
前記出力レジスタに蓄えられた値と入力パラレルデータ
との加算演算を行う事により、従来の演算回路において
個々の演算回路ごとに別々に必要であったフルアダーや
出力レジスタを兼用する事ができ、さらに演算回路とし
ての出力が一つになるため、演算結果をデータバスに出
力する場合も従来のようにトランスファーゲートやセレ
クタを必要としない。このため特に入力パラレルデータ
のビット数が多い場合は、その回路規模を大幅に削減す
る事ができるといった効果がある。
As described above, the serial multiplier with the addition function of the present invention comprises a 1-bit multiplier for performing parallel 1-bit multiplication of input parallel data and 1-bit coefficient data;
A clear circuit for resetting a parallel feedback signal from output parallel data of the entire serial multiplier to zero;
A full adder for adding the output of the bit multiplier and the clear circuit, an output register for delaying the output of the full adder by one clock, and switching between feedback of the register output by one bit and feedback without shifting. And a selector, in which, during multiplication, 1-bit coefficient data is serially input for each clock in LSB first, and the output parallel data of the entire serial multiplier, which is the output of the register, is shifted by 1 bit to the MSB side and fed back. Thus, serial multiplication of the input parallel data and the 1-bit coefficient data is performed, the 1-bit coefficient data is fixed to "1" at the time of addition, and the output parallel data of the entire serial multiplier is fed back without being shifted. By
By performing the addition operation of the value stored in the output register and the input parallel data, it is possible to use a full adder and an output register which are separately required for each arithmetic circuit in the conventional arithmetic circuit, and Since there is only one output as an arithmetic circuit, a transfer gate and a selector are not required as in the related art even when an arithmetic result is output to a data bus. Therefore, especially when the number of bits of the input parallel data is large, there is an effect that the circuit scale can be significantly reduced.

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

【図1】本発明の一実施例の加算機能付きシリアル乗算
器の構成図
FIG. 1 is a configuration diagram of a serial multiplier with an addition function according to an embodiment of the present invention.

【図2】本発明の加算機能付きシリアル乗算器のタイミ
ングを示す図
FIG. 2 is a diagram showing timing of a serial multiplier with an addition function according to the present invention;

【図3】従来のシリアル乗算器の構成図FIG. 3 is a configuration diagram of a conventional serial multiplier.

【図4】従来のシリアル乗算器のタイミングを示す図FIG. 4 is a diagram showing the timing of a conventional serial multiplier.

【図5】(a)は従来の加算器の構成図 (b)は従来の減算器の構成図5A is a configuration diagram of a conventional adder. FIG. 5B is a configuration diagram of a conventional subtractor.

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

4 1ビット乗算器 5 フルアダー 6 出力レジスタ 7 クリア回路 11 インバータ 12 EX−ORゲート 13 第1のスイッチ 14 第2のスイッチ 15 第3のスイッチ 16 第4のスイッチ 17 ORゲート Reference Signs List 4 1-bit multiplier 5 Full adder 6 Output register 7 Clear circuit 11 Inverter 12 EX-OR gate 13 First switch 14 Second switch 15 Third switch 16 Fourth switch 17 OR gate

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力パラレルデータと1ビット係数デー
タとの並列1ビット乗算を行う1ビット乗算器と、シリ
アル乗算器全体の出力パラレルデータからのパラレル帰
還信号をゼロにリセットするクリア回路と、前記1ビッ
ト乗算器とクリア回路の出力との加算を行うフルアダー
と、前記フルアダーの出力を1クロック遅らせる出力レ
ジスタと、前記レジスタの出力を1ビットシフトさせて
帰還するかシフトさせずに帰還するかを切り替えるセレ
クタとを有し、乗算時にはLSBファーストで1クロッ
クごとに1ビット係数データをシリアル入力し、かつ前
記レジスタの出力であるシリアル乗算器全体の出力パラ
レルデータをMSB側に1ビットシフトさせて帰還する
事により、入力パラレルデータと1ビット係数データと
のシリアル乗算を行い、加算時には1ビット係数データ
を「1」に固定して、かつシリアル乗算器全体の出力パ
ラレルデータをシフトせずに帰還する事によって、前記
出力レジスタに蓄えられた値と入力パラレルデータとの
加算演算を行う事を特徴とした加算機能付きシリアル乗
算器。
A 1-bit multiplier for performing parallel 1-bit multiplication of input parallel data and 1-bit coefficient data; a clear circuit for resetting a parallel feedback signal from output parallel data of the entire serial multiplier to zero; A full adder for adding the output of the 1-bit multiplier and the output of the clear circuit, an output register for delaying the output of the full adder by one clock, and determining whether the output of the register is shifted back by one bit or fed back without being shifted. And a selector for switching, and inputting 1-bit coefficient data serially for each clock in LSB first at the time of multiplication, and shifting the output parallel data of the entire serial multiplier, which is the output of the register, by 1 bit to the MSB side and feeding back. In this way, serial multiplication of input parallel data and 1-bit coefficient data is performed. At the time of addition, the 1-bit coefficient data is fixed to "1" and the output parallel data of the entire serial multiplier is fed back without being shifted, so that the value stored in the output register and the input parallel data are compared. Serial multiplier with addition function characterized by performing addition operation.
【請求項2】 EX−ORゲート等を用いて、前記入力
パラレルデータをそのまま前記1ビット乗算器に入力す
るか全ビット反転した後で入力するかを切り替え、かつ
前記フルアダーの最下位ビットのキャリー入力を「0」
とするか「1」とするかを切り替える事により、シリア
ル乗算と加算演算の他に減算演算をも可能とした事を特
徴とする請求項1記載の加算機能付きシリアル乗算器。
2. Using an EX-OR gate or the like, switching between inputting the input parallel data as it is to the 1-bit multiplier or inputting after inverting all bits, and carrying the least significant bit of the full adder Input "0"
2. A serial multiplier with an addition function according to claim 1, wherein switching between "1" and "1" enables subtraction operation in addition to serial multiplication and addition operation.
【請求項3】 前記クリア回路において帰還信号をオー
ルゼロにリセットする機能の他に、ある特定の値にセッ
トする機能を持たせ、前記入力パラレルデータとある特
定の値との加算演算をも可能とした事を特徴とする請求
項1記載の加算機能付きシリアル乗算器。
3. The clearing circuit has a function of setting a feedback signal to all zeros, in addition to a function of setting the feedback signal to a specific value, and can perform an addition operation of the input parallel data and a specific value. 2. A serial multiplier with an addition function according to claim 1, wherein:
【請求項4】 前記1ビット係数データを「0」に固定
して、かつシリアル乗算器全体の出力パラレルデータを
シフトせずに帰還する事によって、前記出力レジスタに
蓄えられた値をホールドする事を可能とした事を特徴と
する請求項1記載の加算機能付きシリアル乗算器。
4. The value stored in the output register is held by fixing the 1-bit coefficient data to “0” and feeding back the output parallel data of the entire serial multiplier without shifting it. 2. A serial multiplier with an addition function according to claim 1, wherein:
JP04246328A 1992-09-16 1992-09-16 Serial multiplier with addition function Expired - Fee Related JP3074958B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04246328A JP3074958B2 (en) 1992-09-16 1992-09-16 Serial multiplier with addition function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04246328A JP3074958B2 (en) 1992-09-16 1992-09-16 Serial multiplier with addition function

Publications (2)

Publication Number Publication Date
JPH0695852A JPH0695852A (en) 1994-04-08
JP3074958B2 true JP3074958B2 (en) 2000-08-07

Family

ID=17146933

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04246328A Expired - Fee Related JP3074958B2 (en) 1992-09-16 1992-09-16 Serial multiplier with addition function

Country Status (1)

Country Link
JP (1) JP3074958B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279323B (en) * 2013-05-31 2016-12-07 福建星网锐捷网络有限公司 A kind of adder

Also Published As

Publication number Publication date
JPH0695852A (en) 1994-04-08

Similar Documents

Publication Publication Date Title
EP0101318B1 (en) Digital filters
US5367477A (en) Method and apparatus for performing parallel zero detection in a data processing system
EP0416869B1 (en) Digital adder/accumulator
EP0238300B1 (en) Serial digital signal processing circuitry
JPH01144122A (en) Dividing circuit
JP3003467B2 (en) Arithmetic unit
US5181184A (en) Apparatus for multiplying real-time 2's complement code in a digital signal processing system and a method for the same
JP3074958B2 (en) Serial multiplier with addition function
JP2509279B2 (en) Floating point number-fixed point number converter
EP0353041A2 (en) Signal processing apparatus and method using modified signed digit arithmetic
JP2864598B2 (en) Digital arithmetic circuit
JPS6361706B2 (en)
JP2001034457A (en) Adding and subtracting circuit
US5615141A (en) Multiplying apparatus
KR100196520B1 (en) Apparatus for conversion of two's complement numbers
JPH11134174A (en) Arithmetic circuit
JPH10254680A (en) Square circuit
JPH0253819B2 (en)
KR0157337B1 (en) Multi-bit adder for digital signal process
JP2995721B2 (en) Division device and division method
JPH0553768A (en) Divider
JPS58119046A (en) Adder and subtracter
JPH05150951A (en) Division processing system
JPH0427587B2 (en)
JPH0816366A (en) Divider and dividing method for the same

Legal Events

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