JP2556171B2 - Arithmetic circuit - Google Patents

Arithmetic circuit

Info

Publication number
JP2556171B2
JP2556171B2 JP2139163A JP13916390A JP2556171B2 JP 2556171 B2 JP2556171 B2 JP 2556171B2 JP 2139163 A JP2139163 A JP 2139163A JP 13916390 A JP13916390 A JP 13916390A JP 2556171 B2 JP2556171 B2 JP 2556171B2
Authority
JP
Japan
Prior art keywords
circuit
binary
redundant binary
overflow
redundant
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 - Fee Related
Application number
JP2139163A
Other languages
Japanese (ja)
Other versions
JPH0431925A (en
Inventor
隆二 石田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP2139163A priority Critical patent/JP2556171B2/en
Publication of JPH0431925A publication Critical patent/JPH0431925A/en
Application granted granted Critical
Publication of JP2556171B2 publication Critical patent/JP2556171B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、冗長2進形式による加算及び乗算等の演算
処理を行う演算回路に関し、特に集積回路化に適した演
算回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an arithmetic circuit for performing arithmetic processing such as addition and multiplication in a redundant binary format, and particularly to an arithmetic circuit suitable for integration into an integrated circuit.

[従来の技術] 従来から、演算処理速度の向上を図るため、通常の2
進表現を冗長2進表現のデータに変換して演算処理を行
う演算回路が知られている(例えば「冗長2進加算木を
用いたVLSI向き高速乗算器」高木他,電子通信学会論文
誌(D),J66-D6,pp.683-690,83年6月)。
[Prior Art] Conventionally, in order to improve the calculation processing speed, the normal 2
An arithmetic circuit for converting a binary expression into data of a redundant binary expression and performing an arithmetic process is known (for example, "a high-speed multiplier for VLSI using a redundant binary addition tree" Takagi et al., IEICE Transactions ( D), J66-D6, pp.683-690, June 1983).

冗長2進表現では1ビットのデータを0,1,−1の3値
で表現し、これにより桁上げ伝搬がない加算回路を実現
することができる。例えば、いま、ビットデータ[−
1]を[]と表すことにすると、例えば6ビットの2
進数の場合には、その最上位ビットが符号ビットとなる
ので、最大値が0111112(6310)、最小値が1000002(−
6410)となるが、冗長2進表現では、最大値が[11111
1]2(12710)、最小値が[2](−12710
となる。なお、ここで、添字の2は2進数、10は10進
数、[2]は冗長2進数表現であることを示している。
また、冗長2進表現では、1つの数値が何通りかのデー
タで表現可能である。例えば、510を4桁の冗長2進数
で表現すると、0101[2]、011[2]、10[2]、101
[2]、11[2]の5通りの表現が可能である。
In the redundant binary representation, 1-bit data is represented by three values of 0, 1 and -1, whereby an adder circuit without carry propagation can be realized. For example, bit data [-
1] is represented as [], for example, 6-bit 2
In the case of a decimal number, the most significant bit is the sign bit, so the maximum value is 0111112 2 (63 10 ) and the minimum value is 100000 2 (-
64 10 ), but in the redundant binary representation, the maximum value is [11111
1] 2 (127 10 ), minimum value is [2] (-127 10 )
Becomes Here, the subscript 2 indicates a binary number, 10 indicates a decimal number, and [2] indicates a redundant binary number expression.
In the redundant binary representation, one numerical value can be represented by several kinds of data. For example, if 5 10 is represented by a 4-digit redundant binary number, 0101 [2] , 011 [2] , 10 [2] , 101
There are five possible expressions, [2] and 11 [2] .

冗長2進数の加算を行う場合、0[2]と0[2]及び1
[2][2]の加算では桁上げはなく、1[2]と1[2]の加
算では1[2]の桁上げを行い、[2][2]の加算では
[2]の桁上げを行い、1[2]と0[2]の加算では下位か
ら1[2]の桁上げがあれば1[2]の桁上げを行い、[2]
と0[2]の加算では下位から[2]の桁上げがあれば
[2]の桁上げを行なう。従って、例えば110+110の加
算を行なう場合、01[2]+01[2]の加算を行なわずに、1
[2]+01[2]の加算を行なうようにすることにより、桁
上げの伝搬がない加算を行なうことができる。桁上げの
伝搬がない場合、ある桁の桁上げは、必ずその上位桁で
吸収される。従って、この場合、第1ステップで各桁の
中間和と桁上げ信号とを求め、第2ステップで中間和と
下位からの桁上げ信号との和を求めるという手順によ
り、2ステップで加算処理が終了する。従って、桁上げ
信号が2ビット以上伝搬する通常の2進演算に比べ演算
処理時間を大幅に短縮することができる。
When adding redundant binary numbers, 0 [2] and 0 [2] and 1
[2] and not carry the addition of [2], 1 [2] and 1 performs a carry of 1 [2] is the addition of [2], the addition of [2] and [2]
Carry [2] , carry 1 [2] and 0 [2] , and carry 1 [2] if there is a carry of 1 [2] from the bottom, [2]
And 0 [2] addition, if there is a carry of [2] from the bottom
Carry [2] . Therefore, for example, when adding 1 10 +1 10 , adding 1 01 [2] +01 [2]
By adding [2] +01 [2] , it is possible to perform addition without carry propagation. If there is no carry propagation, then a carry of one digit will always be absorbed by its upper digit. Therefore, in this case, the addition process is performed in two steps by the procedure of obtaining the intermediate sum of each digit and the carry signal in the first step and obtaining the sum of the intermediate sum and the carry signal from the lower order in the second step. finish. Therefore, it is possible to significantly reduce the operation processing time as compared with the normal binary operation in which the carry signal propagates by 2 bits or more.

冗長2進数から2進数への変換は、1[2]が立ってい
る桁だけを集めた2進数と、[2]が立っている桁だけ
を集めた2進数との通常の減算により行なうことができ
る。
Conversion from a redundant binary number to a binary number is performed by normal subtraction of a binary number that collects only the digits with 1 [2] and a binary number that collects only the digits with [2]. You can

[発明が解決しようとする課題] しかしながら、上述した従来の演算回路では、加数及
び被加数の最上位ビットが1[2],1[2]である場合、又は
[2][2]である場合、必ず桁上げが起こるため、実
際にはオーバーフローしていない場合でも、オーバーフ
ローが発生したものと誤って判断される場合がある。
[Problems to be Solved by the Invention] However, in the above-described conventional arithmetic circuit, when the most significant bits of the addend and the augend are 1 [2] and 1 [2] , or
In the case of [2] and [2] , a carry always occurs, so even if the overflow does not actually occur, it may be erroneously determined that an overflow has occurred.

例えば、11111[2](−110)と11111[2](−110
との演算を行なうと次のようになる。
For example, 11111 [2] (-1 10 ) and 11111 [2] (-1 10 )
The calculation with and is as follows.

この場合、(−110)+(−110)=(−210)であ
るから、実際にはオーバーフローしないにも拘らず、最
上位ビットから桁上げ信号が出力されることで、オーバ
ーフローと判定されてしまう。
In this case, (−1 10 ) + (− 1 10 ) = (− 2 10 ), so that the carry signal is output from the most significant bit even though the overflow does not actually occur. It will be judged.

そこで、これを防止するため、冗長2進加算回路及び
冗長2進数から2進数への変換回路のビット数を上位側
に拡張して保護ビットを設けることもなされているが、
この場合には、回路規模が増大したり演算速度が低下す
る等の問題点がある。特に、集積化された乗算器を構成
する多数の加算回路の夫々に保護ビットを設けると、回
路規模の増大及び演算速度の低下は無視できない程度に
なってしまう。
Therefore, in order to prevent this, the number of bits of the redundant binary adder circuit and the circuit for converting the redundant binary number to the binary number is extended to the upper side to provide a protection bit.
In this case, there are problems that the circuit scale increases and the calculation speed decreases. In particular, if a protection bit is provided in each of a large number of adder circuits that form an integrated multiplier, an increase in circuit scale and a decrease in operation speed will not be negligible.

本発明はかかる問題点に鑑みてなされたものであっ
て、回路規模の増大及び演算速度の低下を招くことなし
に、真のオーバーフローの発生を検出して演算精度の向
上を図ることができる演算回路を提供することを目的と
する。
The present invention has been made in view of the above problems, and it is possible to improve the calculation accuracy by detecting the occurrence of a true overflow without increasing the circuit scale and decreasing the calculation speed. The purpose is to provide a circuit.

[課題を解決するための手段] 本発明に係る演算回路は、冗長2進形式のデータの演
算を行って冗長2進形式の演算結果と桁上げ信号とを出
力する冗長2進演算回路と、この冗長2進演算回路から
出力される冗長2進形式の演算結果を2進データに変換
する冗長2進/2進変換回路と、前記桁上げ信号と前記冗
長2進形式の演算結果の最上位ビットと前記2進データ
に変換された演算結果のサインビットとを参照し前記冗
長2進演算回路におけるオーバーフローを検出するオー
バーフロー検出回路とを有することを特徴とする。
[Means for Solving the Problems] An arithmetic circuit according to the present invention includes: a redundant binary arithmetic circuit for performing arithmetic operation on redundant binary format data and outputting a redundant binary format arithmetic result and a carry signal; A redundant binary / binary conversion circuit for converting the operation result in the redundant binary format output from this redundant binary operation circuit into binary data, and the carry signal and the highest rank of the operation result in the redundant binary format. An overflow detection circuit for detecting an overflow in the redundant binary operation circuit by referring to a bit and a sign bit of the operation result converted into the binary data.

[作用] 本発明によれば、単に演算結果の桁上げ信号だけでな
く、桁上げ信号と、冗長2進形式の演算結果の最上位ビ
ットと、2進データに変換された演算結果のサインビッ
トとを参照することにより、演算結果が真にオーバーフ
ローしたかどうかを正確に判断することができる。
[Operation] According to the present invention, not only the carry signal of the operation result, but also the carry signal, the most significant bit of the operation result in the redundant binary format, and the sign bit of the operation result converted into binary data. By referring to and, it is possible to accurately determine whether or not the operation result has truly overflowed.

従って、本発明によれば、冗長2進演算回路及び冗長
2進/2進変換回路のビット数を拡張することなしに、オ
ーバーフローの検出を行なうことができ、回路規模の縮
小及び演算速度の向上を図ることができる。
Therefore, according to the present invention, overflow can be detected without expanding the number of bits of the redundant binary operation circuit and the redundant binary / binary conversion circuit, and the circuit scale can be reduced and the operation speed can be improved. Can be achieved.

[実施例] 以下、添付の図面を参照して本発明の実施例について
説明する。
Embodiments Embodiments of the present invention will be described below with reference to the accompanying drawings.

第1図は本発明の第1の実施例に係る加算回路の構成
を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of the adder circuit according to the first embodiment of the present invention.

加算対象となる被加数データxと加数データyとは、
冗長2進数表現されたデータ形式で冗長2進加算器1に
入力されている。冗長2進加算器1は、両データx,yの
加算を行い、冗長2進数表現の加算結果zと桁上げ信号
Cとを出力する。加算結果zは冗長2進/2進変換回路2
に入力されている。冗長2進/2進変換回路2は、加算結
果zを2進表現の加算結果zzに変換し出力する。この加
算結果zzは、3入力の選択回路3の一つの入力端に入力
されている。
Addend data x and addend data y to be added are
The data is input to the redundant binary adder 1 in a data format represented by redundant binary numbers. The redundant binary adder 1 adds both data x and y and outputs the addition result z and the carry signal C in the redundant binary number representation. The addition result z is the redundant binary / binary conversion circuit 2
Has been entered in. The redundant binary / binary conversion circuit 2 converts the addition result z into a binary expression addition result zz and outputs it. The addition result zz is input to one input terminal of the 3-input selection circuit 3.

一方、冗長2進加算器1から出力される桁上げ信号C
及び加算結果zの最上位ビットzMSB、並びに冗長2進/
2進変換回路2から出力される加算結果zzの最上位ビッ
トであるサインビットzzsignは、オーバーフロー検出回
路4に入力されている。オーバーフロー検出回路4は、
これらのデータに基づいてオーバーフローの有無を判定
し、オーバーフロー検出情報OFを出力する。この情報OF
は、オーバーフローの有無を示す信号と、その符号を示
す信号とからなり、選択回路3にその選択制御信号とし
て供給されている。選択回路3の残りの2つの入力端に
は、夫々最大値出力回路5からの最大値データzzMAX
び最小値出力回路6からの最小値データzzMINが入力さ
れている。選択回路3は、これらの入力データをオーバ
ーフロー情報OFに基づいて選択し、選択されたデータを
加算結果sとして出力する。
On the other hand, the carry signal C output from the redundant binary adder 1
And the most significant bit z MSB of the addition result z, and redundant binary /
The sign bit zz sign, which is the most significant bit of the addition result zz output from the binary conversion circuit 2, is input to the overflow detection circuit 4. The overflow detection circuit 4
The presence or absence of overflow is determined based on these data, and overflow detection information OF is output. This information OF
Is composed of a signal indicating the presence or absence of overflow and a signal indicating its sign, and is supplied to the selection circuit 3 as its selection control signal. The maximum value data zz MAX from the maximum value output circuit 5 and the minimum value data zz MIN from the minimum value output circuit 6 are input to the remaining two input terminals of the selection circuit 3, respectively. The selection circuit 3 selects these input data based on the overflow information OF, and outputs the selected data as the addition result s.

次にオーバーフロー検出回路4について、更に詳細に
説明する。
Next, the overflow detection circuit 4 will be described in more detail.

オーバーフロー検出回路4は、基本的には、下記第1
表の通り、桁上げ信号C、演算結果zの最上位ビットz
MSB及び演算結果zzのサインビットzzsignに基づいて、
オーバーフロー情報OFを出力する。
The overflow detection circuit 4 basically has the following first
As shown in the table, carry signal C, most significant bit z of operation result z
Based on the MSB and the sign bit zz sign of the operation result zz,
Output overflow information OF.

ここで、冗長2進表現では、(,0,1)の3値をとるの
で、実際にはサインビット(SB)とバリュービット(V
B)の2ビットで表現される。また、オーバーフロー検
出情報OFは、オーバーフロー検出信号ODと正負の判定信
号OSとによって構成される。従って、オーバーフロー検
出回路4の実際の真理値表は、下記第2表のようにな
る。
Here, in the redundant binary representation, since three values of (, 0,1) are taken, the sign bit (SB) and the value bit (V
It is represented by 2 bits of B). The overflow detection information OF is composed of the overflow detection signal OD and the positive / negative determination signal OS. Therefore, the actual truth table of the overflow detection circuit 4 is as shown in Table 2 below.

次にこのように構成された加算回路の動作について説
明する。
Next, the operation of the adder circuit thus configured will be described.

いま、冗長2進加算器1に対して、以下のような被加
数データx及び加数データyが入力されたとする。
Now, assume that the following augend data x and augend data y are input to the redundant binary adder 1.

x=0111[2](1110) y=1000[2](2010) 冗長2進加算器1では、次のような演算を行なう。x = 0111 1 [2] (11 10 ) y = 1000 [2] (20 10 ) The redundant binary adder 1 performs the following operation.

これにより、加算結果z=0001[2]が求められ
る。
As a result, the addition result z = 0001 [2] is obtained.

次に、冗長2進/2進変換回路2では、次のような減算
が行なわれる。
Next, the redundant binary / binary conversion circuit 2 performs the following subtraction.

これによって、2進表現の加算結果zz=0111112が求
められる。
As a result, a binary expression addition result zz = 0111111 2 is obtained.

この場合、オーバーフロー検出回路4には、C=012,
zMSB=112,zzsign=02が入力されるので、オーバーフ
ロー検出信号OD=0、正負の判定信号OS=0となる。つ
まり、この場合には、オーバーフローは発生せず、選択
回路3は、冗長2進/2進変換回路2から出力される加算
結果zzを選択し、これを加算結果sとして出力する。
In this case, the overflow detection circuit 4, C = 01 2,
Since z MSB = 11 2 and zz sign = 0 2 are input, the overflow detection signal OD = 0 and the positive / negative determination signal OS = 0. That is, in this case, no overflow occurs, and the selection circuit 3 selects the addition result zz output from the redundant binary / binary conversion circuit 2 and outputs it as the addition result s.

次に、冗長2進加算器1に対して、以下のような被加
数データx及び加数データyが入力された場合について
説明する。
Next, a case where the following augend data x and augend data y are input to the redundant binary adder 1 will be described.

x=0111[2](1110) y=1010[2](2210) 冗長2進加算器1では、次のような演算を行なう。x = 0111 [2] (11 10 ) y = 10 10 [2] (22 10 ) The redundant binary adder 1 performs the following operation.

これにより、加算結果z=00001[2]が求められる。 As a result, the addition result z = 000001 [2] is obtained.

次に、冗長2進/2進変換回路2では、次のような減算
が行なわれる。
Next, the redundant binary / binary conversion circuit 2 performs the following subtraction.

これによって、2進表現の加算結果zz=1000012が求
められる。
As a result, the binary addition result zz = 100001 2 is obtained.

この場合、オーバーフロー検出回路4には、C=012,
zMSB=112,zzsign=12が入力されるので、オーバーフ
ロー検出信号OD=1、正負の判定信号OS=0となる。つ
まり、この場合には、正のオーバーフローが発生してお
り、選択回路3は、最大値出力回路5から出力される最
大値zzMAXを選択し、これを加算結果sとして出力す
る。
In this case, the overflow detection circuit 4, C = 01 2,
Since z MSB = 11 2 and zz sign = 1 2 are input, the overflow detection signal OD = 1 and the positive / negative determination signal OS = 0. That is, in this case, a positive overflow has occurred, and the selection circuit 3 selects the maximum value zz MAX output from the maximum value output circuit 5, and outputs this as the addition result s.

同様に、負のオーバーフローが発生した場合には、選
択回路2は、最小値出力回路6から出力される最小値zz
MINを選択し、これを加算結果sとして出力する。
Similarly, when a negative overflow occurs, the selection circuit 2 outputs the minimum value zz output from the minimum value output circuit 6.
MIN is selected and this is output as the addition result s.

これにより、オーバーフローが発生した場合には、リ
ミットされた加算結果sが出力されることによる。
As a result, when overflow occurs, the limited addition result s is output.

このように、本実施例に係る加算回路によれば、桁上
げ信号C、加算結果zの最上位ビットzMSB及び加算結
果zzのサインビットzzsignによってオーバーフローを正
しく検出することができるので、冗長2進加算器1及び
冗長2進/2進変換回路2において、保護ビット等を設け
る必要がなく、下位規模の縮小及び演算速度の向上を図
ることができる。
As described above, according to the adder circuit of the present embodiment, the overflow can be correctly detected by the carry signal C, the most significant bit z MSB of the addition result z, and the sign bit zz sign of the addition result zz. In the binary adder 1 and the redundant binary / binary conversion circuit 2, it is not necessary to provide a protection bit or the like, and it is possible to reduce the lower scale and improve the operation speed.

第2図は本発明の第2の実施例に係る乗算回路の構成
を示すブロック図である。
FIG. 2 is a block diagram showing the configuration of the multiplication circuit according to the second embodiment of the present invention.

なお、この第2図において、第1図の回路と同一部分
には同一符号を付し、重複する部分の説明は省略する。
In FIG. 2, the same parts as those of the circuit of FIG. 1 are designated by the same reference numerals, and the description of the overlapping parts will be omitted.

この実施例の回路は、第1図における冗長2進加算器
1を冗長2進乗算器11に置き換えたものである。
In the circuit of this embodiment, the redundant binary adder 1 in FIG. 1 is replaced with a redundant binary multiplier 11.

即ち、被乗数データaと乗数データbとは、冗長2進
乗算器11に入力され、ここで乗算される。冗長2進乗算
器11は、多数の部分積の加算を行なう多数の冗長2進加
算器から構成されている。この乗算器11による乗算結果
mは、冗長2進/2進変換回路2に入力され、2進数に変
換される。2進数に変換された乗算結果mmは、3入力の
選択回路3の一つの入力端に入力されている。
That is, the multiplicand data a and the multiplier data b are input to the redundant binary multiplier 11 where they are multiplied. The redundant binary multiplier 11 is composed of a large number of redundant binary adders that add a large number of partial products. The multiplication result m by the multiplier 11 is input to the redundant binary / binary conversion circuit 2 and converted into a binary number. The multiplication result mm converted into a binary number is input to one input terminal of the 3-input selection circuit 3.

一方、冗長2進乗算器11の最終段の加算器からの桁上
げ信号C、乗算結果mの最上位ビットmMSB及び乗算結
果mmのサインビットmmsignは、オーバーフロー検出回路
4に入力され、ここでオーバーフローが検出される。そ
のオーバーフロー情報OFは、選択回路3に選択制御信号
として供給されている。選択回路3はオーバーフロー情
報OFに従って乗算結果mm、最大値出力回路15からの最大
値mmMAX、最小値出力回路16からの最小値mmMINの一つを
選択し、乗算結果Mとして出力する。
On the other hand, the carry signal C from the adder at the final stage of the redundant binary multiplier 11, the most significant bit m MSB of the multiplication result m and the sign bit mm sign of the multiplication result mm are input to the overflow detection circuit 4, where An overflow is detected at. The overflow information OF is supplied to the selection circuit 3 as a selection control signal. The selection circuit 3 selects one of the multiplication result mm, the maximum value mm MAX from the maximum value output circuit 15 and the minimum value mm MIN from the minimum value output circuit 16 according to the overflow information OF, and outputs it as the multiplication result M.

冗長2進数による加算では、前述したように桁上げ信
号の伝搬を1桁に抑えることができるので、特に多数の
部分積の加算を行なう乗算回路に適用した場合の効果は
大きい。しかし、乗算回路では、冗長2進数の加算を何
度も繰り返すので、オーバーフローの判定の必要性は通
常の加算回路よりも大きい。この点、本実施例によれ
ば、オーバーフローを正しく検出できるので、高速で正
確な乗算回路を提供することができる。
In the addition using the redundant binary number, since the propagation of the carry signal can be suppressed to one digit as described above, the effect is particularly great when applied to a multiplication circuit that adds a large number of partial products. However, since the multiplication circuit repeats redundant binary number additions many times, the necessity of overflow determination is greater than that of a normal addition circuit. In this respect, according to the present embodiment, since the overflow can be detected correctly, a high-speed and accurate multiplication circuit can be provided.

また、この実施例に係る乗算回路によれば、各段の加
算結果のオーバーフロー判定を行なわず、最終段の加算
結果のみを参照してオーバーフローの判定を行なってい
るので、回路規模の縮小効果を更に高めることができ
る。
Further, according to the multiplication circuit of this embodiment, the overflow determination of the addition result of each stage is not performed, but the overflow determination is performed only by referring to the addition result of the final stage. It can be further increased.

[発明の効果] 以上述べたように、本発明によれば、演算結果の桁上
げ信号だけでなく、演算結果の最上位ビット及び2進デ
ータに変換された演算結果のサインビットも参照して、
演算結果のオーバーフローを判定するようにしたので、
演算回路及び冗長2進/2進変換回路のビット数を拡張す
る必要がない。従って、回路規模の縮小及び演算速度の
向上を図りつつ、演算精度の向上を図ることができる。
[Effects of the Invention] As described above, according to the present invention, not only the carry signal of the operation result but also the most significant bit of the operation result and the sign bit of the operation result converted into binary data are referred to. ,
Since the overflow of the calculation result is determined,
It is not necessary to expand the number of bits of the arithmetic circuit and the redundant binary / binary conversion circuit. Therefore, it is possible to improve the calculation accuracy while reducing the circuit scale and the calculation speed.

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

第1図は本発明の第1の実施例に係る加算回路のブロッ
ク図、第2図は本発明の第2の実施例に係る乗算回路の
ブロック図である。 1;冗長2進加算器、2;冗長2進/2進変換回路、3;選択回
路、4;オーバーフロー検出回路、5,15;最大値検出回
路、6,16;最小値検出回路、11;冗長2進乗算器
FIG. 1 is a block diagram of an adder circuit according to the first embodiment of the present invention, and FIG. 2 is a block diagram of a multiplier circuit according to the second embodiment of the present invention. 1; redundant binary adder, 2; redundant binary / binary conversion circuit, 3; selection circuit, 4; overflow detection circuit, 5, 15; maximum value detection circuit, 6, 16; minimum value detection circuit, 11; Redundant binary multiplier

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】冗長2進形式のデータの演算を行って冗長
2進形式の演算結果と桁上げ信号とを出力する冗長2進
演算回路と、この冗長2進演算回路から出力される冗長
2進形式の演算結果を2進データに変換する冗長2進/2
進変換回路と、前記桁上げ信号と前記冗長2進形式の演
算結果の最上位ビットと前記2進データに変換された演
算結果のサインビットとを参照し前記冗長2進演算回路
におけるオーバーフローを検出するオーバーフロー検出
回路とを有することを特徴とする演算回路。
Claim: What is claimed is: 1. A redundant binary operation circuit for performing an operation of redundant binary format data and outputting a redundant binary format operation result and a carry signal, and a redundant binary operation circuit output from this redundant binary operation circuit. Redundant binary / 2 that converts the operation result in binary format to binary data
An overflow in the redundant binary operation circuit is detected by referring to a binary conversion circuit, the carry signal, the most significant bit of the operation result in the redundant binary format, and the sign bit of the operation result converted into the binary data. And an overflow detection circuit that operates.
【請求項2】前記オーバーフロー検出回路は、前記桁上
げ信号が“1"で且つ前記演算結果の最上位ビットが“0"
若しくは“1"のとき、又は前記桁上げ信号が“1"、前記
演算結果の最上位ビットが“−1"、前記サインビットが
“1"のとき、正にオーバーフローしていると判定し、前
記桁上げ信号が“−1"で且つ前記演算結果の最上位ビッ
トが“0"若しくは“−1"のとき、又は前記桁上げ信号が
“−1"、前記演算結果の最上位ビットが“1"、前記サイ
ンビットが“0"のとき、負にオーバーフローしていると
判定するものであることを特徴とする請求項1に記載の
演算回路。
2. The overflow detection circuit, wherein the carry signal is "1" and the most significant bit of the operation result is "0".
Alternatively, when it is "1", or when the carry signal is "1", the most significant bit of the operation result is "-1", and the sign bit is "1", it is determined that the overflow has occurred, When the carry signal is "-1" and the most significant bit of the operation result is "0" or "-1", or when the carry signal is "-1" and the most significant bit of the operation result is "1". The arithmetic circuit according to claim 1, wherein when the sign bit is "1" and the sign bit is "0", it is determined that the overflow is negative.
【請求項3】前記冗長2進演算回路は、冗長2進加算回
路であることを特徴とする請求項1又は2に記載の演算
回路。
3. The arithmetic circuit according to claim 1, wherein the redundant binary arithmetic circuit is a redundant binary adder circuit.
【請求項4】前記冗長2進演算回路は、冗長2進乗算回
路であることを特徴とする請求項1又は2に記載の演算
回路。
4. The arithmetic circuit according to claim 1, wherein the redundant binary arithmetic circuit is a redundant binary multiplication circuit.
JP2139163A 1990-05-29 1990-05-29 Arithmetic circuit Expired - Fee Related JP2556171B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2139163A JP2556171B2 (en) 1990-05-29 1990-05-29 Arithmetic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2139163A JP2556171B2 (en) 1990-05-29 1990-05-29 Arithmetic circuit

Publications (2)

Publication Number Publication Date
JPH0431925A JPH0431925A (en) 1992-02-04
JP2556171B2 true JP2556171B2 (en) 1996-11-20

Family

ID=15239051

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2139163A Expired - Fee Related JP2556171B2 (en) 1990-05-29 1990-05-29 Arithmetic circuit

Country Status (1)

Country Link
JP (1) JP2556171B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63136135A (en) * 1986-11-27 1988-06-08 Matsushita Graphic Commun Syst Inc Overflow monitor device for data processor
JPS6491228A (en) * 1987-09-30 1989-04-10 Takeshi Sakamura Data processor

Also Published As

Publication number Publication date
JPH0431925A (en) 1992-02-04

Similar Documents

Publication Publication Date Title
US6099158A (en) Apparatus and methods for execution of computer instructions
EP0136834B1 (en) A digital circuit performing an arithmetic operation with an overflow
US5027308A (en) Circuit for adding/subtracting two floating point operands
JP2622896B2 (en) Division device
EP0472139B1 (en) A floating-point processor
JP3178746B2 (en) Format converter for floating point numbers
US5111421A (en) System for performing addition and subtraction of signed magnitude floating point binary numbers
JP3313560B2 (en) Floating point processor
JP5640081B2 (en) Integer and multiply-add operations with saturation
JP2972498B2 (en) Automatic logic circuit design method, system and device thereof, and multiplier
JPH06203098A (en) Automatic designing method for logic circuit, device therefor and multiplier
JP2556171B2 (en) Arithmetic circuit
JP3429927B2 (en) Normalization circuit device of floating point arithmetic unit
JPH0511980A (en) Overflow detecting method and circuit
JPH087670B2 (en) Adder circuit
JP2645422B2 (en) Floating point processor
JP2578482B2 (en) Floating point arithmetic unit
JP3187402B2 (en) Floating point data addition / subtraction circuit
JP3298119B2 (en) Zero flag generation adder / subtractor
JPS6359170B2 (en)
JP3233432B2 (en) Multiplier
JP3106525B2 (en) Addition method and its circuit
JP2901463B2 (en) Addition device
JP2801472B2 (en) Floating point arithmetic unit
JP2653134B2 (en) Arithmetic processing unit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees