JPH0366693B2 - - Google Patents

Info

Publication number
JPH0366693B2
JPH0366693B2 JP58154000A JP15400083A JPH0366693B2 JP H0366693 B2 JPH0366693 B2 JP H0366693B2 JP 58154000 A JP58154000 A JP 58154000A JP 15400083 A JP15400083 A JP 15400083A JP H0366693 B2 JPH0366693 B2 JP H0366693B2
Authority
JP
Japan
Prior art keywords
carry
pair
block
adder
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP58154000A
Other languages
Japanese (ja)
Other versions
JPS5957343A (en
Inventor
Ei Uea Furederitsuku
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.)
HP Inc
Original Assignee
Hewlett Packard Co
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 Hewlett Packard Co filed Critical Hewlett Packard Co
Publication of JPS5957343A publication Critical patent/JPS5957343A/en
Publication of JPH0366693B2 publication Critical patent/JPH0366693B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/74Selecting or encoding within a word the position of one or more bits having a specified value, e.g. most or least significant one or zero detection, priority encoders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
    • G06F7/50Adding; Subtracting
    • G06F7/505Adding; Subtracting in bit-parallel fashion, i.e. having a different digit-handling circuit for each denomination
    • G06F7/5055Adding; Subtracting in bit-parallel fashion, i.e. having a different digit-handling circuit for each denomination in which one operand is a constant, i.e. incrementers or decrementers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
    • G06F7/50Adding; Subtracting
    • G06F7/505Adding; Subtracting in bit-parallel fashion, i.e. having a different digit-handling circuit for each denomination
    • G06F7/506Adding; Subtracting in bit-parallel fashion, i.e. having a different digit-handling circuit for each denomination with simultaneous carry generation for, or propagation over, two or more stages
    • G06F7/508Adding; Subtracting in bit-parallel fashion, i.e. having a different digit-handling circuit for each denomination with simultaneous carry generation for, or propagation over, two or more stages using carry look-ahead circuits
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2207/00Indexing scheme relating to methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F2207/506Indexing scheme relating to groups G06F7/506 - G06F7/508
    • G06F2207/50632-input gates, i.e. only using 2-input logical gates, e.g. binary carry look-ahead, e.g. Kogge-Stone or Ladner-Fischer adder

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Pure & Applied Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Mathematical Optimization (AREA)
  • Complex Calculations (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

【発明の詳細な説明】[Detailed description of the invention]

本発明はデジタル加算器等における桁上げに関
し、特に比較的少ないゲート使用量で桁上げ伝搬
遅延を大きく低下させる高速桁上げ方式を採用し
た加算回路に関する。 2つのNビツトオペランドを加算してNビツト
の結果を得ること(しばしば桁上げ伝搬加算と呼
ばれる)はデジタル・プロセツサの基本的な演算
である。この演算を実行するために従来より種々
の桁上げ方式が用いられている。 桁上げ伝搬加算を簡単に実行するにはいわゆる
リツプル・アダー(ripple adder)を用いればよ
い。リツプル・アダーはビツト当りのトランジス
タが比較的少なくてすむが、一般的に比較的低速
である。リツプル・アダーはこのように他の加算
器の能力測定の基準としてしばしば用いられる様
な、基本的ではあるが、それだけに低速の加算器
である。 第1図は代表的なリツプル・アダー・セルを示
す図である。第1図において、A(i)及びB(i)は加
えられる2つのオペランドのそれぞれのビツトで
あり、Cin(i)は前段のリツプル・アダー・セルか
らの桁上げ入力であり、Cont(i)はこのリツプ
ル・アダー・セルからの桁上げ出力であり、また
D(i)はこのリツプル・アダー・セルの和である。
ある1つのリツプル・アダー・セルの桁上げ出力
は次段のリツプル・アダー・セルの桁上げ入力と
なる。表1にPASCAL風の言語で書かれた、N
ビツト・リツプル・アダーの論理動作を説明する
プログラムを示す。なお、表1のプログラムにお
いて「+」は論理和、「・」は論理積、「XOR」
は排他的論理和を示す。 表 1 For i=0toN−1 DO BEGIN K(i)=A(i)+B(i) G(i)=A(i)・B(i) P(i)=A(i) XOR B(i) Cout(i)=G(i)+〔K(i)・Cin(i)〕 =Cin(i+1) D(i)=P(i) XOR Cin(i) End リツプル・アダーは桁上げ先見回路を付加する
ことにより高速化することができる。桁上げ先見
加算器を実現するために、リツプル・アダーは、
例えば4つのリツプル・アダー・セルから成るブ
ロツクで構成されている。4つの高速加算器の各
ブロツクは、第2図に示すように、ゲートが付加
されており、このゲートによりKビツト(すなわ
ち、ORゲートK(i)の出力)が全て“1”の時、
前段のブロツクからの桁上げ出力がこのブロツク
を素通りして次段のブロツクに伝搬される。桁上
げ先見加算器は比較的高速であり、MOS回路で
安価に構成できる。 他の方法として、I.R.E.トランザクシヨンズ・
オン・エレクトロニツク・コンピユーターズ(I.
R.E.Transactions on Electronic Computers)
誌1960年6月号、第226頁に、スクランスキー
(Sklansky)氏により「条件付き和による加算論
理」として発表された条件付き和加算器がある。
条件付き和加算は非常に高速で動作するのだが、
上述の比較的低速の加算に較べて非常に多くのロ
ジツクを必要とする。その結果、条件付き和加算
はビツト当りの価格が非常に高いものとなつてし
まう。事実、この方法は広範囲には使用されてい
ない。 上記した様に、従来から桁上げ伝搬加算を実行
するために種々の桁上げ方式が使用されている。
しかし、これら公知の方式は新世代のコンピユー
タにとつてはしばしば遅すぎるものであつたり、
或は期待されるよりもはるかに複雑かつ高価なも
のであつた。 本発明は上述の従来方式の欠点を除去し、高速
かつ実現容易な条件付き加算を行なう加算回路を
提供することを目的とする。 本発明を適用した加算器は中間桁上げ信号を発
生するセルの直列接続構成となつている。従つて
これら各ビツト対の中間桁上げ信号は連続する段
を独立して次々と伝搬して行くことができる。従
つて本発明によれば、公知例と比較して全加算器
の遅延時間を減少させることができると共に、回
路の複雑さを比較的低くおさえることができる。
本発明はまた増分器(incrementor)やプライオ
リテイ・エンコーダにも応用できる。これらの応
用例についても以下で説明する。 本発明の加算回路はセルの種類が比較的少なく
てすむので、任意長の加算器、増分器又はプライ
オリテイ・エンコーダを構成する場合には以下に
図示する様に規則的に容易に結合することができ
る。従つて本発明によれば、絶対速度が速い回路
を実現することが出来ると共にバイポーラ又は
MOS技術のいずれによりLSIを製造した場合で
も、設計上の複雑化を抑えて安価に構成すること
ができる。 以下、図面によつて本発明を詳細に説明する。 以下では、条件付き桁上げ加算を実現する加算
器A,Bを開示している。これら2つの加算器
A,Bの構成は両方とも加算器以外にも増分器や
プライオリテイ・エンコーダにも適用できること
が後述する説明により理解できるだろう。表2に
於て、公知の方式と本発明を用いた条件付き桁上
げ加算器との比較を示した。表2に於て、加算器
の速度は全加算を実行するのに必要なゲート遅延
段数によつて示してある。表2に示したデータは
32ビツト加算器の場合である。 第3A図及び第3B図は本発明の第1実施例で
ある条件付き桁上げ加算器Aを示す図であり、表
3は条件付き桁上げ加算器Aに関連する論理式で
ある。第3A図には3種の異なるセルが示されて
いる。それらはスタート・セル、任意の数(0で
も良い)の継続セル、及びエンド・セルである。
第3B図は、9ビツト加算器の場合のセル構成例
を示す図である。この実施例に於て、各ブロツク
は2〜4個の1ビツト・セルを備えている。すな
わちブロツク0に2つのセル、ブロツク1に3つ
のセル、そしてブロツク2に4つのセルを備えて
いる。例えば、第2ブロツク(j=1)は3つの
セルを備えており、ビツト番号2はスタート・セ
ル、ビツト番号3は継続(continue)セル、そし
てビツト番号4はエンド・セルである。
The present invention relates to carry in digital adders and the like, and particularly to an adder circuit that employs a high-speed carry method that greatly reduces carry propagation delay with a relatively small amount of gate usage. Adding two N-bit operands to obtain an N-bit result (often called carry propagation addition) is a fundamental operation in digital processors. Various carry schemes have been used in the past to perform this operation. A so-called ripple adder can be used to easily perform carry propagation addition. Ripple adders require fewer transistors per bit, but are generally relatively slow. The ripple adder is thus a basic but slow adder that is often used as a basis for measuring the performance of other adders. FIG. 1 is a diagram showing a typical ripple adder cell. In Figure 1, A(i) and B(i) are the respective bits of the two operands being added, Cin(i) is the carry input from the previous ripple adder cell, and Cont(i) is the carry input from the previous ripple adder cell. ) is the carry output from this ripple adder cell, and D(i) is the sum of this ripple adder cell.
The carry output of one ripple adder cell becomes the carry input of the next stage ripple adder cell. Table 1 shows N written in PASCAL-like language.
A program is shown to explain the logical operation of the bit ripple adder. In addition, in the program in Table 1, "+" stands for logical sum, "・" stands for logical product, and "XOR"
indicates exclusive OR. Table 1 For i=0toN−1 DO BEGIN K(i)=A(i)+B(i) G(i)=A(i)・B(i) P(i)=A(i) XOR B(i ) Cout(i)=G(i)+[K(i)・Cin(i)] =Cin(i+1) D(i)=P(i) XOR Cin(i) End Ripple adder is a carry look ahead circuit The speed can be increased by adding . To realize a carry look-ahead adder, the ripple adder is
For example, it consists of a block consisting of four ripple adder cells. Each block of the four high-speed adders is equipped with a gate, as shown in FIG.
The carry output from the previous block passes through this block and is propagated to the next block. Carry lookahead adders are relatively fast and can be constructed inexpensively using MOS circuits. Alternatively, IRE Transactions
On Electronic Computers (I.
RETransactions on Electronic Computers)
In the June 1960 issue of the magazine, page 226, there is a conditional sum adder published by Mr. Sklansky as "addition logic using conditional sums."
Conditional sum addition works very fast, but
It requires significantly more logic than the relatively slow addition described above. As a result, conditional sum addition results in a very high price per bit. In fact, this method is not widely used. As mentioned above, various carry schemes have been used in the past to perform carry propagation addition.
However, these known methods are often too slow for newer generations of computers;
Otherwise, it was far more complex and expensive than expected. SUMMARY OF THE INVENTION It is an object of the present invention to eliminate the drawbacks of the conventional method described above and to provide an adder circuit that performs conditional addition at high speed and which is easy to implement. The adder to which the present invention is applied has a configuration in which cells that generate intermediate carry signals are connected in series. Therefore, the intermediate carry signal of each of these bit pairs can be propagated independently and successively through successive stages. Therefore, according to the present invention, the delay time of the full adder can be reduced compared to the known example, and the complexity of the circuit can be kept relatively low.
The invention can also be applied to incrementors and priority encoders. Examples of these applications are also discussed below. Since the adder circuit of the present invention requires relatively few types of cells, it can be easily combined in a regular manner as shown below to construct an adder, incrementer, or priority encoder of arbitrary length. I can do it. Therefore, according to the present invention, it is possible to realize a circuit with high absolute speed, and also to realize a circuit with high absolute speed.
No matter which MOS technology is used to manufacture LSIs, they can be constructed at low cost with minimal design complexity. Hereinafter, the present invention will be explained in detail with reference to the drawings. Adders A and B that implement conditional carry addition are disclosed below. It will be understood from the following explanation that the configurations of these two adders A and B can be applied not only to adders but also to incrementers and priority encoders. Table 2 shows a comparison between a known scheme and a conditional carry adder using the present invention. In Table 2, adder speed is indicated by the number of gate delay stages required to perform a full addition. The data shown in Table 2 is
This is the case for a 32-bit adder. 3A and 3B are diagrams showing a conditional carry adder A according to a first embodiment of the present invention, and Table 3 shows logical expressions related to the conditional carry adder A. Three different types of cells are shown in Figure 3A. They are a start cell, any number (even zero) of continuation cells, and an end cell.
FIG. 3B is a diagram showing an example of a cell configuration in the case of a 9-bit adder. In this embodiment, each block includes 2 to 4 1-bit cells. That is, block 0 has two cells, block 1 has three cells, and block 2 has four cells. For example, the second block (j=1) has three cells, bit number 2 is the start cell, bit number 3 is the continue cell, and bit number 4 is the end cell.

【表】 表 3 全加算器に対して: Cinブロツク(0)=Cin加算器 各ブロツクjに対して: Cin0(0)=0 Cin1(0)=1 Cout ブロツク(j)=Cout0(imax)+ 〔Cout 1(imax)・Cinブロツク(j)〕 =Cinブロツク(j+1) ブロツクjの各ビツトiに対して: K(i)=A(i)+B(i) G(i)=A(i)・B(i) P(i)=A(i) XOR B(i) Cout0(i)=G(i)+〔K(i)・Cin0(i)〕 =Cin0(i+1) Cout1(i)=G(i)+〔K(i)・Cin1(i)〕 =Cin1(i+1) Cin(i)=Cin0(i)+〔Cin1(i)・Cinブロツク(j)〕 D(i)=P(i)XOR Cin(i) 基本的に、各ブロツクに於て(例えばj=0〜
2に於て)2つのリツプル桁上げ出力Cout0(i)及
びCout1(i)が発生される。各ブロツクのスター
ト・セルに於て桁上げ入力Cin0及びCin1はそれ
ぞれ“0”及び“1”と定義されていることに注
意されたい。この2つの桁上げ出力Coutは現在
のブロツクに入力された桁上げ入力Cinブロツク
(j)と結合することにより現在のブロツクの桁上げ
出力Coutブロツク(j)を発生する。j=0〜2の
全てのブロツクでそれらの2つの桁上げの連鎖
(Cout0−Cin0及びCout1−Cin1)が同時に次々と
伝搬される。ブロツク0は最初にその桁上げ出力
を発生し、そしてブロツク1に伝搬する。その
後、桁上げが各ブロツクを「飛び越す」ためには
ゲート1段分の遅延しか必要ない。よつて、条件
付き桁上げ加算器Aにおいては、桁上げ伝搬遅延
時間を最小にした場合、ブロツクの大きさ、すな
わちビツト長は、ブロツク番号jの増加につれて
等差数列的(すなわち2.3.4.……等)に増加する
から、全遅延時間はオペランドのビツト長の平方
根にほぼ比例して増加する。 従つて条件付き桁上げ加算器Aは桁上げ先見加
算器と比較して、表2からわかる様にビツト当り
の素子を17%増加するのみで25%の性能の向上を
得ることができる。同様に、条件付き桁上げ加算
器Aは1ビツト・セルによつて構成されており、
他の高速化技術の様な複数ビツトにまたがつてい
るセルを使用してはいない。このことにより、実
現が容易でかつチツプ面積の使用効率が良好であ
る規則なレイアウトを持つ集積回路を作ることが
できる。 本発明の高速桁上げ方式を用いた第2の実施例
である、条件付き桁上げ加算器Bを第4図に示
し、またその動作を示すPASCAL風の言語で書
かれたプログラムを表4に示す。表4のプログラ
ムはオペランド長がNビツトの場合について示し
ており、またここで“2**j”は2jを表わす。 この実施例の構成は条件付き桁上げ加算器A
(第3A図及び第3B図)と類似しており、また
同様にして入力はCin0=1及びCin1=1と見な
され、桁上げ出力がそれに従つて演算される。 表 4 For i=0to(N−1) DO BEGIN Cout0(0,i)=A(i)・B(i)=G(i) Cout1(0,i)=A(i)+B(i)=K(i) P(i)=A(i) XOR B(i) End For j=1toLOG2(N) DO BEGIN W=2**j For K=0to(N/W−1) DO BEGIN L0=K*W L1=(K*W+W/2) L2=(K*W+W) For i=(L0)to(L1−1)DO BEGIN Cout0(j,i)=Cont0(j−1,i) Cout1(j,i)=Cont1(j−1,i) End For i=(L0)to(L2−1)DO BEGIN Cout0(j,i)=Cout0(j−1,i)+〔Cout1
(j−1,i)・Cout0(j−1,L1−1)〕 Cout1(j,i)=Cout0(j−1,i)+〔Cout1
(j−1,i)・Cout1(j−2,L1−1)〕 End End Cin(0)=Cin加算器 K=LOG2(N) For i=0to(N−1) DO BEGIN D(i)=P(i)XOR Cin(i) Cin(i+1)=Cout0(K,i)+〔Cout1(K,
i)・Cin加算器〕 End Cout加算器=Cin(N) 第4図に於て、各ステージは各ビツトから発生
される桁上げ出力Cout 0(j,i)及びCout1
(j,i)を、そのビツトへの桁上げ入力がそれ
ぞれ“0”及び“1”であると仮定して発生す
る。但し、“j”はステージ番号であり“i”は
ビツト番号であるとする。この目的は、ビツトの
ブロツク全体に対して下位から与えられる桁上げ
入力がそれぞれ“0”及び“1”であるとして各
ビツトに対する桁上げ入力を発生するためであ
る。連続する各ステージはこの機能を実行すると
ともに、またこのブロツク用の桁上げ出力Cout1
及びCout0を発生する。 第4図のステージ4に示される様に、各ビツト
に対しての最終的な桁上げ入力(表4のCout0
(k,i)及びCout1(k,i))が発生された段
階で、加算器に対しての桁上げ入力Cinが各ビツ
トに対する正しい桁上げ入力(表4のCin(i+
1))を選択する。そしてこの選択された桁上げ
入力は適切なPビツトP(0)〜P(7)と排他的論理
和がとられ最終的な和D(0)〜D(7)が発生される
ことを示している。 第4図から理解できるように、条件付き桁上げ
加算器Bと条件付き桁上げ加算器Aとの主要な違
いは次の様である。条件付き桁上げ加算器Bに於
ては、ブロツクの大きさは2つの累乗で増加す
る、すなわち等比数列的に増加するものである
が、条件付き桁上げ加算器Aのブロツクの大きさ
は上記した様に等差数列的に増加する。従つて条
件付き桁上げ加算器Bの全遅延時間は加算される
ビツト数の2を底とした対数に比例する。 条件付き桁上げ加算器A,Bの桁上げは増分器
やプライオリテイ・エンコーダのいずれを構成す
る場合でも適用することができる。増分器はNビ
ツトで表わされる数に1を加える回路であり、ブ
ライオリテイ・エンコーダはNビツト入力中の最
優先(最上位)ビツトをコード化した出力を発生
する(例えば8ビツト−3ビツト・エンコーダ又
は10ビツト−4ビツト・エンコーダ)ものであ
る。 第5図に条件付き桁上げ加算器Bにおける桁上
げを用いた増分器を示した増分器においては加算
における第2の入力B(0)〜B(7)を使用しないの
で、これらをゼロにセツトすることができる。こ
のとき第4図のステージ0で発生されるK,G,
Pは以下の様になる。 K=A・B=0 G=A+B=A P=AXORB=A 同様に、増分器を常にイネーブル状態にしてお
く場合には、Cin信号を“1”にセツトすること
ができる。この様にして、第4図に示した条件付
き桁上げ加算器Bから増分器としては論理的に冗
長なゲーウを全て除去することにより、第5図に
示した増分器を構成することができる。これと同
様の冗長ゲートの除去方法を用いて、第3A図の
条件付き桁上げ加算器Aを基に構成したものが第
6図に示した増分器である。第3A図及び第3B
図に示した加算器と同様に、第6図の継続セルは
各ブロツクに於て必要なだけ何回でも使用するこ
とができる。 第7図は条件付き桁上げ加算器Bの高速桁上げ
方式を用いた8ビツト−3ビツト・プライオリテ
イ・エンコーダを示す図である。上記した増分器
と同様に、B(0)〜B(7)入力は“0”にセツトさ
れており、桁上げ信号は“1”にセツトされてい
る。この実施例に於ては、桁上げ入力は「イネー
ブル」として示されており、本プライオリテイエ
ンコーダをイネーブル状態にしておく都合上反転
されている。(つまりイネーブル端子は実際には
アースされて“0”が与えられているのである)。
各出力セルは3状態バツフア30を備えており、
対応するゲート40によりイネーブルとされる。
最初の4行の論理素子により、8ビツト入力A(7)
〜A(10)のうち、“1”となつている最上位ビツト
に対応するバツフア30のみがイネーブルされる
ことが保証されている。各出力セルの各3状態バ
ツフア30への入力は各演算子入力のビツト番号
に対応する適切に2進重み付けされた信号と結線
されている。この様に、各3状態バツフア30は
並列接続された3個のバツフアで構成されてお
り、3ビツト出力の3本のエンコード出力線を形
成している。各3状態バツフア30のイネーブル
時の出力の設定は、A(0)桁は0,0,0に、A
(1)桁は0,0,1に、等々、A(7)桁の1,1,1
に至る迄セツトされている。そして各3状態バツ
フアへの3ビツト入力のうち最下位の入力に対応
する8個のバツフア(各桁から1つずつ)の出力
は共通接続されエンコード(0)出力を形成し、中
間重ね付けされた(すなわち重み2)入力に対応
する8個のバツフア(各桁から1つずつ)は共通
接続されエンコード(1)出力を形成し、そして最上
位入力に対応する8個のバツフア(各桁から1つ
ずつ)は共通接続されエンコード(2)出力を形成し
ている。そしてこれら3本のエンコード・ライン
は8ビツト−3ビツト・エンコーダ機能を実行す
るための適切に重み付けされた出力を供給し、適
切にイネーブルされた3状態バツフア30は入力
語中にある“1”のうち最上位にあるもののビツ
ト位置に対応する所望の優先順位を示す数を供給
する。上記した増分器と同様にして、各ビツに対
して適切な数の3状態バツフアを追加することに
加えて、冗長ゲート除去の技法により、第3A図
に示した条件付き桁上げ加算器Aを基に第8図に
示したプライオリテイ・エンコーダを構成するこ
とができる。この場合にも、第8図に示した継続
セルは各ブロツクに於て必要に応じて何回も使用
できる。
[Table] Table 3 For full adder: Cin block (0) = Cin adder For each block j: Cin0 (0) = 0 Cin1 (0) = 1 Cout block (j) = Cout0 (imax) + [Cout 1 (imax)・Cin block (j)] = Cin block (j+1) For each bit i of block j: K(i) = A(i) + B(i) G(i) = A( i)・B(i) P(i)=A(i) XOR B(i) Cout0(i)=G(i)+[K(i)・Cin0(i)] =Cin0(i+1) Cout1(i )=G(i)+[K(i)・Cin1(i)]=Cin1(i+1) Cin(i)=Cin0(i)+[Cin1(i)・Cin block(j)] D(i)= P(i)XOR Cin(i) Basically, in each block (for example, j=0~
2) Two ripple carry outputs Cout0(i) and Cout1(i) are generated. Note that in the start cell of each block, carry inputs Cin0 and Cin1 are defined as "0" and "1", respectively. These two carry outputs Cout are the carry input Cin block input to the current block.
(j) generates the carry output Cout block (j) of the current block. In all blocks from j=0 to 2, those two carry chains (Cout0-Cin0 and Cout1-Cin1) are propagated one after another simultaneously. Block 0 first generates its carry output and propagates to block 1. Thereafter, only one gate delay is required for the carry to "jump over" each block. Therefore, in conditional carry adder A, when the carry propagation delay time is minimized, the block size, that is, the bit length, increases in an arithmetic progression as the block number j increases (i.e., 2.3.4). ..., etc.), so the total delay time increases approximately in proportion to the square root of the bit length of the operand. Therefore, conditional carry adder A can achieve a 25% performance improvement compared to the carry lookahead adder by increasing the number of elements per bit by only 17%, as shown in Table 2. Similarly, conditional carry adder A is composed of 1-bit cells,
It does not use cells that span multiple bits like other high-speed technologies. This makes it possible to create an integrated circuit with a regular layout that is easy to implement and uses chip area efficiently. A conditional carry adder B, which is a second embodiment using the high-speed carry method of the present invention, is shown in FIG. 4, and a program written in a PASCAL-like language showing its operation is shown in Table 4. show. The program in Table 4 shows the case where the operand length is N bits, and "2**j" here represents 2 j . The configuration of this embodiment is a conditional carry adder A.
(FIGS. 3A and 3B) and similarly the inputs are considered as Cin0=1 and Cin1=1 and the carry outputs are calculated accordingly. Table 4 For i=0to(N-1) DO BEGIN Cout0(0,i)=A(i)・B(i)=G(i) Cout1(0,i)=A(i)+B(i)= K(i) P(i)=A(i) XOR B(i) End For j=1toLOG2(N) DO BEGIN W=2 ** j For K=0to(N/W-1) DO BEGIN L0=K * W L1 = (K * W + W / 2) L2 = (K * W + W) For i = (L0) to (L1-1) DO BEGIN Cout0 (j, i) = Cont0 (j-1, i) Cout1 (j , i) = Cont1 (j-1, i) End For i = (L0) to (L2-1) DO BEGIN Cout0 (j, i) = Cout0 (j-1, i) + [Cout1
(j-1,i)・Cout0(j-1,L1-1)] Cout1(j,i)=Cout0(j-1,i)+[Cout1
(j-1,i)・Cout1(j-2,L1-1)] End End Cin(0)=Cin adder K=LOG2(N) For i=0to(N-1) DO BEGIN D(i) =P(i)XOR Cin(i) Cin(i+1)=Cout0(K,i)+[Cout1(K,
i) Cin adder] End Cout adder = Cin (N) In Figure 4, each stage has carry outputs Cout 0 (j, i) and Cout 1 generated from each bit.
(j,i) are generated assuming that the carry inputs to that bit are "0" and "1", respectively. However, it is assumed that "j" is the stage number and "i" is the bit number. The purpose of this is to generate a carry input for each bit assuming that the carry inputs applied from the lower order to the entire block of bits are "0" and "1", respectively. Each successive stage performs this function and also provides a carry output Cout1 for this block.
and generates Cout0. As shown in stage 4 of Figure 4, the final carry input for each bit (Cout0 in Table 4)
(k, i) and Cout1 (k, i)) are generated, the carry input Cin to the adder becomes the correct carry input for each bit (Cin (i+
1) Select). This selected carry input is then exclusive-ORed with the appropriate P bits P(0)-P(7) to generate the final sum D(0)-D(7). ing. As can be understood from FIG. 4, the main differences between conditional carry adder B and conditional carry adder A are as follows. In conditional carry adder B, the block size increases by two powers, that is, in a geometric progression, but in conditional carry adder A, the block size increases as follows. As mentioned above, it increases in an arithmetic progression. Therefore, the total delay time of conditional carry adder B is proportional to the base 2 logarithm of the number of bits being added. The carry of conditional carry adders A and B can be applied to either an incrementer or a priority encoder. An incrementer is a circuit that adds 1 to a number represented by N bits, and a priority encoder generates an output that encodes the highest priority (most significant) bit in an N-bit input (for example, an 8-bit to 3-bit encoder). or 10-bit to 4-bit encoder). Figure 5 shows an incrementer using carry in conditional carry adder B. In the incrementer, the second inputs B(0) to B(7) in addition are not used, so they are set to zero. can be set. At this time, K, G, generated at stage 0 in Fig. 4,
P is as follows. K=A.B=0 G=A+B=AP P=A XOR B=A Similarly, if the incrementer is always enabled, the Cin signal can be set to "1". In this way, the incrementer shown in FIG. 5 can be constructed by removing all logically redundant gates as an incrementer from the conditional carry adder B shown in FIG. . The incrementer shown in FIG. 6 is constructed based on the conditional carry adder A of FIG. 3A using the same redundant gate removal method. Figures 3A and 3B
Like the adders shown, the continuation cells of FIG. 6 can be used as many times as necessary in each block. FIG. 7 is a diagram showing an 8-bit to 3-bit priority encoder using the fast carry method of conditional carry adder B. Similar to the incrementer described above, the B(0) to B(7) inputs are set to "0" and the carry signal is set to "1". In this embodiment, the carry input is shown as "enabled" and is inverted to keep the priority encoder enabled. (In other words, the enable terminal is actually grounded and given "0").
Each output cell is equipped with a three-state buffer 30,
It is enabled by the corresponding gate 40.
The first four rows of logic elements allow 8-bit input A(7)
~A(10), it is guaranteed that only the buffer 30 corresponding to the most significant bit that is "1" is enabled. The input to each three-state buffer 30 of each output cell is wired with an appropriately binary weighted signal corresponding to the bit number of each operator input. In this way, each three-state buffer 30 is composed of three buffers connected in parallel, forming three encode output lines with 3-bit output. The output setting when each 3-state buffer 30 is enabled is as follows: A(0) digit is set to 0, 0, 0;
(1) Digits are 0, 0, 1, etc. A (7) digits 1, 1, 1
It has been set up to . Then, the outputs of the eight buffers (one from each digit) corresponding to the lowest 3-bit input to each 3-state buffer are connected in common to form an encoded (0) output, and are intermediately superimposed. The eight buffers (one from each digit) corresponding to the most significant (i.e., weight 2) inputs are connected in common to form the encode(1) output, and the eight buffers (one from each digit) corresponding to the most significant input are (one by one) are commonly connected to form the encode (2) output. These three encode lines then provide appropriately weighted outputs to perform the 8-bit to 3-bit encoder function, and a properly enabled 3-state buffer 30 outputs a ``1'' in the input word. A number indicating the desired priority corresponding to the most significant bit position is provided. In addition to adding the appropriate number of three-state buffers for each bit in a manner similar to the incrementer described above, redundant gate removal techniques can be used to construct the conditional carry adder A shown in Figure 3A. Based on this, the priority encoder shown in FIG. 8 can be constructed. In this case as well, the continuation cells shown in FIG. 8 can be used as many times as necessary in each block.

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

第1図は従来技術にかかるリツプル・アダーの
1ビツト分を示す回路図、第2図は従来技術にか
かる桁上げ先見加算器を示す回路図、第3A図は
本発明の加算回路の実施例を示す回路図、第3B
図は第3A図の加算器のビツト長を拡張した場合
の構成を例示するブロツク図、第4図は本発明と
類似した構成を持つ加算回路を示す回路図、第5
図及び第6図は夫々第4図及び第3A図に示す加
算回路を応用した増分器を示す回路図、第7図及
び第8図は夫々第4図及び第3A図に示す加算回
路を応用したプライオリテイ・エンコーダを示す
回路図である。 A,B:オペランド、D:和、Cin:桁上げ入
力、Cout:桁上げ出力。
FIG. 1 is a circuit diagram showing a 1-bit ripple adder according to the prior art, FIG. 2 is a circuit diagram showing a carry look-ahead adder according to the prior art, and FIG. 3A is an embodiment of the adder circuit of the present invention. Circuit diagram showing 3B
The figures are a block diagram illustrating the configuration when the bit length of the adder in Figure 3A is extended, Figure 4 is a circuit diagram showing an adder circuit having a configuration similar to that of the present invention, and Figure 5
6 and 6 are circuit diagrams showing incrementers using the adder circuits shown in FIGS. 4 and 3A, respectively, and FIGS. 7 and 8 are circuit diagrams showing incrementers using the adder circuits shown in FIGS. FIG. 2 is a circuit diagram showing a priority encoder according to the present invention. A, B: Operand, D: Sum, Cin: Carry input, Cout: Carry output.

Claims (1)

【特許請求の範囲】 1 複数のブロツクを設け、それぞれN桁の2つ
のオペランドを加算する加算回路において、 前記ブロツクは、下記の(A)および(B): (A) 当該ブロツクを開始/継続する複数のスター
ト/継続セル手段:前記スタート/継続セル手
段の各々は下記の(A−1)ないし(A−4)
を有する; (A‐1) 前記2つのオペランドからの桁の第1の対
を受け入れて複数の第1の論理出力信号を与
える第1の入力手段、 (A‐2) 前記第1入力手段からの前記第1の論理出
力信号の少なくとも一部分と桁上げ入力信号
の第1の対を組み合わせて、桁上げ出力信号
の第1の対を与える第1桁上げ手段: (A‐3) 第1のブロツク桁上げ信号を当該スター
ト/継続セル手段を貫くように結合する第1
ブロツク桁上げ信号; (A‐4) 前記第1入力手段からの少なくとも1つの
論理出力信号と、前記第1のブロツク桁上げ
信号と、桁上げ入力信号の第1の対を組み合
わせて、第1の合計出力桁を与える第1合計
出力手段; (B) 前記ブロツクの各々を終了させるエンド・セ
ル手段:前記エンド・セル手段は下記の(B−
1)ないし(B−4)を有する: (B‐1) 前記2つのオペランドからの桁の第2の対
を受け入れて複数の第2の論理出力信号を与
える第2入力手段; (B‐2) 前記第2入力手段からの前記第2の論理出
力信号の少なくとも一部分と、当該エンド・
セル手段に先行するセル手段からの桁上げ入
力信号の第2の対を組み合わせて、桁上げ出
力信号の第2の対を与える第2桁上げ手段; (B‐3) 桁上げ出力信号の前記第2の対を第2のブ
ロツク桁上げ信号と組み合わせて、最終的な
ブロツク桁上げ信号を与える第2ブロツク桁
上げ手段; (B‐4) 前記第2入力手段からの論理出力信号の少
なくとも一つと、前記第2のブロツク桁上げ
信号と、桁上げ入力信号の第2の対とを組み
合わせて、第2の出力合計桁を与える第2合
計出力手段; を設け、 前記複数のブロツクは、前記最終ブロツク桁上
げ信号のみによつて直列に結合され、 前記ブロツクの各々は可変個数の直列接続され
た前記スタート/継続セル手段を有し、 前記直列接続された可変個数のスタート/継続
セル手段は前記桁上げ出力信号の第1の対と前記
第1のブロツク桁上げ出力信号との対によつて互
いに直列に接続され、 前記ブロツクの各々の最後の前記スタート/継
続セル手段は、前記桁上げ出力信号の第1の対と
前記第1のブロツク桁上げ信号との対によつて前
記エンド・セル手段に直列に結合され、 前記直列に接続されている複数のブロツク中の
前記可変個数のスタート/継続セル手段の個数は
等差数列的に増加する ことを特徴とする加算回路。
[Scope of Claims] 1. In an adder circuit that includes a plurality of blocks and adds two operands each having N digits, the blocks include the following (A) and (B): (A) Start/continue the block. A plurality of start/continuation cell means: Each of the start/continuation cell means includes the following (A-1) to (A-4).
(A-1) first input means for accepting a first pair of digits from said two operands and providing a plurality of first logic output signals; (A-2) from said first input means; (A-3) a first carry means for combining at least a portion of said first logical output signal of and a first pair of carry input signals to provide a first pair of carry output signals; a first coupling the block carry signal through the start/continue cell means;
a block carry signal; (A-4) combining at least one logic output signal from said first input means, said first block carry signal, and a first pair of carry input signals; (B) end cell means for terminating each of said blocks;
1) through (B-4): (B-1) second input means for accepting a second pair of digits from said two operands and providing a plurality of second logic output signals; (B-2 ) at least a portion of said second logic output signal from said second input means;
(B-3) second carry means for combining a second pair of carry input signals from the cell means preceding the cell means to provide a second pair of carry output signals; (B-3) a second pair of carry output signals; a second block carry means for combining the second pair with a second block carry signal to provide a final block carry signal; (B-4) at least one of the logic output signals from said second input means; and a second summation output means for combining the second block carry signal and a second pair of carry input signals to provide a second output total digit; coupled in series only by a last block carry signal, each of said blocks having a variable number of said start/continue cell means connected in series, said variable number of said start/continue cell means connected in series; said first pair of carry output signals and said first pair of block carry output signals are connected in series to each other, said start/continue cell means at the end of each of said blocks serially coupled to said end cell means by a first pair of output signals and a pair of said first block carry signal, said variable number of starts in said plurality of serially connected blocks; /An adder circuit characterized in that the number of continuation cell means increases in an arithmetic progression.
JP15400083A 1982-08-23 1983-08-23 High speed carrying system Granted JPS5957343A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US41080782A 1982-08-23 1982-08-23
US410807 1982-08-23

Related Child Applications (5)

Application Number Title Priority Date Filing Date
JP2341185A Division JPH03228121A (en) 1982-08-23 1990-11-30 Priority encoder
JP2341187A Division JPH03229320A (en) 1982-08-23 1990-11-30 Incremental circuit
JP2341188A Division JPH03229321A (en) 1982-08-23 1990-11-30 Priority encoder
JP2341186A Division JPH03228122A (en) 1982-08-23 1990-11-30 Addition circuit
JP2341184A Division JPH03228120A (en) 1982-08-23 1990-11-30 Incremental apparatus

Publications (2)

Publication Number Publication Date
JPS5957343A JPS5957343A (en) 1984-04-02
JPH0366693B2 true JPH0366693B2 (en) 1991-10-18

Family

ID=23626312

Family Applications (6)

Application Number Title Priority Date Filing Date
JP15400083A Granted JPS5957343A (en) 1982-08-23 1983-08-23 High speed carrying system
JP2341186A Granted JPH03228122A (en) 1982-08-23 1990-11-30 Addition circuit
JP2341188A Granted JPH03229321A (en) 1982-08-23 1990-11-30 Priority encoder
JP2341187A Granted JPH03229320A (en) 1982-08-23 1990-11-30 Incremental circuit
JP2341184A Granted JPH03228120A (en) 1982-08-23 1990-11-30 Incremental apparatus
JP2341185A Granted JPH03228121A (en) 1982-08-23 1990-11-30 Priority encoder

Family Applications After (5)

Application Number Title Priority Date Filing Date
JP2341186A Granted JPH03228122A (en) 1982-08-23 1990-11-30 Addition circuit
JP2341188A Granted JPH03229321A (en) 1982-08-23 1990-11-30 Priority encoder
JP2341187A Granted JPH03229320A (en) 1982-08-23 1990-11-30 Incremental circuit
JP2341184A Granted JPH03228120A (en) 1982-08-23 1990-11-30 Incremental apparatus
JP2341185A Granted JPH03228121A (en) 1982-08-23 1990-11-30 Priority encoder

Country Status (3)

Country Link
JP (6) JPS5957343A (en)
DE (1) DE3326388A1 (en)
GB (3) GB2130771B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6055438A (en) * 1983-09-05 1985-03-30 Matsushita Electric Ind Co Ltd Two-input adder
JPS6275840A (en) * 1985-09-30 1987-04-07 Toshiba Corp Carry selecting adder
DE58909280D1 (en) * 1988-07-29 1995-07-13 Siemens Ag Carry select adders.
US4956802A (en) * 1988-12-14 1990-09-11 Sun Microsystems, Inc. Method and apparatus for a parallel carry generation adder
US5136539A (en) * 1988-12-16 1992-08-04 Intel Corporation Adder with intermediate carry circuit
JPH0651950A (en) * 1992-07-30 1994-02-25 Mitsubishi Electric Corp Adder circuit
US6527748B1 (en) 1998-08-17 2003-03-04 Yutaka Suzuki Method of gastrostomy, and an infection preventive cover, kit or catheter kit, and a gastrostomy catheter kit

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57111737A (en) * 1980-11-15 1982-07-12 Itt Binary metal oxide semiconductor carry-look-ahead parallel adder

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3078337A (en) * 1958-12-17 1963-02-19 Skiatron Elect & Tele Metering systems
US3138703A (en) * 1959-12-29 1964-06-23 Ibm Full adder
DE1231311B (en) * 1964-11-17 1966-12-29 Siemens Ag Circuit arrangement for converting information, in particular for time division multiplex telephone exchange systems
US3316393A (en) * 1965-03-25 1967-04-25 Honeywell Inc Conditional sum and/or carry adder
GB1143886A (en) * 1966-10-13
GB1391175A (en) * 1971-08-04 1975-04-16 Cambridge Consultants Lttd Electrical circuit means for use in acoustic emission detecting and or recording apparatus
GB1479939A (en) * 1973-09-25 1977-07-13 Siemens Ag Programme-controlled data switching systems
JPS537349B2 (en) * 1974-03-27 1978-03-16
JPS5446224U (en) * 1977-09-07 1979-03-30

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57111737A (en) * 1980-11-15 1982-07-12 Itt Binary metal oxide semiconductor carry-look-ahead parallel adder

Also Published As

Publication number Publication date
JPH0450615B2 (en) 1992-08-14
JPH03229321A (en) 1991-10-11
GB2130774B (en) 1986-02-12
JPH0450614B2 (en) 1992-08-14
JPH03228122A (en) 1991-10-09
GB8306208D0 (en) 1983-04-13
JPH0467213B2 (en) 1992-10-27
JPS5957343A (en) 1984-04-02
GB2130774A (en) 1984-06-06
DE3326388A1 (en) 1984-02-23
JPH03228121A (en) 1991-10-09
DE3326388C2 (en) 1993-04-01
JPH03229320A (en) 1991-10-11
JPH0467212B2 (en) 1992-10-27
GB2127187A (en) 1984-04-04
GB2130771A (en) 1984-06-06
GB2130771B (en) 1986-02-12
GB8330888D0 (en) 1983-12-29
GB2127187B (en) 1986-03-05
GB8330889D0 (en) 1983-12-29
JPH03228120A (en) 1991-10-09
JPH0467211B2 (en) 1992-10-27

Similar Documents

Publication Publication Date Title
US4623982A (en) Conditional carry techniques for digital processors
JP3244506B2 (en) Small multiplier
US6301600B1 (en) Method and apparatus for dynamic partitionable saturating adder/subtractor
JPH0479013B2 (en)
JPS6055438A (en) Two-input adder
US20020143841A1 (en) Multiplexer based parallel n-bit adder circuit for high speed processing
US6578063B1 (en) 5-to-2 binary adder
JPS595349A (en) Adder
US6584485B1 (en) 4 to 2 adder
JPH0366693B2 (en)
JPH02293929A (en) Method and apparatus for digital system multiplication
JPH0552530B2 (en)
US3842250A (en) Circuit for implementing rounding in add/subtract logic networks
JP2554452B2 (en) Self-check type complement adder unit
US5636156A (en) Adder with improved carry lookahead structure
US5257217A (en) Area-efficient multiplier for use in an integrated circuit
Ykuntam et al. Design of 32-bit carry select adder with reduced area
JP2001501341A (en) Digital adder circuit
US6484193B1 (en) Fully pipelined parallel multiplier with a fast clock cycle
JP3741280B2 (en) Carry look-ahead circuit and addition circuit using the same
JPH056892B2 (en)
JPH01304542A (en) Parity forecasting circuit
US6631393B1 (en) Method and apparatus for speculative addition using a limited carry
US7240085B2 (en) Faster shift value calculation using modified carry-lookahead adder
Veeramachaneni Design of efficient VLSI arithmetic circuits