JPS62184534A - Arithmetic circuit - Google Patents

Arithmetic circuit

Info

Publication number
JPS62184534A
JPS62184534A JP2861086A JP2861086A JPS62184534A JP S62184534 A JPS62184534 A JP S62184534A JP 2861086 A JP2861086 A JP 2861086A JP 2861086 A JP2861086 A JP 2861086A JP S62184534 A JPS62184534 A JP S62184534A
Authority
JP
Japan
Prior art keywords
bits
arithmetic
carry
bit
low order
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.)
Pending
Application number
JP2861086A
Other languages
Japanese (ja)
Inventor
Takashi Uno
鵜野 敬史
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2861086A priority Critical patent/JPS62184534A/en
Publication of JPS62184534A publication Critical patent/JPS62184534A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten the arithmetic time by calculating high and low order bits concurrently, performing the arithmetic operation with respect to the presence/absence of carry from the low order bit and selecting the result of the high order bit arithmetic operation according to the carry of the low order bit. CONSTITUTION:Illustration is an embodiment applying the invention to an arithmetic circuit of 16 bits. Bits 0-7, the low order eight bits, are calculated by a whole adder with the technique the same as a conventional one. In terms of the presence or absence of carry from the low order eight bits, 8-15 bits, the high order eight bits, are concurrently operated. After the carry of the low order eight bits is decided, one of arithmetic results of the high order eight bits is selectively outputted according to the decision. In the circuit complying the invention, the arithmetic time is a one obtained by adding the arithmetic time for eight bits to the time required for selective outputting. Namely, the arithmetic time is a little more than half in the arithmetic circuit with conventional technique. It is no wonder that not only vertically bisecting the multibit arithmetic but also its multidivision offers the same effect.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明拡ディジタル演算回路に関し、特に高速多ビット
の加減算を行なう演算回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an expanded digital arithmetic circuit, and particularly to an arithmetic circuit that performs high-speed multi-bit addition and subtraction.

〔従来の技術〕[Conventional technology]

従来、多ビットの加減算用演算回路では全加算器を直列
に接続した構成がとられていた。以下、図面を参照して
その動作及び構成を説明する。
Conventionally, multi-bit addition/subtraction arithmetic circuits have been configured with full adders connected in series. The operation and configuration will be described below with reference to the drawings.

全加算器の真理値表を第1表に示す。第3図は全加算器
の1例である。図中破線内は半加算器である。第3図紘
論理記号による表現の1例であるが、トランジスタ回路
で実現する場合、例えばMO8)ランジスタを用いる場
合は第4図の如く論理回路は書き直される事は周知であ
る。
The truth table of the full adder is shown in Table 1. FIG. 3 is an example of a full adder. The part within the broken line in the figure is a half adder. FIG. 3 is an example of expression using logic symbols, but it is well known that when realized with a transistor circuit, for example, when using a MO8 transistor, the logic circuit is rewritten as shown in FIG.

第1表 さて、例えば16ビツトの加算を行う場合、第3図、第
4図に示した全加算器を第5図の如く直列に接続して演
算を行う。各ビットへの入力Ai及びBi社同一時刻に
全加算器に入力される氷、最下位ビット(0ビツト目)
以外は、下位ビットの桁上げ信号(Cout)が確定し
た後にはじめて、和(Sum)及び桁上げ信号(Cou
t)は計算される事になる。従って上位ビットの計算に
要する時間は第4図の全加算器の場合、各ビット当fi
NOR又はNANDゲート2段分の遅延に相当する事に
なる。
Table 1 Now, for example, when performing 16-bit addition, the full adders shown in FIGS. 3 and 4 are connected in series as shown in FIG. 5 to perform the calculation. Inputs to each bit Ai and Bi are input to the full adder at the same time, the least significant bit (0th bit)
Otherwise, the sum (Sum) and carry signal (Cou
t) will be calculated. Therefore, in the case of the full adder shown in Fig. 4, the time required to calculate the upper bits is
This corresponds to a delay of two stages of NOR or NAND gates.

又、最下位ビットはゲート4段分の遅延時間を要する。Furthermore, the least significant bit requires a delay time equivalent to four stages of gates.

第6図はNMO8における別の全加算回路を示す。本回
路では、A−Bi’+A、B(A、Bの排他的論理和)
なる場合に伝送ゲー)TRは開き、下位ビットからの桁
上げ信号を上位ビットへ伝える。一方、人−B(A、B
のAND)の場合は高レベル“1″を発生し次段に伝え
、又A+B (A 、 BのN OR)の場合は低レベ
ル“0”を発生し次段に伝える。従って演算時間が最大
となるのは、全ビットで伝送ゲートが開き、最下位ビッ
トからの桁上げ信号が最上位ピッ)1で伝わる場合にな
る。この場合の演算時間は、桁上げ信号が伝送ゲートを
通過するのに要する遅延(及びA、Hの排他的論理和を
生成するのに要する時間の和)に相当するが、一般に第
4図に示したものよシ遅延が小さく多用されている。し
かし、第4図、第6図のいずれの場合についても最下位
ビットから最上位ビットへの桁上げ信号の伝搬時間が演
算時間を決定している。すなわち演算時間紘ビット数に
比例あるいはビット数の2乗に略比例する。(n段の伝
送ゲートの遅延時間は大略n8に比例する事は周知であ
る。)〔発明が解決しようとする問題点〕 上述した従来の多ビツト演算回路では、桁上げ信号が最
下位ビットから順次伝搬し、下位ビットから順に、演算
結果及び桁上げが定まっていたため、演算には長大な時
間を要するという欠点があった。
FIG. 6 shows another full adder circuit in NMO8. In this circuit, A-Bi'+A, B (exclusive OR of A and B)
(transmission game) TR opens and transmits the carry signal from the lower bits to the upper bits. On the other hand, person-B (A, B
In the case of AND), a high level "1" is generated and transmitted to the next stage, and in the case of A+B (NOR of A and B), a low level "0" is generated and transmitted to the next stage. Therefore, the calculation time is maximum when the transmission gate is open for all bits and the carry signal from the least significant bit is transmitted at the most significant bit (1). The calculation time in this case corresponds to the delay required for the carry signal to pass through the transmission gate (and the sum of the time required to generate the exclusive OR of A and H), but generally it is shown in Fig. 4. It has a smaller delay than the one shown and is often used. However, in both cases of FIG. 4 and FIG. 6, the propagation time of the carry signal from the least significant bit to the most significant bit determines the calculation time. That is, the calculation time is proportional to the number of bits or approximately proportional to the square of the number of bits. (It is well known that the delay time of an n-stage transmission gate is roughly proportional to n8.) [Problem to be solved by the invention] In the above-mentioned conventional multi-bit arithmetic circuit, the carry signal starts from the least significant bit. Since the propagation is carried out sequentially and the operation result and carry are determined starting from the lower bit, there is a drawback that the operation takes a long time.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の演算回路は、下位複数ビット演算と同一期間中
に、下位複数ビットから上位複数ビットへの桁上げの有
無双方について上位複数ビット演算を並列に行い、前記
上位及び下位複数ビット演算終了後に下位複数ビットか
らの桁上げの有無に従い上位複数ビット演算の結果を選
択する様に構成されている。
The arithmetic circuit of the present invention performs the upper multiple bit operations in parallel for both the presence and absence of carry from the lower multiple bits to the upper multiple bits during the same period as the lower multiple bit operations, and after the upper and lower multiple bit operations are completed. The result of the upper multiple bit operation is selected according to the presence or absence of a carry from the lower multiple bits.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明を16ビツトの演算回路に適用した実施
例である。0〜7ビツトの下位8ビツトの演算は上記従
来技術と同一の全加算器を用いるが、8〜15ビツトの
上位8ビツトの演算では、下位8ビツトからの桁上げの
有無につきそれぞれ並列に演算を行い、下位8ビツトの
桁上げが確定した後、それに従って上位8ビット分の演
算結果の一方を選択出力する。
FIG. 1 shows an embodiment in which the present invention is applied to a 16-bit arithmetic circuit. The operation of the lower 8 bits from 0 to 7 bits uses the same full adder as in the prior art described above, but the operation for the upper 8 bits from 8 to 15 bits is performed in parallel depending on whether there is a carry from the lower 8 bits. After the carry of the lower 8 bits is confirmed, one of the operation results of the upper 8 bits is selectively outputted accordingly.

上位各ビットの演算回路は第2図(a)又は(b)に示
す。第2図(a)拡N M O8回路の一例でアシ、上
記従来技術例第6図に対応し、又第2図Φ)は第4図に
対応するものである。本発明による回路では、演算時間
は8ビット分の演算時間に選択出力に要する時間を加え
たものになる。すなわち、従来技術による演算回路に比
べ半分強の演算時間で済む。
The arithmetic circuit for each upper bit is shown in FIG. 2(a) or (b). FIG. 2(a) is an example of an enlarged NMO8 circuit, and corresponds to the prior art example shown in FIG. 6, and FIG. 2(Φ) corresponds to FIG. 4. In the circuit according to the present invention, the calculation time is the calculation time for 8 bits plus the time required for selective output. In other words, the calculation time is just over half that of the calculation circuit according to the prior art.

本例は一般的な全加算器あるいはNMO8のマンチェス
ター屋全加算器について示したが、0M08回路につい
ても適用可能な事は明らかである。又、多ビツト演算を
上下に2分割のみならず多分割しても同様の効果がある
事も明らかである。
Although this example has been shown with respect to a general full adder or an NMO8 Manchester full adder, it is clear that it can also be applied to a 0M08 circuit. It is also clear that the same effect can be obtained not only by dividing the multi-bit operation into upper and lower parts, but also by dividing it into multiple parts.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明では、多ビツト加減算におい
て上位ビットを下位ビットを並列に演算し、かつ、下位
ビットからの桁上げの有無双方に対し演算を行い、上位
及び下位演算終了後に下位ビットの桁上は結果に従い上
位ビット演算の結果を選択するため、従来技術の如く下
位から上位まで通して行うものに比べ、演算時間を著し
く短縮できる効果を有する。
As explained above, in the present invention, in multi-bit addition/subtraction, the upper bits and lower bits are operated in parallel, and the operation is performed for both the presence and absence of carry from the lower bits, and after the upper and lower bits are completed, the lower bits are Since the carry selects the result of the upper bit operation according to the result, it has the effect of significantly shortening the operation time compared to the conventional technique in which the operation is carried out from the lower to the upper.

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

第1図は本発明の実施例のブロック図、第2図(a)は
第1図中の上位ビット部分の全加算回路図、第2図(b
)は第1図の上位ビット部分の他の構成例の全加算器ブ
ロック図、第3図は全加算器論理回路図、第4図はトラ
ンジスタ構成の場合の全加算器回路図、第5図は従来技
術における多ビット演算回路のブロック図、第6図はN
MO8における全加算器のトランジスタ回路図である。 鉢 St  St 千2図(b)
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2(a) is a full adder circuit diagram of the upper bit part in FIG.
) is a full adder block diagram of another configuration example of the upper bit part of FIG. 1, FIG. 3 is a full adder logic circuit diagram, FIG. 4 is a full adder circuit diagram in the case of transistor configuration, and FIG. 5 is a block diagram of a multi-bit arithmetic circuit in the prior art, and FIG.
It is a transistor circuit diagram of the full adder in MO8. Bowl St St 1,000 figures (b)

Claims (1)

【特許請求の範囲】[Claims] 下位複数ビット演算と同一期間中に、下位複数ビットか
らの桁上げの有無双方について上位複数ビット演算を並
列に行い、前記上位及び下位複数ビットの演算終了後に
下位複数ビットからの桁上げの有無に従い上位複数ビッ
ト演算結果を選択する様に構成された事を特徴とする演
算回路。
During the same period as the lower multiple bit operation, perform upper multiple bit operations in parallel for both whether or not there is a carry from the lower multiple bits, and after the operation of the upper and lower multiple bits is completed, depending on whether there is a carry from the lower multiple bits. An arithmetic circuit characterized in that it is configured to select an upper multiple bit arithmetic result.
JP2861086A 1986-02-10 1986-02-10 Arithmetic circuit Pending JPS62184534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2861086A JPS62184534A (en) 1986-02-10 1986-02-10 Arithmetic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2861086A JPS62184534A (en) 1986-02-10 1986-02-10 Arithmetic circuit

Publications (1)

Publication Number Publication Date
JPS62184534A true JPS62184534A (en) 1987-08-12

Family

ID=12253340

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2861086A Pending JPS62184534A (en) 1986-02-10 1986-02-10 Arithmetic circuit

Country Status (1)

Country Link
JP (1) JPS62184534A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02183328A (en) * 1989-01-09 1990-07-17 Matsushita Electric Ind Co Ltd Digital signal processor
JPH02301827A (en) * 1989-04-28 1990-12-13 Internatl Business Mach Corp <Ibm> Logic synthesization network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02183328A (en) * 1989-01-09 1990-07-17 Matsushita Electric Ind Co Ltd Digital signal processor
JPH02301827A (en) * 1989-04-28 1990-12-13 Internatl Business Mach Corp <Ibm> Logic synthesization network

Similar Documents

Publication Publication Date Title
US4682303A (en) Parallel binary adder
JPH0479013B2 (en)
JPH04230521A (en) Bit inversion computing element
JPS6131890B2 (en)
US4701877A (en) Highspeed parallel adder with clocked switching circuits
US7170317B2 (en) Sum bit generation circuit
EP0147836A2 (en) Precharge-type carry chained adder circuit
JPS62184534A (en) Arithmetic circuit
JPH0424729B2 (en)
US4879675A (en) Parity generator circuit and method
JP2991788B2 (en) Decoder
JPH01310434A (en) Multi-stage parallel binary adder/subtractor
JPS648858B2 (en)
JP2508041B2 (en) Increment circuit
JPS6152493B2 (en)
JP3567510B2 (en) Interrupt priority judgment circuit
JP3540136B2 (en) Data division parallel shifter
JP2681968B2 (en) Arithmetic processing unit
JPH07261983A (en) Arithmetic and logic circuit
JPH11353156A (en) Carry signal generating circuit
JPH04289917A (en) Adder
JPH05233224A (en) Parallel adder circuit
JPH06168101A (en) Method and device for addition
JPH0561645A (en) Binary adder
JPH0418334B2 (en)