JPH05265712A - Adder circuit and n-bit adder using the adder circuit - Google Patents

Adder circuit and n-bit adder using the adder circuit

Info

Publication number
JPH05265712A
JPH05265712A JP6385592A JP6385592A JPH05265712A JP H05265712 A JPH05265712 A JP H05265712A JP 6385592 A JP6385592 A JP 6385592A JP 6385592 A JP6385592 A JP 6385592A JP H05265712 A JPH05265712 A JP H05265712A
Authority
JP
Japan
Prior art keywords
carry
adder
output
circuit
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.)
Granted
Application number
JP6385592A
Other languages
Japanese (ja)
Other versions
JP3207490B2 (en
Inventor
直和 ▲くず▼野
Naokazu Kuzuno
Kazuyuki Men
一幸 面
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.)
Toshiba Corp
Toshiba Electronic Device Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Microelectronics 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 Toshiba Corp, Toshiba Microelectronics Corp filed Critical Toshiba Corp
Priority to JP06385592A priority Critical patent/JP3207490B2/en
Publication of JPH05265712A publication Critical patent/JPH05265712A/en
Application granted granted Critical
Publication of JP3207490B2 publication Critical patent/JP3207490B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To provide an adder circuit consisting of a complementary MOS transistor which can construct a high speed adder while suppressing the increase of the total occupied area of the adder and also to provide an n-bit adder using said adder circuit. CONSTITUTION:A 1st gate circuit 1 is provided to secure an exclusive OR between two input data A and B together with a 2nd gate circuit 2 which secures an exclusive OR of the output of the circuit 1 with the 1st carry input Xin, a 1st carry generating means 3 which generates the 1st carry output Xout from both inputs A and B and the input Xin, a 3rd gate circuit 11 which an exclusive NOR of the output of the circuit 2 with the 2nd carry input Yin, and a 2nd carry generating means 12 which generates the 2nd carry output Yout from the output of the gate 1 and the input Yin.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、相補形MOSトランジ
スタで構成した加算回路に関し、特により少ない面積
で、高速な加算器を構成し得る加算回路及びそれを使用
したnビット加算器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an adder circuit composed of complementary MOS transistors, and more particularly to an adder circuit which can form a high speed adder with a smaller area and an n-bit adder using the adder circuit.

【0002】[0002]

【従来の技術】従来の桁上げ選択加算器(CSA:Carr
y-Select Adder)は、長い語長の加算器を適当な長さの
加算器群に分けて、各区分での加算を並列的に実施し、
真の和を適切な桁上げ入力を使って得る論理構成を有し
ている。
2. Description of the Related Art A conventional carry select adder (CSA: Carr)
y-Select Adder) divides an adder with a long word length into adder groups with an appropriate length, and performs addition in each section in parallel.
It has a logical structure that obtains the true sum using the appropriate carry input.

【0003】図8に、4つのブロックに分割した16ビ
ット加算器の構成例を示す。4つの4ビット加算器10
1〜104と、桁上がりセレクタ111〜114と、出
力セレクタ121〜124から構成され、1つのブロッ
クiは4ビット加算器10i、桁上がりセレクタ11
i、及び出力セレクタ12iから成っている。
FIG. 8 shows a structural example of a 16-bit adder divided into four blocks. Four 4-bit adders 10
1-104, carry selectors 111-114, and output selectors 121-124. One block i is a 4-bit adder 10i and carry selector 11.
i and an output selector 12i.

【0004】また、図9に、図8における4ビット加算
器10iの構成例を示す。各桁j毎に、2つの全加算器
13j及び14jから構成されている。処理速度を高速
化するため、一方では最下位ビットへの桁上げを仮定
し、もう一方では桁上げ無しとして加算を行っている。
またキャリーの伝搬として、全加算器13j及び14j
には、キャリー入力Cin=”0”またはキャリー入力
Cin=”1”の2通りの入力があり、それぞれの桁で
キャリーCoutjと和Sumjを出力する。
FIG. 9 shows a configuration example of the 4-bit adder 10i shown in FIG. Each digit j is composed of two full adders 13j and 14j. In order to speed up the processing speed, carry is assumed to the least significant bit on the one hand, and addition is carried out on the other hand with no carry.
Further, as carry propagation, full adders 13j and 14j
Has two inputs, carry input Cin = "0" or carry input Cin = "1", and outputs carry Coutj and sum Sumj at each digit.

【0005】更に、各桁j毎の2つの全加算器13j及
び14j(図9中点線で囲った部分)の回路構成図を図
10に示す。ここで、キャリーラインMはキャリー入力
Cin=”1”、キャリーラインNはキャリー入力Ci
n=”0”として考えている。
Further, FIG. 10 shows a circuit configuration diagram of the two full adders 13j and 14j for each digit j (a portion surrounded by a dotted line in FIG. 9). Here, carry line M is carry input Cin = “1”, carry line N is carry input Ci.
It is considered that n = “0”.

【0006】[0006]

【発明が解決しようとする課題】以上のように、従来の
桁上げ選択加算器(CSA)では、高速化の目的で、桁
上げが有る時と無い時を想定しているため、キャリーの
伝搬の為の信号線が2本必要であり、従って、リプル桁
上げ加算器等のキャリー伝搬信号線が1本の場合に比べ
て、かなり高速にはなるがハードウェア量が増加し、そ
の結果、占有面積が大きくなるという欠点があった。
As described above, in the conventional carry select adder (CSA), it is assumed that there is a carry and no carry for the purpose of speeding up. Therefore, two signal lines are required for this purpose. Therefore, compared to the case where there is only one carry propagation signal line such as a ripple carry adder, it is considerably faster but the amount of hardware increases, and as a result, There is a drawback that the occupied area becomes large.

【0007】本発明は、上記問題点を解決するもので、
その目的は、加算器全体の占有面積の増加を抑えつつ、
尚且つ高速な加算器を構成し得る加算回路及びそれを使
用したnビット加算器を提供することである。
The present invention solves the above problems,
The purpose is to suppress the increase in the area occupied by the adder as a whole,
Another object of the present invention is to provide an adder circuit capable of forming a high-speed adder and an n-bit adder using the adder circuit.

【0008】[0008]

【課題を解決するための手段】前記課題を解決するため
に、本発明の加算回路の特徴は、図1に示す如く、2つ
の入力データA及びBの排他的論理和をとる第1のゲー
ト回路1と、前記第1のゲート回路1出力と第1のキャ
リー入力Xinの排他的論理和をとる第2のゲート回路2
と、前記2つの入力A及びB及び前記第1のキャリー入
力Xinから第1のキャリー出力Xout を生成する第1の
キャリー生成手段3と、前記第2のゲート回路2出力と
第2のキャリー入力Yinとの排他的論理否定和をとる第
3のゲート回路11と、前記第1のゲート1出力及び前
記第2のキャリー入力Yinから第2のキャリー出力You
t を生成する第2のキャリー生成手段12とを具備する
ことである。
In order to solve the above-mentioned problems, the feature of the adder circuit of the present invention is that the first gate which takes the exclusive OR of two input data A and B as shown in FIG. A circuit 1 and a second gate circuit 2 that takes the exclusive OR of the output of the first gate circuit 1 and the first carry input Xin.
A first carry generating means 3 for generating a first carry output Xout from the two inputs A and B and the first carry input Xin, the second gate circuit 2 output and the second carry input. A third gate circuit 11 which performs an exclusive OR operation with Yin, and the output of the first gate 1 and the second carry input Yin to the second carry output Youu.
and a second carry generating means 12 for generating t.

【0009】また、本発明のnビット加算器の特徴は、
図2に示す如く、請求項1に記載の加算回路20−1〜
20−nをn個(nは任意の整数;図2ではn=4)並
列に接続して成る加算部20と、前記加算部20内の各
加算回路20−i毎の前記第2のゲート回路2−i出力
と前記第3のゲート回路11−i出力とを、第3のキャ
リー入力Zに基づいて選択し、当該加算器の和出力Su
m0〜Sum3とする和選択手段21−1〜21−4と
を具備することである。
The features of the n-bit adder of the present invention are as follows:
As shown in FIG. 2, an adder circuit 20-1 to 20-1 according to claim 1 is provided.
20-n (n is an arbitrary integer; n = 4 in FIG. 2) connected in parallel, and the second gate for each adder circuit 20-i in the adder 20. The output of the circuit 2-i and the output of the third gate circuit 11-i are selected based on the third carry input Z, and the sum output Su of the adder is selected.
The sum selecting means 21-1 to 21-4 for setting m0 to Sum3 are provided.

【0010】[0010]

【作用】本発明の特徴の加算回路では、図1に示す如
く、第1のゲート回路1で2つの入力データA及びBの
排他的論理和をとり、第2のゲート回路2で第1のゲー
ト回路1出力と第1のキャリー入力Xinの排他的論理和
をとり、前桁からの真のキャリー入力が”0”であると
想定した時の第1の和出力を生成する。また、第3のゲ
ート回路11で第2のゲート回路2出力と第2のキャリ
ー入力Yinとの排他的論理否定和をとり、真のキャリー
入力が”1”であると想定した時の第2の和出力を生成
する。また、次桁へのキャリー出力を生成するために、
第1のキャリー生成手段3で2つの入力A及びB及び第
1のキャリー入力Xinから第1のキャリー出力Xout を
生成し、第2のキャリー生成手段12で第1のゲート1
出力及び第2のキャリー入力Yinから、当該加算回路の
桁でキャリーを発生すべきデータ入力の組み合わせが入
力されたか否かを判断して、第2のキャリー出力Yout
を生成する。
In the adder circuit of the present invention, as shown in FIG. 1, the first gate circuit 1 takes the exclusive OR of the two input data A and B, and the second gate circuit 2 makes the first OR. The exclusive OR of the output of the gate circuit 1 and the first carry input Xin is calculated to generate the first sum output when the true carry input from the previous digit is assumed to be "0". In addition, the third gate circuit 11 obtains the exclusive OR of the output of the second gate circuit 2 and the second carry input Yin, and the second when the true carry input is assumed to be "1". Produces the sum output of. Also, to generate a carry output to the next digit,
The first carry generating means 3 generates a first carry output Xout from the two inputs A and B and the first carry input Xin, and the second carry generating means 12 generates the first gate 1
The second carry output Yout is judged from the output and the second carry input Yin whether or not a combination of data inputs that should generate a carry at the digit of the adder circuit is inputted.
To generate.

【0011】従って、第2のキャリー生成手段12にお
いて従来必要とされたインバータ回路をトランジスタで
実現でき、加算回路の面積縮小化を実現でき、また、本
発明の加算回路をキャリー選択方式の加算器に適用する
ことにより、加算器全体の占有面積の増加を抑えること
ができ、尚且つ高速な加算器を構成することができる。
Therefore, the inverter circuit conventionally required in the second carry generation means 12 can be realized by a transistor, the area of the adder circuit can be reduced, and the adder circuit of the present invention can be added by a carry selection type adder. By applying to the above, it is possible to suppress an increase in the occupied area of the adder as a whole and to configure a high-speed adder.

【0012】本発明の特徴のnビット加算器では、図2
に示す如く、請求項1に記載の加算回路20−1〜20
−nをn個(nは任意の整数;図2ではn=4)並列に
接続して加算部20を構成し、各加算回路20−i毎の
第2のゲート回路2−i出力と第3のゲート回路11−
i出力とを、和選択手段21−1〜21−4で第3のキ
ャリー入力Zに基づいて選択し、当該加算器の和出力S
um0〜Sum3とする。
In the n-bit adder, which is a feature of the present invention, FIG.
As shown in FIG. 5, the adder circuits 20-1 to 20-20 according to claim 1.
-N (n is an arbitrary integer; n = 4 in FIG. 2) are connected in parallel to configure the adder unit 20. The adder unit 20-i outputs the second gate circuit 2-i output and the second gate circuit 2-i. 3 gate circuit 11-
i output is selected by the sum selecting means 21-1 to 21-4 based on the third carry input Z, and the sum output S of the adder is selected.
um0 to Sum3.

【0013】これにより、加算器全体の占有面積の増加
を抑えることができ、尚且つ高速な加算器を構成するこ
とができる。
As a result, an increase in the occupied area of the entire adder can be suppressed, and a high-speed adder can be constructed.

【0014】[0014]

【実施例】以下、本発明に係る実施例を図面に基づいて
説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0015】図1に本発明の第1の実施例に係る加算回
路の回路構成図を示す。同図は、4ビット加算器の1ビ
ット分の回路構成を示しており、点線で囲った部分(F
A)が1ビット分の全加算器の構成であり、点線外の回
路が本発明の特徴的な回路となっている。
FIG. 1 shows a circuit configuration diagram of an adder circuit according to a first embodiment of the present invention. This figure shows the circuit configuration of a 4-bit adder for 1 bit, and is surrounded by a dotted line (F
A) is the configuration of a full adder for 1 bit, and the circuit outside the dotted line is the characteristic circuit of the present invention.

【0016】図1に示すように、本実施例の加算回路
は、2つの入力データA及びBの排他的論理否定和をと
る第1のゲート回路(2入力EXNORゲート)1と、
EXNORゲート1出力の論理否定をとるNOTゲート
8と、NOTゲート8出力と第1のキャリー入力Xinの
排他的論理和をとる第2のゲート回路(2入力EXOR
ゲート)2と、2つの入力データA及びB、EXNOR
ゲート1出力、NOTゲート8出力、並びに第1のキャ
リー入力Xinから第1のキャリー出力Xout を生成する
第1のキャリー生成手段3と、EXORゲート2出力と
第2のキャリー入力Yinとの排他的論理和をとる第3の
ゲート回路(2入力EXNORゲート)11と、EXN
ORゲート1出力、NOTゲート8出力、及び第2のキ
ャリー入力Yinから第2のキャリー出力Yout を生成す
る第2のキャリー生成手段12とから構成されている。
As shown in FIG. 1, the adder circuit according to the present embodiment has a first gate circuit (2-input EXNOR gate) 1 for taking the exclusive OR of two input data A and B, and
A NOT gate 8 that takes the logical NOT of the output of the EXNOR gate 1 and a second gate circuit (2-input EXOR) that takes the exclusive OR of the output of the NOT gate 8 and the first carry input Xin.
Gate) 2 and two input data A and B, EXNOR
Exclusively the first carry generating means 3 for generating the first carry output Xout from the gate 1 output, the NOT gate 8 output, and the first carry input Xin, and the EXOR gate 2 output and the second carry input Yin. A third gate circuit (2-input EXNOR gate) 11 that takes a logical sum and EXN
It is composed of an OR gate 1 output, a NOT gate 8 output, and a second carry generating means 12 for generating a second carry output Yout from the second carry input Yin.

【0017】第1のキャリー生成手段3は、2入力NA
NDゲート4、2入力NORゲート5、及びトランジス
タ群6(インバータ回路)及び7(バストランジスタ)
から構成され、また第2のキャリー生成手段12は、ト
ランジスタ群13及び14(バストランジスタ)から構
成されている。
The first carry generation means 3 has a 2-input NA.
ND gate 4, 2-input NOR gate 5, and transistor groups 6 (inverter circuit) and 7 (bus transistor)
The second carry generation means 12 is composed of transistor groups 13 and 14 (bus transistors).

【0018】本実施例の加算回路では、EXNORゲー
ト1で2つの入力データA及びBの排他的論理否定和を
とり、EXORゲート2でEXNORゲート1出力の否
定と第1のキャリー入力Xinの排他的論理和をとり、前
桁からの真のキャリー入力が”0”であると想定した時
の第1の和出力Cを生成する。また、EXNORゲート
11でEXORゲート2出力と第2のキャリー入力Yin
との排他的論理否定和をとり、真のキャリー入力が”
1”であると想定した時の第2の和出力Dを生成する。
また、次桁へのキャリー出力を生成するために、第1の
キャリー生成手段3で2つの入力A及びB、EXNOR
ゲート1出力、NOTゲート8出力、並びに第1のキャ
リー入力Xinから第1のキャリー出力Xout を生成し、
第2のキャリー生成手段12でEXNORゲート1出
力、NOTゲート8出力、及び第2のキャリー入力Yin
から、当該加算回路の桁でキャリーを発生すべきデータ
入力の組み合わせが入力されたか否かを判断して、第2
のキャリー出力Yout を生成する。
In the adder circuit of the present embodiment, the EXNOR gate 1 takes the exclusive OR of the two input data A and B, and the EXOR gate 2 takes the negation of the output of the EXNOR gate 1 and the exclusion of the first carry input Xin. The logical OR is performed to generate the first sum output C when the true carry input from the first digit is assumed to be "0". Further, the EXNOR gate 11 outputs the EXOR gate 2 and the second carry input Yin.
The true carry input is the exclusive OR of
The second sum output D when it is assumed to be 1 ″ is generated.
In order to generate a carry output to the next digit, the first carry generating means 3 has two inputs A and B, EXNOR.
A first carry output Xout is generated from the gate 1 output, the NOT gate 8 output, and the first carry input Xin,
The second carry generation means 12 outputs the EXNOR gate 1 and the NOT gate 8 and the second carry input Yin.
From the second, it is determined whether or not a combination of data inputs that should generate a carry at the digit of the adder circuit is input, and the second
To generate a carry output Yout.

【0019】次に、キャリーの生成及び伝搬に基づき、
本実施例の動作を説明する。キャリーラインYがVSSに
接続され、キャリーラインXに対するキャリー入力Xin
=0を仮定する。出力C及びDは、それぞれ真のキャリ
ー入力Cin=0の時の和Sum、Cin=1の時の和
Sumを表している。ここで、データ入力をキャリー生
成が成されるGの場合(Generator )とキャリー伝搬が
成されるPの場合(Propagator)に分けて考える。
Next, based on the generation and propagation of the carry,
The operation of this embodiment will be described. Carry line Y is connected to VSS and carry input Xin for carry line X
Assume = 0. The outputs C and D represent the sum Sum when the true carry input Cin = 0 and the sum Sum when Cin = 1, respectively. Here, the data input will be divided into the case of G for which carry generation is performed (Generator) and the case of P for which carry propagation is performed (Propagator).

【0020】先ず、Gの場合のキャリー出力について説
明する。キャリーラインXはキャリー入力Xin=0を仮
定しているので、データ入力(A,B)が(0,0)の
場合には、NANDゲート4及びNORゲート5はそれ
ぞれ”1”を出力し、インバータ回路6がオンしてキャ
リー出力Xout =0となる。この時、バストランジスタ
7及び14はそれぞれオフ状態であり、それ故トランジ
スタ13がオンしてキャリー出力Yout =1となる。
First, the carry output in the case of G will be described. Since carry line X assumes carry input Xin = 0, NAND gate 4 and NOR gate 5 each output "1" when data input (A, B) is (0, 0). The inverter circuit 6 is turned on and the carry output Xout = 0. At this time, the bus transistors 7 and 14 are in the off state, respectively, so that the transistor 13 is turned on and the carry output Yout = 1.

【0021】また、データ入力(A,B)が(1,1)
の場合には、NANDゲート4及びNORゲート5がそ
れぞれ”0”を出力し、インバータ回路6がオンしてキ
ャリー出力Xout =1となる。この時もバストランジス
タ7及び14はそれぞれオフ状態であり、それ故トラン
ジスタ13がオンしてキャリー出力Yout =1となる。
The data input (A, B) is (1, 1).
In this case, the NAND gate 4 and the NOR gate 5 each output "0", the inverter circuit 6 is turned on, and the carry output Xout = 1. At this time as well, the bus transistors 7 and 14 are in the off state, respectively. Therefore, the transistor 13 is turned on and the carry output Yout = 1.

【0022】次に、Pの場合のキャリー出力について説
明する。キャリーラインXはキャリー入力Xin=0を仮
定しているので、データ入力(A,B)が(0,1)の
場合には、NANDゲート4が”1”、NORゲート5
が”0”をそれぞれ出力し、インバータ回路6がオフす
る。しかし、バストランジスタ7はオンし、キャリー出
力Xout は前段のキャリー出力、即ちキャリー入力Xin
の値を伝搬する。この時、トランジスタ13はオフ状態
であり、バストランジスタ13はオン状態であり、キャ
リー出力Yout はキャリー入力Yin、即ち”0”を伝搬
することととなる。
Next, the carry output for P will be described. Since carry line X assumes carry input Xin = 0, when data input (A, B) is (0, 1), NAND gate 4 is "1" and NOR gate 5 is
Respectively output "0" and the inverter circuit 6 is turned off. However, the bus transistor 7 is turned on, and the carry output Xout is the carry output of the preceding stage, that is, the carry input Xin.
Propagate the value of. At this time, the transistor 13 is off, the bus transistor 13 is on, and the carry output Yout propagates the carry input Yin, that is, "0".

【0023】また、データ入力(A,B)が(1,0)
の場合にも、同様に、キャリー出力Xout は前段のキャ
リー出力、即ちキャリー入力Xinの値を伝搬し、キャリ
ー出力Yout はキャリー入力Yin、即ち”0”を伝搬す
ることととなる。
Further, the data input (A, B) is (1, 0).
In the case of, similarly, the carry output Xout propagates the carry output of the preceding stage, that is, the value of the carry input Xin, and the carry output Yout propagates the carry input Yin, that is, "0".

【0024】以上説明した入力データ(A,B)に対す
るキャリー出力Xout 及びYout の関係を図3に示す。
ここで、キャリー出力Xout は全加算器FAのキャリー
出力であり、キャリー出力Yout は入力データ(A,
B)によりキャリーが発生したか否かを表す信号を意味
する。
FIG. 3 shows the relationship between the carry outputs Xout and Yout with respect to the input data (A, B) described above.
Here, carry output Xout is the carry output of full adder FA, and carry output Yout is the input data (A,
By B), it means a signal indicating whether or not a carry occurs.

【0025】本実施例の加算回路を、図10に示した従
来の加算回路と比較すると、インバータ回路Fをトラン
ジスタ13で実現しているところが異なる。つまり、図
10におけるインバータ回路FのN型トランジスタが削
減されることになる。このインバータ回路Fはキャリー
ラインのデータを次段に伝搬するため、ドライブ能力が
かなり大きい。従ってこのN型トランジスタが削減でき
ることにより、加算回路の面積を縮小化できる。
Comparing the adder circuit of this embodiment with the conventional adder circuit shown in FIG. 10, it is different in that the inverter circuit F is realized by the transistor 13. That is, the number of N-type transistors in the inverter circuit F in FIG. 10 is reduced. Since the inverter circuit F propagates the carry line data to the next stage, its drive capability is considerably large. Therefore, by reducing the number of N-type transistors, the area of the adder circuit can be reduced.

【0026】次に、図2に本発明の第2の実施例に係る
4ビット加算器の構成図を示す。同図に示す加算器は、
図1の回路構成を持つ加算回路を4個並列に接続して
(箱で見れば並列だが接続から見たら直列又はリプルで
接続されている)、4ビット加算器を構成したものであ
る。
Next, FIG. 2 shows a block diagram of a 4-bit adder according to a second embodiment of the present invention. The adder shown in FIG.
The four-bit adder is configured by connecting four adder circuits having the circuit configuration of FIG. 1 in parallel (parallel when viewed from the box, but connected in series or ripple when viewed from the connection).

【0027】同図において、本実施例の4ビット加算器
は、第1の実施例の加算回路20−1〜20−nを4個
並列に接続して成る加算部20と、加算部20内の各加
算回路20−i毎の第2のゲート回路(EXORゲー
ト)2−i出力と第3のゲート回路(EXNORゲー
ト)11−i出力とを、第3のキャリー入力Zに基づい
て選択し、当該加算器の和出力Sum0〜Sum3とす
る和選択手段(セレクタ)21−1〜21−4と、次式
で決定される伝搬信号Pと最上位桁の加算回路20−1
から出力されるキャリー出力Xout とを、第3のキャリ
ー入力Zに基づいて選択し、当該加算器のキャリー出力
Coutとするセレクタ22とから構成されている。
In the figure, the 4-bit adder of the present embodiment includes an adder section 20 in which four adder circuits 20-1 to 20-n of the first embodiment are connected in parallel, and an adder section 20. The second gate circuit (EXOR gate) 2-i output and the third gate circuit (EXNOR gate) 11-i output for each of the adder circuits 20-i are selected based on the third carry input Z. , Sum selecting means (selectors) 21-1 to 21-4 for providing the sum outputs Sum0 to Sum3 of the adder, the propagation signal P determined by the following equation, and the addition circuit 20-1 of the most significant digit.
The carry output Xout output from the selector 22 is selected based on the third carry input Z, and is used as the carry output Cout of the adder.

【0028】P=(A0εB0)・(A1εB1)・
(A2εB2)・(A3εB3) ここで、”ε”は排他的論理和を、”・”は論理積を表
す。
P = (A0εB0) · (A1εB1) ·
(A2εB2) · (A3εB3) Here, “ε” represents an exclusive OR, and “·” represents a logical product.

【0029】本実施例の説明に先立ち、図4、図5、及
び図6を参照して、本発明の加算回路の構成が有効とな
り得る基本的な原理説明を行なう。図4は一般的な桁上
げ選択加算器の構成図を、図5は図4における前段の全
加算器FAの入力データ(A,B)及びキャリー入力C
inに対する和Sumの真理値表を、また図6は本実施
例の加算器の動作を解かりやすく説明する為の構成図
を、それぞれ示している。
Prior to the description of this embodiment, a basic principle by which the configuration of the adder circuit of the present invention can be effective will be described with reference to FIGS. 4, 5 and 6. FIG. 4 is a block diagram of a general carry select adder, and FIG. 5 is input data (A, B) and carry input C of the full adder FA in the preceding stage in FIG.
FIG. 6 shows a truth table of the sum Sum for in, and FIG. 6 is a block diagram for explaining the operation of the adder of this embodiment in an easily understandable manner.

【0030】通常、加算器においては、入力データ
(A,B)が(0,0)若しくは(1,1)の組み合わ
せの時、それ自体でキャリーを発生する。即ち、キャリ
ー入力の値に影響されずに、入力データが(0,0)の
時にはキャリー出力は”0”であり、入力データが
(1,1)の時にはキャリー出力は”1”を出力する。
従って、2本のキャリー伝搬の為の信号線を有する桁上
げ選択加算器(以下CSAという)においては、任意の
桁で入力データが(0,0)、(1,1)の組み合わせ
であった時、それより上位桁に伝わるキャリー伝搬信号
線Xout 及びYout の値は同一の値になる。
Usually, in the adder, when the input data (A, B) is a combination of (0, 0) or (1, 1), a carry is generated by itself. That is, the carry output is "0" when the input data is (0,0) and the carry output is "1" when the input data is (1,1) without being affected by the value of the carry input. ..
Therefore, in the carry selection adder (hereinafter referred to as CSA) having two signal lines for carry propagation, the input data is a combination of (0,0) and (1,1) at any digit. At this time, the values of the carry propagation signal lines Xout and Yout that are transmitted to the upper digits are the same.

【0031】言い換えれば、入力データ(A,B)が最
下位桁から見て最初の(0,0)、(1,1)の組み合
わせになるビット位置までは、キャリー伝搬信号線X及
びYの値は異なっている。また、入力データの組み合わ
せが全て(0,1)または(1,0)の時、キャリー出
力はキャリー入力と等しくなり(Xout =Xin、及びY
out =Yin)、これ以外の時には、全加算器FAで生成
されるキャリーがキャリー出力となる。
In other words, up to the first bit position where the input data (A, B) is the first combination (0, 0), (1, 1) from the least significant digit, the carry propagation signal lines X and Y are connected. The values are different. When the input data combinations are all (0,1) or (1,0), the carry output becomes equal to the carry input (Xout = Xin, and Y
out = Yin), otherwise, the carry generated by the full adder FA becomes the carry output.

【0032】以上のことは、図4の例で確認できる。同
図の加算器では、最下位桁のキャリー入力をXin=0、
Yin=1として加算を行なっており、入力データ(A,
B)が(1,1)である第3桁目までは、その桁のキャ
リー出力はキャリー入力と等しい値を伝搬しているが、
第3桁目以降はキャリー伝搬信号線Xout 及びYoutの
値は同一の値”1”になっている。
The above can be confirmed in the example of FIG. In the adder shown in the figure, the carry input of the least significant digit is Xin = 0,
The addition is performed with Yin = 1, and the input data (A,
Up to the third digit where B) is (1,1), the carry output of that digit propagates the same value as the carry input,
From the third digit onward, the values of the carry propagation signal lines Xout and Yout are the same value "1".

【0033】本発明はこの性質を利用するものであり、
図6に示すように、図4における後段の全加算器をトラ
ンジスタ13、バストランジスタ14、及びEXNOR
ゲート11で構成される付加回路とし、最下位桁の第2
のキャリー入力Yinを”0”として加算器を構成するこ
とにより、同等の機能を実現できることが解かる。
The present invention utilizes this property,
As shown in FIG. 6, the full adder in the latter stage of FIG. 4 includes a transistor 13, a bus transistor 14, and an EXNOR.
An additional circuit composed of the gate 11 and the second digit of the lowest digit
It is understood that the equivalent function can be realized by configuring the adder with the carry input Yin of "0" as "0".

【0034】再び図2に戻り、本実施例の動作を説明す
る。データ入力(A,B)または(1,0)であるPの
場合は、前段のキャリー入力Xin及びYinの値をそのま
ま次段に伝搬し、この時の和Sumの値はC=/D(”
/”は論理否定を表す)と成ってCはDの反転した値と
なる。つまり、図1において、EXNORゲート1の出
力は”0”で、(1,0)がEXORゲート2の入力と
なり、C=1、D=0となる。
Returning to FIG. 2, the operation of this embodiment will be described. In the case of P which is the data input (A, B) or (1, 0), the values of the carry inputs Xin and Yin of the previous stage are directly propagated to the next stage, and the value of the sum Sum at this time is C = / D ( ”
/ "Represents a logical NOT), and C is the inverted value of D. That is, in FIG. 1, the output of the EXNOR gate 1 is" 0 "and (1,0) becomes the input of the EXOR gate 2. , C = 1 and D = 0.

【0035】また、データ入力(A,B)が(0,0)
または(1,1)であるGのの場合には、キャリー出力
Yout は”1”となるので、この桁以降の加算回路の和
Sumの値は、C=Dとなる。
The data input (A, B) is (0, 0).
Alternatively, in the case of G which is (1,1), the carry output Yout becomes "1", and therefore the value of the sum Sum of the adder circuit after this digit is C = D.

【0036】以上、和Sumについてまとめると図7
(1)及び(2)に示すようになる。尚、図7(1)は
Cの値、図7(2)はDの値を示している。
The summary of the sum Sum is shown in FIG.
As shown in (1) and (2). 7 (1) shows the value of C, and FIG. 7 (2) shows the value of D.

【0037】以上説明したように、本実施例の加算器で
は、第1の実施例の加算回路を並列に接続して構成する
ことにより、図10におけるインバータ回路FのN型ト
ランジスタが削減に伴う、加算回路の面積縮小化の効果
の恩恵を受けることになる。尚、加算器のビット数が増
大するに従ってその効果は大きくなる。
As described above, in the adder of this embodiment, the N-type transistor of the inverter circuit F in FIG. 10 is reduced due to the addition circuit of the first embodiment being connected in parallel. , Will benefit from the effect of reducing the area of the adder circuit. The effect increases as the number of bits of the adder increases.

【0038】[0038]

【発明の効果】以上のように本発明の加算回路によれ
ば、第1のゲート回路で2つの入力データの排他的論理
和をとり、第2のゲート回路で第1のゲート回路出力と
第1のキャリー入力の排他的論理和をとり、前桁からの
真のキャリー入力が”0”であると想定した時の第1の
和出力を生成し、第3のゲート回路で第2のゲート回路
出力と第2のキャリー入力との排他的論理否定和をと
り、真のキャリー入力が”1”であると想定した時の第
2の和出力を生成し、また、次桁へのキャリー出力を生
成するために、第1のキャリー生成手段で2つの入力及
び第1のキャリー入力から第1のキャリー出力を生成
し、第2のキャリー生成手段で第1のゲート出力及び第
2のキャリー入力から、当該加算回路の桁でキャリーを
発生すべきデータ入力の組み合わせが入力されたか否か
を判断して、第2のキャリー出力を生成することとした
ので、第2のキャリー生成手段におい従来必要とされた
インバータ回路をトランジスタで実現でき、高速で、且
つ加算回路の面積縮小化の可能な加算回路を提供するこ
とができる。
As described above, according to the adder circuit of the present invention, the first gate circuit takes an exclusive OR of two input data, and the second gate circuit outputs the first gate circuit output and the first gate circuit output. The exclusive OR of the carry input of 1 is taken to generate the first sum output when the true carry input from the first digit is assumed to be "0", and the second gate is output by the third gate circuit. The exclusive OR of the circuit output and the second carry input is taken to generate the second sum output when the true carry input is assumed to be "1", and the carry output to the next digit. To generate the first carry output from the two inputs and the first carry input, and the second carry generation means to generate the first gate output and the second carry input. From the input of data that should generate a carry at the digit of the adder circuit Since the second carry output is generated by judging whether or not the matching is input, the inverter circuit conventionally required in the second carry generating means can be realized with the transistor, and the high speed operation can be realized. An adder circuit capable of reducing the area of the adder circuit can be provided.

【0039】また、本発明の加算器によれば、本発明の
加算回路をn個(nは任意の整数)並列に接続して加算
部を構成し、各加算回路毎の第2のゲート回路出力と第
3のゲート回路出力とを、和選択手段で第3のキャリー
入力に基づいて選択し、当該加算器の和出力とすること
としたので、高速で、且つ加算器の面積縮小化の可能な
加算器を提供することができる。
Further, according to the adder of the present invention, the n adder circuits of the present invention (n is an arbitrary integer) are connected in parallel to form an adder unit, and the second gate circuit for each adder circuit is provided. Since the output and the output of the third gate circuit are selected by the sum selecting means based on the third carry input and are used as the sum output of the adder, it is possible to reduce the area of the adder at high speed. A possible adder can be provided.

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

【図1】本発明の第1の実施例に係る加算回路の回路構
成図である。
FIG. 1 is a circuit configuration diagram of an adder circuit according to a first embodiment of the present invention.

【図2】本発明の第2の実施例に係る4ビット加算器の
構成図である。
FIG. 2 is a configuration diagram of a 4-bit adder according to a second embodiment of the present invention.

【図3】第1の実施例の加算回路における入力データに
対するキャリー出力の関係説明図である。
FIG. 3 is an explanatory diagram of a carry output relationship with respect to input data in the adder circuit according to the first embodiment.

【図4】第2の実施例の加算器を説明する為の一般的な
桁上げ選択加算器の動作説明図である。
FIG. 4 is an operation explanatory diagram of a general carry selection adder for explaining the adder of the second embodiment.

【図5】図4における前段の全加算器の入力データ及び
キャリー入力に対する和の真理値表である。
5 is a truth table of a sum for input data and a carry input of the full adder in the preceding stage in FIG.

【図6】第2の実施例の加算器の動作を解かりやすく説
明する為の動作説明図である。
FIG. 6 is an operation explanatory view for explaining the operation of the adder of the second exemplary embodiment in an easily understandable manner.

【図7】第2の実施例の加算器における各桁の加算回路
の和の値と入力データとの関係説明図であり、図7
(1)はCの値、図7(2)はDの値をそれぞれ説明す
る図である。
FIG. 7 is an explanatory diagram of the relationship between the sum value of the adder circuit of each digit and the input data in the adder of the second embodiment.
FIG. 7A is a diagram illustrating the value of C, and FIG. 7B is a diagram illustrating the value of D.

【図8】従来の4つのブロックに分割された16ビット
加算器の構成図である。
FIG. 8 is a configuration diagram of a conventional 16-bit adder divided into four blocks.

【図9】図8で使用する4ビット加算器の構成図であ
る。
9 is a configuration diagram of a 4-bit adder used in FIG. 8. FIG.

【図10】図9で使用する加算回路の回路構成図であ
る。
10 is a circuit configuration diagram of an adder circuit used in FIG. 9. FIG.

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

1 第1のゲート回路(2入力EXNORゲート) 2 第2のゲート回路(2入力EXORゲート) 3 第1のキャリー生成手段 4 2入力NANDゲート 5 2入力NORゲート 6 インバータ回路 7 バストランジスタ 8 NOTゲート 11 第3のゲート回路(2入力EXNORゲート) 12 第2のキャリー生成手段 13 トランジスタ 14 バストランジスタ FA 全加算器 A,B 入力データ X,Y キャリーライン Xin 第1のキャリー入力 Xout 第1のキャリー出力 Yin 第2のキャリー入力 Yout 第2のキャリー出力 Sum,C,D 和 20−1〜20−n 加算回路 20 加算部 Z 第3のキャリー入力 Sum0〜Sum3 和出力 21−1〜21−4 和選択手段(セレクタ) P 伝搬信号 22 セレクタ 101〜104 4ビット加算器 111〜114 桁上がりセレクタ 121〜124 出力セレクタ 13j,14j 全加算器 A0,B0〜A15,B15 入力データ Cin キャリー入力 Coutj キャリー Sumj 和 M,N キャリーライン F インバータ回路 1 1st gate circuit (2 input EXNOR gate) 2 2nd gate circuit (2 input EXOR gate) 3 1st carry generation means 4 2 input NAND gate 5 2 input NOR gate 6 inverter circuit 7 bus transistor 8 NOT gate 11 Third Gate Circuit (2-Input EXNOR Gate) 12 Second Carry Generation Means 13 Transistor 14 Bus Transistor FA Full Adder A, B Input Data X, Y Carry Line Xin First Carry Input Xout First Carry Output Yin second carry input Yout second carry output Sum, C, D sum 20-1 to 20-n adder circuit 20 adder Z third carry input Sum0 to Sum3 sum output 21-1 to 21-4 sum selection Means (selector) P Propagation signal 22 Selectors 101 to 104 4-bit adder 11-114 digit up selector 121-124 output selector 13j, 14j full adder A0, B0~A15, B15 input data Cin carry input Coutj carry Sumj sum M, N carry lines F inverter circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 2つの入力データの排他的論理和をとる
第1のゲート回路と、前記第1のゲート回路出力と第1
のキャリー入力の排他的論理和をとる第2のゲート回路
と、前記2つの入力及び前記第1のキャリー入力から第
1のキャリー出力を生成する第1のキャリー生成手段
と、前記第2のゲート回路出力と第2のキャリー入力と
の排他的論理否定和をとる第3のゲート回路と、前記第
1のゲート出力及び前記第2のキャリー入力から第2の
キャリー出力を生成する第2のキャリー生成手段とを有
することを特徴とする加算回路。
1. A first gate circuit for obtaining an exclusive OR of two input data, an output of the first gate circuit and a first gate circuit.
Second gate circuit for exclusive-ORing the carry inputs of the above, first carry generating means for generating a first carry output from the two inputs and the first carry input, and the second gate A third gate circuit that performs an exclusive OR operation of the circuit output and the second carry input, and a second carry that generates a second carry output from the first gate output and the second carry input. An adder circuit comprising: a generating unit.
【請求項2】 請求項1に記載の加算回路をn個(nは
任意の整数)並列に接続して成る加算部と、前記加算部
内の各加算回路毎の前記第2のゲート回路出力と前記第
3のゲート回路出力とを、第3のキャリー入力に基づい
て選択し、当該加算器の和出力とする和選択手段とを有
することを特徴とするnビット加算器。
2. An adder unit configured by connecting n (n is an arbitrary integer) adder circuits according to claim 1 in parallel, and an output of the second gate circuit for each adder circuit in the adder unit. An n-bit adder that selects the output of the third gate circuit based on a third carry input and that is a sum output of the adder.
JP06385592A 1992-03-19 1992-03-19 Adder circuit and n-bit adder using the same Expired - Lifetime JP3207490B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06385592A JP3207490B2 (en) 1992-03-19 1992-03-19 Adder circuit and n-bit adder using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06385592A JP3207490B2 (en) 1992-03-19 1992-03-19 Adder circuit and n-bit adder using the same

Publications (2)

Publication Number Publication Date
JPH05265712A true JPH05265712A (en) 1993-10-15
JP3207490B2 JP3207490B2 (en) 2001-09-10

Family

ID=13241373

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06385592A Expired - Lifetime JP3207490B2 (en) 1992-03-19 1992-03-19 Adder circuit and n-bit adder using the same

Country Status (1)

Country Link
JP (1) JP3207490B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108239727A (en) * 2016-12-23 2018-07-03 株式会社Posco Two phase stainless steel and its manufacturing method with excellent anticorrosive

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108239727A (en) * 2016-12-23 2018-07-03 株式会社Posco Two phase stainless steel and its manufacturing method with excellent anticorrosive

Also Published As

Publication number Publication date
JP3207490B2 (en) 2001-09-10

Similar Documents

Publication Publication Date Title
JPH0215088B2 (en)
US4525797A (en) N-bit carry select adder circuit having only one full adder per bit
US5278783A (en) Fast area-efficient multi-bit binary adder with low fan-out signals
US4953115A (en) Absolute value calculating circuit having a single adder
JPH0479013B2 (en)
US4556948A (en) Multiplier speed improvement by skipping carry save adders
JPH0421889B2 (en)
JPS595349A (en) Adder
US5007010A (en) Fast BCD/binary adder
JP3412878B2 (en) High-speed adder using variated carry scheme and related method
JPH0552530B2 (en)
US4860242A (en) Precharge-type carry chained adder circuit
US6003059A (en) Carry select adder using two level selectors
JP2001501341A (en) Digital adder circuit
JP2992588B2 (en) Adder circuit
JP3207490B2 (en) Adder circuit and n-bit adder using the same
JP2700876B2 (en) Parallel multiplier
JPH0370416B2 (en)
US20020188642A1 (en) Fast CMOS adder with null-carry look-ahead
US7035893B2 (en) 4-2 Compressor
JPS58225437A (en) Carry look-ahead adder
JP3264250B2 (en) Adder circuit
JP2681968B2 (en) Arithmetic processing unit
JPH04250527A (en) Arithmetic circuit
JP2000089937A (en) Carry look ahead adder equipped with architecture with reduced fan-out

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010619

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080706

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090706

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090706

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100706

Year of fee payment: 9