Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2556904B2 - High-speed adder / subtractor - Google Patents
[go: Go Back, main page]

JP2556904B2 - High-speed adder / subtractor - Google Patents

High-speed adder / subtractor

Info

Publication number
JP2556904B2
JP2556904B2 JP1166900A JP16690089A JP2556904B2 JP 2556904 B2 JP2556904 B2 JP 2556904B2 JP 1166900 A JP1166900 A JP 1166900A JP 16690089 A JP16690089 A JP 16690089A JP 2556904 B2 JP2556904 B2 JP 2556904B2
Authority
JP
Japan
Prior art keywords
subtraction
circuit
input data
function
addition
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
JP1166900A
Other languages
Japanese (ja)
Other versions
JPH0334016A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP1166900A priority Critical patent/JP2556904B2/en
Publication of JPH0334016A publication Critical patent/JPH0334016A/en
Application granted granted Critical
Publication of JP2556904B2 publication Critical patent/JP2556904B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は,複数ビットの入力データの加減算を高速
に行う高速加減算演算装置に関するものである。
Description: TECHNICAL FIELD The present invention relates to a high-speed addition / subtraction arithmetic device for performing addition / subtraction of input data of a plurality of bits at high speed.

[従来の技術] 第2図は,従来の加減算演算装置の構成を示すブロッ
ク図である。図において,(1)は加算器,(2)はデ
ータ(A)を入力する入力データ,(3)はデータ
(B)を入力する入力データ,(4)を演算機能を指定
する機能指定信号,(5)は入力データ(A),(B)
の符号を与える符号信号,(6)は機能判定回路で,入
力データの大小関係および符号並びに機能の指定から実
際の演算として何を行うかを判定する。(7a),(7b)
は入力データ選択回路で,加算器(1)に加える入力デ
ータ(A),(B)を選択する。(8)は入力データを
反転する入力反転回路,(9)は加算器(1)からの出
力データである。
[Prior Art] FIG. 2 is a block diagram showing a configuration of a conventional addition / subtraction arithmetic device. In the figure, (1) is an adder, (2) is input data for inputting data (A), (3) is input data for inputting data (B), and (4) is a function designation signal for designating an arithmetic function. , (5) are input data (A), (B)
(6) is a function determination circuit that determines what is to be performed as an actual operation based on the magnitude relation of the input data and the designation of the code and the function. (7a), (7b)
Is an input data selection circuit for selecting input data (A) and (B) to be added to the adder (1). (8) is an input inverting circuit that inverts input data, and (9) is output data from the adder (1).

従来の加減算演算装置は上記のように構成され,入力
データ(7)Aおよび入力データ(8)B並びに入力デ
ータ(A),(B)の符号信号(5)と演算機能指定信
号(4)により,機能判定回路(6)で,演算装置が,
演算(A+B)または演算(A−B)もしくは演算(B
−A)のいずれかの演算を行うかを判定する。この機能
判定回路(6)の結果から加算器(1)に入力する入力
データを入力データ選択回路(7a),(7b)により入力
データ(A),(B)を選択する。
The conventional adder / subtractor computing device is configured as described above, and the input data (7) A, the input data (8) B, the code signals (5) of the input data (A) and (B), and the computation function designating signal (4). Therefore, in the function determination circuit (6), the arithmetic unit
Operation (A + B) or operation (AB) or operation (B
-A) to determine which operation is to be performed. Input data (A) and (B) are selected by the input data selection circuits (7a) and (7b) from the result of the function determination circuit (6) to be input to the adder (1).

次に,演算装置が前記の演算(A−B)または演算
(B−A)の減算を行う場合,入力反転回路(8)によ
り入力データ(A),(B)を反転して加算器(1)へ
の入力データとする。また,減算の場合には加算器
(1)のキャリー入力を“1"とする。このようなデータ
から演算を加算器(1)で行うことによって出力データ
(9)Yが得られる。
Next, when the arithmetic unit subtracts the arithmetic operation (AB) or the arithmetic operation (BA), the input inverting circuit (8) inverts the input data (A) and (B) to adder ( This is the input data to 1). Further, in the case of subtraction, the carry input of the adder (1) is set to "1". Output data (9) Y is obtained by performing an arithmetic operation from such data in the adder (1).

[発明が解決しようとする課題] 上記のような従来の加減算演算装置では,入力データ
の大小関係および符号等によって機能判定を行ってから
加算器で加減算演算を行わなければならないので,この
機能判定を機能判定回路で行う場合,入力データのビッ
ト数が大きくなると時間がかかり,高速に演算ができな
いなどの問題点があった。
[Problems to be Solved by the Invention] In the conventional adder / subtractor computing device as described above, the adder / subtractor must perform the function determination based on the magnitude relation of the input data, the sign, etc. When the function determination circuit is used, there is a problem that it takes time if the number of bits of the input data is large and the operation cannot be performed at high speed.

この発明は,かかる問題点を解決するためになされた
もので,入力データの大小関係および符号等による演算
機能の判定結果を待たずに加減算を行うようにした高速
加減算演算装置を得ることを目的とする。
The present invention has been made to solve such a problem, and an object of the present invention is to obtain a high-speed addition / subtraction arithmetic device that performs addition / subtraction without waiting for the magnitude relation of input data and the determination result of the arithmetic function based on the sign or the like. And

[課題を解決するための手段] この発明に係る高速加減算演算装置は、符号及び機能
指定に基づき加減算を指定する加減算指定回路と、前記
加減算指定回路から減算指定が出力されると複数のビッ
トから構成される第2の入力データを反転する入力反転
回路と、複数のビットから構成される第1の入力データ
と前記入力反転回路の出力とを加算するとともに、前記
加減算指定回路から減算指定が出力されると前記第1の
入力データから前記入力反転回路の出力を減算する加算
器と、前記第2の入力データから前記第1の入力データ
を減算する減算器と、前記符号、前記機能指定、並びに
前記第1、及び第2の入力データの大小関係に基づき演
算機能を判定する機能判定回路と、前記機能判定回路の
判定結果に基づき前記加算器又は前記減算器の出力のい
ずれかを選択する出力データ選択回路とを備えたもので
ある。
[Means for Solving the Problem] A high-speed addition / subtraction arithmetic device according to the present invention includes an addition / subtraction designating circuit for designating addition / subtraction based on sign and function designation, and a plurality of bits when a subtraction designation is output from the addition / subtraction designating circuit. An input inversion circuit that inverts the configured second input data, the first input data configured of a plurality of bits, and the output of the input inversion circuit are added, and a subtraction designation is output from the addition / subtraction designation circuit. Then, an adder for subtracting the output of the input inverting circuit from the first input data, a subtracter for subtracting the first input data from the second input data, the sign, the function designation, And a function judging circuit for judging an arithmetic function based on the magnitude relation between the first and second input data, and the adder or the subtracter based on the judgment result of the function judging circuit. And an output data selection circuit for selecting any one of the outputs of the above.

[作用] この発明においては,入力データの大小関係および符
号等によって決める演算機能判定を機能判定回路および
加減算指定回路で分けて決めることにより,演算機能判
定結果を待たずに加減算を行うようにする。
[Operation] In the present invention, the arithmetic function determination determined by the magnitude relation of the input data and the sign is separately determined by the function determination circuit and the addition / subtraction designation circuit, so that the addition / subtraction is performed without waiting for the arithmetic function determination result. .

[実施例] 第1図はこの発明の一実施例による高速加減算演算装
置の構成を示すブロック図である。図において,(1)
〜(9)は従来のものと同様である。(10)は入力デー
タ(A),(B)より減算を行う減算器,(11)は加減
算指定回路で,符号線(5)に印加される符号および機
能指定線(4)に印加される機能指定のみから加減算を
指定する。(12)は出力データ選択回路で,機能判定回
路(6)の出力に応じて加算器(1)または減算器(1
0)の出力データのいずれかを選択する。
[Embodiment] FIG. 1 is a block diagram showing the structure of a high-speed addition / subtraction arithmetic unit according to an embodiment of the present invention. In the figure, (1)
(9) is the same as the conventional one. (10) is a subtracter that subtracts from the input data (A) and (B), and (11) is an addition / subtraction designation circuit, which is applied to the code and function designation line (4) applied to the code line (5). Specify addition / subtraction from the function specification only. Reference numeral (12) is an output data selection circuit, which adds (1) or subtracts (1) depending on the output of the function determination circuit (6).
Select one of the 0) output data.

上記のように構成された高速加減算演算装置におい
て,入力データ(A),(B)の符号と演算機能指定か
ら演算(A+B)または演算(A−B)のいずれを行う
かを加減算指定回路(11)で指定する。演算(A−B)
であれば,入力データ(B)を反転し,加算器(1)の
入力データとする。減算器(10)では,演算(B−A)
を行う。
In the high-speed addition / subtraction arithmetic device configured as described above, whether the arithmetic operation (A + B) or the arithmetic operation (AB) is performed based on the sign of the input data (A) and (B) and the arithmetic function specification is performed. Specify in 11). Calculation (AB)
If so, the input data (B) is inverted and used as the input data of the adder (1). The subtractor (10) calculates (BA)
I do.

次に,これと並列に入力データ(A),(B)および
符号並びに演算機能指定から演算(A+B)または演算
(A−B)もしくは演算(B−A)のいずれを行うかを
機能判定回路(6)で判定する。この判定結果に応じて
出力データ選択回路(12)により加算器(1)または減
算器(10)の演算結果のいずれを選択して出力データ
(9)Yを出力する。
Next, in parallel with this, the function determining circuit determines whether to perform the operation (A + B) or the operation (AB) or the operation (BA) from the input data (A), (B) and the sign and the operation function designation. The judgment is made in (6). The output data selection circuit (12) selects either the operation result of the adder (1) or the subtractor (10) according to the result of the determination, and outputs the output data (9) Y.

[発明の効果] この発明は、以上説明したとおり、符号及び機能指定
に基づき加減算を指定する加減算指定回路と、前記加減
算指定回路から減算指定が出力されると複数のビットか
ら構成される第2の入力データを反転する入力反転回路
と、複数のビットから構成される第1の入力データと前
記入力反転回路の出力とを加算するとともに、前記加減
算指定回路から減算指定が出力されると前記第1の入力
データから前記入力反転回路の出力を減算する加算器
と、前記第2の入力データから前記第1の入力データを
減算する減算器と、前記符号、前記機能指定、並びに前
記第1、及び第2の入力データの大小関係に基づき演算
機能を判定する機能判定回路と、前記機能判定回路の判
定結果に基づき前記加算器又は前記減算器の出力のいず
れかを選択する出力データ選択回路とを備え,入力デー
タの大小関係や符号等によって決まる演算機能判定を加
減算指定回路および機能判定回路で分けて行い,加減算
を機能判定回路による機能判定結果を待たずに行えるの
で加減算演算を高速に行える効果がある。また、この発
明によれば、機能判定と加算、減算を並行、同時に実行
するように構成することにより、加算、減算の結果が出
力される前に、出力データ選択回路に出力する制御信号
を生成することができるので、加算器、減算器の出力と
同時に演算結果として外部に出力データを得ることがで
きるという効果がある。さらに、この発明によれば、加
算、減算と同時に入力データと機能指定による機能判定
を行うように構成することにより、加算、減算の結果出
力から機能判定を行っている場合よりも、より高速に演
算処理することができるという効果がある。
[Effect of the Invention] As described above, according to the present invention, the addition / subtraction designating circuit for designating addition / subtraction based on the sign and the function designation, and the second bit constituted by a plurality of bits when the subtraction designation is output from the addition / subtraction designating circuit An input inverting circuit that inverts the input data of the first input data, the first input data composed of a plurality of bits, and the output of the input inverting circuit are added, and the subtraction designation is output from the addition / subtraction designation circuit. Adder for subtracting the output of the input inverting circuit from one input data, a subtracter for subtracting the first input data from the second input data, the sign, the function designation, and the first, And a function determination circuit that determines an arithmetic function based on the magnitude relationship between the second input data and either the output of the adder or the subtracter based on the determination result of the function determination circuit. Equipped with an output data selection circuit for selection, the arithmetic function judgment determined by the magnitude relation of input data, sign, etc. is performed separately by the addition / subtraction designation circuit and the function judgment circuit, and addition / subtraction can be performed without waiting for the function judgment result by the function judgment circuit. Therefore, there is an effect that the addition / subtraction operation can be performed at high speed. Further, according to the present invention, the function determination and the addition and the subtraction are performed in parallel and simultaneously, so that the control signal to be output to the output data selection circuit is generated before the result of the addition and the subtraction is output. Therefore, there is an effect that output data can be externally obtained as a calculation result at the same time as the outputs of the adder and the subtractor. Further, according to the present invention, the function determination is performed at the same time as the addition and the subtraction by the input data and the function specification, so that the function determination can be performed faster than when the function determination is performed from the output result of the addition and the subtraction. There is an effect that arithmetic processing can be performed.

【図面の簡単な説明】 第1図はこの発明の一実施例による高速加減算演算装置
の構成ブロック図,第2図は従来の加減算演算装置の構
成ブロック図である。 図において,(1)……加算器,(6)……機能判定回
路,(8)……入力反転回路,(10)……減算器,(1
1)……加減算指定回路,(12)……出力データ選択回
路である。 なお,各図中同一符号は同一又は相当部分を示す。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a configuration block diagram of a high-speed addition / subtraction arithmetic device according to an embodiment of the present invention, and FIG. 2 is a configuration block diagram of a conventional addition / subtraction arithmetic device. In the figure, (1) ... adder, (6) ... function determination circuit, (8) ... input inverting circuit, (10) ... subtractor, (1
1) ... Addition / subtraction designation circuit, (12) ... Output data selection circuit. In the drawings, the same reference numerals indicate the same or corresponding parts.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】符号及び機能指定に基づき加減算を指定す
る加減算指定回路と、 前記加減算指定回路から減算指定が出力されると複数の
ビットから構成される第2の入力データを反転する入力
反転回路と、 複数のビットから構成される第1の入力データと前記入
力反転回路の出力とを加算するとともに、前記加減算指
定回路から減算指定が出力されると前記第1の入力デー
タから前記入力反転回路の出力を減算する加算器と、 前記第2の入力データから前記第1の入力データを減算
する減算器と、 前記符号、前記機能指定、並びに前記第1、及び第2の
入力データの大小関係に基づき演算機能を判定する機能
判定回路と、 前記機能判定回路の判定結果に基づき前記加算器又は前
記減算器の出力のいずれかを選択する出力データ選択回
路と を備えたことを特徴とする高速加減算演算装置。
1. An addition / subtraction designating circuit for designating addition / subtraction based on sign and function designation, and an input inverting circuit for inverting second input data composed of a plurality of bits when a subtraction designation is output from the addition / subtraction designating circuit. And adding the first input data composed of a plurality of bits and the output of the input inverting circuit, and when the addition / subtraction designating circuit outputs the subtraction designation, the input inverting circuit is constructed from the first input data. And a subtracter that subtracts the first input data from the second input data, the sign, the function designation, and the magnitude relationship between the first and second input data. A function judgment circuit for judging the arithmetic function based on the above, and an output data selection circuit for selecting either the output of the adder or the subtracter based on the judgment result of the function judgment circuit. Fast subtraction arithmetic unit, characterized in that was e.
JP1166900A 1989-06-30 1989-06-30 High-speed adder / subtractor Expired - Lifetime JP2556904B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1166900A JP2556904B2 (en) 1989-06-30 1989-06-30 High-speed adder / subtractor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1166900A JP2556904B2 (en) 1989-06-30 1989-06-30 High-speed adder / subtractor

Publications (2)

Publication Number Publication Date
JPH0334016A JPH0334016A (en) 1991-02-14
JP2556904B2 true JP2556904B2 (en) 1996-11-27

Family

ID=15839715

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1166900A Expired - Lifetime JP2556904B2 (en) 1989-06-30 1989-06-30 High-speed adder / subtractor

Country Status (1)

Country Link
JP (1) JP2556904B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59201144A (en) * 1983-04-30 1984-11-14 Toshiba Corp Decimal arithmetic circuit
JPS6486238A (en) * 1987-09-29 1989-03-30 Nec Corp Subtracter

Also Published As

Publication number Publication date
JPH0334016A (en) 1991-02-14

Similar Documents

Publication Publication Date Title
JPH0479013B2 (en)
JP3304971B2 (en) Absolute value calculation circuit
JPS60140422A (en) Arithmetic processing unit
JPH0690668B2 (en) Fuzzy computing device
JP2556904B2 (en) High-speed adder / subtractor
JPH0346024A (en) Floating point computing element
JPS6225325A (en) Absolute value adding and subtracting circuit
JPH07118654B2 (en) Arithmetic unit
JPS62197868A (en) Linear approximation conversion circuit for pipeline construction
JP2653134B2 (en) Arithmetic processing unit
JP3530418B2 (en) Multiplier
JP2665067B2 (en) Floating point adder / subtracter
JPH0797312B2 (en) Arithmetic unit
JP2705162B2 (en) Arithmetic processing unit
JP2782827B2 (en) Comparison operation circuit
JPH04246722A (en) Adder/subtracter
JP3110072B2 (en) Pre-normalization circuit
JP2558721B2 (en) Input/Output Circuit
JPH0439725A (en) Arithmetic circuit
JPS6175926A (en) Hardware divider
JPH04148231A (en) Arithmetic circuit
JPH0689162A (en) Adding/subtracting device and adding/subtracting processing method
JPH052470A (en) Adder / subtractor
JPH04165423A (en) Digital comparing circuit
JPH1021054A (en) Arithmetic processor