JPH11212765A - Addition circuit and addition device - Google Patents

Addition circuit and addition device

Info

Publication number
JPH11212765A
JPH11212765A JP10012587A JP1258798A JPH11212765A JP H11212765 A JPH11212765 A JP H11212765A JP 10012587 A JP10012587 A JP 10012587A JP 1258798 A JP1258798 A JP 1258798A JP H11212765 A JPH11212765 A JP H11212765A
Authority
JP
Japan
Prior art keywords
borrow
input
output
input signal
carry
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.)
Withdrawn
Application number
JP10012587A
Other languages
Japanese (ja)
Inventor
Kentaro Yamaguchi
賢太郎 山口
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP10012587A priority Critical patent/JPH11212765A/en
Publication of JPH11212765A publication Critical patent/JPH11212765A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an addition circuit of a small-scale circuit capable of high-speed subtraction as well and an addition device provided with plural pieces of the addition circuits. SOLUTION: A partial sum generation part 21 receives input signals X and Y, carry input signals Ci and borrow input signals Bi, and generates '0' as a partial sum SM in the case that '1' of the values of the respective signals is an even number and generates '1' in the case of an odd number. A carry generation part 22 receives the input signals X and Y, the carry input signals Ci and the borrow input signals Bi, generates '1' as carry output signals Co in the case that two or more values of the respective signals are '1' and the borrow input signals Bi are '0' and generates '0' in the other case. A borrow generation part 23 receives the input signals X and Y and the borrow input signals Bi, generates '1' as borrow output signals Bo in the case that the input signals X and Y are '0' and the borrow input signals Bi are '1' and generates '0' in the other case.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、通常のキャリ(桁
上げ)機能付きの加算回路にボロー(桁借り)機能を加
えることにより、小規模の回路で高速の減算もできる加
算回路、及び該加算回路を複数個有する加算装置に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an adder circuit capable of performing high-speed subtraction with a small-scale circuit by adding a borrow function to a normal adder circuit having a carry (carry) function. The present invention relates to an adding device having a plurality of adding circuits.

【0002】[0002]

【従来の技術】図2は、従来の加算回路の一構成例を示
す回路図である。この加算回路10は、入力信号X,Y
及びキャリ入力信号Ciを入力して部分和SMを出力す
る部分和生成部11と、該入力信号X,Y及びキャリ入
力信号Ciを入力してキャリ出力信号Coを出力するキ
ャリ生成部12とで構成されている。部分和生成部11
は、1桁の2進数で表わされた入力信号X,Yを入力す
る2入力のイクスクルーシブOR回路(以下、EOR回
路という)11aを有している。EOR回路11aの出
力端子には、2入力のEOR回路11bの第1の入力端
子が接続され、該EOR回路11bの第2の入力端子
に、下位の桁上げを示すキャリ入力信号Ciが入力さ
れ、該EOR回路11bの出力端子から各信号の部分和
SMが出力されるようになっている。キャリ生成部12
は、入力信号X,Yを入力する2入力のOR回路12a
と、入力信号X及びキャリ入力信号Ciを入力する2入
力のOR回路12bと、入力信号Y及びキャリ入力信号
Ciを入力する2入力のOR回路12cとを有してい
る。各OR回路12a,12b,12cの出力端子は3
入力のAND回路12dの入力端子に接続され、該AN
D回路12dの出力端子から上位に対する桁上げを示す
キャリ出力信号Coが出力されるようになっている。
2. Description of the Related Art FIG. 2 is a circuit diagram showing a configuration example of a conventional addition circuit. This adder circuit 10 receives input signals X and Y
A partial sum generation unit 11 that inputs the carry input signal Ci and outputs a partial sum SM, and a carry generation unit 12 that receives the input signals X and Y and the carry input signal Ci and outputs a carry output signal Co. It is configured. Partial sum generation unit 11
Has a two-input exclusive OR circuit (hereinafter, referred to as an EOR circuit) 11a for inputting input signals X and Y represented by one digit binary number. An output terminal of the EOR circuit 11a is connected to a first input terminal of a two-input EOR circuit 11b, and a carry input signal Ci indicating a lower carry is input to a second input terminal of the EOR circuit 11b. The partial sum SM of each signal is output from the output terminal of the EOR circuit 11b. Carry generation unit 12
Is a two-input OR circuit 12a for inputting the input signals X and Y
And a two-input OR circuit 12b for inputting the input signal X and the carry input signal Ci, and a two-input OR circuit 12c for receiving the input signal Y and the carry input signal Ci. The output terminal of each OR circuit 12a, 12b, 12c is 3
The input is connected to the input terminal of an AND circuit 12d,
A carry output signal Co indicating a carry to a higher order is output from an output terminal of the D circuit 12d.

【0003】図3は、図2の動作説明図である。この図
3に示すように、加算回路10は、入力信号X,Yとキ
ャリ信号Ciとを加算し、部分和SM及びキャリ出力信
号Coを生成する。図4は、従来の加算装置の一構成例
を示す回路図である。この加算装置は、図2の加算回路
10と同様の構成の複数個(n+1)の加算回路1
0 ,…,10n を備えている。これらの加算回路10
0 ,…,10n は、下位のキャリ入力信号を入力して上
位へキャリ出力信号を送出するように縦続接続されてい
る。加算回路100 ,…,10n の各入力端子には多ビ
ットの入力信号X0 ,…,Xn 及び入力信号Y0 ,…,
n の各ビットがそれぞれ入力され、各出力端子から
は、各信号の部分和SM0 ,…,SMn が出力されるよ
うになっている。加算回路10n のキャリ出力端子から
は、キャリ出力信号Coが出力されるようになってい
る。この加算装置では、加算回路100 ,…,10n
おいて、入力信号X0 ,…,Xn の各ビット、入力信号
0 ,…,Yn の各ビット、及びキャリ入力信号Ci,
0 ,…,Cn-1 の加算がそれぞれ行われ、部分和SM
0 ,…,SMn が生成される。加算回路10n からは、
キャリ出力信号Coが出力される。最下位の加算回路1
0 のキャリ入力端子は開放されているが、加算回路1
0 ,…,10n における加算結果に例えば“1”を加
算したい場合等に用いられる。
FIG. 3 is a diagram for explaining the operation of FIG. As shown in FIG. 3, adder circuit 10 adds input signals X, Y and carry signal Ci to generate partial sum SM and carry output signal Co. FIG. 4 is a circuit diagram showing a configuration example of a conventional addition device. This adder includes a plurality of (n + 1) adder circuits 1 having the same configuration as the adder circuit 10 of FIG.
0 0 ,..., 10 n . These adder circuits 10
0, ..., 10 n are connected in cascade to deliver a carry output signal to the upper and enter the lower carry input signal. Addition circuit 10 0, ..., 10 an input signal of the multi-bit to the input terminals of the n X 0, ..., X n and the input signal Y 0, ...,
Each bit of Y n is input, and a partial sum SM 0 ,..., SM n of each signal is output from each output terminal. The carry output signal Co is output from the carry output terminal of the adder circuit 10 n . In this addition device, the addition circuit 10 0, ..., in 10 n, the input signal X 0, ..., each bit of X n, the input signal Y 0, ..., each bit of Y n, and carry input signal Ci,
C 0 ,..., C n−1 are added, and the partial sum SM
0, ..., SM n is generated. From the adder circuit 10 n ,
Carry output signal Co is output. Lowest order addition circuit 1
0 0 carry input terminal of is opened, but the adding circuit 1
This is used, for example, when it is desired to add “1” to the addition result at 0 0 ,..., 10 n .

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来の
図2の加算回路及び図3の加算装置では、2つの入力信
号X,Y又はX0 ,…,Xn ,Y0 ,…,Yn の加算結
果に“1”を加算することしかできない。そのため、こ
の加算結果から“1”を減算したい場合は、別途減算器
を追加する必要があるという課題があった。
However, in the conventional adder circuit of FIG. 2 and the adder of FIG. 3, the two input signals X, Y or X 0 ,..., X n , Y 0 ,. Only "1" can be added to the addition result. Therefore, when subtracting "1" from the addition result, there is a problem that a separate subtractor needs to be added.

【0005】[0005]

【課題を解決するための手段】前記課題を解決するため
に、本発明のうちの請求項1に係る発明は、加算回路に
おいて、1桁の2進数で表わされた第1、第2の入力信
号、下位の桁上げを示すキャリ入力信号、及び下位の桁
借りを示すボロー入力信号を入力し、該各信号が示す値
の第1の論理値の数が偶数の場合に該各信号の部分和と
して該第1の論理値を反転した第2の論理値を生成し、
奇数の場合に該部分和として該第1の論理値を生成する
部分和生成部と、前記第1、第2の入力信号、キャリ入
力信号、及びボロー入力信号を入力し、該第1の入力信
号、第2の入力信号及びキャリ入力信号のうちの2つ以
上の信号の示す値が前記第1の論理値で且つ前記ボロー
入力信号が前記第2の論理値の場合に上位に対する桁上
げを示すキャリ出力信号として該第1の論理値を生成
し、他の場合には該第2の論理値を生成するキャリ生成
部と、前記第1、第2の入力信号、及びボロー入力信号
を入力し、該第1及び第2の入力信号が前記第2の論理
値で且つ該ボロー入力信号が前記第1の論理値の場合に
上位に対する桁借りを示すボロー出力信号として該第1
の論理値を生成し、他の場合には該第2の論理値を生成
するボロー生成部とを、備えている。
According to a first aspect of the present invention, there is provided an adder circuit comprising: a first and a second digit represented by a single digit binary number; An input signal, a carry input signal indicating a lower carry, and a borrow input signal indicating a lower borrow, and when the number of the first logical value of the value indicated by each signal is even, Generating a second logical value obtained by inverting the first logical value as a partial sum;
A partial sum generator for generating the first logical value as the partial sum in the case of an odd number, the first input signal, the second input signal, the carry input signal, and the borrow input signal; Signal, a second input signal, and a carry input signal, two or more of the signals indicate the first logical value and the borrow input signal is the second logical value. A carry generation unit that generates the first logical value as a carry output signal to be indicated, and generates the second logical value in other cases; and inputs the first and second input signals and the borrow input signal. When the first and second input signals are the second logical value and the borrow input signal is the first logical value, the first and second input signals are used as the borrow output signals indicating a borrow to a higher order.
And a borrow generator that generates the second logical value in other cases.

【0006】このような構成を採用したことにより、第
1、第2の入力信号、キャリ入力信号、及びボロー入力
信号が部分和生成部に入力され、各信号が示す値の第1
の論理値の数が偶数の場合に部分和として第2の論理値
が生成され、奇数の場合に該部分和として第1の論理値
が生成される。前記第1及び第2の入力信号、キャリ入
力信号、及びボロー入力信号がキャリ生成部に入力さ
れ、第1の入力信号、第2の入力信号及びキャリ入力信
号のうちの2つ以上の信号の示す値が第1の論理値で且
つボロー入力信号が第2の論理値の場合にキャリ出力信
号として第1の論理値が生成され、他の場合には第2の
論理値が生成される。前記第1、第2の入力信号、及び
ボロー入力信号がボロー生成部に入力され、該第1及び
第2の入力信号が第2の論理値で且つ該ボロー入力信号
が第1の論理値の場合にボロー出力信号として第1の論
理値が生成され、他の場合には第2の論理値が生成され
る。請求項2に係る発明は、加算装置において、複数の
請求項1の加算回路を有し、該各加算回路を下位の桁上
げを示すキャリ入力信号及び該下位の桁借りを示すボロ
ー入力信号を該下位から入力し、且つ上位に対する桁上
げを示すキャリ出力信号及び該上位に対する桁借りを示
すボロー出力信号を該上位へ出力するように順次接続し
て構成している。このような構成を採用したことによ
り、キャリ入力信号及びボロー入力信号が下位の加算回
路から入力され、且つキャリ出力信号及びボロー出力信
号が上位の加算回路へ出力される。
By employing such a configuration, the first and second input signals, the carry input signal, and the borrow input signal are input to the partial sum generation unit, and the first sum of the value indicated by each signal is obtained.
When the number of logical values is an even number, a second logical value is generated as a partial sum, and when the number is an odd number, a first logical value is generated as the partial sum. The first and second input signals, the carry input signal, and the borrow input signal are input to the carry generation unit, and two or more of the first input signal, the second input signal, and the carry input signal are output. When the indicated value is the first logical value and the borrow input signal is the second logical value, the first logical value is generated as the carry output signal; otherwise, the second logical value is generated. The first and second input signals and the borrow input signal are input to a borrow generation unit, and the first and second input signals have a second logical value and the borrow input signal has a first logical value. In this case, a first logical value is generated as a borrow output signal, and in other cases, a second logical value is generated. According to a second aspect of the present invention, there is provided an adder including a plurality of the adder circuits of the first aspect, wherein each of the adder circuits converts a carry input signal indicating a lower carry and a borrow input signal indicating the lower borrow. A carry output signal indicating a carry to a higher order and a borrow output signal indicating a borrow to a higher order are sequentially connected so as to be output to the higher order. By employing such a configuration, the carry input signal and the borrow input signal are input from the lower adder circuit, and the carry output signal and the borrow output signal are output to the upper adder circuit.

【0007】請求項3に係る発明は、加算装置におい
て、M桁(但し、Mは正の整数)の2進数で表わされた
第1の入力データを、第1の制御信号が第1の論理レベ
ルの場合にそのまま第1の出力データとして出力し、該
第1の制御信号が該第1の論理レベルと相補的な第2の
論理レベルの場合に該第1の入力データの全ての桁の第
1の論理値又は該第1の論理値を反転した第2の論理値
を反転して該第1の出力データとして出力する第1の反
転手段と、M桁の2進数で表わされた第2の入力データ
を、第2の制御信号が前記第1の論理レベルの場合にそ
のまま第2の出力データとして出力し、該第2の制御信
号が前記第2の論理レベルの場合に該第2の入力データ
の全ての桁の前記第1の論理値又は前記第2の論理値を
反転して該第2の出力データとして出力する第2の反転
手段と、第2の発明の加算装置で構成され、前記第1及
び第2の出力データの同一桁の値を該加算装置中の各加
算回路でそれぞれ加算し、キャリ入力信号が前記第1の
論理値の場合に該加算結果に“1”を加えた値をM桁又
は(M+1)桁の2進数で表現された第3の出力データ
として出力し、ボロー入力信号が第1の論理値の場合に
該加算結果から“1”を引いた値を該第3の出力データ
として出力する加算部と、前記第3の出力データを、第
3の制御信号が前記第1の論理レベルの場合にそのまま
第4の出力データとして出力し、該第3の制御信号が前
記第2の論理レベルの場合に該第3の出力データの全て
の桁の前記第1の論理値又は前記第2の論理値を反転し
て該第4の出力データとして出力する第3の反転手段と
を、備えている。
According to a third aspect of the present invention, in the adder, first input data represented by an M-digit (where M is a positive integer) binary number is converted to a first control signal by a first control signal. In the case of the logic level, the data is output as the first output data as it is, and in the case where the first control signal is the second logic level complementary to the first logic level, all the digits of the first input data are output. A first inverting means for inverting a first logical value or a second logical value obtained by inverting the first logical value and outputting as the first output data, represented by an M-digit binary number The second input data is output as second output data as it is when the second control signal is at the first logic level, and is output as the second output data when the second control signal is at the second logic level. Inverts the first logical value or the second logical value of all the digits of the second input data to generate the second output data. A second inverting means for outputting as data, and an adding device according to the second invention, wherein the same digit values of the first and second output data are added by respective adding circuits in the adding device, When the carry input signal is the first logical value, a value obtained by adding "1" to the addition result is output as the third output data expressed by an M-digit or (M + 1) -digit binary number. An adder that outputs a value obtained by subtracting “1” from the addition result as the third output data when the signal has the first logical value; and a third control signal that outputs the third output data. In the case of the first logic level, the data is output as fourth output data as it is, and in the case where the third control signal is at the second logic level, the first logic of all the digits of the third output data is output. Inverts the value or the second logical value and outputs the inverted value as the fourth output data 3 of an inverting means, and.

【0008】このような構成を採用したことにより、第
1の制御信号が第1の論理レベルの場合、第1の入力デ
ータはそのまま第1の反転手段を経て第1の出力データ
として出力される。第1の制御信号が第2の論理レベル
の場合、第1の入力データは第1の反転手段で反転され
て第1の出力データとして出力される。第2の制御信号
が第1の論理レベルの場合、第2の入力データはそのま
ま第2の反転手段を経て第2の出力データとして出力さ
れる。第2の制御信号が第2の論理レベルの場合、第2
の入力データは第2の反転手段で反転されて第2の出力
データとして出力される。前記第1及び第2の出力デー
タの同一桁の値は、加算部中の各加算回路でそれぞれ加
算され、キャリ入力信号が第1の論理値の場合に該加算
結果に“1”を加えた値が第3の出力データとして出力
され、ボロー入力信号が第1の論理値の場合に該加算結
果から“1”を引いた値が該第3の出力データとして出
力される。第3の制御信号が第1の論理レベルの場合、
前記第3の出力データはそのまま第3の反転手段を経て
第4の出力データとして出力される。第3の制御信号が
第2の論理レベルの場合、前記第3の出力データは第3
の反転手段で反転されて第4の出力データとして出力さ
れる。
By employing such a configuration, when the first control signal is at the first logical level, the first input data is output as it is as the first output data via the first inverting means. . When the first control signal is at the second logical level, the first input data is inverted by the first inverting means and output as first output data. When the second control signal is at the first logic level, the second input data is output as it is as the second output data via the second inversion means. If the second control signal is at a second logic level, the second
Is inverted by the second inverting means and output as second output data. The same digit value of the first and second output data is added by each adder circuit in the adder, and when the carry input signal is the first logical value, "1" is added to the addition result. The value is output as third output data, and when the borrow input signal is the first logical value, a value obtained by subtracting “1” from the addition result is output as the third output data. When the third control signal is at the first logic level,
The third output data is output as it is as the fourth output data via the third inverting means. When the third control signal is at the second logic level, the third output data is at the third logic level.
And output as fourth output data.

【0009】請求項4に係る発明は、加算装置におい
て、複数の請求項1の加算回路を有し、該各加算回路を
下位の桁上げを示すキャリ入力信号及び該下位の桁借り
を示すボロー入力信号を該下位から入力し、且つ上位に
対する桁上げを示すキャリ出力信号及び該上位に対する
桁借りを示すボロー出力信号を該上位へ出力するように
順次接続して構成した加算部と、前記各加算回路のうち
の最上位の加算回路から出力された部分和を入力し、該
部分和が第1の論理値の場合にのみ第1の論理値のボロ
ー入力信号を生成して該各加算回路のうちの最下位の加
算回路へ供給するボロー入力信号生成手段と、前記最上
位の加算回路から出力された部分和を入力し、該部分和
が前記第1の論理値を反転した第2の論理値の場合にの
み第1の論理値のキャリ入力信号を生成して前記最下位
の加算回路へ供給するキャリ入力信号生成手段とを、備
えている。
According to a fourth aspect of the present invention, there is provided an adder comprising a plurality of the adder circuits according to the first aspect, wherein each of the adder circuits is provided with a carry input signal indicating a lower carry and a borrow indicating the lower borrow. An adder configured to input the input signal from the lower order, and to sequentially connect a carry output signal indicating a carry to the upper order and a borrow output signal indicating a borrow to the upper order to the upper order, The partial sum output from the highest-order addition circuit of the addition circuits is input, and the borrow input signal of the first logic value is generated only when the partial sum is the first logic value, and And a borrow input signal generating means for supplying the borrow input signal to the lowest-order addition circuit, and a second sum obtained by inputting the partial sum output from the highest-order addition circuit, and the partial sum inverting the first logical value. Key of first logical value only for logical value A carry input signal generating means for generating and supplying a re input signal to the least significant adder circuit includes.

【0010】このような構成を採用したことにより、加
算部中の各加算回路において、各第1の入力信号、各第
2の入力信号、各キャリ入力信号、各キャリ出力信号、
各ボロー入力信号、及び各ボロー出力信号の加算がそれ
ぞれ行われ、該各加算回路から各部分和がそれぞれ出力
される。前記各第1の入力信号と各第2の入力信号との
加算結果が正数になる場合、前記各部分和のうちの最上
位の部分和の値が第2の論理値になり、キャリ入力信号
生成手段から第1の論理値のキャリ入力信号が前記各加
算回路のうちの最下位の加算回路へ供給される。前記各
第1の入力信号と各第2の入力信号との加算結果が負数
になる場合、前記各部分和のうちの最上位の部分和の値
が第1の論理値になり、ボロー入力信号生成手段から第
1の論理値のボロー入力信号が前記最下位の加算回路へ
供給される。そのため、この加算装置では、前記各第1
の入力信号と各第2の入力信号との加算結果が正数にな
る場合、該加算結果に“1”を加えた値が計算され、該
加算結果が負数になる場合、該加算結果から“1”を引
いた値が計算される。
By adopting such a configuration, in each of the adding circuits in the adding section, each of the first input signal, each of the second input signals, each of the carry input signals, each of the carry output signals,
Each borrow input signal and each borrow output signal are added, and each of the addition circuits outputs each partial sum. When the result of addition of each of the first input signals and each of the second input signals is a positive number, the value of the highest partial sum of the partial sums becomes a second logical value, and the carry input A carry input signal of the first logical value is supplied from the signal generating means to the lowest one of the adders. When the addition result of each of the first input signals and each of the second input signals is a negative number, the value of the highest partial sum of the partial sums becomes a first logical value, and the borrow input signal A borrow input signal of a first logical value is supplied from the generation means to the least significant addition circuit. Therefore, in this adder, each of the first
When the addition result of the input signal of each of the above and each second input signal is a positive number, a value obtained by adding "1" to the addition result is calculated. When the addition result is a negative number, " The value obtained by subtracting 1 "is calculated.

【0011】[0011]

【発明の実施の形態】第1の実施形態 図1は、本発明の第1の実施形態を示す1ビットの加算
回路の回路図である。この加算回路20は、入力信号
X,Y、キャリ入力信号Ci及びボロー入力信号Biを
入力して部分和SMを出力する部分和生成部21と、入
力信号X,Y、キャリ入力信号Ci及びボロー入力信号
Biを入力してキャリ出力信号Coを出力するキャリ生
成部22と、入力信号X,Y及びボロー入力信号Biを
入力してボロー出力信号Boを出力するボロー生成部2
3とで構成されている。部分和生成部21は、1桁の2
進数で表わされた入力信号X,Yを入力する2入力のE
OR回路21aと、キャリ入力信号Ci及び下位の桁借
りを示すボロー入力信号Biを入力する2入力のOR回
路21bとを有している。EOR回路21a及びOR回
路21bの各出力端子は、2入力のEOR回路21cの
各入力端子にそれぞれ接続され、該EOR回路21cの
出力端子から各信号の部分和SMが出力されるようにな
っている。キャリ生成部22は、入力信号X,Yを入力
する2入力のOR回路22aと、入力信号X及びキャリ
入力信号Ciを入力する2入力のOR回路22bと、入
力信号Y及びキャリ入力信号Ciを入力する2入力のO
R回路22cとを有している。各OR回路22a,22
b,22cの出力端子は4入力のAND回路22dの正
相入力端子に接続され、該AND回路22dの反転入力
端子にはボロー入力信号Biが入力され、AND回路2
2dの出力端子からキャリ出力信号Coが出力されるよ
うになっている。ボロー生成部23は、2つの正相入力
端子から入力信号X,Yをそれぞれ入力すると共に反転
入力端子からボロー入力信号Biを入力する3入力のN
OR回路23aを有している。NOR回路23aの出力
端子からは、上位に対する桁借りを示すボロー出力信号
Boが出力されるようになっている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS First Embodiment FIG. 1 is a circuit diagram of a 1-bit addition circuit according to a first embodiment of the present invention. The adder circuit 20 receives the input signals X and Y, the carry input signal Ci and the borrow input signal Bi, and outputs a partial sum SM, and the input signals X and Y, the carry input signal Ci and the borrow input signal Bi. Carry generation unit 22 that receives input signal Bi and outputs carry output signal Co, and borrow generation unit 2 that receives input signals X and Y and borrow input signal Bi and outputs borrow output signal Bo.
3 is comprised. The partial sum generation unit 21 generates one digit 2
A two-input E for inputting input signals X and Y expressed in base notation
The circuit includes an OR circuit 21a and a two-input OR circuit 21b that inputs a carry input signal Ci and a borrow input signal Bi indicating lower-order borrowing. Each output terminal of the EOR circuit 21a and the OR circuit 21b is connected to each input terminal of the two-input EOR circuit 21c, and a partial sum SM of each signal is output from the output terminal of the EOR circuit 21c. I have. The carry generation section 22 includes a two-input OR circuit 22a for inputting the input signals X and Y, a two-input OR circuit 22b for receiving the input signal X and the carry input signal Ci, and a two-input OR circuit 22b for receiving the input signal Y and the carry input signal Ci. 2 input O to input
R circuit 22c. Each OR circuit 22a, 22
Output terminals b and 22c are connected to the positive-phase input terminal of a four-input AND circuit 22d, and a borrow input signal Bi is input to an inverting input terminal of the AND circuit 22d.
The carry output signal Co is output from the 2d output terminal. The borrow generating unit 23 receives the input signals X and Y from the two in-phase input terminals and receives the borrow input signal Bi from the inverting input terminal.
It has an OR circuit 23a. From the output terminal of the NOR circuit 23a, a borrow output signal Bo indicating a borrow to the higher order is output.

【0012】図5は、図1の動作説明図である。この図
を参照しつつ、図1の動作を説明する。但し、ボロー入
力信号Biとキャリ入力信号Ciは、同時には“1”に
しないものとする。部分和生成部21は、入力信号X,
Y、キャリ入力信号Ci及びボロー入力信号Biを入力
し、該各信号が示す値の第1の論理値(例えば、
“1”)の数が偶数の場合に該各信号の部分和SMとし
て第2の論理値(例えば、“0”)を生成し、奇数の場
合に該部分和SMとして“1”を生成する。キャリ生成
部22は、入力信号X,Y、キャリ入力信号Ci及びボ
ロー入力信号Biを入力し、該入力信号X、第2の入力
信号Y及びキャリ入力信号Ciのうちの2つ以上の信号
の示す値が“1”で且つボロー入力信号Biが“0”の
場合にキャリ出力信号Coとして“1”を生成し、他の
場合には“0”を生成する。ボロー生成部23は、入力
信号X,Y及びボロー入力信号Biを入力し、該入力信
号X,Yが“0”で且つ該ボロー入力信号Biが“1”
の場合にボロー出力信号Boとして“1”を生成し、他
の場合には“0”を生成する。以上のように、この第1
の実施形態では、ボロー入力信号Biを“1”にするこ
とにより、加算回路20は、別途減算器を追加すること
なくX+Y−1の計算を行うことができる。
FIG. 5 is a diagram for explaining the operation of FIG. The operation of FIG. 1 will be described with reference to FIG. However, the borrow input signal Bi and the carry input signal Ci are not simultaneously set to “1”. The partial sum generation unit 21 receives the input signals X,
Y, the carry input signal Ci and the borrow input signal Bi, and input a first logical value (for example,
When the number of “1”) is even, a second logical value (for example, “0”) is generated as the partial sum SM of each signal, and when the number is odd, “1” is generated as the partial sum SM. . The carry generation unit 22 receives the input signals X and Y, the carry input signal Ci and the borrow input signal Bi, and outputs two or more of the input signal X, the second input signal Y and the carry input signal Ci. When the indicated value is “1” and the borrow input signal Bi is “0”, “1” is generated as the carry output signal Co, and otherwise “0” is generated. The borrow generating unit 23 receives the input signals X and Y and the borrow input signal Bi, and the input signals X and Y are “0” and the borrow input signal Bi is “1”.
In this case, "1" is generated as the borrow output signal Bo, and in other cases, "0" is generated. As described above, this first
In the embodiment, by setting the borrow input signal Bi to “1”, the addition circuit 20 can perform the calculation of X + Y−1 without adding a separate subtractor.

【0013】第2の実施形態 図6は、本発明の第2の実施形態を示す多ビットの加算
装置の回路図である。この加算装置は、図1の加算回路
20と同様の構成の複数個(n+1)の加算回路2
0 ,…,20n を備えている。これらの加算回路20
0 ,…,20n は、下位のキャリ入力信号及びボロー入
力信号を入力して上位へキャリ出力信号及びボロー出力
信号を送出するように縦続接続されている。加算回路2
0 ,…,20n の各入力端子には多ビットの入力信号
0 ,…,Xn 及び入力信号Y0 ,…,Yn の各ビット
がそれぞれ入力され、各出力端子からは、各信号の部分
和SM0 ,…,SMn が出力されるようになっている。
加算回路20n のキャリ出力端子及びボロー出力端子か
らは、キャリ出力信号Co及びボロー出力信号Boがそ
れぞれ出力されるようになっている。
Second Embodiment FIG. 6 is a circuit diagram of a multi-bit adder according to a second embodiment of the present invention. This adder includes a plurality of (n + 1) adder circuits 2 having the same configuration as the adder circuit 20 of FIG.
0 0, ..., and a 20 n. These adder circuits 20
0, ..., 20 n are connected in cascade to deliver the carry output signal and borrow output signal to the upper and enter the lower carry input signal and the borrow input signal. Addition circuit 2
0 0, ..., 20 n input signals X 0 of the multi-bit to the input terminals of, ..., X n and the input signal Y 0, ..., each bit of Y n are respectively input from the output terminals, each partial sum SM 0 signal, ..., so that the SM n is outputted.
The carry output terminal and the borrow output terminal of the adder circuit 20 n output a carry output signal Co and a borrow output signal Bo, respectively.

【0014】この加算装置では、加算回路200 ,…,
20n において、入力信号X0 ,…,Xn の各ビット、
入力信号Y0 ,…,Yn の各ビット、キャリ入力信号C
i、キャリ出力信号C0 ,…,Cn-1 、ボロー入力信号
Bi、及びボロー出力信号B0 ,…,Bn-1 の加算がそ
れぞれ行われ、部分和SM0 ,…,SMn が生成され
る。加算回路20n からは、キャリ出力信号Co及びボ
ロー出力信号Boが出力される。最下位の加算回路10
0 のキャリ入力端子は開放されているが、加算回路10
0 ,…,10n における加算結果に例えば“1”を加算
したい場合等に用いられる。又、加算回路100 のボロ
ー入力端子は、加算回路100 ,…,10n における加
算結果から例えば“1”を減算したい場合等に用いられ
る。
[0014] In this addition device, the addition circuit 20 0, ...,
In 20 n, the input signal X 0, ..., each bit of X n,
Each bit of input signals Y 0 ,..., Y n , carry input signal C
i, the carry output signal C 0, ..., C n- 1, the borrow input signal Bi, and a borrow output signal B 0, ..., addition of B n-1 is carried out respectively, the partial sum SM 0, ..., is SM n Generated. The adder 20 n outputs a carry output signal Co and a borrow output signal Bo. Lowest order addition circuit 10
Although the carry input terminal of 0 is open,
This is used, for example, when it is desired to add “1” to the addition result at 0 ,..., 10 n . Further, the borrow input terminal of the adding circuit 10 0, the addition circuit 10 0, ..., used or when you want to subtract from the addition result of 10 n, for example, "1".

【0015】以上のように、この第2の実施形態では、
ボロー出力信号B0 ,…,Bn-1 ,Boは、加算回路2
0 ,…,20n において、それぞれ1つのNOR回路
23aで生成されるので、キャリ出力信号C0 ,…,C
n-1 ,Coよりも速く生成できる。これらのキャリ出力
信号C0 ,…,Cn-1 ,Coとボロー出力信号B0
…,Bn-1 ,Boは独立して伝達できるので、該ボロー
出力信号B0 ,…,Bn- 1 ,Boを生成することによっ
て演算速度が低下することはない。そのため、従来の加
算装置のように、X+Yの計算を行った後に減算器で
“1”を減算するよりも高速でX+Y−1の計算を行う
ことができる。
As described above, in the second embodiment,
The borrow output signals B 0 ,..., B n−1 , Bo are added to the adder 2
0 0, ..., in 20 n, because each is generated in a single NOR circuit 23a, the carry output signal C 0, ..., C
It can be generated faster than n-1 and Co. These carry output signals C 0 ,..., C n−1 , Co and borrow output signal B 0 ,
, B n−1 , Bo can be transmitted independently, so that the calculation speed does not decrease by generating the borrow output signals B 0 ,..., B n− 1 , Bo. Therefore, the calculation of X + Y-1 can be performed at a higher speed than the case where the subtractor subtracts "1" after performing the calculation of X + Y as in the conventional adder.

【0016】第3の実施形態 図7は、本発明の第3の実施形態を示す4ビットの加算
装置の回路図である。この加算装置は、入力データXを
制御信号SXの論理レベルに応じて反転して出力データ
S30を出力する第1の反転手段(例えば、反転回路)
30と、入力データYを制御信号SYの論理レベルに応
じて反転して出力データS40を出力する第2の反転手
段(例えば、反転回路)40とを有している。反転回路
30は、例えば4桁の2進数で表わされた入力データX
を入力端子群INから入力し、制御信号入力端子CTL
から入力する制御信号SXが低レベル(以下、“L”と
いう)の場合にそのまま出力端子群OUTから出力デー
タS30として出力し、該制御信号SXが高レベル(以
下、“H”という)の場合に該入力データXの全ての桁
の“1”又は“0”を反転して該出力データS30とし
て出力する回路である。反転回路40は、例えば4桁の
2進数で表わされた入力データYを入力端子群INから
入力し、制御信号入力端子CTLから入力する制御信号
SYが“L”の場合にそのまま出力端子群OUTから出
力データS40として出力し、該制御信号SYが“H”
の場合に該入力データYの全ての桁の“1”又は“0”
を反転して該出力データS40として出力する回路であ
る。反転回路30,40の各出力端子群には、加算部5
0の各入力端子群がそれぞれ接続されている。
Third Embodiment FIG. 7 is a circuit diagram of a 4-bit adder according to a third embodiment of the present invention. The adder inverts input data X in accordance with the logic level of control signal SX and outputs output data S30 (eg, an inverting circuit).
30 and second inverting means (for example, an inverting circuit) 40 for inverting the input data Y in accordance with the logic level of the control signal SY and outputting the output data S40. The inverting circuit 30 receives the input data X represented by, for example, a 4-digit binary number.
From the input terminal group IN, and the control signal input terminal CTL
Output from the output terminal group OUT as it is as the output data S30 when the control signal SX inputted from the control signal SX is low level (hereinafter referred to as “L”), and when the control signal SX is high level (hereinafter referred to as “H”). Is a circuit for inverting "1" or "0" of all the digits of the input data X and outputting the inverted data as the output data S30. The inverting circuit 40 receives the input data Y represented by, for example, a 4-digit binary number from the input terminal group IN, and outputs the output terminal group as it is when the control signal SY input from the control signal input terminal CTL is “L”. OUT to output as output data S40, and the control signal SY is set to "H".
In the case of “1” or “0” of all digits of the input data Y
And outputs it as the output data S40. Each output terminal group of the inverting circuits 30 and 40 has an adder 5
0 are connected to the respective input terminal groups.

【0017】加算部50は、出力データS30,S40
の同一桁の値をそれぞれ加算し、キャリ入力信号Ciが
“1”の場合、この加算結果に“1”を加えた値を出力
データS50として出力し、ボロー入力信号Biが
“1”の場合、この加算結果から“1”を引いた値を出
力データS50として出力する機能を有している。加算
部50の出力端子群には、第3の反転手段(例えば、反
転回路)60の入力端子群INが接続されている。反転
回路60は、出力データS50を、制御信号SWが
“L”の場合にそのまま出力データS60として出力
し、該制御信号SWが“H”の場合に該出力データS5
0の全ての桁の“1”又は“0”を反転して該出力デー
タS60として出力する回路である。
The adder 50 outputs the output data S30, S40
Are added, and when the carry input signal Ci is "1", a value obtained by adding "1" to the addition result is output as output data S50, and when the borrow input signal Bi is "1". Has a function of outputting a value obtained by subtracting "1" from the addition result as output data S50. The input terminal group IN of the third inversion means (for example, an inversion circuit) 60 is connected to the output terminal group of the adder 50. The inverting circuit 60 outputs the output data S50 as output data S60 when the control signal SW is "L", and outputs the output data S5 when the control signal SW is "H".
This is a circuit that inverts “1” or “0” of all digits of 0 and outputs the inverted data as the output data S60.

【0018】図8は、図7中の反転回路30の構成例を
示す回路図である。この反転回路30は、入力データX
の入力信号X0 ,X1 ,X2 ,X3 を各反転入力端子か
ら入力すると共に制御信号SXを各正相入力端子から共
通に入力する2入力のAND回路310 ,311 ,31
2 ,313 と、該入力信号X0 ,X1 ,X2 ,X3 を各
正相入力端子から入力すると共に制御信号SXを各反転
入力端子から共通に入力する2入力のAND回路3
0 ,321 ,322 ,323 とを有している。AND
回路310 ,320 の各出力端子、AND回路311
321 の各出力端子、AND回路312 ,322 の各出
力端子、及びAND回路313 ,323 の各出力端子
は、2入力のOR回路330 ,331 ,332 ,333
の各入力端子にそれぞれ接続されている。OR回路33
0 ,331 ,332 ,333 の各出力端子からは、出力
信号x0 ,x1 ,x2 ,x3 が出力されるようになって
いる。反転回路40も反転回路30と同様の構成であ
り、入力データYの入力信号Y0 ,Y1 ,Y2 ,Y3
入力し、制御信号SYの論理レベルに応じて出力信号y
0 ,y1 ,y2 ,y3 を出力するようになっている。
FIG. 8 is a circuit diagram showing a configuration example of the inverting circuit 30 in FIG. This inverting circuit 30 receives the input data X
Input circuits X 0 , X 1 , X 2 , and X 3 are input from respective inverting input terminals and a control signal SX is commonly input from respective positive-phase input terminals. AND circuits 31 0 , 31 1 , 31
2 and 31 3 and a two-input AND circuit 3 for inputting the input signals X 0 , X 1 , X 2 , and X 3 from the respective positive-phase input terminals and commonly inputting the control signal SX from the respective inverted input terminals.
And a 2 0, 32 1, 32 2, 32 3. AND
Output terminals of the circuits 31 0 , 32 0 , AND circuits 31 1 ,
32 the output terminals of the 1, the AND circuit 31 2, 32 2 of the output terminals, and the output terminals of the AND circuit 31 3, 32 3, 2 inputs of the OR circuit 33 0, 33 1, 33 2, 33 3
Are connected to the respective input terminals. OR circuit 33
0, from 33 1, 33 2, 33 3 the output terminals of the output signal x 0, x 1, x 2, x 3 are outputted. The inverting circuit 40 has the same configuration as the inverting circuit 30, receives input signals Y 0 , Y 1 , Y 2 , and Y 3 of input data Y, and outputs an output signal y in accordance with the logic level of the control signal SY.
0, y 1, and outputs a y 2, y 3.

【0019】図9は、図7中の加算部50の構成例を示
す回路図である。この加算部50は、図1の加算回路2
0と同様の構成の5個の加算回路510,511 ,51
2 ,513 ,514 を備えている。これらの加算回路5
0 ,511 ,512 ,513 ,514 は、下位のキャ
リ入力信号及びボロー入力信号を入力して上位へキャリ
出力信号及びボロー出力信号を送出するように縦続接続
されている。加算回路510 ,,511 ,512 ,51
3 の各入力端子には出力信号x0 ,x1 ,x2 ,x3
び出力信号y0 ,y1 ,y2 ,y3 がそれぞれ入力さ
れ、加算回路514 の各入力端子には“0”が入力され
るようになっている。加算回路510 ,511 ,5
2 ,513 ,514 の各出力端子からは各信号の部分
和S510 ,S511 ,S512 ,S513 ,S514
が出力されるようになっている。
FIG. 9 is a circuit diagram showing a configuration example of the adder 50 in FIG. The addition unit 50 is provided by the addition circuit 2 of FIG.
0, five adders 51 0 , 51 1 , 51
And a 2, 51 3, 51 4. These adder circuits 5
1 0, 51 1, 51 2, 51 3, 51 4 are connected in cascade to deliver the carry output signal and borrow output signal to the upper and enter the lower carry input signal and the borrow input signal. Adders 51 0 , 51 1 , 51 2 , 51
Each input terminal of the 3 is input the output signal x 0, x 1, x 2 , x 3 and the output signal y 0, y 1, y 2 , y 3 , respectively, each input terminal of the adding circuit 51 4 " 0 "is input. Adder circuits 51 0 , 51 1 , 5
1 2, 51 3, 51 partial sum S51 0 of the signals from the output terminals of the 4, S51 1, S51 2, S51 3, S51 4
Is output.

【0020】図10は、図7中の反転回路60の構成例
を示す回路図である。この反転回路60は、部分和S5
0 ,S511 ,S512 ,S513 ,S514 を各反
転入力端子から入力すると共に制御信号SWを各正相入
力端子から共通に入力する2入力のAND回路610
611 ,612 ,613 ,614 と、該部分和S5
0 ,S511 ,S512 ,S513 ,S514 を各正
相入力端子から入力すると共に該制御信号SWを各反転
入力端子から共通に入力する2入力のAND回路6
0 ,621 ,622 ,623 ,624 とを有してい
る。AND回路610 ,620 の各出力端子、AND回
路611 ,621 の各出力端子、AND回路612 ,6
2 の各出力端子、AND回路613 ,623 の各出力
端子、及びAND回路614 ,624 の各出力端子は、
2入力のOR回路630 ,631 ,632 ,633 ,6
4 の各入力端子にそれぞれ接続されている。OR回路
630 ,631 ,632 ,633 ,634 の各出力端子
からは、出力データS60の各出力信号S600 ,S6
1 ,S602 ,S603 ,S604 がそれぞれ出力さ
れるようになっている。
FIG. 10 is a circuit diagram showing a configuration example of the inverting circuit 60 in FIG. This inverting circuit 60 includes a partial sum S5
1 0, S51 1, S51 2 , S51 3, S51 4 the second input of AND circuit 61 0 to be input to the common from the positive phase input terminal of the control signal SW with input from the inverting input terminal,
61 1, 61 2, 61 3, 61 4, said partial sum S5
1 0, S51 1, S51 2 , S51 3, S51 4 a 2 input for inputting the control signal SW with inputs from each of the positive-phase input terminal in common from each inverting input terminal AND circuit 6
And a 2 0, 62 1, 62 2, 62 3, 62 4. Each output terminal of AND circuits 61 0 , 62 0 , each output terminal of AND circuits 61 1 , 62 1 , AND circuits 61 2 , 6
The output terminals of the 2 2, the output terminals of the AND circuit 61 3, 62 3, and the output terminals of the AND circuit 61 4, 62 4,
Two-input OR circuits 63 0 , 63 1 , 63 2 , 63 3 , 6
It is connected to the 3 input terminals of four. OR circuit 63 0, 63 1, 63 2, 63 3, 63 4 is from the output terminals of each output signal S60 0 of the output data S60, S6
0 1, S60 2, S60 3 , S60 4 is adapted to be outputted respectively.

【0021】次に、図7の加算装置における計算例
(1)〜(4)を説明する。 (1) X+Yの計算 制御信号SXを“L”、制御信号SYを“L”、制御信
号SWを“L”、キャリ入力信号Ciを“0”、及びボ
ロー入力信号Biを“0”にして入力データX,Yを入
力する。制御信号SXが“L”なので、反転回路30は
入力データXをそのまま出力データS30として出力す
る。又、制御信号SYが“L”なので、反転回路40は
入力データYをそのまま出力データS40として出力す
る。加算部50は、キャリ入力信号Ci及びボロー入力
信号Biが共に“0”なので、出力データS30,S4
0即ち入力データX,Yを加算し、X+Yを出力データ
S50として出力する。制御信号SWが“L”なので、
反転回路60は出力データS50をそのまま出力データ
S60として出力する。即ち、出力データS60として
X+Yが出力される。
Next, calculation examples (1) to (4) in the adder of FIG. 7 will be described. (1) Calculation of X + Y The control signal SX is set to “L”, the control signal SY is set to “L”, the control signal SW is set to “L”, the carry input signal Ci is set to “0”, and the borrow input signal Bi is set to “0”. Input data X and Y are input. Since the control signal SX is "L", the inversion circuit 30 outputs the input data X as it is as the output data S30. Further, since the control signal SY is "L", the inversion circuit 40 outputs the input data Y as it is as the output data S40. Since the carry input signal Ci and the borrow input signal Bi are both “0”, the adder 50 outputs the output data S30, S4
0, that is, the input data X and Y are added, and X + Y is output as output data S50. Since the control signal SW is “L”,
The inversion circuit 60 outputs the output data S50 as it is as the output data S60. That is, X + Y is output as the output data S60.

【0022】(2) −X+Yの計算 制御信号SXを“H”、制御信号SYを“L”、制御信
号SWを“L”、キャリ入力信号Ciを“1”、及びボ
ロー入力信号Biを“0”にして入力データX,Yを入
力する。制御信号SXが“H”なので、反転回路30は
入力データXを反転した反転データXbを出力データS
30として出力する。又、制御信号SYが“L”なの
で、反転回路40は入力データYをそのまま出力データ
S40として出力する。加算部50は、キャリ入力信号
Ciが“1”且つボロー入力信号Biが“0”なので、
出力データS30,S40即ち反転データXbと入力デ
ータYとを加算し、この加算結果に“1”を加算する。
よって、Xb+Y+1が出力データS50として出力さ
れる。ここで、或る2進数を全ビット反転して“1”を
加算することは2の補数をとるということであり、正負
を反転させることを意味する。従って、Xb+Y+1
は、−X+Yである。制御信号SWが“L”なので、反
転回路60は出力データS50をそのまま出力データS
60として出力する。即ち、出力データS60として−
X+Yが出力される。
(2) Calculation of -X + Y The control signal SX is "H", the control signal SY is "L", the control signal SW is "L", the carry input signal Ci is "1", and the borrow input signal Bi is " Input data X and Y are set to "0". Since the control signal SX is “H”, the inverting circuit 30 outputs the inverted data Xb obtained by inverting the input data X to the output data S.
Output as 30. Further, since the control signal SY is "L", the inversion circuit 40 outputs the input data Y as it is as the output data S40. The adder 50 determines that the carry input signal Ci is “1” and the borrow input signal Bi is “0”,
The output data S30 and S40, that is, the inverted data Xb and the input data Y are added, and "1" is added to the addition result.
Therefore, Xb + Y + 1 is output as output data S50. Here, inverting all bits of a certain binary number and adding “1” means taking two's complement, which means inverting the sign. Therefore, Xb + Y + 1
Is -X + Y. Since the control signal SW is "L", the inversion circuit 60 outputs the output data S50 as it is to the output data S.
Output as 60. That is, as the output data S60,
X + Y is output.

【0023】(3) −X−Yの計算 制御信号SXを“L”、制御信号SYを“H”、制御信
号SWを“L”、キャリ入力信号Ciを“1”、及びボ
ロー入力信号Biを“0”にして入力データX,Yを入
力する。制御信号SXが“L”なので、反転回路30は
入力データXをそのまま出力データS30として出力す
る。又、制御信号SYが“H”なので、反転回路40は
入力データYを反転した反転データYbを出力データS
40として出力する。加算部50は、キャリ入力信号C
iが“1”且つボロー入力信号Biが“0”なので、出
力データS30,S40即ち入力データXと反転データ
Ybを加算し、この加算結果に“1”を加算する。よっ
てX+Yb+1が出力データS50として出力される。
このX+Yb+1は、X−Yである。制御信号SWが
“L”なので、反転回路60は出力データS50をその
まま出力データS60として出力する。即ち、出力デー
タS60としてX−Yが出力される。
(3) Calculation of -XY The control signal SX is "L", the control signal SY is "H", the control signal SW is "L", the carry input signal Ci is "1", and the borrow input signal Bi. Is set to "0" to input the input data X and Y. Since the control signal SX is "L", the inversion circuit 30 outputs the input data X as it is as the output data S30. Further, since the control signal SY is “H”, the inverting circuit 40 outputs the inverted data Yb obtained by inverting the input data Y to the output data S.
Output as 40. The adder 50 outputs the carry input signal C
Since i is "1" and the borrow input signal Bi is "0", the output data S30 and S40, that is, the input data X and the inverted data Yb are added, and "1" is added to the addition result. Therefore, X + Yb + 1 is output as output data S50.
This X + Yb + 1 is XY. Since the control signal SW is "L", the inversion circuit 60 outputs the output data S50 as it is as the output data S60. That is, XY is output as the output data S60.

【0024】(4) −X−Yの計算 制御信号SXを“L”、制御信号SYを“L”、制御信
号SWを“H”、キャリ入力信号Ciを“0”、及びボ
ロー入力信号Biを“1”にして入力データX,Yを入
力する。制御信号SXが“L”なので、反転回路30は
入力データXをそのまま出力データS30として出力す
る。又、制御信号SYが“L”なので、反転回路40は
入力データYをそのまま出力データS40として出力す
る。加算部50は、キャリ入力信号Ciが“0”且つボ
ロー入力信号Biが“1”なので、出力データS30,
S40即ち入力データX,Yを加算し、この加算結果に
“−1”を加算する。よって、X+Y−1が出力データ
S50として出力される。制御信号SWが“H”なの
で、反転回路60は、出力データS50の全ビットを反
転させて出力データS60として出力する。即ち、出力
データS60は、X+Y−1を反転した(X+Y−1)
bになる。ここで、或る2進数から“1”を減算して全
ビット反転させることも2の補数をとることであるの
で、(X+Y−1)bは、X+Yの符号を反転させたも
のになる。従って、出力データS60として−X−Yが
出力される。
(4) Calculation of -XY The control signal SX is "L", the control signal SY is "L", the control signal SW is "H", the carry input signal Ci is "0", and the borrow input signal Bi. Is set to "1" and input data X and Y are input. Since the control signal SX is "L", the inversion circuit 30 outputs the input data X as it is as the output data S30. Further, since the control signal SY is "L", the inversion circuit 40 outputs the input data Y as it is as the output data S40. Since the carry input signal Ci is “0” and the borrow input signal Bi is “1”, the adder 50 outputs the output data S30,
S40: Input data X and Y are added, and "-1" is added to the addition result. Therefore, X + Y-1 is output as output data S50. Since the control signal SW is “H”, the inversion circuit 60 inverts all the bits of the output data S50 and outputs the inverted data as the output data S60. That is, the output data S60 is obtained by inverting X + Y-1 (X + Y-1).
b. Here, subtracting "1" from a certain binary number and inverting all bits is also taking 2's complement, so that (X + Y-1) b is obtained by inverting the sign of X + Y. Therefore, -XY is output as the output data S60.

【0025】以上のように、この第3の実施形態では、
制御信号SX,SY,SW、キャリ入力信号Ci、及び
ボロー入力信号Biの値を適切に選択することにより、
入力データX,Yから出力データS60としてX+Y、
−X+Y、X−Y、及び−X−Yを小規模な回路で計算
できる。特に−X−Yは、従来では別の2つ以上の加算
回路を用いてX,Yから−X,−Yを生成して加算する
か又はX+Yを生成してから符号を反転して生成してい
たが、本実施形態の加算装置を用いれば1段の加算です
むので、小規模な回路で高速に計算できる。
As described above, in the third embodiment,
By appropriately selecting the values of the control signals SX, SY, SW, the carry input signal Ci, and the borrow input signal Bi,
X + Y as input data X and Y as output data S60
-X + Y, XY, and -XY can be calculated with a small circuit. In particular, conventionally, -XY is generated by generating and adding -X, -Y from X, Y using another two or more addition circuits, or by inverting the sign after generating X + Y. However, if the adder according to the present embodiment is used, only one stage of addition is required, so that high-speed calculations can be performed with a small-scale circuit.

【0026】第4の実施形態 図11は、本発明の第4の実施形態を示す4ビットの加
算装置の回路図であり、第2の実施形態を示す図6中の
要素と共通の要素には共通の符号が付されている。この
加算装置は、入力データX,Y、キャリ入力信号Ci及
びボロー入力信号Biを加算する加算部20Aを有し、
該加算部20Aは加算回路200 ,…,204 を備えて
いる。最上位の加算回路204 の各入力端子には、
“0”が入力されるようになっている。加算回路204
の出力端子には、該加算回路204 から出力された部分
和SM4 に応じてボロー入力信号Biを生成するボロー
入力信号生成手段(例えば、遅延フリップフロップ、以
下これをD−FFという)71のデータ入力端子D(こ
れは、正相入力端子になっている)が接続されると共
に、該部分和SM4 に応じてキャリ入力信号Ciを生成
するキャリ入力信号生成手段(例えば、D−FF)72
のデータ入力端子D(これは、反転入力端子になってい
る)が接続されている。D−FF71の出力端子Qには
最下位の加算回路200 のボロー入力端子が接続され、
D−FF72の出力端子Qには加算回路200のキャリ
入力端子が接続されている。D−FF71,72のクロ
ック入力端子CKにはクロックckが共通に入力され、
該D−FF71,72のリセット端子Rにはリセット信
号RSTが共通に入力されるようになっている。他は、
図6と同様の構成である。
Fourth Embodiment FIG. 11 is a circuit diagram of a 4-bit adder according to a fourth embodiment of the present invention. Elements similar to those in FIG. 6 showing the second embodiment are the same as those in FIG. Are denoted by common symbols. This adder has an adder 20A for adding input data X, Y, carry input signal Ci and borrow input signal Bi,
The addition unit 20A adder circuit 20 0, ..., a 20 4. Each input terminal of the adding circuit 20 4 uppermost,
“0” is input. Adder circuit 20 4
The output terminal, the summing circuit 20 4 borrow input signal generation means for generating a borrow input signal Bi in response to the partial sum SM 4 output from (e.g., delay flip-flop, hereinafter referred to this D-FF) 71 (This has become the positive-phase input terminal) of the data input terminal D with is connected, carry input signal generation means for generating a carry input signal Ci in accordance with the partial sum SM 4 (e.g., D-FF ) 72
(Which is an inverting input terminal) is connected. The output terminal Q of the D-FF 71 borrow input terminal of the least significant adder circuit 20 0 is connected,
The output terminal Q of the D-FF 72 carry input terminal of the adding circuit 20 0 is connected. A clock ck is commonly input to clock input terminals CK of the D-FFs 71 and 72,
A reset signal RST is commonly input to the reset terminals R of the D-FFs 71 and 72. Others
This is the same configuration as FIG.

【0027】この加算装置では、加算回路200 ,…,
204 において、入力データXの各ビット(即ち、入力
信号X0 ,…,X3 、及び“0”)、入力データYの各
ビット(即ち、入力信号Y0 ,…,Y3 、及び
“0”)、キャリ入力信号Ci、キャリ出力信号C0
…,C3 、ボロー入力信号Bi、及びボロー出力信号B
0 ,…,B3 の加算がそれぞれ行われ、加算回路2
1 ,…,204 から部分和SM1,…,SM4 が出力
される。入力データX,Yの加算結果が正数になる場
合、最上位ビットの部分和SM4の値が“0”になり、
D−FF72の出力信号(即ち、キャリ入力信号)Ci
がクロックckに同期して“1”になる。このキャリ入
力信号Ciは、最下位ビットの加算回路200 のキャリ
入力端子に入力される。入力データX,Yの加算結果が
負数になる場合、部分和SM4 の値が“1”になり、D
−FF71の出力信号(即ち、ボロー入力信号)Biが
クロックckに同期して“1”になる。このボロー入力
信号Biは、加算回路200 のボロー入力端子に入力さ
れる。従って、この加算装置において、X+Yが正数の
時にX+Y+1が計算され、X+Yが負数の時にX+Y
−1が計算される。
[0027] In this addition device, the addition circuit 20 0, ...,
In 20 4, each bit of the input data X (i.e., the input signal X 0, ..., X 3, and "0"), each bit of the input data Y (i.e., the input signal Y 0, ..., Y 3, and " 0 ″), carry input signal Ci, carry output signal C 0 ,
.., C 3 , borrow input signal Bi, and borrow output signal B
0 ,..., B 3 are added, and the addition circuit 2
0 1, ..., partial sum SM 1 from 20 4, ..., SM 4 is output. When the addition result of the input data X and Y becomes a positive number, the value of the partial sum SM 4 of the most significant bit becomes “0”,
Output signal of D-FF 72 (that is, carry input signal) Ci
Becomes "1" in synchronization with the clock ck. The carry input signal Ci is input to the carry input terminal of the adding circuit 20 0 in the least significant bit. If the result of adding the input data X and Y is a negative number, the value of the partial sum SM 4 becomes “1” and D
-The output signal Bi of the FF 71 (that is, the borrow input signal) becomes "1" in synchronization with the clock ck. The borrow input signal Bi is input to borrow input terminal of the adding circuit 20 0. Therefore, in this adder, X + Y + 1 is calculated when X + Y is a positive number, and X + Y is calculated when X + Y is a negative number.
-1 is calculated.

【0028】ここで、入力データX,Yを加算し、この
加算結果の最下位からN桁目(N;整数)で4捨5入す
る場合、該加算結果が正数であれば該N桁目に+1加算
してN桁目以下を“0”にし、該加算結果が負数であれ
ば該N桁目に−1加算して該N桁目以下を“0”にすれ
ばよい。この図11の加算装置では、入力データX,Y
が加算され、この加算結果を2で除した結果の小数点以
下を4捨5入した結果が部分和SM1 ,…,SM4 によ
って得られる。以上のように、この第4の実施形態で
は、加算部20AにD−FF71,72を接続し、入力
データX,Yの加算結果の4捨5入を1つの加算装置で
行うようにしたので、加算装置が2つ以上必要な通常の
4捨5入に比較して回路規模を縮小できる。
Here, when the input data X and Y are added and the result of the addition is rounded off to the Nth digit (N: integer) from the lowest order, if the addition result is a positive number, the N digits are added. It is sufficient to add +1 to the first digit to make the digit below the Nth digit "0", and if the result of the addition is a negative number, add -1 to the Nth digit and make the digit after the Nth digit "0". In the adder of FIG. 11, input data X, Y
Are added, and the result of dividing this addition result by 2 is rounded off to the nearest whole number to obtain the result of the partial sums SM 1 ,..., SM 4 . As described above, in the fourth embodiment, the D-FFs 71 and 72 are connected to the addition unit 20A, and the addition result of the input data X and Y is rounded off by one addition device. The circuit scale can be reduced as compared with the usual rounding method in which two or more adders are required.

【0029】尚、本発明は上記実施形態に限定されず、
種々の変形が可能である。その変形例としては、例えば
次のようなものがある。 (a) 加算回路20は、例えば、OR回路22a,2
2b,22cをAND回路に置換え且つAND回路22
dをOR回路に置換えることにより、同様の機能を有す
る他の回路構成にしてもよい。 (b) 反転回路30,40,60は、制御信号SX,
SY,SWに基づき、入力データX,Y及び部分和S5
0 ,…,S514 をバッファ又はインバータを介して
出力する回路構成にしてもよい。
The present invention is not limited to the above embodiment,
Various modifications are possible. For example, there are the following modifications. (A) The addition circuit 20 is, for example, an OR circuit 22a, 22
2b and 22c are replaced by AND circuits and AND circuit 22
By replacing d with an OR circuit, another circuit configuration having a similar function may be adopted. (B) Inverting circuits 30, 40, and 60 control signals SX,
Based on SY and SW, input data X and Y and partial sum S5
1 0, ..., S51 4 a may be the circuit configuration that outputs via a buffer or inverter.

【0030】[0030]

【発明の効果】以上詳細に説明したように、請求項1に
係る発明によれば、ボロー入力信号を第1の論理値にす
ることにより、加算回路は、別途減算器を追加すること
なく減算を行うことができる。請求項2に係る発明によ
れば、各加算回路のボロー出力信号は、該各加算回路に
おいて、それぞれ1つの例えばNOR回路で生成される
ので、各キャリ出力信号よりも高速に生成できる。各キ
ャリ出力信号と各ボロー出力信号は独立して伝達できる
ので、該各ボロー出力信号を生成することによって演算
速度が低下することはない。そのため、従来の加算装置
のように、第1及び第2の入力データの加算を行った後
に減算器で“1”を減算するよりも高速で減算を行うこ
とができる。
As described above in detail, according to the first aspect of the present invention, by setting the borrow input signal to the first logical value, the addition circuit can perform the subtraction without adding a separate subtractor. It can be performed. According to the second aspect of the present invention, the borrow output signal of each adder circuit is generated by, for example, one NOR circuit in each adder circuit, so that it can be generated faster than each carry output signal. Since each carry output signal and each borrow output signal can be transmitted independently, generation of each borrow output signal does not reduce the operation speed. Therefore, it is possible to perform the subtraction at a higher speed than when adding the first and second input data and then subtracting "1" by the subtractor as in the conventional adder.

【0031】請求項3に係る発明によれば、第1、第
2、第3の制御信号、キャリ入力信号、及びボロー入力
信号の値を適切に選択することにより、第1及び第2の
入力データの加減算を小規模な回路で高速に計算でき
る。請求項4に係る発明によれば、加算部にボロー入力
信号生成手段とキャリ入力信号生成手段とを接続し、第
1及び第2の入力データの加算結果の4捨5入を1つの
加算装置で行うようにしたので、加算装置が2つ以上必
要な通常の4捨5入に比較して回路規模を縮小できる。
According to the third aspect of the present invention, by appropriately selecting the values of the first, second and third control signals, the carry input signal and the borrow input signal, the first and second input signals are selected. Data addition and subtraction can be calculated at high speed with a small circuit. According to the fourth aspect of the present invention, the borrow input signal generating means and the carry input signal generating means are connected to the adding section, and the addition result of the first and second input data is rounded off to one adding apparatus. Therefore, the circuit scale can be reduced as compared with the usual rounding, which requires two or more adders.

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

【図1】本発明の第1の実施形態の加算回路の回路図で
ある。
FIG. 1 is a circuit diagram of an addition circuit according to a first embodiment of the present invention.

【図2】従来の加算回路の回路図である。FIG. 2 is a circuit diagram of a conventional addition circuit.

【図3】図2の動作説明図である。FIG. 3 is an operation explanatory diagram of FIG. 2;

【図4】従来の加算装置の回路図である。FIG. 4 is a circuit diagram of a conventional addition device.

【図5】図1の動作説明図である。FIG. 5 is an operation explanatory diagram of FIG. 1;

【図6】本発明の第2の実施形態の加算装置の回路図で
ある。
FIG. 6 is a circuit diagram of an adding device according to a second embodiment of the present invention.

【図7】本発明の第3の実施形態の加算装置の回路図で
ある。
FIG. 7 is a circuit diagram of an adding device according to a third embodiment of the present invention.

【図8】図7中の反転回路30の回路図である。FIG. 8 is a circuit diagram of the inverting circuit 30 in FIG. 7;

【図9】図7中の加算部50の回路図である。FIG. 9 is a circuit diagram of an adding unit 50 in FIG. 7;

【図10】図7中の反転回路60の回路図である。FIG. 10 is a circuit diagram of the inverting circuit 60 in FIG. 7;

【図11】本発明の第4の実施形態の加算装置の回路図
である。
FIG. 11 is a circuit diagram of an adding device according to a fourth embodiment of the present invention.

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

20,200 〜20n 加算回路 20A,50 加算部 21 部分和生成部 22 キャリ生成部 23 ボロー生成部 30,40,60 反転回路 71,72 D−FF20, 20 0 to 20 n addition circuit 20A, 50 addition unit 21 partial sum generation unit 22 carry generation unit 23 borrow generation unit 30, 40, 60 inversion circuit 71, 72 D-FF

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 1桁の2進数で表わされた第1、第2の
入力信号、下位の桁上げを示すキャリ入力信号、及び下
位の桁借りを示すボロー入力信号を入力し、該各信号が
示す値の第1の論理値の数が偶数の場合に該各信号の部
分和として該第1の論理値を反転した第2の論理値を生
成し、奇数の場合に該部分和として該第1の論理値を生
成する部分和生成部と、 前記第1、第2の入力信号、キャリ入力信号、及びボロ
ー入力信号を入力し、該第1の入力信号、第2の入力信
号及びキャリ入力信号のうちの2つ以上の信号の示す値
が前記第1の論理値で且つ前記ボロー入力信号が前記第
2の論理値の場合に上位に対する桁上げを示すキャリ出
力信号として該第1の論理値を生成し、他の場合には該
第2の論理値を生成するキャリ生成部と、 前記第1、第2の入力信号、及びボロー入力信号を入力
し、該第1及び第2の入力信号が前記第2の論理値で且
つ該ボロー入力信号が前記第1の論理値の場合に上位に
対する桁借りを示すボロー出力信号として該第1の論理
値を生成し、他の場合には該第2の論理値を生成するボ
ロー生成部とを、備えたことを特徴とする加算回路。
A first input signal and a second input signal each represented by a single-digit binary number, a carry input signal indicating a lower carry, and a borrow input signal indicating a lower borrow are input. When the number of the first logical value of the value indicated by the signal is even, a second logical value obtained by inverting the first logical value is generated as a partial sum of the signals, and when the number is odd, the partial logical sum is generated as the partial sum. A partial sum generation unit that generates the first logical value, and inputs the first and second input signals, the carry input signal, and the borrow input signal, and outputs the first input signal, the second input signal, When the value indicated by two or more of the carry input signals is the first logical value and the borrow input signal is the second logical value, the carry output signal indicates a carry to a higher order. And a carry generation unit that generates the second logical value in other cases, , A second input signal, and a borrow input signal, and when the first and second input signals are the second logical value and the borrow input signal is the first logical value, A borrow generator that generates the first logical value as a borrow output signal indicating borrowing, and otherwise generates the second logical value.
【請求項2】 複数の請求項1記載の加算回路を有し、
該各加算回路を下位の桁上げを示すキャリ入力信号及び
該下位の桁借りを示すボロー入力信号を該下位から入力
し、且つ上位に対する桁上げを示すキャリ出力信号及び
該上位に対する桁借りを示すボロー出力信号を該上位へ
出力するように順次接続して構成したことを特徴とする
加算装置。
2. It has a plurality of addition circuits according to claim 1,
Each of the adder circuits receives a carry input signal indicating a lower carry and a borrow input signal indicating the lower borrow from the lower, and indicates a carry output signal indicating a carry for the upper and a borrow for the upper. An adder, wherein the borrow output signals are sequentially connected so as to be output to the higher order.
【請求項3】 M桁(但し、Mは正の整数)の2進数で
表わされた第1の入力データを、第1の制御信号が第1
の論理レベルの場合にそのまま第1の出力データとして
出力し、該第1の制御信号が該第1の論理レベルと相補
的な第2の論理レベルの場合に該第1の入力データの全
ての桁の第1の論理値又は該第1の論理値を反転した第
2の論理値を反転して該第1の出力データとして出力す
る第1の反転手段と、 M桁の2進数で表わされた第2の入力データを、第2の
制御信号が前記第1の論理レベルの場合にそのまま第2
の出力データとして出力し、該第2の制御信号が前記第
2の論理レベルの場合に該第2の入力データの全ての桁
の前記第1の論理値又は前記第2の論理値を反転して該
第2の出力データとして出力する第2の反転手段と、 請求項2記載の加算装置で構成され、前記第1及び第2
の出力データの同一桁の値を該加算装置中の各加算回路
でそれぞれ加算し、キャリ入力信号が前記第1の論理値
の場合に該加算結果に“1”を加えた値をM桁又は(M
+1)桁の2進数で表現された第3の出力データとして
出力し、ボロー入力信号が第1の論理値の場合に該加算
結果から“1”を引いた値を該第3の出力データとして
出力する加算部と、前記第3の出力データを、第3の制
御信号が前記第1の論理レベルの場合にそ のまま第4の出力データとして出力し、該第3の制御信
号が前記第2の論理レベルの場合に該第3の出力データ
の全ての桁の前記第1の論理値又は前記第2の論理値を
反転して該第4の出力データとして出力する第3の反転
手段とを、備えたことを特徴とする加算装置。
3. A method according to claim 1, wherein the first control signal is a first input signal represented by M digits (where M is a positive integer) represented by a binary number.
Is output as it is as the first output data in the case of the first logic level, and when the first control signal is in the second logic level complementary to the first logic level, all of the first input data are output. First inverting means for inverting a first logical value of a digit or a second logical value obtained by inverting the first logical value and outputting the inverted value as the first output data, represented by an M-digit binary number When the second control signal is at the first logic level, the second input data
And when the second control signal is at the second logical level, inverts the first logical value or the second logical value of all the digits of the second input data. And a second inverting means for outputting the first and second output data as the second output data.
Are added by respective adders in the adder, and when the carry input signal is the first logical value, a value obtained by adding "1" to the addition result is M digits or (M
+1) is output as third output data represented by a binary number, and when the borrow input signal is a first logical value, a value obtained by subtracting "1" from the addition result is used as the third output data. An adding unit that outputs the third output data as the fourth output data as it is when the third control signal is at the first logic level, and the third control signal is the fourth output data. Third inverting means for inverting the first logical value or the second logical value of all the digits of the third output data in the case of a logical level of 2, and outputting the inverted value as the fourth output data; An addition device comprising:
【請求項4】 複数の請求項1記載の加算回路を有し、
該各加算回路を下位の桁上げを示すキャリ入力信号及び
該下位の桁借りを示すボロー入力信号を該下位から入力
し、且つ上位に対する桁上げを示すキャリ出力信号及び
該上位に対する桁借りを示すボロー出力信号を該上位へ
出力するように順次接続して構成した加算部と、 前記各加算回路のうちの最上位の加算回路から出力され
た部分和を入力し、該部分和が第1の論理値の場合にの
み第1の論理値のボロー入力信号を生成して該各加算回
路のうちの最下位の加算回路へ供給するボロー入力信号
生成手段と、 前記最上位の加算回路から出力された部分和を入力し、
該部分和が前記第1の論理値を反転した第2の論理値の
場合にのみ第1の論理値のキャリ入力信号を生成して前
記最下位の加算回路へ供給するキャリ入力信号生成手段
とを、備えたことを特徴とする加算装置。
4. It has a plurality of addition circuits according to claim 1,
Each of the adder circuits receives a carry input signal indicating a lower carry and a borrow input signal indicating the lower borrow from the lower, and indicates a carry output signal indicating a carry for the upper and a borrow for the upper. An adder configured by sequentially connecting borrow output signals to the higher order, and a partial sum output from the highest-order adder circuit of the adder circuits, wherein the partial sum is the first A borrow input signal generating means for generating a borrow input signal of the first logical value and supplying the borrow input signal of the first logical value only to the lowest one of the adding circuits; Enter the partial sum
Carry input signal generating means for generating a carry input signal of a first logical value and supplying the carry input signal to the least significant adder only when the partial sum is a second logical value obtained by inverting the first logical value; An addition device comprising:
JP10012587A 1998-01-26 1998-01-26 Addition circuit and addition device Withdrawn JPH11212765A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10012587A JPH11212765A (en) 1998-01-26 1998-01-26 Addition circuit and addition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10012587A JPH11212765A (en) 1998-01-26 1998-01-26 Addition circuit and addition device

Publications (1)

Publication Number Publication Date
JPH11212765A true JPH11212765A (en) 1999-08-06

Family

ID=11809497

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10012587A Withdrawn JPH11212765A (en) 1998-01-26 1998-01-26 Addition circuit and addition device

Country Status (1)

Country Link
JP (1) JPH11212765A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009301210A (en) * 2008-06-11 2009-12-24 Tokyo Denki Univ N-digit subtraction unit, n-digit subtraction module, n-digit addition unit and n-digit addition module

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009301210A (en) * 2008-06-11 2009-12-24 Tokyo Denki Univ N-digit subtraction unit, n-digit subtraction module, n-digit addition unit and n-digit addition module
US8606842B2 (en) 2008-06-11 2013-12-10 Tokyo Denki University N-digit subtraction unit, N-digit subtraction module, N-digit addition unit and N-digit addition module

Similar Documents

Publication Publication Date Title
US4953115A (en) Absolute value calculating circuit having a single adder
JPS588009B2 (en) digital multiplier
US5299145A (en) Adder for reducing carry processing
US6745219B1 (en) Arithmetic unit using stochastic data processing
US4866655A (en) Arithmetic processor and divider using redundant signed digit
JPH11212765A (en) Addition circuit and addition device
JPH05158659A (en) Multiplier
JP2991788B2 (en) Decoder
JPH11134175A (en) Multiplier/adder/subtracter and computing element
JPH04227329A (en) Binary counter
JPH01220528A (en) Parity generator
JPH1185474A (en) Random number generator and noise generator using the random number generator
JP3017203B1 (en) Binary-decimal conversion circuit and method
JP2606326B2 (en) Multiplier
JP2606339B2 (en) Multiplier
JP2734438B2 (en) Multiplier
JP2001034457A (en) Adding and subtracting circuit
JP2864598B2 (en) Digital arithmetic circuit
JP3074958B2 (en) Serial multiplier with addition function
JP3157741B2 (en) Binary-decimal conversion circuit
US5983250A (en) Arithmetic circuit for obtaining absolute-valued distance
JP4042215B2 (en) Arithmetic processing apparatus and method
JPH08102657A (en) Parallel data counter circuit
JP3012557B2 (en) Decimal-binary conversion circuit
CN114519321A (en) Lookup table circuit and configuration method thereof

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050405