JP2617591B2 - Serial operation circuit - Google Patents

Serial operation circuit

Info

Publication number
JP2617591B2
JP2617591B2 JP32933289A JP32933289A JP2617591B2 JP 2617591 B2 JP2617591 B2 JP 2617591B2 JP 32933289 A JP32933289 A JP 32933289A JP 32933289 A JP32933289 A JP 32933289A JP 2617591 B2 JP2617591 B2 JP 2617591B2
Authority
JP
Japan
Prior art keywords
serial
adder
carry
output
input
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 - Lifetime
Application number
JP32933289A
Other languages
Japanese (ja)
Other versions
JPH03188522A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP32933289A priority Critical patent/JP2617591B2/en
Publication of JPH03188522A publication Critical patent/JPH03188522A/en
Application granted granted Critical
Publication of JP2617591B2 publication Critical patent/JP2617591B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、2n(n≧2)以下の個数のシリアルデー
タの加算合計値を演算結果としてシリアルに出力するシ
リアル演算回路に関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial operation circuit that serially outputs the sum of serial data of 2 n (n ≧ 2) or less as an operation result. .

〔従来の技術〕[Conventional technology]

第2図は従来のシリアル演算回路を示す回路構成図で
ある。
FIG. 2 is a circuit diagram showing a conventional serial operation circuit.

同図において、1は8個のシリアルデータ入力D0〜D7
を有する入力部である。入力部1のシリアルデータ入力
(D0,D1),(D2,D3),(D4,D5)及び(D6,D7)をそれ
ぞれ加数入力として初段の全加算器FA11,FA12,FA13及び
FA14が接続されている。そして、全加算器FA11,FA12及
び全加算器FA13,FA14の加算出力をそれぞれ加数入力と
して第2段の全加算器FA21及びFA22が接続されている。
この全加算器FA21及びFA2の加算出力を加数入力として
第3段(最終段)の全加算器FA31が接続されている。こ
の全加算器FA31の加算出力が出力端子3より演算結果Do
utとしてシリアルに出力される。
In the figure, reference numeral 1 denotes eight serial data inputs D0 to D7.
It is an input part which has. The serial data inputs (D0, D1), (D2, D3), (D4, D5), and (D6, D7) of the input unit 1 are used as addend inputs, respectively, and the first-stage full adders FA11, FA12, FA13 and
FA14 is connected. The second stage full adders FA21 and FA22 are connected to adders of the full adders FA11 and FA12 and the full adders FA13 and FA14, respectively, as addend inputs.
A third stage (final stage) full adder FA31 is connected to the adder output of the full adders FA21 and FA2 as an addend input. The addition output of the full adder FA31 is output from the output terminal 3 to the operation result Do.
Output serially as ut.

上記全加算器FA11〜14,FA21,FA22及びFA31(以下、総
称する場合、単に「全加算器FA」という。)には、それ
ぞれキャリー保持用レジスタR11〜14,R21,R22及びR31
(以下、総称する場合、単に「キャリー保持用レジスタ
R」という。)が接続されている。キャリー保持用レジ
スタRは、対応の全加算器FAのキャリー出力を格納し、
該キャリー出力を1ビットタイム遅らせて同じ全加算器
FAのキャリー入力として出力する。そして、1つのキャ
リー保持用レジスタRと、対応する1つの全加算器FAと
により1つの直列加算器を構成している。
The full adders FA11 to 14, FA21, FA22, and FA31 (hereinafter, simply referred to as "full adder FA") have carry holding registers R11 to 14, R21, R22, and R31, respectively.
(Hereinafter referred to simply as “carry holding register R”). The carry holding register R stores the carry output of the corresponding full adder FA,
The same full adder delaying the carry output by one bit time
Output as carry input of FA. One carry holding register R and one corresponding full adder FA constitute one serial adder.

このように、シリアル演算回路は、8個のシリアルデ
ータ入力D0〜D7に対し、直列加算器を2入力に1つの割
合で直列に接続して計算部10を構成し、最終段の直列加
算器(FA31,R31)の加算出力を演算結果Doutとして、シ
リアルに出力する。
As described above, the serial operation circuit configures the calculation unit 10 by serially connecting the serial adders to the two inputs at one ratio with respect to the eight serial data inputs D0 to D7, and configures the calculating unit 10 at the final stage. The addition output of (FA31, R31) is serially output as the operation result Dout.

上記構成のシリアル演算回路は、直列加算器の3段構
成であるため、入力部1のシリアルデータ入力D0〜D7に
それぞれビットデータの最上位ビットが取り込まれた時
刻から、3ビットタイム遅れて最終演算結果が出力端子
3より出力される。
Since the serial operation circuit having the above-described configuration has a three-stage configuration of a serial adder, the serial operation circuit has a three-stage delay from the time when the most significant bit of the bit data is taken into each of the serial data inputs D0 to D7 of the input unit 1. The calculation result is output from the output terminal 3.

したがって、前回のシリアルデータSD0の最上位ビッ
トが入力部1に取り込まれた時刻から、3ビットタイム
以内の遅れで次のシリアルデータSD1の最下位ビットが
入力部1に取り込まれると、シリアルデータSD1の最下
位ビットの影響がシリアルデータSD0の演算結果Doutに
現れてしまう問題点があった。
Therefore, when the least significant bit of the next serial data SD1 is taken into the input unit 1 with a delay within 3 bit time from the time when the most significant bit of the previous serial data SD0 is taken into the input unit 1, the serial data SD1 However, there is a problem in that the effect of the least significant bit appears in the operation result Dout of the serial data SD0.

この問題点を解消するためのシリアル演算回路を第3
図に示す。同図に示すように、計算部10とは別に、入力
部1(便宜上、1a,1bと分けて図示している。)の8個
のシリアルデータ入力D0〜D7に対し、全加算器FA11′〜
14′,FA21′,FA22′及びFA31′並びにキャリー保持用レ
ジスタR11′〜14′,R21′,R22′及びR31′からなる、計
算部10と全く同一構成の計算部10′を入力部1に接続し
ている。
In order to solve this problem, a serial arithmetic circuit
Shown in the figure. As shown in the figure, separately from the calculation unit 10, eight serial data inputs D0 to D7 of the input unit 1 (separated for convenience from 1a and 1b) are input to a full adder FA11 '. ~
A calculation unit 10 'having the same configuration as the calculation unit 10 and comprising a carry holding register R11' to 14 ', R21', R22 ', and R31', is provided to the input unit 1 as 14 ', FA21', FA22 ', and FA31'. Connected.

そして、計算部10,10′の加算結果がセレクタ2のA
入力,B入力にそれぞれ取り込まれる。セレクタ2はAモ
ード時に計算部10の加算結果(A入力)を、Bモード時
に計算部10′の加算結果(B入力)を、演算結果Doutと
して選択的に出力端子3に出力する。
The addition result of the calculation units 10 and 10 ′ is
Input and B input respectively. The selector 2 selectively outputs to the output terminal 3 the addition result (A input) of the calculation unit 10 in the A mode and the addition result (B input) of the calculation unit 10 'in the B mode as the calculation result Dout.

このように構成すると、前回のシリアルデータSD0の
最上位ビットが入力部1に取り込まれた時刻t0から、3
ビットタイム以内の遅れで次のシリアルデータSD1の最
下位ビットが入力部1に取り込まれても、例えば、セレ
クタ2をAモードに設定した状態で、時刻t0までは入力
部1を計算部10に接続し、時刻t0後は入力部1を計算部
10′に接続するとともに、所望の演算結果Doutを得る時
刻までセレクタ2をAモードに設定し続けることによ
り、シリアルデータSD1の最下位ビットの影響がシリア
ルデータSD0の演算結果Doutに現れることなく、正確な
演算結果Doutとして出力することができる。
With this configuration, from the time t0 when the most significant bit of the previous serial data SD0 was taken into the input unit 1, 3
Even if the least significant bit of the next serial data SD1 is taken into the input unit 1 with a delay within the bit time, for example, with the selector 2 set to the A mode, the input unit 1 is sent to the calculation unit 10 until time t0. Connect, and after time t0, input unit 1 is calculated
By connecting to 10 'and setting the selector 2 in the A mode until the time when the desired operation result Dout is obtained, the effect of the least significant bit of the serial data SD1 does not appear in the operation result Dout of the serial data SD0. It can be output as an accurate calculation result Dout.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

従来のシリアル演算回路は以上のように構成されてお
り、2n個のmビットシリアルデータの加算結果を演算結
果Doutとして最終的に得るには、(m+n)ビットタイ
ム要する。
The conventional serial operation circuit is configured as described above, and it takes (m + n) bit time to finally obtain an addition result of 2 n m-bit serial data as an operation result Dout.

したがって、入力部1に順次取り込まれる相前後する
mビットシリアルデータの時間間隔がnビットタイム以
内の場合、第3図で示したシリアル演算回路のように、
通常(第2図)の倍の全加算器を設ける等、回路規模が
大きくなってしまう問題点があった。
Therefore, when the time interval between successive m-bit serial data sequentially taken into the input unit 1 is within the n-bit time, like the serial operation circuit shown in FIG.
There is a problem that the circuit scale becomes large, such as providing a full adder twice as usual (FIG. 2).

この発明は上記のような問題点を解決するためになさ
れたもので、回路規模を大きくすることなく、相前後す
るシリアルデータの入力時間間隔が短くとも、後のシリ
アルデータの影響を受けることなく、前のシリアルデー
タの演算結果を出力することができるシリアル演算回路
を得ることを目的とする。
The present invention has been made in order to solve the above-described problems, and does not increase the circuit scale, and is not affected by subsequent serial data even if the serial data input time interval is short. It is another object of the present invention to obtain a serial operation circuit capable of outputting the operation result of the previous serial data.

〔課題を解決するための手段〕[Means for solving the problem]

この発明にかかるシリアル演算回路は、2n(n≧2)
以下の個数のシリアルデータの加算合計値を演算結果と
してシリアルに出力する回路であって、2n個の1ビット
入力端子を有する入力部と、前記入力部に対し、直列加
算器を2入力に1つの割合で直列に接続して、最終段の
直列加算器より加算結果をシリアルに出力する第1の計
算部と、前記第1の計算部における、前記入力部に接続
された初段の直列加算器のキャリー保持用レジスタに対
し、直列加算器を2入力に1つの割合で直列に接続し
て、最終段の直列加算器より加算結果をシリアルに出力
する第2の計算部と、前記第2の計算部の直列加算器の
キャリー保持用レジスタに、当該直列加算器のキャリー
出力及び対応段の対応する前記第1の計算部の直列加算
器のキャリー出力のうち、一方のキャリー出力を選択的
に与える第1の選択手段と、前記第1の計算部の加算結
果及び前記第2の計算部の加算結果のうち、一方の加算
結果を前記演算結果として選択的に出力す第2の選択手
段とを備えている。
The serial operation circuit according to the present invention has 2 n (n ≧ 2)
A circuit for serially outputting the sum of the following numbers of serial data as an operation result, comprising: an input unit having 2 n 1-bit input terminals; and a serial adder having two inputs for the input unit. A first calculator connected in series at one ratio and serially outputting an addition result from a serial adder at a last stage; and a serial adder of a first stage connected to the input unit in the first calculator. A second calculating unit that serially connects the serial adder to the two inputs at one ratio with respect to the carry holding register of the adder, and outputs the addition result serially from the last serial adder; The carry holding register of the serial adder of the calculation unit is selectively connected to one of the carry output of the serial adder and the carry output of the serial adder of the first calculation unit corresponding to the corresponding stage. First choice to give to And stage, among the addition result of the addition result and the second calculation portion of the first calculation unit, and a second selecting means to selectively output one of the addition result as the operation result.

〔作用〕[Action]

この発明においては、以下に示す処理が可能となる。
入力部に与えられるシリアルデータの最上位ビットの入
力時刻まで、第1の選択手段により、第2の計算部の直
列加算器のキャリー保持用レジスタに、対応段の対応す
る第1の計算部の直列加算器のキャリー出力を与え、第
2の選択手段により、第1の計算部の加算結果を演算結
果として出力する。そして、シリアルデータの最上位ビ
ットの入力時刻を過ぎると、第1の選択手段により、第
2の直列加算器のキャリーレジスタに当該直列加算器の
キャリー出力を与え、第2の選択手段により、第2の計
算部の加算結果を演算結果として出力することにより、
第1の計算部の初段の直列加算器のキャリー保持用レジ
スタの出力に対する加算処理を行う。
According to the present invention, the following processing can be performed.
Until the input time of the most significant bit of the serial data supplied to the input unit, the first selecting means stores the carry holding register of the serial adder of the second calculating unit in the corresponding first calculating unit of the corresponding stage. The carry output of the serial adder is provided, and the addition result of the first calculation unit is output as an operation result by the second selection means. Then, after the input time of the most significant bit of the serial data, the carry output of the serial adder is given to the carry register of the second serial adder by the first selecting means, and the carry output of the serial adder is given by the second selecting means. By outputting the addition result of the calculation unit 2 as an operation result,
An addition process is performed on the output of the carry holding register of the first stage serial adder of the first calculation unit.

〔実施例〕〔Example〕

第1図はこの発明の一実施例であるシリアル演算回路
を示す回路構成図である。
FIG. 1 is a circuit diagram showing a serial operation circuit according to an embodiment of the present invention.

同図において、1は8個のシリアルデータ入力D0〜D7
を有する入力部である。入力部1のシリアルデータ入力
(D0,D1),(D2,D3),(D4,D5)及び(D6,D7)をそれ
ぞれ加数入力として初段の全加算器FA11,FA12,FA13及び
FA14が接続されている。そして、全加算器FA11,FA12及
び全加算器FA13,FA14の加算出力をそれぞれ加数入力と
して第2段の全加算器FA21及びFA22が接続されている。
この全加算器FA21及びFA22の加算出力を加数入力として
第3段(最終段)の全加算器FA31が接続されている。こ
の全加算器FA31の加算出力がセレクタ20のA入力に接続
される。
In the figure, reference numeral 1 denotes eight serial data inputs D0 to D7.
It is an input part which has. The serial data inputs (D0, D1), (D2, D3), (D4, D5), and (D6, D7) of the input unit 1 are used as addend inputs, respectively, and the first-stage full adders FA11, FA12, FA13 and
FA14 is connected. The second stage full adders FA21 and FA22 are connected to adders of the full adders FA11 and FA12 and the full adders FA13 and FA14, respectively, as addend inputs.
A third stage (final stage) full adder FA31 is connected to the addition outputs of the full adders FA21 and FA22 as addend inputs. The addition output of the full adder FA31 is connected to the A input of the selector 20.

上記全加算器FA11〜14,FA21,FA22及びFA31には、それ
ぞれキャリー保持用レジスタR11〜14,R21,R22及びR31が
接続されている。キャリー保持用レジスタRは、対応の
全加算器FAのキャリー出力を格納し、該キャリー出力を
1ビットタイム遅らせて同じ全加算器FAのキャリー入力
として出力する。そして、1つのキャリー保持用レジス
タRと、対応する1つの全加算器FAとにより1つの直列
加算器を構成している。
Carry holding registers R11 to 14, R21, R22 and R31 are connected to the full adders FA11 to 14, FA21, FA22 and FA31, respectively. The carry holding register R stores the carry output of the corresponding full adder FA, delays the carry output by one bit time, and outputs the result as the carry input of the same full adder FA. One carry holding register R and one corresponding full adder FA constitute one serial adder.

また、初段の全加算器FA11〜14には、さらにキャリー
保持用補助レジスタSR11〜SR14が接続されている。キャ
リー保持用補助レジスタSR11〜SR14は、対応の全加算器
FA11〜FA14のキャリー出力を格納し、格納したキャリー
出力を1ビットタイム遅らせて、SR11及びSR12に格納し
たキャリー出力は補助全加算器SFA21の加数入力とし、S
R13及びSR14に格納したキャリー出力は補助全加算器SFA
22の加数入力としている。
Carry holding auxiliary registers SR11 to SR14 are further connected to the first-stage full adders FA11 to FA14. Carry holding auxiliary registers SR11 to SR14 are the corresponding full adders.
The carry outputs of FA11 to FA14 are stored, the stored carry outputs are delayed by one bit time, and the carry outputs stored in SR11 and SR12 are used as the addend inputs of the auxiliary full adder SFA21.
The carry output stored in R13 and SR14 is the auxiliary full adder SFA
It has 22 addend inputs.

補助全加算器SFA21及びSFA22の加算器出力は、補助全
加算器SFA31の加数入力となる。そして、補助全加算器S
FA31の加算出力がセレクタ20のB入力に接続される。
The adder outputs of the auxiliary full adders SFA21 and SFA22 become the addend inputs of the auxiliary full adder SFA31. And the auxiliary full adder S
The addition output of FA31 is connected to the B input of selector 20.

また、補助全加算器SFA21,SFA22及びSFA31のキャリー
出力はセレクタ21,22及び31のB入力に与えられる。こ
れらのセレクタ21,22及び31のA入力には、全加算器FA2
1,FA22及びFA31のキャリー出力が与えられる。セレクタ
21,22及び31は、A入力及びB入力により得られたキャ
リー出力のうち一方を、選択的にキャリー保持用補助レ
ジスタSR21,22及び31に出力する。キャリー保持用補助
レジスタSR21,22及び31は、格納したキャリー出力を1
ビットタイム遅らせて、対応の補助全加算器SFA21,22及
び31のキャリー入力として出力する。また、セレクタ20
は、A入力及びB入力より得られた加算出力のうち一方
を、選択的に演算結果Doutとして出力端子3より出力す
る。
The carry outputs of the auxiliary full adders SFA21, SFA22 and SFA31 are supplied to the B inputs of the selectors 21, 22 and 31. The A inputs of these selectors 21, 22 and 31 are connected to a full adder FA2.
1, carry outputs of FA22 and FA31 are provided. selector
21, 22, and 31 selectively output one of the carry outputs obtained by the A input and the B input to the carry holding auxiliary registers SR21, 22, and 31. The carry holding auxiliary registers SR21, SR22, and SR31 store the carry output by one.
The bit times are delayed and output as carry inputs of the corresponding auxiliary full adders SFA21, SFA22 and SFA31. In addition, selector 20
Outputs one of the added outputs obtained from the A input and the B input from the output terminal 3 as an operation result Dout selectively.

このように、シリアル演算回路は、8個のシリアルデ
ータ入力D0〜D7に対し、キャリー保持用レジスタRと全
加算器FAにより成る直列加算器を2入力に1つの割合で
直列に接続して構成された計算部と、キャリー保持用補
助レジスタSR11〜SR14の出力に対し、キャリー保持用補
助レジスタSRと補助全加算器SFAとセレクタより成る直
列加算器を2入力に1つの割合で直列に接続して構成さ
れた補助計算部とが設けられている。そして、セレクタ
20により、計算部及び補助計算部のうち、一方の加算結
果を選択的に演算結果Doutとして出力する。
As described above, the serial operation circuit is configured by connecting a serial adder composed of a carry holding register R and a full adder FA in series at two inputs to one of eight serial data inputs D0 to D7. With respect to the calculated calculation unit and the outputs of the carry holding auxiliary registers SR11 to SR14, a carry adder register SR, an auxiliary full adder SFA, and a serial adder composed of a selector are connected in series at one input ratio to two inputs. And an auxiliary calculation unit configured as described above. And the selector
According to 20, the addition result of one of the calculation unit and the auxiliary calculation unit is selectively output as the calculation result Dout.

このような構成において、通常時はセレクタ20,21,22
及び31は、A入力より得たビットデータを選択して、計
算部の加算結果を演算結果Doutとして出力する。この
時、キャリー保持用補助レジスタSR21,22及び31に、全
加算器FA21,22及び31のキャリー出力が格納される。こ
れは、通常時から後述するキャリー演算モードに移った
時に、補助計算部が、それまでに入力されたシリアルデ
ータのキャリー出力を考慮して、正確に加算結果を導出
できるようにするために行われる。そして、前回のシリ
アルデータSD0の最上位ビットが入力部1に取り込まれ
た時刻t0を過ぎると、キャリー演算モードに移り、セレ
クタ20〜22及び31は、B入力より得たビットデータを選
択して出力しい、補助計算部の加算結果を演算結果Dout
として出力する。
In such a configuration, the selectors 20, 21, 22
And 31 select the bit data obtained from the A input and output the addition result of the calculation unit as the operation result Dout. At this time, the carry outputs of the full adders FA21, 22 and 31 are stored in the carry holding auxiliary registers SR21, 22 and 31, respectively. This is performed so that the auxiliary calculation unit can accurately derive the addition result in consideration of the carry output of the serial data input up to that point, when shifting from the normal operation to the carry operation mode described later. Will be Then, after the time t0 when the most significant bit of the previous serial data SD0 is taken into the input unit 1, the mode shifts to the carry operation mode, and the selectors 20 to 22 and 31 select the bit data obtained from the B input and Output is good, the addition result of the auxiliary calculation unit is the operation result Dout
Output as

補助計算部の加算処理は、キャリー保持用補助レジス
タSR11〜SR14の出力に基づき行われているため、次に入
力部1に取込まれたシリアルデータSD1の最下位ビット
が、補助計算部のシリアルデータSD0の加算処理に影響
を与える時刻は、キャリー保持用補助レジスタSR11〜SR
14を通過する分、従来より1ビットタイム遅れることに
なる。したがって、時刻t0から3ビットタイム以上遅れ
て、シリアルデータSD1の最下位ビットが取込まれて
も、シリアルデータSD1の最下位ビットの影響をシリア
ルデータSD0の演算結果Doutに現れなくすることができ
る。
Since the addition processing of the auxiliary calculation unit is performed based on the outputs of the carry holding auxiliary registers SR11 to SR14, the least significant bit of the serial data SD1 next taken in the input unit 1 is the serial data of the auxiliary calculation unit. The time that affects the addition processing of data SD0 is determined by carry holding auxiliary registers SR11 to SR11.
As a result of passing through 14, there is a delay of one bit time from the prior art. Therefore, even if the least significant bit of the serial data SD1 is taken in at least three bit times from the time t0, the effect of the least significant bit of the serial data SD1 can be prevented from appearing in the operation result Dout of the serial data SD0. .

また、全加算器の数も、第3図のシリアル演算回路に
比べ4個減らすことができるため、回路規模を小さくす
ることができる。つまり、2n個のmビットシリアルデー
タの加算を行うシリアル演算回路を本実施例のように構
成すれば、第3図のような構成のシリアル演算回路に比
べ2n-1個の全加算器を減らすことができる。
Also, the number of full adders can be reduced by four as compared with the serial operation circuit of FIG. 3, so that the circuit scale can be reduced. In other words, if a serial arithmetic circuit for adding 2 n m-bit serial data is configured as in the present embodiment, 2 n -1 full adders can be compared with a serial arithmetic circuit having a configuration as shown in FIG. Can be reduced.

なお、本実施例では、8個(=23個)のシリアルデー
タの加算を行うシリアル演算回路について述べたが、こ
れに限定されず、本実施例を応用して2n個(nは2以上
の整数)のシリアルデータの加算を行うシリアル演算回
路を構成することができる。さらに、k≠2nであっても
k≧3であれば、2n(>k)個のシリアル入力に対応す
るシリアル演算回路を構成し、(2n−k)個の入力を、
“0"固定入力とする構成で簡単に実現することができ
る。また、全加算器FA,SFA、キャリー保持用レジスタR,
SR並びにセレクタ20、21、22及び31は、その機能を果た
すものであれば、いかなるものであってもよい。
In the present embodiment has described the serial arithmetic circuit for adding the serial data of eight (= 2 3) is not limited to this, 2 n pieces (n by applying the present embodiment 2 It is possible to configure a serial operation circuit that adds the serial data of the above integers). Furthermore, even if k ≠ 2 n , if k ≧ 3, a serial operation circuit corresponding to 2 n (> k) serial inputs is configured, and (2 n −k) inputs are
This can be easily realized with a configuration in which “0” is fixed input. In addition, full adders FA and SFA, carry holding register R,
The SR and the selectors 20, 21, 22 and 31 may be any as long as they fulfill their functions.

〔発明の効果〕〔The invention's effect〕

以上説明したように、この発明によれば、以下に示す
処理が可能となる。入力部に与えられるシリアルデータ
の最上位ビットの入力時刻まで、第1の選択手段によ
り、第2の計算部の直列加算器のキャリー保持用レジス
タに、対応段の対応する第1の計算部の直列加算器のキ
ャリー出力を与え、第2の選択手段により、第1の計算
部の加算結果を演算結果として出力する。そして、シリ
アルデータの最上位ビットの入力時刻を過ぎると、第1
の選択手段により、第2の直列加算器のキャリーレジス
タに当該直列加算器のキャリー出力を与え、第2の選択
手段により、第2の計算部の加算結果を演算結果として
出力することにより、第1の計算部の初段の直列加算器
のキャリー保持用レジスタの出力に対する加算処理を行
う。
As described above, according to the present invention, the following processing can be performed. Until the input time of the most significant bit of the serial data supplied to the input unit, the first selecting means stores the carry holding register of the serial adder of the second calculating unit in the corresponding first calculating unit of the corresponding stage. The carry output of the serial adder is provided, and the addition result of the first calculation unit is output as an operation result by the second selection means. After the input time of the most significant bit of the serial data, the first
The carry output of the serial adder is given to the carry register of the second serial adder by the selecting means, and the addition result of the second calculating section is output as the operation result by the second selecting means, 1 performs an addition process on the output of the carry holding register of the first-stage serial adder of the calculation unit.

第2の計算部は、第1の計算部の初段の直列加算器の
キャリー保持用レジスタの出力に基づき加算処理を行っ
ているため、相前後するシリアルデータにおいて、後の
シリアルデータが、前のシリアルデータの演算結果に影
響を与える時間をキャリー保持用レジスタを通過する時
間である、1ビットタイム遅らせることができる。その
結果、相前後するシリアルデータの入力時間間隔を従来
より1ビットタイム短くしても、後のシリアルデータの
影響を受けることなく、前のシリアルデータの演算結果
を出力することができる。
The second calculation unit performs the addition process based on the output of the carry holding register of the first-stage serial adder of the first calculation unit. It is possible to delay the time that affects the operation result of the serial data by one bit time, which is the time that passes through the carry holding register. As a result, even if the input time interval of successive serial data is shortened by one bit time as compared with the related art, the operation result of the previous serial data can be output without being affected by the subsequent serial data.

また、初段の直列加算器の数は、通常構成のシリアル
演算回路における初段初段の直列加算器の数と同一に抑
えているため、回路規模もさ程大きくならない。
In addition, since the number of serial adders in the first stage is set to be equal to the number of serial adders in the first stage in the serial arithmetic circuit having a normal configuration, the circuit scale does not increase so much.

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

第1図はこの発明の一実施例であるシリアル演算回路を
示す回路構成図、第2図及び第3図は従来のシリアル演
算回路を示す回路構成図である。 図において、1は入力部、20,21,22及び31はセレクタ、
3は出力端子、FA11〜14,FA21,FA22及びFA31は全加算
器、SFA21,SFA22及びSFA31は補助全加算器、R11〜14,R2
1,R22及びR31はキャリー保持用レジスタ、SR11〜14,SR2
1,SR22及び,SR31はキャリー保持用補助レジスタであ
る。 なお、各図中同一符号は同一または相当部分を示す。
FIG. 1 is a circuit diagram showing a serial operation circuit according to an embodiment of the present invention, and FIGS. 2 and 3 are circuit diagrams showing a conventional serial operation circuit. In the figure, 1 is an input unit, 20, 21, 22 and 31 are selectors,
3 is an output terminal, FA11 to 14, FA21, FA22 and FA31 are full adders, SFA21, SFA22 and SFA31 are auxiliary full adders, R11 to 14, R2
1, R22 and R31 are carry holding registers, SR11 ~ 14, SR2
1, SR22 and SR31 are carry holding auxiliary registers. In the drawings, the same reference numerals indicate the same or corresponding parts.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】2n(n≧2)以下の個数のシリアルデータ
の加算合計値を演算結果としてシリアルに出力するシリ
アル演算回路であって、 2n個の1ビット入力端子を有する入力部と、 前記入力部に対し、直列加算器を2入力に1つの割合で
直列に接続して、最終段の直列加算器より加算結果をシ
リアルに出力する第1の計算部と、 前記第1の計算部における、前記入力部に接続された初
段の直列加算器のキャリー保持用レジスタに対し、直列
加算器を2入力に1つの割合で直列に接続して、最終段
の直列加算器より加算結果をシリアルに出力する第2の
計算部と、 前記第2の計算部の直列加算器のキャリー保持用レジス
タに、当該直列加算器のキャリー出力及び対応段の対応
する前記第1の計算部の直列加算器のキャリー出力のう
ち、一方のキャリー出力を選択的に与える第1の選択手
段と、 前記第1の計算部の加算結果及び前記第2の計算部の加
算結果のうち、一方の加算結果を前記演算結果として選
択的に出力する第2の選択手段とを備えたシリアル演算
回路。
1. A serial operation circuit for serially outputting a sum of serial data of 2 n (n ≧ 2) or less as an operation result, comprising: an input unit having 2 n 1-bit input terminals; A first calculating unit that serially connects a serial adder to two inputs at one ratio with respect to the input unit, and serially outputs an addition result from a serial adder in a last stage; The serial adder is connected in series at one ratio to two inputs to the carry holding register of the first-stage serial adder connected to the input unit in the section, and the addition result is output from the last-stage serial adder. A second calculating unit that outputs serially; and a carry output of the serial adder and a serial addition of the first calculating unit corresponding to the corresponding stage in a carry holding register of the serial adder of the second calculating unit. One of the carry output First selection means for selectively providing a carry output; and selectively outputting one of the addition result of the first calculation unit and the addition result of the second calculation unit as the calculation result. A serial operation circuit including a second selection unit.
JP32933289A 1989-12-18 1989-12-18 Serial operation circuit Expired - Lifetime JP2617591B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32933289A JP2617591B2 (en) 1989-12-18 1989-12-18 Serial operation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32933289A JP2617591B2 (en) 1989-12-18 1989-12-18 Serial operation circuit

Publications (2)

Publication Number Publication Date
JPH03188522A JPH03188522A (en) 1991-08-16
JP2617591B2 true JP2617591B2 (en) 1997-06-04

Family

ID=18220269

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32933289A Expired - Lifetime JP2617591B2 (en) 1989-12-18 1989-12-18 Serial operation circuit

Country Status (1)

Country Link
JP (1) JP2617591B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08234963A (en) * 1995-02-24 1996-09-13 Nec Corp Arithmetic unit

Also Published As

Publication number Publication date
JPH03188522A (en) 1991-08-16

Similar Documents

Publication Publication Date Title
JP3244506B2 (en) Small multiplier
EP0416869B1 (en) Digital adder/accumulator
US5113362A (en) Integrated interpolator and method of operation
JPH08123769A (en) Parallel processor
JP2617591B2 (en) Serial operation circuit
JPH0317132B2 (en)
JPH02210576A (en) Integrated circuit accumulator
JPH06149542A (en) Chaining and adding method for adder
JP3155026B2 (en) Accumulator
JP3123060B2 (en) Digital arithmetic circuit
JPH06314186A (en) Adder chain and method for addition calculation
JPH0246598A (en) Variable length shift register
JP3412368B2 (en) Bit serial squaring circuit
JP2870044B2 (en) accumulator
JPH11282651A (en) Parallel multiplier
JPH03145323A (en) Arithmetic circuit
JPS5965352A (en) Sorting device
JPH05233224A (en) Parallel adder circuit
JPS615345A (en) Serial multiplication method
JPH04257025A (en) Multiplying circuit for serial input
JPS59127171A (en) Digital signal processing circuit
JPS63163927A (en) Multiplication circuit
JPH05738B2 (en)
JPH06348458A (en) Serial data adder
JP2001195234A (en) Information processor