JPH0797312B2 - Arithmetic unit - Google Patents

Arithmetic unit

Info

Publication number
JPH0797312B2
JPH0797312B2 JP60066155A JP6615585A JPH0797312B2 JP H0797312 B2 JPH0797312 B2 JP H0797312B2 JP 60066155 A JP60066155 A JP 60066155A JP 6615585 A JP6615585 A JP 6615585A JP H0797312 B2 JPH0797312 B2 JP H0797312B2
Authority
JP
Japan
Prior art keywords
arithmetic unit
overflow
output
arithmetic
result
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
JP60066155A
Other languages
Japanese (ja)
Other versions
JPS61224036A (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
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 JP60066155A priority Critical patent/JPH0797312B2/en
Publication of JPS61224036A publication Critical patent/JPS61224036A/en
Publication of JPH0797312B2 publication Critical patent/JPH0797312B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime 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/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/507Adding; 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 selection between two conditionally calculated carry or sum values
    • 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/499Denomination or exception handling, e.g. rounding or overflow
    • G06F7/49905Exception handling
    • G06F7/4991Overflow or underflow
    • 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/499Denomination or exception handling, e.g. rounding or overflow
    • G06F7/49905Exception handling
    • G06F7/4991Overflow or underflow
    • G06F7/49915Mantissa overflow or underflow in handling floating-point numbers

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は固定小数点演算を行なうための演算装置に関す
る。
The present invention relates to an arithmetic unit for performing fixed point arithmetic.

(従来の技術) 従来、固定小数点数の演算においてオーバーフローの検
出は演算結果が決定した後に行なわれていた。
(Prior Art) Conventionally, in the calculation of a fixed-point number, overflow is detected after the calculation result is determined.

第3図は上述の演算装置の従来例を示したものである。
従来装置は、第1オペランド格納レジスタ21、反転器2
2、選択回路23、第2オペランド格納レジスタ24、演算
指示格納フリツプフロツプ25、キヤリー入力“1"の演算
器26、キヤリー入力“0"の演算器27、選択回路28、演算
結果格納レジスタ29、オーバーフロー検出回路30および
オーバーフロー検出結果格納フリツプフロツプ31から構
成されている。
FIG. 3 shows a conventional example of the above-mentioned arithmetic unit.
The conventional device has a first operand storage register 21, an inverter 2
2, selection circuit 23, second operand storage register 24, operation instruction storage flip-flop 25, calculator input "1" calculator 26, carry input "0" calculator 27, selection circuit 28, calculation result storage register 29, overflow It is composed of a detection circuit 30 and an overflow detection result storage flip-flop 31.

図において、演算指示信号100′として引き算を指示す
る“1"が入力すると、これが演算指示格納フリツプフロ
ツプ25にセツトされるとともに選択回路23は第2オペラ
ンドBの反転出力2001′を選択し、その補数が第2オ
ペランド格納レジスタ24に格納される。足し算を指示す
る“0"が入力すると同じく演算指示格納フリツプフロツ
プ25にセツトされるとともに選択回路23は第2オペラン
ドBの出力2000′を選択し、Bが第2オペランド格納レ
ジスタ24に格納される。演算器26はキヤリーがある場
合、すなわち“1"のときの演算器、演算器27はキヤリー
がない場合、すなわち“0"のときの演算器である。各演
算器26,27は各オペランドA,Bの演算を行ない、それらの
出力は、選択回路28により選択される。引き算の場合は
演算指示格納フリツプフロツプ25の出力は“1"であるの
でキヤリーがある場合の演算器26の出力結果が、足し算
の場合は“0"であるのでキヤリーがない場合の演算器27
の出力結果が演算結果格納レジスタ29に格納される。オ
ーバーフロー検出回路30は、演算結果格納レジスタ29に
格納された演算結果かオーバーフローを検出し、その結
果をオーバーフロー検出フリップフロップの格納する。
In the figure, when "1" for instructing subtraction is input as the operation instruction signal 100 ', this is set in the operation instruction storing flip-flop 25 and the selection circuit 23 selects the inverted output 2001' of the second operand B, and its complement. Is stored in the second operand storage register 24. When "0" indicating addition is input, it is also set in the operation instruction storing flip-flop 25, and the selection circuit 23 selects the output 2000 'of the second operand B, and B is stored in the second operand storage register 24. The computing unit 26 is a computing unit when there is a carrier, that is, when it is "1", and the computing unit 27 is a computing unit when there is no carrier, that is, when it is "0". The arithmetic units 26 and 27 perform arithmetic operations on the operands A and B, and their outputs are selected by the selection circuit 28. In the case of subtraction, the output of the operation instruction storing flip-flop 25 is "1", so the output result of the calculator 26 when there is a carrier is "0" in the case of addition, so the calculator 27 when there is no carrier
The output result of is stored in the calculation result storage register 29. The overflow detection circuit 30 detects an operation result stored in the operation result storage register 29 or an overflow, and stores the result in an overflow detection flip-flop.

(発明が解決しようとする問題点) 従来の装置はこのように演算結果が一義的に決定したあ
とにオーバーフロー検出を行なつている。すなわちオー
バーフロー検出回路30ではオーバーフローを起こしてい
るか検出し、その結果をオーバーフロー検出結果格納フ
リツプフロツプ31に格納している。したがつて、オーバ
ーフロー検出に長い時間がかかるという欠点があつた。
(Problems to be Solved by the Invention) In the conventional device, overflow detection is performed after the calculation result is uniquely determined. That is, the overflow detection circuit 30 detects whether an overflow has occurred, and stores the result in the overflow detection result storage flip-flop 31. Therefore, there is a drawback that it takes a long time to detect the overflow.

本発明の目的はオーバーフロー検出に従来程時間を要す
ることのない演算結果を提供することにある。
It is an object of the present invention to provide a calculation result that does not require much time for overflow detection as in the past.

(問題点を解決するための手段) 前記目的を達成するため本発明による演算装置では、第
1の演算器では下位桁からキャリー入力がある場合の演
算を行い、第2の演算器ではキャリー入力がない場合の
演算を行い、選択指示信号により前記第1または第2の
演算器出力結果を選択し、その出力結果を演算結果格納
レジスタに格納する、固定小数点の演算装置において、
前記第1の演算器の出力結果からオーバーフローが発生
していることを検出する第1のオーバーフロー検出回路
と、前記第2の演算器の出力結果からオーバーフローが
発生していることを検出する第2のオーバーフロー検出
回路と、前記選択指示信号により第1の演算器の出力結
果が選択されるときには前記第のオーバーフロー検出回
路の出力を選択し、前記選択指示信号により第2の演算
器の出力結果が選択されるときには前記第2のオーバー
フロー検出回路の出力を選択する選択回路と、前記選択
回路の出力を格納するオーバーフロー検出結果格納フリ
ップフロップを備えている。
(Means for Solving the Problems) In order to achieve the above-mentioned object, in the arithmetic unit according to the present invention, the first arithmetic unit performs an operation when there is a carry input from the lower digit, and the second arithmetic unit carries out a carry input. In the fixed-point arithmetic unit, a calculation is performed when there is no value, the output result of the first or second arithmetic unit is selected by the selection instruction signal, and the output result is stored in the arithmetic result storage register.
A first overflow detection circuit that detects an overflow from the output result of the first arithmetic unit, and a second overflow detection circuit that detects an overflow from the output result of the second arithmetic unit When the output result of the first arithmetic unit is selected by the overflow detection circuit and the selection instruction signal, the output of the first overflow detection circuit is selected, and the output result of the second arithmetic unit is changed by the selection instruction signal. A selection circuit for selecting the output of the second overflow detection circuit when selected and an overflow detection result storage flip-flop for storing the output of the selection circuit are provided.

(作用) 前記構成によればオーバーフロー検出の時間を短縮する
ことができ、本発明の目的は完全に達成することができ
る。
(Operation) According to the above configuration, the time required for overflow detection can be shortened, and the object of the present invention can be achieved completely.

(実施例) 次に図面を参照して本発明を詳細に説明する。第1図は
本発明による演算装置の一実施例を示すブロツク図であ
る。
(Example) Next, this invention is demonstrated in detail with reference to drawings. FIG. 1 is a block diagram showing an embodiment of an arithmetic unit according to the present invention.

本実施例は第1オペランド格納レジスタ1、反転器2、
選択回路3、第2オペランド格納レジスタ4、演算指示
格納フリツプフロツプ5、キヤリー入力“1"の演算器
6、キヤリー入力“0"の演算器7、選択回路8,12、オー
バーフロー検出回路10,11、演算結果格納レジスタ9及
びオーバーフロー検出結果格納フリツプフロツプ13を含
む。
In this embodiment, the first operand storage register 1, the inverter 2,
Selector circuit 3, second operand storage register 4, operation instruction storage flip-flop 5, operator 6 with carry input "1", operator 7 with carry input "0", select circuits 8 and 12, overflow detection circuits 10 and 11, It includes a calculation result storage register 9 and an overflow detection result storage flip-flop 13.

本実施例において、固定小数点数である第1オペランド
と固定小数点である第2オペランドの演算は以下のよう
にして行なわれる。
In this embodiment, the operation of the first operand, which is a fixed-point number, and the second operand, which is a fixed-point number, is performed as follows.

第1オペランドAは第1オペランド格納レジスタ1に格
納される。一方、第2オペランドBは、演算指示信号10
0が足し算を指示する“0"のときそのままの値が選択回
路3により選択され、演算指示信号100が引き算を指示
する“1"のとき、反転器2でその各桁の“1",“0"を反
転したもの、すなわちBの補数としたものが選択され
て、第2オペランド格納レジスタ4に格納される。
The first operand A is stored in the first operand storage register 1. On the other hand, the second operand B is the operation instruction signal 10
When 0 is “0” which indicates addition, the selection circuit 3 selects the value as it is, and when the operation instruction signal 100 is “1” which indicates subtraction, the inverter 2 uses “1”, “ A value obtained by inverting 0 ", that is, a complement of B is selected and stored in the second operand storage register 4.

レジスタ1およびレジスタ4に格納されたAおよびBお
よびは演算器6および演算器7で加算される。
A and B stored in the register 1 and the register 4 are added by the arithmetic unit 6 and the arithmetic unit 7.

演算器6は最小桁へのキヤリーがある場合(キャリー入
力“1")の加算、つまり足し算のときA+B+1、引き
算のときA++1の加算を行なう。
The arithmetic unit 6 performs addition when there is a carry to the minimum digit (carry input “1”), that is, A + B + 1 for addition and A +++ 1 for subtraction.

一方、演算器7の側は最小桁へのキヤリーがない場合
(キヤリー入力“0")の加算、つまり足し算のときA+
B、引き算のときA+の加算を行なう。
On the other hand, the calculator 7 side adds A + when there is no carry to the smallest digit (carry input “0”), that is, when adding.
B, A + is added for subtraction.

演算器6で演算されたA+B+1またはA++1を与
える出力6000および演算器7で演算されたA+Bまたは
A+を与える出力7000は選択器8の入力に導かれると
ともに演算器6の出力6000はA+B+1またはA++
1がオーバーフローを起こしているかどうかを検出する
オーバーフロー検出回路10に、演算器7の出力7000はA
+BまたはA+がオーバーフローを起こしているかど
うかを検出するオーバーフロー検出回路11にそれぞれ導
かれる。これらのオーバーフロー検出回路10,11の出力
は演算指示信号5000で選択する選択器12に導かれる。
The output 6000 which gives A + B + 1 or A +++ 1 calculated by the calculator 6 and the output 7000 which gives A + B or A + calculated by the calculator 7 are guided to the input of the selector 8 and the output 6000 of the calculator 6 becomes A + B + 1 or A ++.
1 is output to the overflow detection circuit 10 for detecting whether or not 1 is overflowing.
It is led to an overflow detection circuit 11 which detects whether + B or A + is overflowing. The outputs of these overflow detection circuits 10 and 11 are guided to the selector 12 which selects by the operation instruction signal 5000.

演算指示格納フリツプフロツプ5には足し算のとき“0"
が、引き算のとき“1"が格納される。
Operation instruction storage flip-flop 5 "0" when adding
However, when subtraction, "1" is stored.

足し算を行なう場合、前述により第2オペランド格納レ
ジスタ4に第2オペランドBがそのまま格納され、演算
器7が前述のA+Bの演算を行なった結果を信号線7000
に出力し、オーバーフロー検出回路11でオーバーフロー
を起こしているかどうかを検出して、オーバーフローを
起こしていれば“1"、起こしていなければ“0"を信号線
11000に出力する。このとき演算指示信号100は足し算で
ある“0"を示し、演算指示格納フリツプフロツプ5の出
力5000も足し算である“0"を示し、選択回路8は信号線
7000をまた選択回路12は信号線11000をそれぞれ選択し
て、演算結果格納レジスタ9とオーバーフロー検出結果
格納フリツプフロツプ13に各々格納する。
When the addition is performed, the second operand B is stored as it is in the second operand storage register 4 as described above, and the result obtained by the operation unit 7 performing the operation of A + B is signal line 7000.
Is output to the signal line, and the overflow detection circuit 11 detects whether or not an overflow has occurred, and outputs "1" if an overflow has occurred and "0" if no overflow has occurred.
Output to 11000. At this time, the calculation instruction signal 100 indicates "0" which is addition, the output 5000 of the operation instruction storing flip-flop 5 also indicates "0" which is addition, and the selection circuit 8 indicates the signal line.
The selection circuit 12 selects the signal line 11000 and stores it in the operation result storage register 9 and the overflow detection result storage flip-flop 13, respectively.

引き算を行なう場合、前述により第2オペランド格納レ
ジスタ4に第2オペランドBの補数を格納する。演算
器6が前述のA++1の演算を行なつた結果を信号線
6000に出力し、オーバーフロー検出回路10でオーバーフ
ローを起こしているかどうかを検出してオーバーフロー
を起こしていれば“1"、起こしていなければ“0"信号線
10000に出力する。このとき演算指示信号100は引き算で
ある“1"を示し、演算指示格納フリツプフロツプ5の出
力5000も引き算である“1"を示し、選択回路8は信号線
6000をまた選択回路12は信号線10000をそれぞれ選択し
て演算結果格納レジスタ9とオーバーフロー検出結果格
納フリツプフロツプ13に各々格納する。
When performing subtraction, the complement of the second operand B is stored in the second operand storage register 4 as described above. The result obtained by the arithmetic unit 6 performing the above-mentioned calculation of A ++ 1 is a signal line.
Output to 6000, and the overflow detection circuit 10 detects whether or not an overflow has occurred, and outputs "1" if an overflow has occurred and a "0" signal line if no overflow has occurred.
Output to 10000. At this time, the calculation instruction signal 100 indicates a subtraction “1”, the output 5000 of the calculation instruction storing flip-flop 5 also indicates a subtraction “1”, and the selection circuit 8 indicates the signal line.
The selection circuit 12 selects the signal line 10000 and stores it in the operation result storage register 9 and the overflow detection result storage flip-flop 13 respectively.

この例では、足し算に対応するキャリーなし演算と、減
算に対応するキャリーあり演算を2つの演算器で同時に
おこなうとともに、キャリーなし演算、キャリーあり演
算、の両方の場合のオーバーフローをも同時に検出し、
足し算、引き算のいずれかを選択する信号によりその正
しい方を選択している。このような方法により演算時間
を短縮することが出来る。
In this example, the operation without carry corresponding to addition and the operation with carry corresponding to subtraction are simultaneously performed by the two arithmetic units, and the overflow in the case without carry and the operation with carry are both detected at the same time.
The correct one is selected by the signal that selects either addition or subtraction. The calculation time can be shortened by such a method.

次に第2の実施例を第図により説明する。第2図の実施
例は、第1オペランド格納レジスタ34、第2オペランド
格納レジスタ35、キヤリー入力“1"の演算器45、キヤリ
ー入力“0"の演算器55,65、オーバーフロー検出回路4
6、56、選択回路47、57、オーバーフロー検出結果格納
フリップフロップ49、および演算結果格納レジスタ59を
含む。
Next, a second embodiment will be described with reference to FIG. In the embodiment shown in FIG. 2, the first operand storage register 34, the second operand storage register 35, the operator 45 having the carry input “1”, the operators 55 and 65 having the carry input “0”, and the overflow detection circuit 4 are provided.
6, 56, selection circuits 47, 57, an overflow detection result storage flip-flop 49, and an operation result storage register 59.

第2の実施例の固定小数点数の演算は以下のように行な
われる。
The calculation of the fixed point number of the second embodiment is performed as follows.

第1オペランドAは第1オペランド格納レジスタ34に、
第2オペランドBは第2オペランド格納レジスタ35にそ
れぞれ格納される。この第1オペランド格納レジスタ3
4、第2オペランド格納レジスタ35に格納されたAおよ
びBは上位側251,351と下位側252,352に分けて出力され
る。
The first operand A is stored in the first operand storage register 34,
The second operand B is stored in the second operand storage register 35, respectively. This first operand storage register 3
4, A and B stored in the second operand storage register 35 are separately output to the upper side 251, 351 and the lower side 252, 352.

キヤリー入力“1"の演算器45は、レジスタ34,35の上位
側の出力を入力とし最小桁へのキヤリーがある場合の加
算を行ない、オーバーフロー検出回路46および選択回路
57へ出力する。キヤリー入力“0"の演算器55はレジスタ
34,35の上位側の出力を入力とし、最小桁へのキヤリー
がない場合の加算を行ないオーバーフロー検出回路56お
よび選択回路57へ出力する。キヤリー入力“0"の演算器
65はレジスタ34,35の下位側の出力を入力とし最小桁へ
のキヤリーがない場合の加算を行ない、演算結果格納レ
ジスタ59に出力すると同時に加算結果のキヤリー653を
出力する。
The carry input “1” calculator 45 receives the upper outputs of the registers 34 and 35 as input, performs addition when there is a carry to the minimum digit, the overflow detection circuit 46 and the selection circuit.
Output to 57. The calculator 55 with carrier input “0” is a register
The outputs from the upper side of 34 and 35 are used as inputs, addition is performed when there is no carry to the minimum digit, and the results are output to overflow detection circuit 56 and selection circuit 57. Operator with carrier input “0”
Reference numeral 65 receives the lower outputs of the registers 34 and 35 as input, performs addition when there is no carry to the minimum digit, outputs the result to the operation result storage register 59, and simultaneously outputs the addition result carrier 653.

演算回路57は、演算回路45と演算回路55の出力を演算回
路65のキヤリー出力653で選択し演算結果格納レジスタ5
9に出力する。選択回路47は演算回路45からの出力のオ
ーバーフロー検出回路46の出力と演算回路55からの出力
のオーバーフロー検出回路56の出力を演算回路65のキヤ
リー出力653で選択し、オーバーフロー検出結果格納フ
リツプフロツプ49に格納する。
The arithmetic circuit 57 selects the output of the arithmetic circuit 45 and the arithmetic circuit 55 with the carrier output 653 of the arithmetic circuit 65 and selects the arithmetic result storage register 5
Output to 9. The selection circuit 47 selects the output of the overflow detection circuit 46 of the output from the arithmetic circuit 45 and the output of the overflow detection circuit 56 of the output from the arithmetic circuit 55 by the carrier output 653 of the arithmetic circuit 65, and stores it in the overflow detection result storage flip-flop 49. Store.

この実施例は演算器を下位側と上位側に分けて上位側の
演算をキヤリーがある場合とない場合のそれぞれを求め
ておき、下位側からのキヤリーで選択することによつて
演算時間を短縮している。2分割した加算器を例に上げ
たが分割数をふやしたり、また最下位にもキヤリー入力
を持たせ加減の演算指示信号で選択するような構成した
加減算器も考えられる。
In this embodiment, the arithmetic unit is divided into a lower side and an upper side to obtain the upper side operation with and without the case, and the operation time is shortened by selecting the lower side carrier. is doing. Although the adder divided into two is taken as an example, an adder / subtractor configured to increase the number of divisions or to have a carry input at the lowest order and select with an addition / subtraction operation instruction signal is also conceivable.

(発明の効果) 以上、説明したように本発明は固定小数点演算と演算結
果がオーバーフローしていることを検出する動作とをオ
ーバーラツプして行なうことにより、オーバーフローの
検出を早く行なうことができる。またこのときオーバー
フローが検出された場合は演算結果に定数を入れるとい
うような演算回路においてはオーバーフローの検出を早
く行なうことによつて演算時間を短縮することができる
効果がある。また、この演算回路を浮動小数点演算回路
の指示部の処理に用いることによって、指数部のオーバ
ーフローを早く検出し、演算結果に定数を入れるような
演算の演算時間を短縮することができる効果がある。
(Effects of the Invention) As described above, according to the present invention, the fixed-point arithmetic operation and the operation for detecting the overflow of the arithmetic result are performed in an overlapping manner, whereby the overflow can be detected earlier. In addition, in this case, when an overflow is detected, a constant is added to the operation result, and the overflow can be detected earlier, so that the operation time can be shortened. Further, by using this arithmetic circuit for the processing of the instruction section of the floating point arithmetic circuit, there is an effect that the overflow of the exponent section can be detected early and the arithmetic time of the arithmetic operation in which a constant is put in the arithmetic result can be shortened. .

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

第1図は本発明による演算装置の一実施例を示すブロツ
ク図、第2図は本発明の第二の実施例を示すブロツク
図、第3図は従来の演算装置のブロツク図である。 1……第1オペランド格納レジスタ 2……反転器、3,8,12……選択回路 4……第2オペランド格納レジスタ 5……演算指示格納フリツプフロツプ 6……キヤリー入力“1"の演算器 7……キヤリー入力“0"の演算器 9……演算結果格納レジスタ 10,11……オーバーフロー検出回路 13……オーバーフロー検出結果格納フリツプフロツプ 21……第1オペランド格納レジスタ 22……反転器 23,28……選択回路 24……第2オペランド格納レジスタ 25……演算指示格納フリップフロップ 26……キャリー入力“1"の演算器 27……キャリー入力“0"の演算器 29……演算結果格納レジスタ 30……オーバーフロー検出回路 31……オーバーフロー検出結果格納フリップフロップ 34……第1オペランド格納レジスタ 35……第2オペランド格納レジスタ 45……キヤリー入力“1"の演算器 55,65……キヤリー入力“0"の演算器 46、56……オーバーフロー検出回路 47,57……選択回路 49……オーバーフロー検出結果格納フリツプフロツプ 59……演算結果格納レジスタ
FIG. 1 is a block diagram showing an embodiment of an arithmetic unit according to the present invention, FIG. 2 is a block diagram showing a second embodiment of the present invention, and FIG. 3 is a block diagram of a conventional arithmetic unit. 1 …… First operand storage register 2 …… Inverter, 3,8,12 …… Selection circuit 4 …… Second operand storage register 5 …… Calculation instruction storage flip-flop 6 …… Calculator input “1” calculator 7 …… Carry input “0” calculator 9 …… Computation result storage register 10,11 …… Overflow detection circuit 13 …… Overflow detection result storage flip-flop 21 …… First operand storage register 22 …… Inverter 23,28… … Selection circuit 24 …… Second operand storage register 25 …… Operation instruction storage flip-flop 26 …… Carrier input “1” operator 27 …… Carry input “0” operator 29 …… Operation result storage register 30… … Overflow detection circuit 31 …… Overflow detection result storage flip-flop 34 …… First operand storage register 35 …… Second operand storage register 45 …… Carry input “1” Calculator 55,65 …… Carry input “0” calculator 46,56 …… Overflow detection circuit 47,57 …… Selection circuit 49 …… Overflow detection result storage flip-flop 59 …… Computation result storage register

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】第1の演算器では下位桁からキャリー入力
がある場合の演算を行い、第2の演算器ではキャリー入
力がない場合の演算を行い、選択指示信号により前記第
1または第2の演算器出力結果を選択し、その出力結果
を演算結果格納レジスタに格納する、固定小数点の演算
装置において、 前記第1の演算器の出力結果からオーバーフローが発生
していることを検出する第1のオーバーフロー検出回路
と、 前記第2の演算器の出力結果からオーバーフローが発生
していることを検出する第2のオーバーフロー検出回路
と、 前記選択指示信号により第1の演算器の出力結果が選択
されるときには前記第1のオーバーフロー検出回路の出
力を選択し、前記選択指示信号により第2の演算器の出
力結果が選択されるときには前記第2のオーバーフロー
検出回路の出力を選択する選択回路と、 前記選択回路の出力を格納するオーバーフロー検出結果
格納フリップフロップを備えたことを特徴とする演算装
置。
1. A first arithmetic unit performs an arithmetic operation when there is a carry input from a lower digit, and a second arithmetic unit performs an arithmetic operation when there is no carry input, and the first or second arithmetic operation is performed according to a selection instruction signal. A fixed-point arithmetic unit for selecting an arithmetic unit output result of the first arithmetic unit and storing the output result in an arithmetic result storage register; detecting a overflow from the output result of the first arithmetic unit; Overflow detection circuit, a second overflow detection circuit that detects the occurrence of an overflow from the output result of the second arithmetic unit, and the output result of the first arithmetic unit is selected by the selection instruction signal. When the output result of the second arithmetic unit is selected by the selection instruction signal, the second overflow detection circuit is selected. Computing device for a selection circuit for selecting the output of the flow detection circuit, characterized by comprising an overflow detection result storage flip-flop for storing the output of said selection circuit.
JP60066155A 1985-03-29 1985-03-29 Arithmetic unit Expired - Lifetime JPH0797312B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60066155A JPH0797312B2 (en) 1985-03-29 1985-03-29 Arithmetic unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60066155A JPH0797312B2 (en) 1985-03-29 1985-03-29 Arithmetic unit

Publications (2)

Publication Number Publication Date
JPS61224036A JPS61224036A (en) 1986-10-04
JPH0797312B2 true JPH0797312B2 (en) 1995-10-18

Family

ID=13307689

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60066155A Expired - Lifetime JPH0797312B2 (en) 1985-03-29 1985-03-29 Arithmetic unit

Country Status (1)

Country Link
JP (1) JPH0797312B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1652063A1 (en) * 2003-07-23 2006-05-03 Sandbridge Technologies, Inc. Arithmetic unit for addition or subtraction with preliminary saturation detection

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63204324A (en) * 1987-02-19 1988-08-24 Fujitsu Ltd Multiplying system for floating point
EP0780759A1 (en) * 1995-12-22 1997-06-25 Lucent Technologies Inc. Elimination of math overflow flag generation delay in an alu

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1652063A1 (en) * 2003-07-23 2006-05-03 Sandbridge Technologies, Inc. Arithmetic unit for addition or subtraction with preliminary saturation detection
US7428567B2 (en) 2003-07-23 2008-09-23 Sandbridge Technologies, Inc. Arithmetic unit for addition or subtraction with preliminary saturation detection

Also Published As

Publication number Publication date
JPS61224036A (en) 1986-10-04

Similar Documents

Publication Publication Date Title
KR900010545A (en) Calculation device and method
KR890015121A (en) Division calculator
KR960002061A (en) Arithmetic Device for Floating Point
JPH0690668B2 (en) Fuzzy computing device
JPS608933A (en) Arithmetic processing unit
JPH0797312B2 (en) Arithmetic unit
JPH0479015B2 (en)
JPH0346024A (en) Floating point computing element
JPS59154542A (en) Multiplying device
GB802656A (en) Electronic digital computer
JP2557629B2 (en) Interrupt method
SU824197A1 (en) Computing device
GB871477A (en) Improvements in or relating to electric digital computers
JPS60235241A (en) Floating point adding circuit
JPS63279321A (en) Microprogram controller
JPS5825458Y2 (en) index display device
JPS6120131A (en) Processing unit
JPH07104777B2 (en) Floating point adder / subtractor
JPH0352093B2 (en)
JP2508269B2 (en) Square root calculator
JP2856791B2 (en) Barrel shifter and floating point unit
JP2998324B2 (en) Normalized shift device and normalized shift method
JPS54159833A (en) Decimal multiplier
JPS6224816B2 (en)
JPH0426495B2 (en)