JPH0695852A - Serial multiplier with adding function - Google Patents

Serial multiplier with adding function

Info

Publication number
JPH0695852A
JPH0695852A JP24632892A JP24632892A JPH0695852A JP H0695852 A JPH0695852 A JP H0695852A JP 24632892 A JP24632892 A JP 24632892A JP 24632892 A JP24632892 A JP 24632892A JP H0695852 A JPH0695852 A JP H0695852A
Authority
JP
Japan
Prior art keywords
bit
output
multiplier
data
parallel data
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
JP24632892A
Other languages
Japanese (ja)
Other versions
JP3074958B2 (en
Inventor
Takeyuki Takayama
強之 高山
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 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

Abstract

PURPOSE:To make also an addition arithmetic operation possible to be carried out by feedback-processing an output signal before one clock without operating a bit shift in a serial amplifier, and fixing a coefficient data input to 1. CONSTITUTION:Data 1 to be inputted in parallel and coefficient data 2 to be serially inputted by an LSB first are multiplied in parallel one bit by a one bit multiplier 4, and the multiplied result is added to a signal obtained by one bit-shifting and feedback-processing the entire outputs before one clock by a full adder 5. Then, a function which fixes the coefficient data to '1' and a function which feedback-operates the entire output data before one clock without shifting the data are added to the serial multiplier which delays the output of the full adder 5 by one clock by a register, so that the addition arithmetic operation can be attained.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

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

【0002】[0002]

【従来の技術】近年、デジタル信号処理回路の集積化に
伴い、入力データに対して様々な処理を行う演算回路の
処理能力と回路構成が全体の回路規模を決定する大きな
要因となっている。
2. Description of the Related Art In recent years, with the integration of digital signal processing circuits, the processing capacity and circuit configuration of arithmetic circuits that perform 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により、帰還信号をオールゼロ
にリセットするクリア回路である。
The structure of a conventional arithmetic circuit will be described below with reference to the drawings. First, FIG. 3 shows a configuration of a conventional serial multiplication circuit. In FIG. 3, 4 is 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), and 5 is a serial A full adder for adding a signal obtained by feeding back the output of the entire multiplier one clock before and an output of the 1-bit multiplier 4 is an output register 6 for latching the output of the full adder 5 by a clock signal 9.
Further, a clear circuit 7 resets the feedback signal to all zeros by the 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 4 clocks of the clock signal 9, and the 1-bit coefficient data 2 is LSB first and the clock signal 9 is 1
Data is input serially for each clock. First, in the first clock, the clear signal 8 becomes low level in synchronization with the clock signal 9, and the feedback signal 10
Is reset to all zeros. At the same time, the data D3 (1) input from the input parallel data 1
The 1-bit multiplier 4 outputs the result of parallel 1-bit multiplication of D 0 (1) and K 0 (1) which is the LSB of the coefficient data input from the 1-bit coefficient data 2.

【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 full adder 5 is set to "0" as shown in FIG. And carry output 1 of the full adder 5
The bits and the upper 3 bits of the sum output are latched by the output register 6, and the parallel data output 3 is directly fed back 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 a form in which the output of the full adder 5 one clock before is shifted in the LSB direction by 1 bit. In the 1-bit multiplier 4, the input data D3 (1) to D0 (1) and the coefficient data K1 (1) are multiplied in parallel by 1 bit, and the feedback signal 10 and the output of the 1-bit multiplier 4 in the full adder 5 are obtained. Is added and the addition result 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 every clock, and the output parallel data 3 at the fifth clock is D3 (1) to D0 (1) and K3 (1) to K0 (1). It 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 the output register 6 in FIG. 5 are the same as those in FIG. Reference numeral 11 is an inverter for inverting 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 input B3 are set.
By inputting ~ B0 into the full adder 5, both are added. Then, after that, the addition result is latched by the output register 6 in synchronization with the clock signal 9. Further, in the case of the subtracter shown in FIG. 5B, the carry input of the least significant bit of the full adder 5 is set to "1", and the input B3 to B0 are bit-inverted by the inverter 11 and the input A3 to A0. Is added with full adder 5. As a result, 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-mentioned configuration, different arithmetic circuits are required depending on the type of operation. Further, when outputting the operation result to the same data bus, a transfer gate or a selector is required at the output section of each operation circuit in order to prevent the output signals of each operation circuit from colliding with each other. Therefore, there is a problem that the circuit scale becomes very large especially when the number of bits of the input parallel data is large.

【0008】本発明は上記従来の問題点を解決するもの
で、様々な演算処理を一つの演算回路で行う事によっ
て、回路規模を小さくする事を目的としてなされたもの
である。
The present invention has been made to solve the above-mentioned conventional problems, and has been made with the object of reducing the circuit scale by performing various arithmetic processes in 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 between input parallel data and 1-bit coefficient data, and a serial A clear circuit that resets the parallel feedback signal from the output parallel data of the entire multiplier to zero, a full adder that adds the output of the 1-bit multiplier and the clear circuit, and an output register that delays the output of the full adder by one clock. , A selector for switching between returning the output of the register by 1 bit for feedback and for returning without shifting, 1-bit coefficient data is serially input every clock at LSB first during multiplication, and the register The output parallel data of the entire serial multiplier, which is the output of, is shifted 1 bit to the MSB side. The input parallel data and the 1-bit coefficient data are serially multiplied by the feedback, and 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 not shifted. By feeding back to the output register, the addition operation of the value stored in the output register and the input parallel data is performed.

【0010】[0010]

【作用】本発明は上記した構成によって、従来の演算回
路において個々の演算回路ごとに別々に必要であったフ
ルアダーや出力レジスタを兼用する事ができる。さらに
演算回路としての出力が一つになるため、演算結果をデ
ータバスに出力する場合も従来のようにトランスファー
ゲートやセレクタを必要としない。このため特に入力パ
ラレルデータのビット数が多い場合は、その回路規模を
大幅に削減する事ができる。
With the above-described structure, the present invention can also serve as a full adder and an output register, which are required separately for each arithmetic circuit in the conventional arithmetic circuit. Further, since the number of outputs as the arithmetic circuit is one, the transfer gate and the selector are not required unlike the conventional case when outputting the arithmetic result to the data bus. Therefore, especially when the number of bits of 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の出力信号となる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A serial multiplier with an addition function of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a serial multiplier with an addition function according to an 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. Further, 12 is an EX-OR gate for rotating the input parallel data 1 normally or inverted and inputting it to the 1-bit multiplier 4, 13 is a first switch for switching between normal rotation and inversion of the EX-OR gate, 14 Is a second switch for switching the input of the 1-bit multiplier 4 to the 1-bit coefficient data 2 or "1" or "0", 1
5 is a third switch for switching the carry input of the least significant bit of the full adder 5 to "0" or "1", and 16 is to return the output of the output register 6 without shifting or by shifting it by 1 bit. Is a fourth switch for switching between. Further, 17 is an OR gate for setting a specific bit in the feedback signal cleared by the clear circuit 7, and is controlled by the set signal 18. Output parallel data 3 (S3 to S0), which is the output of the entire serial multiplier with the addition function
Becomes an 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 having the above-described structure will be described below. First, when serial multiplication is performed first, 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 moved to the side for shifting 1 bit, to the bit coefficient data 2 side. By setting in this way, the serial multiplier with an addition function according to the present invention shown in FIG.
This is exactly the same as the conventional serial multiplication circuit shown in FIG. Therefore, the operation timing is also exactly the same as the timing chart shown in FIG. In addition, in FIG.
As in the conventional example, in order to clear the feedback signal 10 to all zero before starting the calculation, 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 the value obtained as a result of multiplication by setting a specific bit after clearing all of 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 to set "1" as an initial value.
The value such as "000B" is added. By this processing, the bits after the decimal point can be rounded by rounding operation in the finally obtained multiplication result.

【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 first 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 tilted to the non-shifting side. As a result, the input parallel data 1 "D
(1) ”will be input to the full adder 5 as it is. Then, the clear signal 8 and the set signal 18 are set to the low level at the first first clock, the feedback signal 10 is reset to all zeros, and is 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. Then, by setting the clear signal 8 to the high level at the second clock, the data previously stored in the output register 6 is fed back as it is and added to the data "D (2)" newly added from the input parallel data 1. , Addition result “D
(1) + D (2) "is latched in the output register 6 and output at the third clock.

【0014】また、減算を行う場合は、まず、前記加算
の場合と同じ手順で入力パラレルデータ1「D(3)」
を出力レジスタ6に蓄える。そして2クロック目でクリ
ア信号8をハイレベルとすると同時に、第1のスイッチ
13を「1」として入力パラレルデータ1「D(4)」
をビット反転させる。さらに第3のスイッチ15を
「1」としてフルアダー5にキャリー入力「+1」を加
える。これにより、最初に出力レジスタ6に蓄えられた
データ「D(3)」から、新たに入力パラレルデータ1
より加えられたデータ「D(4)」が減算され、3クロ
ック目で出力レジスタ6に減算結果「D(3)−D
(4)」がラッチされて出力される。
When subtraction is performed, first, the input parallel data 1 "D (3)" is input in the same procedure as in the case of addition.
Is stored in the output register 6. At the second clock, the clear signal 8 is set to high level, and at the same time, the first switch 13 is set to "1" to input the parallel data 1 "D (4)".
Bit invert. Further, the carry input “+1” is added to the full adder 5 by setting the third switch 15 to “1”. As a result, the input parallel data 1 is newly added from the data “D (3)” initially stored in the output register 6.
The added data "D (4)" is subtracted, and the subtraction result "D (3) -D" is output to the output register 6 at the third clock.
(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" and the fourth switch 16 is fixed to the non-shift side, and a clear signal is given. It is also possible to hold the data "D (3) -D (4)" stored in the output register 6 by setting 8 to high level and the set signal 18 to low level.

【0016】また、上記加減算演算をシリアル乗算が終
了した後に連続的に行う場合は、最初の1クロック目で
入力パラレルデータ1を出力レジスタ6に蓄える必要が
ない。すなわち第4のスイッチ16を1ビットシフトさ
せる側に倒した状態で、加算もしくは減算演算における
前記2クロック目の動作を行えば、乗算結果と入力パラ
レルデータ1との加減算演算を1クロックで行う事が出
来る。
When the addition / subtraction operation is continuously performed after the serial multiplication is completed, it is not necessary to store the input parallel data 1 in the output register 6 at the first clock. That is, if the second switch operation in the addition or subtraction operation is performed while the fourth switch 16 is turned to the side that shifts by 1 bit, the addition / subtraction operation of the multiplication result and the input parallel data 1 is 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 is a 1-bit multiplier for performing parallel 1-bit multiplication of input parallel data and 1-bit coefficient data,
A clear circuit for resetting the parallel feedback signal from the output parallel data of the entire serial multiplier to zero;
A full adder that adds the output of the bit multiplier and the clear circuit, an output register that delays the output of the full adder by 1 clock, and a switch between the feedback of the output of the register by 1 bit and the feedback without shifting A selector, and serially inputs 1-bit coefficient data every LSB first at the time of multiplication, and outputs the output parallel data of the entire serial multiplier, which is the output of the register, to the MSB side by 1-bit and returns it. Therefore, the input parallel data and the 1-bit coefficient data are serially multiplied, 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 the full adder and the output register separately required for each operation circuit in the conventional operation circuit. Since there is only one output as the arithmetic circuit, a transfer gate and a selector are not required when outputting the arithmetic result to the data bus as in the conventional case. 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 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 the timing of a serial multiplier with an addition function of the present invention.

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

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

【図5】(a)は従来の加算器の構成図 (b)は従来の減算器の構成図5A is a configuration diagram of a conventional adder, and 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ゲート 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)

【特許請求の範囲】[Claims] 【請求項1】 入力パラレルデータと1ビット係数デー
タとの並列1ビット乗算を行う1ビット乗算器と、シリ
アル乗算器全体の出力パラレルデータからのパラレル帰
還信号をゼロにリセットするクリア回路と、前記1ビッ
ト乗算器とクリア回路の出力との加算を行うフルアダー
と、前記フルアダーの出力を1クロック遅らせる出力レ
ジスタと、前記レジスタの出力を1ビットシフトさせて
帰還するかシフトさせずに帰還するかを切り替えるセレ
クタとを有し、乗算時にはLSBファーストで1クロッ
クごとに1ビット係数データをシリアル入力し、かつ前
記レジスタの出力であるシリアル乗算器全体の出力パラ
レルデータをMSB側に1ビットシフトさせて帰還する
事により、入力パラレルデータと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, and A full adder that adds the 1-bit multiplier and the output of the clear circuit, an output register that delays the output of the full adder by 1 clock, and a feedback of whether the output of the register is shifted by 1 bit or returned without shifting A selector for switching, 1-bit coefficient data is serially input every clock at LSB first during multiplication, 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. By doing so, serial multiplication of the input parallel data and the 1-bit coefficient data is performed. In addition, 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 A serial multiplier with an addition function characterized by performing addition operations.
【請求項2】 EX−ORゲート等を用いて、前記入力
パラレルデータをそのまま前記1ビット乗算器に入力す
るか全ビット反転した後で入力するかを切り替え、かつ
前記フルアダーの最下位ビットのキャリー入力を「0」
とするか「1」とするかを切り替える事により、シリア
ル乗算と加算演算の他に減算演算をも可能とした事を特
徴とする請求項1記載の加算機能付きシリアル乗算器。
2. An EX-OR gate or the like is used to switch between inputting the input parallel data to the 1-bit multiplier as it is or inverting all bits and then inputting, and carrying the least significant bit of the full adder. Input "0"
The serial multiplier with an addition function according to claim 1, wherein the subtraction operation can be performed in addition to the serial multiplication and the addition operation by switching between "1" and "1".
【請求項3】 前記クリア回路において帰還信号をオー
ルゼロにリセットする機能の他に、ある特定の値にセッ
トする機能を持たせ、前記入力パラレルデータとある特
定の値との加算演算をも可能とした事を特徴とする請求
項1記載の加算機能付きシリアル乗算器。
3. The clear circuit is provided with a function of setting a feedback signal to all zeros as well as a function of setting it to a specific value, and an addition operation of the input parallel data and a specific value is also possible. The serial multiplier with an addition function according to claim 1, characterized in that.
【請求項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. The 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 true JPH0695852A (en) 1994-04-08
JP3074958B2 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279323A (en) * 2013-05-31 2013-09-04 福建星网锐捷网络有限公司 Adder

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279323A (en) * 2013-05-31 2013-09-04 福建星网锐捷网络有限公司 Adder

Also Published As

Publication number Publication date
JP3074958B2 (en) 2000-08-07

Similar Documents

Publication Publication Date Title
US4700324A (en) Digital circuit performing an arithmetic operation with an overflow
JP2000155671A (en) Floating point arithmetic unit
JP2585649B2 (en) Division circuit
US5113362A (en) Integrated interpolator and method of operation
JP3003467B2 (en) Arithmetic unit
JP3277089B2 (en) Multiplier and product-sum operation unit
US5148161A (en) Digital signal processor for fixed and floating point data
US6047305A (en) Division circuit not requiring taking complements of divisor, dividend and remainder
JPH0546363A (en) Divider
JP3074958B2 (en) Serial multiplier with addition function
JP2509279B2 (en) Floating point number-fixed point number converter
JPS58137045A (en) Parallel multiplier
JP2864598B2 (en) Digital arithmetic circuit
JP2001034457A (en) Adding and subtracting circuit
JP2995721B2 (en) Division device and division method
US5483477A (en) Multiplying circuit and microcomputer including the same
JPH11134174A (en) Arithmetic circuit
JPH10254680A (en) Square circuit
JPH0381174B2 (en)
JPH0553768A (en) Divider
JPH0253819B2 (en)
JP2001005642A (en) Multiplier
JPH07120964B2 (en) Extension circuit
JPH05257649A (en) Serial multiplier
JPH02239325A (en) Division circuit

Legal Events

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