JPH0431925A - Arithmetic circuit - Google Patents

Arithmetic circuit

Info

Publication number
JPH0431925A
JPH0431925A JP2139163A JP13916390A JPH0431925A JP H0431925 A JPH0431925 A JP H0431925A JP 2139163 A JP2139163 A JP 2139163A JP 13916390 A JP13916390 A JP 13916390A JP H0431925 A JPH0431925 A JP H0431925A
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.)
Granted
Application number
JP2139163A
Other languages
Japanese (ja)
Other versions
JP2556171B2 (en
Inventor
Ryuji Ishida
隆二 石田
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 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

Abstract

PURPOSE:To reduce a scale and to improve the computing speed for an arithmetic circuit of a redundant binary form by detecting an overflow based on a carrying signal, the highest-order bit, and a sign bit of the binary data on a redundant binary/binary conversion circuit. CONSTITUTION:A redundant binary adder 1 and a redundant binary/binary conversion circuit 2 are provided with an overflow detecting circuit 4 and a selective circuit 3. The adder 1 outputs a carry C of the addition result and the highest-order bit ZMSB to the circuit 4. Meanwhile the circuit 2 outputs the sign bit ZZsgn of the conversion result to the circuit 4 respectively. The circuit 4 detects a real overflow based on three data C, ZMSB and ZZsgn and outputs the detection result OF to the circuit 3. The circuit 3 selects and outputs an output (s) based on the result OF, the output ZZMAX of a maximum value output circuit 5, the output ZZMIN of a minimum value output circuit 6, and the binary conversion data ZZ.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は、冗長2進形式による加算及び乗算等の演算処
理を行う演算回路に関し、特に集積回路化に適した演算
回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an arithmetic circuit that performs 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向き高速乗算器」高木能、電子通信学会論
文誌CD) 、 JBEi−08゜pp、683−69
0. 83年 6月)。
[Prior Art] In order to improve the processing speed, arithmetic circuits have been known that perform arithmetic processing by converting normal binary representation into data in redundant binary representation (for example, "redundant binary representation"). "High-speed multiplier for VLSI using addition trees" by Noh Takagi, IEICE Transactions CD), JBEi-08゜pp, 683-69
0. June 1983).

冗長2進表現では1ビツトのデータを0,1゜−1の3
値で表現し、これにより桁上げ伝搬がない加算回路を実
現することができる。例えば、いま、ビットデータ[−
1コを[1コと表すことにすると、例えば6ビツトの2
進数の場合には、その最上位ビットが符号ビットとなる
ので、最大値が011111□ (63□。)、最小値
が100000□ (−64□。)となるが、冗長2進
表現では、最大値が[:111111コ2  (127
□o)、最小値が111111C2,(−127□。)
となる。なお、ここで、添字の2は2進数、10は10
進数、[2コは冗長2進数表現であることを示している
In redundant binary representation, 1 bit of data is expressed as 3 of 0, 1°-1.
Expressed as a value, it is possible to realize an adder circuit without carry propagation. For example, now bit data [-
If we represent 1 piece as [1 piece, for example, 2 bits of 6 bits.
In the case of a base number, the most significant bit is the sign bit, so the maximum value is 011111□ (63□.) and the minimum value is 100000□ (-64□.), but in redundant binary representation, the maximum The value is [:111111ko2 (127
□o), the minimum value is 111111C2, (-127□.)
becomes. Note that the subscript 2 is a binary number, and 10 is a 10
The base number [2 indicates redundant binary representation.

また、冗長2進表現では、1つの数値を何通りかのデー
タで表現可能である。例えば、5□。を4桁の冗長2進
数で表現すると、0101+2+、1111□2.の5
通りの表現が可能である。
Furthermore, in redundant binary representation, one numerical value can be expressed using several types of data. For example, 5□. When expressed as a 4-digit redundant binary number, 0101+2+, 1111□2. 5
It is possible to express the street.

冗長2進数の加算を行う場合、ot2+と0,2゜及び
1【2コと1,2.の加算では桁上げはなく、1c2.
と1,2.の加算では1,2.の桁上げを行い、1c2
.と1c2.の加算では1,2.の桁上げを行い、1.
2.と0,2.の加算では下位から1,2.の桁上げが
あれば1゜2.の桁上げを行い、1c2.と0.2.の
加算では下位から1,2.の桁上げがあればIC2,の
桁上げを行なう。従って、例えば1.。
When performing addition of redundant binary numbers, ot2+ and 0,2° and 1[2co and 1,2 . There is no carry in the addition of 1c2.
and 1, 2. In the addition of 1, 2. carry up, 1c2
.. and 1c2. In the addition of 1, 2. 1.
2. and 0,2. In the addition of 1, 2, etc. from the lowest order. If there is a carry, 1゜2. Carry up 1c2. and 0.2. In the addition of 1, 2, etc. from the lowest order. If there is a carry of IC2, carry is carried out. Therefore, for example 1. .

+1.oの加算を行なう場合、OL2+ +OIc2>
の加算を行なわずに、11c2z +01ra+の加算
を行なうようにすることにより、桁上げの伝搬がない加
算を行なうことができる。桁上げの伝搬がない場合、あ
る桁の桁上げは、必ずその上位桁で吸収される。従って
、この場合、第1ステツプで各桁の中間和と桁上げ信号
とを求め、第2ステツプで中間和と下位からの桁上げ信
号との和を求めるという手順により、2ステツプで加算
処理が終了する。従って、桁上げ信号が2ビツト以上伝
搬する通常の2進演算に比べ演算処理時間を大幅に短縮
することができる。
+1. When adding o, OL2+ +OIc2>
By performing the addition of 11c2z +01ra+ without performing the addition of , it is possible to perform addition without carry propagation. If there is no carry propagation, a carry of a certain digit will always be absorbed by its higher-order digit. Therefore, in this case, the addition process is performed in two steps by calculating the intermediate sum of each digit and the carry signal in the first step, and calculating the sum of the intermediate sum and the carry signal from the lower order in the second step. finish. Therefore, the calculation processing time can be significantly reduced compared to normal binary calculation in which a carry signal propagates over two bits or more.

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

[発明が解決しようとする課題] しかしながら、上述した従来の演算回路では、加数及び
被加数の最上位ビットが1+2]11ゎ。。
[Problems to be Solved by the Invention] However, in the conventional arithmetic circuit described above, the most significant bits of the addend and the summand are 1+2]11°. .

である場合、又はIC2] +  L2+である場合、
必ず桁上げが起こるため、実際にはオーバーフローして
いない場合でも、オーバーフローが発生したものと誤っ
て判断される場合がある。
or IC2] + L2+,
Because a carry always occurs, it may be mistakenly determined that an overflow has occurred even when there is actually no overflow.

例えば、111111c2+  (−1+o)と111
111[2+(1□。)との演算を行なうと次のよう+
)   111111(2) arry この場合、(−1+o)+(1+o)=(−2+。)で
あるから、実際にはオーバーフローしないにも拘らず、
最上位ビットから桁上げ信号が…力されることで、オー
バーフローき判定されてしまう。
For example, 111111c2+ (-1+o) and 111
When we perform the operation with 111[2+(1□.), we get +
) 111111(2) arri In this case, (-1+o)+(1+o)=(-2+.), so even though there is no actual overflow,
When a carry signal is input from the most significant bit, an overflow is determined.

そこで、これを防止するため、冗長2進加算回路及び冗
長2進数から2進数への変換回路のビット数を上位側に
拡張して保護ビットを設けることもなされているが、こ
の場合には、回路規模が増大したり演算速度が低下する
等の問題点がある。
Therefore, in order to prevent this, the number of bits of the redundant binary addition circuit and the redundant binary number to binary number conversion circuit is extended to the upper side to provide a protection bit, but in this case, There are problems such as an increase in circuit scale and a decrease in calculation speed.

特に、集積化された乗算器を構成する多数の加算回路の
夫々に保護ビットを設けると、回路規模の増大及び演算
速度の低下は無視できない程度になってしまう。
In particular, if a protection bit is provided for each of a large number of adder circuits constituting an integrated multiplier, the increase in circuit scale and the decrease in calculation speed will become non-negligible.

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

[課題を解決するための手段] 本発明に係る演算回路は、冗長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 that performs arithmetic operations on data in a redundant binary format and outputs an arithmetic result in a redundant binary format and a carry signal; a redundant binary/binary conversion circuit that converts the redundant binary format operation result outputted from the redundant binary operation circuit into binary data; The present invention is characterized by comprising an overflow detection circuit that detects an overflow in the redundant binary arithmetic circuit by referring to the bit and the sign bit of the operation result converted to 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 redundant binary format, and the sign bit of the operation result converted to binary data. By referring to this, it is possible to accurately determine whether the operation result truly overflows.

従って、本発明によれば、冗長2進演算回路及び冗長2
進/2進変換回路のビット数を拡張することなしに、オ
ーバーフローの検出を行なうことができ、回路規模の縮
小及び演算速度の向上を図ることかできる。
Therefore, according to the present invention, a redundant binary arithmetic circuit and a redundant binary arithmetic circuit are provided.
Overflow detection can be performed without expanding the number of bits of the hex/binary conversion circuit, and it is possible to reduce the circuit scale and improve the calculation speed.

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

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

加算対象となる被加数データXと加数データyとは、冗
長2進数表現されたデータ形式で冗長2進加算器1に入
力されている。冗長2進加算器1は、両データX、yの
加算を行い、冗長2進数表現の加算結果2と桁上げ信号
Cとを出力する。加算結果2は冗長2進/2進変換回路
2に入力されている。冗長2進/2進変換回路2は、加
算結果2を2進表現の加算結果22に変換し出力する。
Addend data X and addend data y to be added are input to the redundant binary adder 1 in a data format expressed in redundant binary numbers. A redundant binary adder 1 adds both data X and y, and outputs an addition result 2 expressed in redundant binary numbers and a carry signal C. The addition result 2 is input to a redundant binary/binary conversion circuit 2. The redundant binary/binary conversion circuit 2 converts the addition result 2 into an addition result 22 in binary representation and outputs it.

この加算結果zzは、3人力の選択回路3の一つの入力
端に入力されている。
This addition result zz is input to one input terminal of the three-man-powered selection circuit 3.

一方、冗長2進加算器1から出力される桁上げ信号C及
び加算結果2の最上位ビットzMs13、並びに冗長2
進/2進変換回路2から出力される加算結果22の最上
位ビットであるサインビットZZ*Ignは、オーバー
フロー検出回路4に入力されている。オーバーフロー検
出回路4は、これらのデータに基づいてオーバーフロー
の有無を判定し、オーバーフロー検出情報OFを出力す
る。この情報OFは、オーバーフローの有無を示す信号
と、その符号を示す信号とからなり、選択回路3にその
選択制御信号として供給されている。選択回路3の残り
の2つの入力端には、夫々最大値出力回路5からの最大
値データZZMAX及び最小値出力回路6からの最小値
データZZxrsが入力されている。選択回路3は、こ
れらの入力データをオーバーフロー情報OFに基づいて
選択し、選択されたデータを加算結果Sとして出力する
On the other hand, the carry signal C output from the redundant binary adder 1 and the most significant bit zMs13 of the addition result 2, and the redundant 2
Sign bit ZZ*Ign, which is the most significant bit of the addition result 22 output from the decimal/binary conversion circuit 2, is input to the overflow detection circuit 4. The overflow detection circuit 4 determines the presence or absence of overflow based on these data and outputs overflow detection information OF. This information OF consists 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. Maximum value data ZZMAX from the maximum value output circuit 5 and minimum value data ZZxrs 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 explained in more detail.

オーバーフロー検出回路4は、基本的には、下記第1表
の通り、桁上げ信号C1演算結果2の最上位ピッ)ZM
SB及び演算結果22のサインビットZZsignに基
づいて、オーバーフロー情報OFを出力する。
Basically, the overflow detection circuit 4 detects the most significant bit of the carry signal C1 calculation result 2 as shown in Table 1 below.
Based on SB and the sign bit ZZsign of the calculation result 22, overflow information OF is output.

第1表 ここで、冗長2進表現では、(1,0,1)の3値をと
るので、実際にはサインビット(SB)とバリュービッ
ト(VB)の2ビツトで表現される。
Table 1 Here, since the redundant binary representation takes three values (1, 0, 1), it is actually represented by two bits: a sign bit (SB) and a value bit (VB).

また、オーバーフロー検出情報OFは、オーバーフロー
検出信号ODと正負の判定信号O8とによって構成され
る。従って、オーバーフロー検出回路4の実際の真理値
表は、下記第2表のようになる。
Further, the overflow detection information OF is composed of an overflow detection signal OD and a positive/negative determination signal O8. Therefore, the actual truth table of the overflow detection circuit 4 is as shown in Table 2 below.

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

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

X”011111(2)  (1110)Y=1011
00t2>  (20to)冗長2進加算器1では、次
のような演算を行なう。
X”011111(2) (1110)Y=1011
00t2> (20to) The redundant binary adder 1 performs the following operation.

01J111.c2+ +)    101100(11 arry これニヨリ、加算結果z=100011t2+が求めら
れる。
01J111. c2+ +) 101100 (11 arri) The addition result z=100011t2+ is obtained.

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

011111□ 1gn これによって、2進表現の加算結果z z=01111
1□が求められる。
011111□ 1gn As a result, the addition result in binary representation z z=01111
1□ is required.

この場合、オーバーフロー検出回路4には、C”OL□
l  ZMSB = 112 +  Z Zsrl&n
=02が入力されるので、オーバーフロー検出信号0D
=0、正負の判定信号0S=Oとなる。つまり、この場
合には、オーバーフローは発生せず、選択回路3は、冗
長2進/2進変換回路2から出力される加算結果22を
選択し、これを加算結果Sとして出力する。
In this case, the overflow detection circuit 4 has C"OL□
l ZMSB = 112 + Z Zsrl&n
=02 is input, so the overflow detection signal 0D
=0, positive/negative determination signal 0S=O. That is, in this case, no overflow occurs, and the selection circuit 3 selects the addition result 22 output from the redundant binary/binary conversion circuit 2 and outputs it as the addition result S.

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

x=011111c2>  (11+o)y= 101
110(2+  (22□。)冗長2進加算器1では、
次のような演算を行なう。
x=011111c2> (11+o)y=101
110 (2+ (22□.) In the redundant binary adder 1,
Perform the following calculations.

011111[2] +)    101110(2) arry これにより、加算結果Z =100001 c2rが求
められる。
011111[2] +) 101110(2) arry As a result, the addition result Z = 100001 c2r is obtained.

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

ooooi ign これによって、2進表現の加算結果zz=10oooi
。が求められる。
oooooi ign As a result, the addition result in binary representation zz=10ooooi
. is required.

この場合、オーバーフロー検出回路4にハ、c=Q 1
2 +  ZMSB = I L +  Z Z*+g
n= 12が入力されるので、オーバーフロー検出信号
0D=1、正負の判定信号08=0となる。つまり、こ
の場合には、正のオーバーフローが発生しており、選択
回路3は、最大値出力回路5から出力される最大値ZZ
MAXを選択し、これを加算結果Sとして出力する。
In this case, in the overflow detection circuit 4, c=Q 1
2 + ZMSB = I L + Z Z*+g
Since n=12 is input, the overflow detection signal 0D=1 and the positive/negative determination signal 08=0. That is, in this case, a positive overflow has occurred, and the selection circuit 3 selects the maximum value ZZ output from the maximum value output circuit 5.
MAX is selected and output as the addition result S.

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

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

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

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

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

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

即ち、被乗数データaと乗数データbとは、冗長2進乗
算器11に入力され、ここで乗算される。
That is, multiplicand data a and multiplier data b are input to redundant binary multiplier 11 and multiplied there.

冗長2進乗算器11は、多数の部分積の加算を行なう多
数の冗長2進加算器から構成されている。
The redundant binary multiplier 11 is composed of a large number of redundant binary adders that perform addition of a large number of partial products.

この乗算器11による乗算結果mは、冗長2進/2進変
換回路2に入力され、2進数に変換される。
The multiplication result m by the multiplier 11 is input to the redundant binary/binary conversion circuit 2 and converted into a binary number.

2進数に変換された乗算結果mmは、3人力の選択回路
3の一つの入力端に入力されている。
The multiplication result mm converted into a binary number is input to one input terminal of a three-man-powered selection circuit 3.

一方、冗長2進乗算器11の最終段の加算器からの桁上
げ信号01乗算結果mの最上位ビットmMss及び乗算
結果mmのサインビットmm1目。
On the other hand, the most significant bit mmss of the carry signal 01 multiplication result m from the adder at the final stage of the redundant binary multiplier 11 and the sign bit mm1 of the multiplication result mm.

は、オーバーフロー検出回路4に入力され、ここでオー
バーフローが検出される。そのオーバーフロー情報OF
は、選択回路3に選択制御信号として供給されている。
is input to the overflow detection circuit 4, where overflow is detected. Its overflow information OF
is supplied to the selection circuit 3 as a selection control signal.

選択回路3はオーバーフロー情報OFに従って乗算結果
關、最大値出力回路15からの最大値mmMAx、最小
値出力回路16からの最小値mmM□8の一つを選択し
、乗算結果Mとして出力する。
The selection circuit 3 selects one of the maximum value mmMAx from the maximum value output circuit 15 and the minimum value mmM□8 from the minimum value output circuit 16 as the multiplication result according to the overflow information OF, and outputs it as the multiplication result M.

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

また、この実施例に係る乗算回路によれば、各段の加算
結果のオーバーフロー判定を行なわず、最終段の加算結
果のみを参照してオーバーフローの判定を行なっている
ので、回路規模の縮小効果を更に高めることができる。
In addition, according to the multiplication circuit according to this embodiment, overflow is determined by referring only to the addition result of the final stage without making an overflow determination of the addition result of each stage, so that the effect of reducing the circuit scale is reduced. 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 to binary data are referred to. Since the overflow of the operation result is determined, there is no need to expand the number of bits of the operation circuit and the redundant binary/binary conversion circuit.

従って、回路規模の縮小及び演算速度の向上を図りつつ
、演算精度の向上を図ることができる。
Therefore, it is possible to improve the calculation accuracy while reducing the circuit scale and improving the calculation speed.

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

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

Claims (4)

【特許請求の範囲】[Claims] (1)冗長2進形式のデータの演算を行って冗長2進形
式の演算結果と桁上げ信号とを出力する冗長2進演算回
路と、この冗長2進演算回路から出力される冗長2進形
式の演算結果を2進データに変換する冗長2進/2進変
換回路と、前記桁上げ信号と前記冗長2進形式の演算結
果の最上位ビットと前記2進データに変換された演算結
果のサインビットとを参照し前記冗長2進演算回路にお
けるオーバーフローを検出するオーバーフロー検出回路
とを有することを特徴とする演算回路。
(1) A redundant binary arithmetic circuit that performs arithmetic operations on data in redundant binary format and outputs a redundant binary arithmetic result and a carry signal, and a redundant binary format that is output from this redundant binary arithmetic circuit. a redundant binary/binary conversion circuit for converting the operation result into binary data, the carry signal, the most significant bit of the operation result in the redundant binary format, and a sign of the operation result converted to the binary data; and an overflow detection circuit that detects an overflow in the redundant binary arithmetic circuit by referring to the bits.
(2)前記オーバーフロー検出回路は、前記桁上げ信号
が“1”で且つ前記演算結果の最上位ビットが“0”若
しくは“1”のとき、又は前記桁上げ信号が“1”、前
記演算結果の最上位ビットが“−1”、前記サインビッ
トが“1”のとき、正にオーバーフローしていると判定
し、前記桁上げ信号が“−1”で且つ前記演算結果の最
上位ビットが“0”若しくは“−1”のとき、又は前記
桁上げ信号が“−1”、前記演算結果の最上位ビットが
“1”、前記サインビットが“0”のとき、負にオーバ
ーフローしていると判定するものであることを特徴とす
る請求項1に記載の演算回路。
(2) The overflow detection circuit detects 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 operation result is When the most significant bit of is "-1" and the sign bit is "1", it is determined that there is a positive overflow, and 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", the most significant bit of the operation result is "1", and the sign bit is "0", a negative overflow occurs. 2. The arithmetic circuit according to claim 1, wherein the arithmetic circuit makes a determination.
(3)前記冗長2進演算回路は、冗長2進加算回路であ
ることを特徴とする請求項1又は2に記載の演算回路。
(3) The arithmetic circuit according to claim 1 or 2, 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 or 2, wherein the redundant binary arithmetic circuit is a redundant binary multiplier 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 true JPH0431925A (en) 1992-02-04
JP2556171B2 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)

Citations (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

Patent Citations (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
JP2556171B2 (en) 1996-11-20

Similar Documents

Publication Publication Date Title
JP3492638B2 (en) Floating point multiplier
US6381624B1 (en) Faster multiply/accumulator
KR960003044B1 (en) Numerical expression converter and vector processor unit using the same
JP3345894B2 (en) Floating point multiplier
WO1989002119A1 (en) Apparatus and method for using a single carry chain for leading one detection and for ''sticky'' bit calculation
JP2012528391A (en) Integer and multiply-add operations with saturation
JPH09212337A (en) Floating-point arithmetic processor
US5177703A (en) Division circuit using higher radices
JPS60140422A (en) Arithmetic processing unit
JPH06203098A (en) Automatic designing method for logic circuit, device therefor and multiplier
JP2511527B2 (en) Floating point arithmetic unit
JPH07234778A (en) Arithmetic circuit
US7206800B1 (en) Overflow detection and clamping with parallel operand processing for fixed-point multipliers
JPH0431925A (en) Arithmetic circuit
JP3064405B2 (en) Complex number processing
JPS62197868A (en) Linear approximation conversion circuit for pipeline construction
JPS6359170B2 (en)
JP2653134B2 (en) Arithmetic processing unit
JP2734274B2 (en) Floating point adder / subtracter
JP3298119B2 (en) Zero flag generation adder / subtractor
US5483477A (en) Multiplying circuit and microcomputer including the same
JPH113210A (en) 3-input comparator, saturation arithmetic unit using the same and arithmetic method therefor
JP2931632B2 (en) Digit shifter and floating point arithmetic unit
JPH01232430A (en) Arithmetic circuit
JPH06243194A (en) Method and device for automatic logic circuit design

Legal Events

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