JPH01280828A - Logical operation circuit - Google Patents

Logical operation circuit

Info

Publication number
JPH01280828A
JPH01280828A JP11024488A JP11024488A JPH01280828A JP H01280828 A JPH01280828 A JP H01280828A JP 11024488 A JP11024488 A JP 11024488A JP 11024488 A JP11024488 A JP 11024488A JP H01280828 A JPH01280828 A JP H01280828A
Authority
JP
Japan
Prior art keywords
circuit
carry
function
addition
data
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
JP11024488A
Other languages
Japanese (ja)
Other versions
JP2561639B2 (en
Inventor
Mikio Yamagishi
山岸 幹生
Masaru Shibukawa
渋川 勝
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63110244A priority Critical patent/JP2561639B2/en
Publication of JPH01280828A publication Critical patent/JPH01280828A/en
Application granted granted Critical
Publication of JP2561639B2 publication Critical patent/JP2561639B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To increase the working speed of a logical operation circuit and also to improve the processing ability of a digital processor including said logical operation circuit by performing addition processing to arithmetic data as well as minus-6 subtraction processing to said addition result in parallel to carry arithmetic processing performed by a carry generating part. CONSTITUTION:The minus-6 circuits -6A and -6B are set at the next stage of two pairs of addition circuits and selection circuits SEL1-5 are added to transmit selectively the output signals of both circuits -6A and -6B in accordance with group carry transmission functions and group carry generation functions received from the corresponding group function generating circuit GAFG. Thus the addition processing and the minus-6 subtraction processing can be carried out to the arithmetic data and to the result of said addition respectively in parallel to a series of carry arithmetic operations. As a result, the working speed of a logical operation circuit is increased and the processing ability is improved for a digital processor including the logical operation circuit.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、論理演算回路に関するもので、例えば、B
CD (Binary Coded  Decimal
 : 2進化10進)コードとされた演算データに対す
る加算機能を有し、かつ条件付加算(Conditio
nalSum)方式を採る算術論理演算ユニット等に利
用して特に有効な技術に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] This invention relates to a logic operation circuit, for example, B
CD (Binary Coded Decimal)
: It has an addition function for calculation data made into a binary coded decimal code, and it also has a conditional addition function.
The present invention relates to a technique that is particularly effective when used in arithmetic and logic units that employ the nalSum) method.

〔従来の技術〕[Conventional technology]

4ビットごとにBCDコード化された演算データに対す
る加減算機能を有する算術論理演算ユニットがある。ま
た、このような算術論理演算ユニットの演算処理を高速
化する一つの方法として、条件付加算方式がある。
There is an arithmetic and logic operation unit that has an addition/subtraction function for BCD-encoded operation data every 4 bits. Further, as one method for speeding up the arithmetic processing of such an arithmetic and logic unit, there is a conditional addition method.

条件付加算方式については、例えば、1972年6月2
0日、■産報発行の「電子計算機講座その4:電子計算
機の方式設計」第98頁〜第108頁に記載されている
Regarding the conditional addition method, for example, June 2, 1972
It is described on pages 98 to 108 of "Electronic Computer Course Part 4: Computer System Design" published by Sanpo on the 0th.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

第4図には、この発明に先立って本願発明者等が開発し
た算術論理演算ユニッ1−ALUの部分的なブロック図
が示されている。同図の算術論理演算ユニットALUは
、上記条件付加算方式を採るものであり、BCDコード
化された演算データに対する加減算機能を持つ。
FIG. 4 shows a partial block diagram of the arithmetic and logic unit 1-ALU developed by the inventors of the present invention prior to the present invention. The arithmetic and logic operation unit ALU in the figure employs the above-mentioned conditional addition method, and has an addition/subtraction function for BCD encoded operation data.

第4図において、算術論理演算ユニン)ALUに入力さ
れる演算データは、8バイトすなわち64ビット長とさ
れ、それぞれ4ビットごとに群分割される。演算データ
は、算術論理演算ユニットALUが所定の演算モードと
されるとき、各群を1桁としたBCDコードとされる。
In FIG. 4, the operation data input to the arithmetic and logic operation unit (ALU) has a length of 8 bytes, that is, 64 bits, and is divided into groups of 4 bits each. The calculation data is a BCD code with each group having one digit when the arithmetic logic unit ALU is set to a predetermined calculation mode.

算術論理演算ユニットALUは、演算データの各群に対
応して設けられる16個の単位加算回路を含む。
The arithmetic and logic operation unit ALU includes 16 unit adder circuits provided corresponding to each group of operation data.

算術論理演算ユニッ)ALUの各単位加算回路は、第4
図に例示的に示されるように、対応する内部演算データ
xO〜x3及びyO〜y3をもとにキャリー伝播関数p
O〜p3及びキャリー発生関数gO〜g3を形成する関
数発生回路AFGをそれぞれ含む、これらのキャリー伝
播関数及びキャリー発生関数は、4個の排他的論理和回
路からなる半加算回路HAと、その入力キャリー信号が
論理“1”又は論理“01にそれぞれ固定されるキャリ
ー発生回路CGA及びCGBならびに群キャリー伝播関
数PO3及び群キャリー発生関数G03を形成する群関
数発生回路GAFGに供給される。このうち、関数発生
回路AFGと半加算回路HA及びキャリー発生回路CG
Aは、4個の排他的論理和回路からなる全加算回路FA
Aとともに、第1の加算回路を構成する。また、関数発
生回路AFGと半加算回路HA及びキャリー発生回路C
GBは、同様に4個の排他的論理和回路からなる全加算
回路FABとともに、第2の加算回路を構成する。全加
算回路FAA及びFABの出力信号は、選択回路5EL
6において、群キャリー発生回路GCG1から出力され
るキャリー信号C04に従って選択的に有効とされ、内
部出力データsQ〜33とされる。
Each unit addition circuit of the ALU (arithmetic and logic operation unit)
As exemplarily shown in the figure, the carry propagation function p is based on the corresponding internal operation data xO~x3 and yO~y3.
These carry propagation functions and carry generation functions, which include function generation circuits AFG forming carry generation functions gO to g3 and O to p3, respectively, are generated by a half adder circuit HA consisting of four exclusive OR circuits and its input. The carry signal is supplied to carry generation circuits CGA and CGB fixed at logic "1" or logic "01, respectively, and group function generation circuit GAFG forming group carry propagation function PO3 and group carry generation function G03. Among these, Function generation circuit AFG, half adder circuit HA, and carry generation circuit CG
A is a full adder circuit FA consisting of four exclusive OR circuits.
Together with A, it constitutes a first addition circuit. In addition, a function generation circuit AFG, a half adder circuit HA, and a carry generation circuit C
GB constitutes a second adder circuit together with a full adder circuit FAB, which is also made up of four exclusive OR circuits. The output signals of the full adder circuits FAA and FAB are sent to the selection circuit 5EL.
At step 6, it is selectively enabled according to the carry signal C04 output from the group carry generation circuit GCG1, and is set as internal output data sQ~33.

つまり、この算術論理演算ユニットALUでは、2組の
加算回路が設けられることで、演算データX0−X3及
びYO−Y3に対する加算処理が入力キャリー信号すな
わち前段の群の出力キャリー信号CO4のレベルに関係
なく行われ、このキャリー信号CO4が確定した時点で
そのレベルに対応した演算結果が選択される。これによ
り、群キャリー発生回路GCG1等によるキャリー演算
処理と加算回路による加算処理を並行して行うことがで
きるため、算術論理演算ユニットALUの演算処理が高
速化されるものとなる。
In other words, in this arithmetic and logic operation unit ALU, by providing two sets of adder circuits, the addition processing for the operation data X0-X3 and YO-Y3 is related to the level of the input carry signal, that is, the output carry signal CO4 of the previous group. When the carry signal CO4 is determined, the calculation result corresponding to the level is selected. As a result, the carry calculation process by the group carry generation circuit GCG1 and the like and the addition process by the adder circuit can be performed in parallel, so that the calculation process of the arithmetic logic unit ALU can be speeded up.

一方、群間数発生回路0AFCによって形成された群キ
ャリー伝播関数PO3及び群キャリー発生関数GO3は
、対応する群キャリー発生回路GCCIに供給される。
On the other hand, the group carry propagation function PO3 and the group carry generation function GO3 formed by the inter-group number generation circuit 0AFC are supplied to the corresponding group carry generation circuit GCCI.

算術論理演算ユニッ)ALUは、4個の群キャリー発生
回路GC01〜GCG4と、1個のユニットキャリー発
生回路UCGとを含む0群キャリー発生回路GCGI−
GCG4には、対応する4組の単位加算回路の上記群間
数発生回路GAFGから、群キャリー伝播関数P03〜
P15ないしPO51〜P63ならびに群キャリー発生
関数GO3〜G15ないし051〜063がそれぞれ供
給される6群キャリー発生回路GCG1〜GCG4は、
これらの群キャリー伝播関数及び群キャリー発生関数を
もとに、各群の出力キャリー信号GO4ないしC48等
をそれぞれ形成して次段の群キャリー発生回路に供給す
るとともに、ユニットキャリー伝播関数UP15ないし
UP63ならびにユニットキャリー発生関数UG15な
いしUG63をそれぞれ形成してユニットキャリー発生
回路UCGに供給する。ユニットキャリー発生回路UC
Gは、上記ユニットキャリー伝播関数及びユニットキャ
リー発生関数をもとに、算術論理演算ユニットALUと
して出力キャリー信号Coutを形成する。
The arithmetic and logic operation unit (ALU) includes a 0 group carry generation circuit GCGI- which includes four group carry generation circuits GC01 to GCG4 and one unit carry generation circuit UCG.
GCG4 receives group carry propagation functions P03 to P03 from the intergroup number generation circuit GAFG of the four corresponding unit adder circuits.
Six group carry generation circuits GCG1 to GCG4 are supplied with P15 to PO51 to P63 and group carry generation functions GO3 to G15 to 051 to 063, respectively.
Based on these group carry propagation functions and group carry generation functions, output carry signals GO4 to C48, etc. of each group are formed and supplied to the next stage group carry generation circuit, and unit carry propagation functions UP15 to UP63 are formed. In addition, unit carry generation functions UG15 to UG63 are formed and supplied to the unit carry generation circuit UCG. Unit carry generation circuit UC
G forms an output carry signal Cout as an arithmetic and logic operation unit ALU based on the unit carry propagation function and unit carry generation function.

上記関数発生回路AFG、群関数群生数発生回路C及び
ユニットキャリー発生回路UCGにおいて、各キャリー
伝播関数及びキャリー発生関数。
Each carry propagation function and carry generation function in the function generation circuit AFG, the group function group raw number generation circuit C, and the unit carry generation circuit UCG.

群キャリー伝播関数及び群キャリー発生関数ならびにユ
ニットキャリー伝播関数及びユニットキャリー発生関数
は、周知のように、それぞれ1段又は2段の論理ゲート
回路を介して形成される。これにより、算術論理演算ユ
ニフ1−ALUのキャリー発生部はいわゆるキャリール
ックアヘッド方式とされ、各出力キャリー信号は、演算
データが64ビット長とされるにもかかわらず、比較的
短時間で形成されるものとなる。
As is well known, the group carry propagation function, the group carry generation function, and the unit carry propagation function and unit carry generation function are each formed through one or two stages of logic gate circuits. As a result, the carry generation section of the arithmetic logic unit 1-ALU is of the so-called carry look-ahead type, and each output carry signal is formed in a relatively short time even though the operation data is 64 bits long. become something that

ところが、上記算術論理演算ユニッ)ALUには次のよ
うな問題点があることが、本願発明者等によって明らか
となった。すなわち、算術論理演算ユニットALUは、
前述のように、演算データXO〜X3及びYO−Y3が
BCDコードとされるとき、上記加算回路の形態を変化
させることなく10進加算演算を行う機能を持つ、この
ため、関数発生回路AFGの前段には、一方の演算デー
タYO−Y3に6を加算するプラス6回路+6と、算術
論理演算ユニン1−ALUの演算モードが10進モード
とされ内部制御信号bedがハイレベルとされるとき上
記プラス6回路+6の出力信号を選択的に内部演算デー
タyo=y3として伝達する選択回路5EL2が設けら
れる。また、上記選択回路5EL6の後段には、単位加
算回路の演算結果すなわち内部出力データ5o−s3か
ら6を減算するマイナス6回路−6と、上記内部制御信
号bedがハイレベルとされかつ対応する群の出力キャ
リー信号Co u t fJ<論理@0′とされるとき
上記マイナス6回路−6の出力信号を選択的に出力デー
タSO〜S3として伝達する選択回路5EL7とが設け
られる。
However, the inventors of the present invention have discovered that the above-mentioned arithmetic and logic unit (ALU) has the following problems. That is, the arithmetic logic unit ALU is
As mentioned above, when the calculation data XO to X3 and YO-Y3 are made into BCD codes, the function generating circuit AFG has the function of performing decimal addition calculation without changing the form of the addition circuit. At the front stage, there is a plus 6 circuit +6 that adds 6 to one calculation data YO-Y3, and when the calculation mode of the arithmetic logic unit 1-ALU is set to decimal mode and the internal control signal bed is set to high level, the above A selection circuit 5EL2 is provided that selectively transmits the output signal of the +6 circuit +6 as internal calculation data yo=y3. Further, at the subsequent stage of the selection circuit 5EL6, there is a minus 6 circuit-6 for subtracting 6 from the calculation result of the unit addition circuit, that is, the internal output data 5o-s3, and a group in which the internal control signal bed is set to a high level and corresponds to the minus 6 circuit-6. A selection circuit 5EL7 is provided which selectively transmits the output signal of the minus 6 circuit-6 as output data SO to S3 when the output carry signal CoutfJ<logic@0'.

ここで、出力キャリー信号CO4は、前述のように、対
応する群キャリー発生回路GCG1により形成され、そ
のレベルは、前段の群キャリー発生回路GC02〜GC
G4の出力キャリー信号C16,C32及びC48がす
べて確定された後に確定される。このため、上記出力キ
ャリー信号CO4を形成するためのキャリー演算処理と
マイナス6回路−6による6減算処理とが算術論理演算
ユニットALUのクリティカルバスとなり、その高速化
が制限されるものである。
Here, as described above, the output carry signal CO4 is formed by the corresponding group carry generation circuit GCG1, and its level is the same as that of the previous stage group carry generation circuits GC02 to GC.
It is determined after all output carry signals C16, C32 and C48 of G4 are determined. For this reason, the carry arithmetic processing for forming the output carry signal CO4 and the 6-subtraction processing by the minus 6 circuit-6 become critical buses of the arithmetic and logic operation unit ALU, and their speedup is limited.

この発明の目的は、演算処理の高速化を図った論理演算
回路を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a logical arithmetic circuit that achieves high-speed arithmetic processing.

この発明の前記ならびにその他の目的と新規な特徴は、
本明細書の記述及び添付図面から明らかになるであろう
The above and other objects and novel features of this invention include:
It will become clear from the description of this specification and the accompanying drawings.

〔課題を解決するための手段〕[Means to solve the problem]

本願において開示される発明のうち代表的なものの欄要
を簡単に説明すれば、下記の通りである。
A brief summary of typical inventions disclosed in this application is as follows.

すなわち、BCDコード化された演算データに対する加
算機能を有し条件付加算方式を採る論理演算回路におい
て、2組設けられる加算回路の後段にそれぞれマイナス
6回路を設け、これらのマイナス6回路の出力信号を対
応する群間数発生回路から出力される群キャリー伝播関
数及び群キャリー発生関数に従って選択的に伝達する選
択回路を設けるものである。
That is, in a logical operation circuit that has an addition function for BCD-coded operation data and uses a conditional addition method, minus 6 circuits are provided at the rear stage of two sets of addition circuits, and the output signals of these minus 6 circuits are A selection circuit is provided for selectively transmitting a group carry propagation function and a group carry generation function outputted from a corresponding intergroup number generation circuit.

〔作 用〕[For production]

上記した手段によれば、演算データに対する加算処理及
びその演算結果に対する6減算処理を、キャリー発生部
によるキャリー演算処理と並行して行うことができる。
According to the above-mentioned means, the addition process to the calculation data and the 6-subtraction process to the calculation result can be performed in parallel with the carry calculation process by the carry generation section.

このため、このような論理演算回路の演算処理を高速化
することができ、また論理演算回路を含むディジタル処
理装置の処理能力を高めることができる。
Therefore, the processing speed of such a logical operation circuit can be increased, and the processing capacity of a digital processing device including the logical operation circuit can be increased.

〔実施例〕〔Example〕

第1図には、この発明が適用された箕術鍮理演算ユニッ
トALUの一実施例のブロック図が示されている。また
、第2図及び第3図には、第1図の算術論理演算ユニフ
)ALUの関数発生回路AFG、キャリー発生回路CG
AとCGB、半加算回路HA、全加算回路FAAとFA
B、マイナス6回路−6Aと一6Bならびに群間数発生
回路GAFGの一実施例の回路図が示されている。これ
らの図に従って、この実施例の算術論理演算ユニッ)A
LUの構成と動作の概要を説明する。
FIG. 1 shows a block diagram of an embodiment of a mechanical calculation unit ALU to which the present invention is applied. Furthermore, in FIGS. 2 and 3, the function generation circuit AFG and the carry generation circuit CG of the arithmetic and logic operation unit (ALU) in FIG. 1 are shown.
A and CGB, half adder circuit HA, full adder circuit FAA and FA
B, a circuit diagram of an embodiment of minus 6 circuits -6A and -6B and intergroup number generating circuit GAFG is shown. According to these figures, the arithmetic and logic operation unit of this embodiment)A
An overview of the configuration and operation of the LU will be explained.

この実施例の算術論理演算ユニッ)ALUは、特に制限
されないが、1チツプ型のマイクロコンピュータに内蔵
され、後述するように、4ピントの演算データに対応し
て設けられる16組の単位加算回路を含む。第1図には
、このうち最上位の演算データXO〜X3及びYO〜Y
3に対応して設けられる1組の単位加算回路が、例示的
に示されている。以下の説明は、この単位加算回路を例
として行うため、演算データX4〜X63及びY4〜Y
63に対応して設けられる他の単位加算回路については
、類推されたい、なお、第F図の各ブロックを構成する
回路素子は、算術論理演算ユニッ)ALUの図示されな
い単位加算回路やマイクロコンビエータの図示されない
ブロックを構成する回路素子とともに、特に制限されな
いが、単結晶シリコンのような1個の半導体基板上にお
いて形成される。
The arithmetic and logic operation unit (ALU) of this embodiment is, although not particularly limited, built into a one-chip microcomputer, and as described later, has 16 sets of unit addition circuits provided corresponding to 4-pin operation data. include. In FIG. 1, the highest calculation data XO to X3 and YO to Y are shown.
A set of unit adder circuits provided corresponding to No. 3 is exemplarily shown. The following explanation uses this unit addition circuit as an example, so calculation data X4 to X63 and Y4 to Y
As for the other unit adder circuits provided corresponding to 63, please make an analogy.The circuit elements constituting each block in FIG. It is formed on a single semiconductor substrate such as, but not limited to, single-crystal silicon along with circuit elements constituting blocks (not shown).

この実施例の算術論理演算ユニットALUは、特に制限
されないが、64ビットを単位として、2進論理加算を
基本とする各種の演算処理を行う。
The arithmetic and logic operation unit ALU of this embodiment performs various arithmetic operations based on binary logic addition using 64 bits as a unit, although this is not particularly limited.

算術論理演算ユニ7)ALUには、図示されない2組の
内部バスを介して、演算データXO〜X63(第1の演
算データ)及びYO〜Y63(第2の演算データ)が供
給され、また図示されないキャリーレジスタ等から入力
キャリー信号Ctnが供給される。この実施例において
、算術論理演算ユニ7 )ALUの各単位加算回路は、
条件付加算方式を採り、その出力データが対応する群の
出力キャリー信号に従って選択的に有効とされる2組の
加算回路を持つ、また、所定の演算モードにおいて、4
ビットごとにBCDコード化される演算データに対し、
10進加減算処理を行う機能を持つ、さらに、算術論理
演算ユニットALUは、4組の単位加算回路に対応して
設けられる群キャリー発生回路GC01〜GCG4と、
すべての単位加算回路に対応して設けられるユニットキ
ャリー発生回路UCGとを含む、これらの群キャリー発
生回路及びユニットキャリー発生回路は、特に制限され
ないが、キャリールックアヘッド方式とされる。その結
果、この実施例の算術論理演算ユニッ)ALUは、各単
位加算回路の加算処理が高速化されるのに加えて、これ
らの加算回路による加算処理と上記群キャリー発生回路
及びユニットキャリー発生回路によるキャリー発生処理
が並行して行われることで、その演算処理が高速化され
るとともに、出力キャリー信号Coutの形成に要する
時間が短縮される。
The arithmetic and logic operation unit 7) ALU is supplied with operation data XO to X63 (first operation data) and YO to Y63 (second operation data) via two sets of internal buses not shown. An input carry signal Ctn is supplied from a carry register or the like that is not used. In this embodiment, each unit addition circuit of the arithmetic logic unit 7) ALU is
It adopts a conditional addition method, and has two sets of adder circuits whose output data is selectively enabled according to the output carry signal of the corresponding group.
For calculation data that is BCD encoded bit by bit,
Further, the arithmetic and logic unit ALU, which has a function of performing decimal addition and subtraction processing, includes group carry generation circuits GC01 to GCG4 provided corresponding to the four unit adder circuits,
These group carry generation circuits and unit carry generation circuits, including the unit carry generation circuit UCG provided corresponding to all the unit adder circuits, are of a carry look-ahead type, although not particularly limited thereto. As a result, the arithmetic and logic operation unit (ALU) of this embodiment not only speeds up the addition processing of each unit adder circuit, but also speeds up the addition processing by these adder circuits and the group carry generation circuit and unit carry generation circuit. By performing the carry generation processing in parallel, the calculation processing speed is increased and the time required to form the output carry signal Cout is shortened.

第1図において、4ビットずつ群分割された演算データ
XO〜X3は、特に制限されないが、算術論理演算ユニ
ットALUの対応する単位加算回路の補数発生回路CO
Mに供給されるとともに、選択回路5ELL  (第1
の選択回路)の一方の入力端子に供給される。また、同
様に4ビー/ )ずつ分割された演算データYO−Y3
は、特に制限されないが、算術論理演算ユニフ、) A
 L Uの対応する単位加算回路のプラス6回路+6に
供給されるとともに、選択回路5EL2 (第2の選択
回路)の一方の入力端子に供給される。入力キャリー信
号Cinは、後述するように、群キャリー発生回路GC
G4及びユニットキャリー発生回路UCGのキャリー入
力端子に供給される。
In FIG. 1, the arithmetic data XO to X3 divided into groups of 4 bits are, but not particularly limited to, the complement generation circuit CO of the corresponding unit adder circuit of the arithmetic and logic unit ALU.
M is supplied to selection circuit 5ELL (first
selection circuit). In addition, the calculation data YO-Y3 is similarly divided into 4 be/ ) units.
is an arithmetic and logical operation (unif, but not limited to) A
It is supplied to the plus 6 circuit +6 of the corresponding unit adder circuit of LU, and is also supplied to one input terminal of the selection circuit 5EL2 (second selection circuit). The input carry signal Cin is supplied to the group carry generation circuit GC as described later.
G4 and the carry input terminal of the unit carry generation circuit UCG.

補数発生回路COMは、演算データX0−X3をもとに
、その2の補数又は10の補数を選択的に形成する。補
数発生回路COMの出力信号は、上記選択回路SEL 
1の他方の入力端子に供給される9選択回路5EL1に
は、特に制限されないが、図示されない演算制御ユニッ
トから、内部制御信号comが供給される。この内部制
御信号Comは、特に制限されないが、算術論理演算ユ
ニットALUにおいて減算処理が行われるとき、選択的
にハイレベルとされる。
The complement generation circuit COM selectively forms a two's complement or a ten's complement based on the calculation data X0-X3. The output signal of the complement generation circuit COM is sent to the selection circuit SEL.
Although not particularly limited, an internal control signal com is supplied to the 9 selection circuit 5EL1 supplied to the other input terminal of 9 selection circuit 5EL1 from an arithmetic control unit (not shown). Although not particularly limited, this internal control signal Com is selectively set to a high level when a subtraction process is performed in the arithmetic logic unit ALU.

選択回路5EL1は、上記内部制御信号comがロウレ
ベルとされるとき、演算データXO〜X3を選択し、内
部演算データxO−x3(第1の内部演算データ)とし
て関数発生回路AFGに伝達する。これにより、加算回
路には演算データXO〜X3がそのまま伝達され、これ
を加数とする加算処理が行われる。一方、選択回路SE
L 1は、上記内部制御信号comがハイレベルとされ
るとき、補数発生回路COMの出力信号を選択し、上記
内部演算データxO〜x3として関数発生回路AFGに
伝達する。これにより、加算回路には演算データXO〜
X3の補数が伝達され、これを減数とする減算処理が行
われる。
When the internal control signal com is set to a low level, the selection circuit 5EL1 selects the calculation data XO-X3 and transmits it to the function generation circuit AFG as internal calculation data xO-x3 (first internal calculation data). As a result, the calculation data XO to X3 are transmitted as they are to the adder circuit, and an addition process is performed using the data as an addend. On the other hand, selection circuit SE
L1 selects the output signal of the complement generation circuit COM when the internal control signal com is set to high level, and transmits it to the function generation circuit AFG as the internal calculation data xO to x3. As a result, the adder circuit has the calculation data XO~
The complement of X3 is transmitted, and subtraction processing is performed using this as the subtraction.

プラス6回路+6は、特に制限されないが、演算データ
YO〜Y3に対して、6を加算する。プラス6回路+6
の出力信号は、上記選択回路5EL2の他方の入力端子
に供給される0選択回路5EL2には、特に制限されな
いが、図示されない演算制御ユニットから、内部制御信
号bedが供給される。この内部制御信号bedは、特
に制限されないが、演算データXO〜X3及びYO−Y
3がともにBCDコードとされ算術論理演算ユニッ)A
LUにおいて10進加減算処理が行われるとき、選択的
にハイレベルとされる。
The plus 6 circuit +6 adds 6 to the calculation data YO to Y3, although this is not particularly limited. plus 6 circuit +6
The output signal is supplied to the other input terminal of the selection circuit 5EL2.The 0 selection circuit 5EL2 is supplied with an internal control signal bed from an arithmetic control unit (not shown), although this is not particularly limited. Although not particularly limited, this internal control signal bed can be used for calculation data XO to X3 and YO-Y.
3 are both BCD code and arithmetic logic operation unit) A
When decimal addition/subtraction processing is performed in the LU, it is selectively set to high level.

選択回路5EL2は、上記内部制御信号bedがロウレ
ベルとされるとき、演算データYO〜Y3を選択し、内
部演算データyO〜y3(第2の内部演算データ)とし
て関数発生回路AFGに伝達する。これにより、加算回
路には演算データYO〜Y3がそのまま伝達され、これ
を被加数又は被減数とする2進加減算処理が行われる。
When the internal control signal bed is set to a low level, the selection circuit 5EL2 selects the calculation data YO to Y3 and transmits it to the function generation circuit AFG as internal calculation data yO to y3 (second internal calculation data). As a result, the calculation data YO to Y3 are transmitted as they are to the adder circuit, and binary addition and subtraction processing is performed using the data as an addend or a minuend.

一方、選択回路5EL2は、上記内部制御信号bedが
ハイレベルとされるとき、プラス6回路+6の出力信号
を選択し、上記内部演算データyO=y3として関数発
生回路AFGに伝達する。これにより、加算回路には演
算データYO〜Y3に6を加算した結果が伝達され、こ
れを被加数又は被減数とする10進加減算処理が行われ
る。
On the other hand, when the internal control signal bed is at a high level, the selection circuit 5EL2 selects the output signal of the +6 circuit +6 and transmits it to the function generation circuit AFG as the internal calculation data yO=y3. As a result, the result of adding 6 to the calculation data YO to Y3 is transmitted to the adding circuit, and decimal addition/subtraction processing is performed using this as the summand or subtractive.

関数発注回路AFGは、特に制限されないが、第2図に
示されるように、上記内部演算データXO〜x3と対応
する上記内部演算データyO−73をそれぞれ受ける4
fl!Jのオアゲート回路及びアンドゲート回路を含む
、各オアゲート回路の出力信号は、それぞれキャリー伝
播関数pO−p3とされ、各アンドゲート回路の出力信
号は、それぞれキャリー発生関数gO−g3とされる。
Although not particularly limited, the function ordering circuit AFG receives the internal calculation data yO-73 corresponding to the internal calculation data XO to x3, as shown in FIG.
Fl! The output signal of each OR gate circuit including the J OR gate circuit and AND gate circuit is set to a carry propagation function pO-p3, and the output signal of each AND gate circuit is set to a carry generation function gO-g3.

その結果、キャリー伝播関数po−p3は、それぞれ、
po−xo+yO p l = X 1 + )’ 1 p2冨X2+312 p3虐x3+73 なる論理条件で形成され、またキャリー発生関数gO〜
g3は、それぞれ、 go−xO−yO gl−xi・yl g2−X2・y2 g3−X3・y3 なる論理条件で形成されるものとなる。
As a result, the carry propagation functions po-p3 are, respectively,
po-xo+yO p l =
g3 is formed under the following logical conditions: go-xO-yO gl-xi.yl g2-X2.y2 g3-X3.y3.

キャリー伝播関数pO〜p3及びキャリー発生開数gO
−g3は、半加算回路HAとキャリー発生回路CGA 
(第1のキャリー発生回路)及びCGB(第2のキャリ
ー発生回路ンならびに群間数発生回路GAFGに供給さ
れる。
Carry propagation function pO~p3 and carry generation open number gO
-g3 is the half adder circuit HA and the carry generation circuit CGA
(first carry generation circuit), CGB (second carry generation circuit) and intergroup number generation circuit GAFG.

半加算回路HAは、特に制限されないが、第2図に示さ
れるように、上記キャリー伝播関数pO〜p3と対応す
るキャリー発生関数gO−g3をそれぞれ受ける4個の
排他的論理和回路を含む。
Although not particularly limited, the half adder circuit HA includes four exclusive OR circuits each receiving the carry propagation functions pO to p3 and the corresponding carry generation functions gO to g3, as shown in FIG.

これらの排他的論理和回路の出力信号は、それぞれ半加
算データshQ〜sh3とされる。その結果、半加算デ
ータ5hO−sh3は、それぞれ、shO=p069g
O = (xO+yO)@ (xO・yO)=xQ■y。
The output signals of these exclusive OR circuits are half addition data shQ to sh3, respectively. As a result, the half-added data 5hO-sh3 are shO=p069g, respectively.
O = (xO+yO) @ (xO・yO)=xQ■y.

shl=plegl = (xl+yl)O+ (xi−yl)=xl■yl sh2=p263g2 =(x2+y2)の(X2・y2) =x2$y2 sh3=p3■g3 = (x3+y3) e(x3・y3)=X369y3 なる論理条件で形成されるものとなる。これらの半加算
データshO〜sh3は、内部演算データxO〜x3及
びyO〜y3を直接対応する排他的論理和回路に入力し
た結果にイ1ならない、つまり、この実施例の算術論理
演算ユニッ1−ALUでは、後述する説明から明らかな
ように、半加算回路HAとキャリー発生回路CGA及び
CGBならびに群間数発生回路GAFGによる演算処理
を、すべて初段に設けられた関数発生回路AFGの出力
信号すなわちキャリー伝播関数pO〜p3及びキャリー
発生開数gO−g3をもとに行うことで、回路構成の簡
素化が図られる。半加算データshQ〜Sh3は、全加
算回路FAA($1の全加算回路)及びFAB (第2
の全加算回路)の一方の入力信号として供給される。
shl=plegl = (xl+yl)O+ (xi-yl)=xl■yl sh2=p263g2 = (X2・y2) of (x2+y2) =x2$y2 sh3=p3■g3 = (x3+y3) e(x3・y3)= It is formed under the logical condition of X369y3. These half addition data shO to sh3 are not equal to the result of directly inputting the internal operation data xO to x3 and yO to y3 into the corresponding exclusive OR circuit, that is, the arithmetic and logic operation unit 1- In the ALU, as will be clear from the explanation that will be given later, the arithmetic processing by the half adder circuit HA, the carry generation circuits CGA and CGB, and the group number generation circuit GAFG is performed by the output signal of the function generation circuit AFG provided at the first stage, that is, the carry. By performing this based on the propagation functions pO to p3 and the carry generation open number gO to g3, the circuit configuration can be simplified. Half addition data shQ to Sh3 are sent to full addition circuits FAA ($1 full addition circuit) and FAB (second
is supplied as one input signal of the full adder circuit).

次に、キャリー発生回路CG Aは、特に制限されない
が、第2図に示されるように、キャリー伝播関数p1〜
p3及びキャリー発生関数gl−g3を所定の組み合わ
せで受けろ複数のアンドゲート回路及びオアゲート回路
を含む。このキャリー発生回路CGAのキャリー入力端
子Cは、回路の電源電圧に結合される。これにより、キ
ャリー発生回路CGAに対する入力キャリー信号は、論
理″1”に固定される。第2図から明らかなように、キ
ャリー発生回路CGAから出力されるキャリー信号Ca
0=ca3は、それぞれ、 Ca0−g1+pl・g2+ pl・p2・g3+pl−p2・p3 cal=g2+p2・g3+p2−p3ca2=g3+
p2・g3 ca3冨c−1 となり、対応する入力キャリー信号が論理“l”とされ
るときの各ピントの全加算用キャリー信号に他ならない
、これらのキャリー信号caQxca3は、全加算口&
!gFAAの他方の入力信号として供給される。
Next, the carry generation circuit CG A generates carry propagation functions p1 to CG as shown in FIG. 2, although not particularly limited.
It includes a plurality of AND gate circuits and OR gate circuits that receive p3 and carry generation function gl-g3 in a predetermined combination. A carry input terminal C of this carry generation circuit CGA is coupled to the power supply voltage of the circuit. As a result, the input carry signal to the carry generation circuit CGA is fixed at logic "1". As is clear from FIG. 2, the carry signal Ca output from the carry generation circuit CGA
0=ca3 is Ca0-g1+pl・g2+ pl・p2・g3+pl-p2・p3 cal=g2+p2・g3+p2-p3ca2=g3+
These carry signals caQxca3 are nothing but carry signals for full addition of each pin when the corresponding input carry signal is set to logic "L".
! Provided as the other input signal of gFAA.

同様に、キャリー発生回路CGBは、特に制限されない
が、第2図に示されるように、キャリー伝播関数pO〜
p3及びキャリー発生関数gO〜g3を所定の組み合わ
せで受ける複数のアンドゲート回路及びオアゲート回路
を含む。このキャリー発生回路CGBのキャリー入力端
子Cは、回路の接地電位に結合される。これにより、キ
ャリー発生回路CGHに対する人力キャリー信号は、論
理“0”に固定される。第2図から明らかなように、キ
ャリー発生回路CGBから出力されるキャリー信号cb
O〜cb3は、それぞれ、cbo=gl+pl・g2+
pl−p2・g3cbl=g2+p2・g3 cb2=g3 cb3露C工O となり、対応する入力キャリー信号が論理“0゜とされ
るときの各ビットの全加算用キャリー信号に他ならない
、これらのキャリー信号(bQ=cb3は、全加算回路
FABの他方の入力信号としてイ共給される。
Similarly, the carry generation circuit CGB has a carry propagation function pO~ as shown in FIG. 2, although it is not particularly limited.
It includes a plurality of AND gate circuits and OR gate circuits that receive p3 and carry generation functions gO to g3 in predetermined combinations. A carry input terminal C of this carry generation circuit CGB is coupled to the ground potential of the circuit. As a result, the manual carry signal for the carry generation circuit CGH is fixed at logic "0". As is clear from FIG. 2, the carry signal cb output from the carry generation circuit CGB
O~cb3 are respectively cbo=gl+pl・g2+
These carry signals are nothing but carry signals for total addition of each bit when the corresponding input carry signal is set to logic "0°" (bQ=cb3 is co-supplied as the other input signal of the full adder circuit FAB.

群間数発生回路GAFGは、特に制限されないが、第3
図に示されるように、上記キャリー伝播関数pO〜p3
及びキャリー発生関数gO〜g3を所定の組み合わせで
受ける複数のアンドゲート回路及びオアゲート回路を含
む、第3図から明らかなように、群間数発生回路0AF
Cの出力信号すなわち群キャリー伝播関数PO3及び群
キャリー発生関数GO3は、それぞれ、 PO3=pO−pi・p2・p3 GO3=gO+−po  ・ gt+po−pi  ・
 g2+pQ  ・pl ・ p2 ・ g3なる所定
の論理条件で形成される。
The intergroup number generation circuit GAFG is not particularly limited, but the third
As shown in the figure, the carry propagation function pO~p3
As is clear from FIG. 3, the intergroup number generation circuit 0AF includes a plurality of AND gate circuits and OR gate circuits that receive carry generation functions gO to g3 in predetermined combinations.
The output signals of C, that is, the group carry propagation function PO3 and the group carry generation function GO3 are as follows, respectively: PO3=pO-pi・p2・p3 GO3=gO+-po・gt+po-pi・
It is formed under a predetermined logical condition of g2+pQ.pl.p2.g3.

全加算回路FAAは、特に制限されないが、第2図に示
されるように、上記半加算回路HAから出力される半加
算データshQ〜sh3と上記キャリー発生回路CGA
から出力される対応するキャリー信号caO〜ca3を
それぞれ受ける4f囚の排他的論理和回路を含む、これ
らの排他的論理和回路の出力信号は、それぞれ内部加算
データSa Q −s a 3とされる。これにより、
全加算回路FAAの出力信号すなわち内部加算データs
aQ〜sa3は、それぞれ、 5aO=shO■Ca0 sal=shlecal sa2=sh2■ca2 sa3=sh3■ca3 となり、入力キャリー信号Cが論理“1”とされるとき
の各ビットの加算結果に他ならない、つまり、この実施
例において、全加算回路FAAは、上記関数発生回路A
FG、半加算回路HA及びキャリー発生回路CGAとと
もに、第1の加算回路を構成するものである。この第1
の加算回路の出力信号すなわち内部加算データsaQ〜
sa3は、マイナス6回路−6A(第1のマイナス6回
路)に供給され、さらに選択回路5EL3 (第3の選
択回路)の一方の入力端子に供給される。
The full adder circuit FAA is not particularly limited, but as shown in FIG.
The output signals of these exclusive OR circuits, including 4f exclusive OR circuits each receiving the corresponding carry signals caO to ca3 outputted from the terminals, are respectively set as internal addition data SaQ-sa3. . This results in
The output signal of the full adder circuit FAA, that is, the internal addition data s
aQ to sa3 are respectively 5aO=shOCa0 sal=shlecal sa2=sh2ca2 sa3=sh3ca3, which are nothing but the addition results of each bit when the input carry signal C is set to logic "1". That is, in this embodiment, the full adder circuit FAA is the function generating circuit A
Together with FG, half adder circuit HA, and carry generation circuit CGA, it constitutes a first adder circuit. This first
The output signal of the adder circuit, that is, the internal addition data saQ~
sa3 is supplied to minus 6 circuit-6A (first minus 6 circuit) and further supplied to one input terminal of selection circuit 5EL3 (third selection circuit).

同様に、全加算回路FABは、特に制限されないが、第
2図に示されるように、上記半加算回路HAから出力さ
れる半加算データshQ〜sh3と上記キャリー発生回
路CGBから出力される対応するキャリー信号CbO−
cb3をそれぞれ受ける4個の排他的論理和回路を含む
。これらの排他的論理和回路の出力信号は、それぞれ内
部加算データsbo〜sb3とされる。これにより、全
加算回路FABの出力13号すなわち内部加算データs
bQ〜sb3は、それぞれ、 5bQ=shQ■cbO sbl=shl■cbl sb2−sh2ecb2 sb3=sh31EE)cb3 となり、入力キャリー信号Cが論理“0”とされるとき
の各ビットの加算結果に他ならない、つまり、この実施
例において、全加算回路FABは、上記関数発生回路A
FG、半加算回路HA及びキャリー発生回路CGBとと
もに、第2の加算回路を構成するものである。この第2
の加算回路の出力信号すなわち内部加算データ5bOx
sb3は、マイナス6回路−6B(第2のマイナス6回
路)に供給され、さらに選択回路5EL4 (第4の選
択回路)の一方の入力端子に供給される。
Similarly, the full adder circuit FAB can be used, although not particularly limited, as shown in FIG. Carry signal CbO-
It includes four exclusive OR circuits each receiving cb3. The output signals of these exclusive OR circuits are used as internal addition data sbo to sb3, respectively. As a result, output No. 13 of the full adder circuit FAB, that is, internal addition data s
bQ to sb3 are respectively 5bQ=shQ■cbO sbl=shl■cbl sb2-sh2ecb2 sb3=sh31EE)cb3, and are nothing but the addition results of each bit when the input carry signal C is set to logic "0". That is, in this embodiment, the full adder circuit FAB is the function generator circuit A.
Together with FG, half adder circuit HA, and carry generation circuit CGB, it constitutes a second adder circuit. This second
The output signal of the adder circuit, that is, the internal addition data 5bOx
sb3 is supplied to the minus 6 circuit-6B (second minus 6 circuit) and further supplied to one input terminal of the selection circuit 5EL4 (fourth selection circuit).

マイナス6回路−6Aは、特に制限されないが、第2図
に示されるように、上記全加算回路FAAから出力され
る内部加算データsaQ〜sa2を所定の組み合わせで
受けるアンドゲート回路、排他的論理和回路及びインバ
ータ回路を含む、上記アンドゲート回路の出力信号は、
内部減算データmaQとされ、上記排他的論理和回路の
出力信号は、内部減算データmalとされる。また、上
記インバータ回路の出力信号は、内部減算データma2
とされる。内部加算データsa3は、そのまま内部減算
データma3とされる。その結果、内部減算Σ!−タr
nao〜丁na3は、mao=saQ−sal  ・ 
aa  2rna 1 ”x a les a ’1m
a2−=sa2 m a  3 = s  a  3 となり、それぞれマイナス6回路としての論理条件を満
足す乙ものとなる。これらの内部減算データmaQ〜m
a3は、上記選択回路3EL3の他方の入力端子に供給
される。
Although the minus 6 circuit-6A is not particularly limited, as shown in FIG. The output signal of the AND gate circuit including the circuit and the inverter circuit is
The output signal of the exclusive OR circuit is defined as internal subtraction data maQ, and the output signal of the exclusive OR circuit is defined as internal subtraction data mal. Furthermore, the output signal of the inverter circuit is internal subtraction data ma2
It is said that Internal addition data sa3 is directly used as internal subtraction data ma3. As a result, the internal subtraction Σ! -ta r
nao~dingna3 is mao=saQ-sal・
aa 2rna 1 ”x a les a '1m
a2-=sa2 m a 3 = sa 3 , and each satisfies the logical conditions for a minus 6 circuit. These internal subtraction data maQ~m
a3 is supplied to the other input terminal of the selection circuit 3EL3.

同様に、マイナス6回路−6Bは、特に制限されないが
、第2図に示されるように、上記今加W回路FABから
出力される内部加算データsbQ〜5L12を所定の組
み合わせで受けるアンドゲート回路、排他的i、2.理
81理路1回路°ンバ一タ回路を含む、上記アンドゲー
ト回路の出力信号は、内部減算データmbQとされ、上
記排他的論理和回路の出力信号は、内部減算データmb
lとされる。
Similarly, the minus 6 circuit-6B is an AND gate circuit that receives internal addition data sbQ to 5L12 outputted from the above-mentioned W circuit FAB in a predetermined combination, as shown in FIG. 2, although it is not particularly limited. exclusive i, 2. The output signal of the AND gate circuit including the Logic 81 Logic 1 circuit and converter circuit is the internal subtraction data mbQ, and the output signal of the exclusive OR circuit is the internal subtraction data mbQ.
It is assumed that l.

また、上記、インバータ回路の出力信号は、内部減算デ
ータm b 2とされる。内部加算データsb3は、そ
のまま内部減算データrn b 3とされる。その結果
、内部減算データm b Q −m b 3は、mbo
=sbo・sbl・sb2 m b 1− s b 1■sb2 m b 2− s b 2 m b 3 = s b 3 となり、それぞれマイナス6回路としての論理条件を満
足するものとなる。これらの内部減算データm b O
−m b 3は、上記選択回路5EL4の他方の入力端
子に供給される。
Further, the output signal of the inverter circuit mentioned above is the internal subtraction data m b 2. The internal addition data sb3 is directly used as the internal subtraction data rnb3. As a result, the internal subtraction data m b Q - m b 3 is mbo
=sbo・sbl・sb2 m b 1- s b 1 ■ sb2 m b 2- s b 2 m b 3 = s b 3, and each of them satisfies the logical conditions as a minus 6 circuit. These internal subtraction data m b O
-m b 3 is supplied to the other input terminal of the selection circuit 5EL4.

選択回路5EL3には、特に制限されないが、群間数発
生回路GAFGから、上述の群キャリー伝播関数PO3
が供給される。また、選択回路5EL4には、特に制限
されないが、上記群関数発住回路GAFGから、上述の
群キャリー発生関数GO3が供給される。さらに、選択
回路5EL3及び5EL4には、図示されない演算制御
ユニットから、上述の内部制御信号bedが共通に供給
される。
The selection circuit 5EL3 receives the above group carry propagation function PO3 from the group number generation circuit GAFG, although it is not particularly limited.
is supplied. Furthermore, the selection circuit 5EL4 is supplied with the group carry generation function GO3 described above from the group function generation circuit GAFG, although this is not particularly limited. Furthermore, the above-mentioned internal control signal bed is commonly supplied to the selection circuits 5EL3 and 5EL4 from an arithmetic control unit (not shown).

選択回路5EL3は、上記内部制御信号bed及び群キ
ャリー伝播関数PO3に従って、全加算回路FAAから
出力される内部加算データsaQ〜sa3あるいはマイ
ナス6回路−6Aから出力される内部減算データmaQ
xma3を選択し、第1の内部出力データとして選択回
路5EL5 (第5の選択回路)の一方の入力端子に伝
達する。
The selection circuit 5EL3 selects internal addition data saQ to sa3 output from the full adder circuit FAA or internal subtraction data maQ output from the minus 6 circuit-6A according to the internal control signal bed and group carry propagation function PO3.
xma3 is selected and transmitted as first internal output data to one input terminal of the selection circuit 5EL5 (fifth selection circuit).

同様に、選択回路5EL4は、上記内部制御信号bed
及び群キャリー発生関数GO3に従って、全加算回路F
ABから出力される内部加算データ5bO=sb3ある
いはマイナス6回路−6Bから出力される内部減算デー
タmbo=mb3を選択し、第2の内部出力データとし
て上記選択回路5EL5の他方の入力端子に伝達する。
Similarly, the selection circuit 5EL4 selects the internal control signal bed.
According to the group carry generation function GO3, the full adder circuit F
Select internal addition data 5bO=sb3 output from AB or internal subtraction data mbo=mb3 output from minus 6 circuit-6B and transmit it to the other input terminal of the selection circuit 5EL5 as second internal output data. .

ここで、マイナス6回路−6A及び−6Bの出力信号は
、周知のように、算術論理演算ユニットALUが10進
モードとされかつ対応する群の出力キャリー信号C00
すなわちCouLが論理“0”とされるとき、選択的に
伝達される必要がある。また、上記出力キャリー信号C
outは、前段の単位加算回路からこの単位加算回路に
入力される入力キャリー信号をCO4とするとき、Co
ut−COO −GO3+PO3・CO4 なる論理条件に従って形成される。この実施例において
、全加算回路FAAは、前述のように、その入力キャリ
ー信号すなわちCO4が論理“1”に固定される第1の
加算回路に含まれ、全加算回路FABは、その入力キャ
リー信号CO4が論理10°に固定される第2の加算回
路に含まれる。
Here, as is well known, the output signals of the minus 6 circuits -6A and -6B are the output carry signal C00 of the corresponding group when the arithmetic logic unit ALU is in the decimal mode.
That is, when CouL is set to logic "0", it needs to be selectively transmitted. In addition, the above output carry signal C
out is Co when CO4 is the input carry signal input to this unit adder from the previous unit adder.
It is formed according to the logical condition: ut-COO-GO3+PO3.CO4. In this embodiment, the full adder circuit FAA is included in the first adder circuit whose input carry signal, CO4, is fixed to logic "1", as described above, and the full adder circuit FAB is included in the first adder circuit, whose input carry signal, CO4, is fixed to logic "1". CO4 is included in a second summing circuit where it is fixed at logic 10°.

このため、出力キャリー信号COLl tは、上記第1
の加算回路において、 CouL=GO3+PO3 となり、上記第2の加算回路において、CouL−CO
3 となる、つまり、選択回路5EL3は、内部制御(iq
bedがハイレベルとされかつ群キャリー伝IIIJ関
数PO3又は群キャリー発生関数GO3のいずれかが論
理°1”であることを条件に、マイナス6回路−6Aの
出力信号を選択的に伝達すればよいし、選択回路5EL
4は、内部制御信号bedがハイレベルとされかつ群キ
ャリー発生関数G03が論理“1″であることを条件に
、マイナス6回路−6Bの出力信号を選択的に伝達すれ
ばよい。この実施例において、群キャリー伝播関数P0
3は群キャリー発生関数GO3を包含する。したがって
、選択回路5EL3は、さらに内部制御信号bedがハ
イレベルとされかつ群キャリー伝播関数PO3が論理“
1゛とされることを条件に、マイナス6回路−6Aの出
力信号を選択的に伝達するものとされる。
Therefore, the output carry signal COLlt is
In the adder circuit, CouL=GO3+PO3, and in the second adder circuit, CouL−CO
3, that is, the selection circuit 5EL3 has internal control (iq
It is only necessary to selectively transmit the output signal of the minus 6 circuit-6A on the condition that bed is at a high level and either the group carry transmission IIIJ function PO3 or the group carry generation function GO3 is at logic °1". and selection circuit 5EL
4 may selectively transmit the output signal of the minus 6 circuit-6B on condition that the internal control signal bed is set to high level and the group carry generation function G03 is logic "1". In this example, the group carry propagation function P0
3 includes the group carry generation function GO3. Therefore, the selection circuit 5EL3 further sets the internal control signal bed to a high level and sets the group carry propagation function PO3 to a logic "
1, the output signal of the minus 6 circuit-6A is selectively transmitted.

選択回路5EL5には、後述する群キャリー発生回路G
CG1から、正規な手順をおって形成される入力キャリ
ー信号CO4が供給される。選択回路5EL5は、上記
入力キャリー信号CO4が論理“1″とされるとき、選
択回路5EL3の出力信号すなわち上記第1の加算回路
の加算結果を選択し、この単位加算回路の出力データS
O〜S3とする。また、上記入力キャリー信号CO4が
論理“0”とされるとき、選択回路5EL4の出力信号
すなわち上記第2の加算回路の加算結果を選択し、この
単位加算回路の出力データSO〜S3とする。これによ
り、入力キャリー信号CO4を形成するために必要な演
算処理と、演算データX0−X3及びYO−Y3の加算
処理及び10進モードで必要な6減算処理とが並行して
行われ、算術論理演算ユニソ1−ALU全体としての演
算処理が高速化されるものである。
The selection circuit 5EL5 includes a group carry generation circuit G, which will be described later.
An input carry signal CO4, which is formed through a regular procedure, is supplied from CG1. When the input carry signal CO4 is set to logic "1", the selection circuit 5EL5 selects the output signal of the selection circuit 5EL3, that is, the addition result of the first addition circuit, and selects the output data S of this unit addition circuit.
O to S3. Further, when the input carry signal CO4 is set to logic "0", the output signal of the selection circuit 5EL4, that is, the addition result of the second addition circuit is selected and used as the output data SO to S3 of this unit addition circuit. As a result, the arithmetic processing necessary to form the input carry signal CO4, the addition processing of the arithmetic data X0-X3 and YO-Y3, and the 6-subtraction processing necessary in the decimal mode are performed in parallel, and the arithmetic logic The arithmetic processing of the arithmetic unit 1-ALU as a whole is accelerated.

ところで、上記群キャリー発生回路GCG1には、特に
制限されないが、演算データX0−X3及びYO〜Y3
ないしX12〜X15及びY12〜Y15に対応し一ζ
設けられる4組の単位加算回路から、群キャリー伝播関
数PO3,PO7,Pll及びPI3ならびに群キャリ
ー発生関数GO3、GO7,Gll及びG15が供給さ
れる。同様に、群キャリー発生回路GCG2〜GCG4
には、対応する4組の単位加算回路から、群キャリー伝
播関数P19.P23.P27及びP31ないしP51
.P55.P59及びP63ならびに群キャリー発生関
数G19,023.G27及びG31ないしG51.G
55.G59及びG63がそれぞれ供給される。
By the way, the group carry generation circuit GCG1 can process data X0-X3 and YO-Y3, although it is not particularly limited.
or one ζ corresponding to X12 to X15 and Y12 to Y15
Group carry propagation functions PO3, PO7, Pll and PI3 and group carry generation functions GO3, GO7, Gll and G15 are supplied from four sets of unit adder circuits provided. Similarly, group carry generation circuits GCG2 to GCG4
, the group carry propagation function P19. P23. P27 and P31 to P51
.. P55. P59 and P63 and group carry generation function G19,023. G27 and G31 to G51. G
55. G59 and G63 are supplied respectively.

群キャリー発生回路GCG4のキャリー入力端子には、
前述のよ・)に、入力キャリー信号Cinが供給される
。群キャリー発生回路GCG3のキャリー入力端子には
、特に制限されないが、上記群キャリー発生回路ccc
4から出力されるキャリー信号C48が供給され、群キ
ャリー発止回路GCG2のキャリー入力端子には、上記
群キャリー発生回路GCG3から出力されるキャリー信
号C32が供給される。さらに、群キャリー発生回路G
CGIのキャリー入力端子には、前段の群キャリー発生
回路GCG2から出力されるキャリー信号C16が供給
される。
The carry input terminal of the group carry generation circuit GCG4 is
As mentioned above, the input carry signal Cin is supplied to the terminal (.). Although not particularly limited, the carry input terminal of the group carry generation circuit GCG3 may include the group carry generation circuit ccc.
A carry signal C48 outputted from the group carry generation circuit GCG3 is supplied to the carry input terminal of the group carry generation circuit GCG2. Furthermore, the group carry generation circuit G
A carry signal C16 output from the group carry generation circuit GCG2 at the previous stage is supplied to the carry input terminal of CGI.

群キャリー発生回路GCGI〜GCG4は、対応する4
組の単位加算回路から出力される群キャリー伝)1!5
!!数及び群キャリー発生関数と入力キャリー信号をも
とに、各単位加算回路で必要とされるキャリー信号CO
4,COBないしC60を形成する。また、ユニットキ
ャリー伝播関数UPI5、[JP31.UP47及びU
P63ならびにユニットキャリー発生関数Uに15.U
G31.UG47及びUG63を形成し、ユニットキャ
リー発生回路UCGに供給する。
Group carry generation circuits GCGI to GCG4 correspond to 4
Group carry output from unit adder circuit) 1!5
! ! Based on the number, group carry generation function, and input carry signal, the carry signal CO required for each unit addition circuit is calculated.
4. Form COB to C60. Also, the unit carry propagation function UPI5, [JP31. UP47 and U
15. to P63 and unit carry generation function U. U
G31. UG47 and UG63 are formed and supplied to the unit carry generation circuit UCG.

ユニットキャリー発生回路UCGは、上記群キャリー発
生回路GCG1〜GCG4から供給されるユニットキャ
リー伝播関数UP15.UP31゜UP47及びUP6
3ならびにユニットキャリー発生関数UG15.UG3
1.UG47及びUG63と入力キャリー信号Cinを
もとに、算術論理演算ユニットALUとしての出力キャ
リー信号Coutを形成する。この出力キャリー信号C
The unit carry generation circuit UCG generates a unit carry propagation function UP15. which is supplied from the group carry generation circuits GCG1 to GCG4. UP31゜UP47 and UP6
3 and unit carry generation function UG15. UG3
1. Based on UG47 and UG63 and input carry signal Cin, an output carry signal Cout as an arithmetic and logic operation unit ALU is formed. This output carry signal C
.

utは、特に制限されないが、算術論理演算ユニットA
LUの図示されないキャリーレジスタに伝達され、保持
される。
ut is, but is not particularly limited to, an arithmetic and logic unit A.
It is transmitted to and held in a carry register (not shown) of the LU.

この実施例の算術論理演算ユニットALUにおいて、上
記群キャリー発生回路GC01〜GCG4によるキャリ
ー演算処理は、前述のように、対応する4組の群キャリ
ー伝播関数及び群キャリー発生関数とそれぞれの入力キ
ャリー信号をもとに行われる。同様に、ユニットキャリ
ー発生回路UCGによるキャリー演算処理は、前述のよ
うに、4組のユニットキャリー伝播関数及びユニットキ
ャリー発生関数と入力キャリー信号Cinをもとに行わ
れる。この実施例において、上記群キャリー伝播関数及
び群キャリー発生関数ならびにユニットキャリー伝播関
数及びユニットキャリー発生関数は、第3図に例示的に
示されるように、それぞれ1段又は2段の論理ゲート回
路を介することで比較的高速に形成される。さらに、各
単位加算回路による加算処理と上記群キャリー発生回路
及びユニットキャリー発生回路によるキャリー2iI算
処理は、前述のように、並行して行われ、算術論理演算
ユニッ)ALU全体としての演算処理の高速化が図られ
る。しかしながら、群キャリー発生回路GCG1〜GC
G4から出力されるキャリー信号のレベルは、入力キャ
リー信号Cin又は前段の単位加算回路からの入力キャ
リー信号のレベルが確定された時点で確定される。この
ため、この算術論理演算ユニフ)ALUでは、上記群キ
ャリー発生回路GC01〜GCG4によるキャリー演算
処理が、算術論理演算ユニソI−ALU全体の演算処理
時間に対するクリティカルバスとなる。
In the arithmetic and logic operation unit ALU of this embodiment, the carry operation processing by the group carry generation circuits GC01 to GCG4 is performed using four sets of corresponding group carry propagation functions and group carry generation functions and their respective input carry signals. It is done based on. Similarly, carry calculation processing by unit carry generation circuit UCG is performed based on four sets of unit carry propagation functions, unit carry generation functions, and input carry signal Cin, as described above. In this embodiment, the group carry propagation function, the group carry generation function, the unit carry propagation function, and the unit carry generation function each have one or two stages of logic gate circuits, as exemplarily shown in FIG. It can be formed at a relatively high speed by using the media. Furthermore, the addition process by each unit adder circuit and the carry 2iI arithmetic process by the group carry generation circuit and unit carry generation circuit are performed in parallel, as described above, and the arithmetic logic operation unit (ALU) as a whole performs the arithmetic processing. The speed will be increased. However, group carry generation circuits GCG1 to GC
The level of the carry signal output from G4 is determined at the time when the level of the input carry signal Cin or the input carry signal from the unit adder circuit in the previous stage is determined. Therefore, in this arithmetic and logic operation unit I-ALU, the carry operation processing by the group carry generation circuits GC01 to GCG4 becomes a critical bus for the operation processing time of the entire arithmetic and logic operation unit I-ALU.

ところが、この実施例の算術論理演算ユニットALUで
は、前述のように、各単位加算回路における加算処理が
マイナス6回路の6減算処理を含めた形で条件付加算方
式とされ、上記群キャリー発生回路によるキャリー演算
処理と並行して行われる。このため、従来の算術論理演
算ユニットALUにおいて、出力キャリー信号Cout
及びC04のレベルが確定した後で行われていた6減算
処理は、算術論理演算ユニットALUの実質的なりリテ
ィカルパスからはずれ、算術論理演算ユニットALU全
体としての演算処理時間がさらに短縮されるものとなる
However, in the arithmetic and logic operation unit ALU of this embodiment, as mentioned above, the addition processing in each unit addition circuit is a conditional addition method including 6 subtraction processing of minus 6 circuits, and the above group carry generation circuit This is done in parallel with the carry operation processing. Therefore, in the conventional arithmetic and logic unit ALU, the output carry signal Cout
The 6-subtraction processing that was performed after the level of C04 and C04 was determined is removed from the practical theoretical path of the arithmetic and logic unit ALU, and the arithmetic processing time of the arithmetic and logic unit ALU as a whole is further reduced. Become.

以上のように、この実施例の算術論理演算ユニットAL
Uは、64ピントの演算データの4ピントごとに対応し
て設けられる16組の単位加算回路と、共通に設けられ
る群キャリー発生回路及びユニットキャリー発生回路と
を含む、各単位加算回路は、条件付加算方式を採り、そ
れぞれ2組の加算回路とマイナス6回路とを含む。また
、群キャリー発生回路及びユニットキャリー発生回路は
、各単位加算回路の群間数発生回路を含めて、キャリー
ルックアヘッド方式を採り、それぞれ1段又は2段の論
理ゲート回路からなる関数発生回路を含む。その結果、
算術論理演算ユニンI−ALUの演算処理は、条件付加
算方式及びキャリールックアヘッド方式を採ること自体
によって高速化されるとともに、マイナス6回路が条件
付加算方式を採る加算回路の中に包含されその6減算処
理が群キャリー発生回路及びユニットキャリー発生回路
のキャリー演算処理と並行して行われることで、さらに
高速化されるものである。
As described above, the arithmetic logic unit AL of this embodiment
U includes 16 sets of unit adder circuits provided corresponding to every 4 pins of 64 pinto operation data, and a group carry generation circuit and a unit carry generation circuit provided in common.Each unit adder circuit meets the conditions. An additive addition method is adopted, and each includes two sets of adder circuits and minus six circuits. In addition, the group carry generation circuit and unit carry generation circuit, including the intergroup number generation circuit of each unit adder circuit, adopt a carry look-ahead method, and each has a function generation circuit consisting of one or two stages of logic gate circuits. include. the result,
The arithmetic processing of the arithmetic logic unit I-ALU is accelerated by adopting the conditional addition method and the carry look ahead method, and the minus 6 circuit is included in the adder circuit which uses the conditional addition method. By performing the 6-subtraction processing in parallel with the carry calculation processing of the group carry generation circuit and the unit carry generation circuit, the speed can be further increased.

以上の本実施例に示されるように、この発明を条件付加
算方式及びキャリールックアヘッド方式を採る算術論理
演算ユニット等の論理演算回路に通用することで、次の
ような効果を得ることができる。すなわち、 (11B CDコード化された演算データに対する加算
機能を有し条件付加算方式を採る論理演算回路において
、2組設けられる加算回路の後段にそれぞれマイナス6
回路を設け、これらのマイナス6回路の出力信号を対応
する群間数発生回路から出力される群キャリー伝播関数
及び群キャリー発生関数に従って選択的に伝達する選択
回路を設けることで、演算データに対する加算処理及び
その演算結果に対する6減算処理を、一連のキャリー演
算処理と並行して行うことができるという効果が得られ
る。
As shown in the above embodiment, the following effects can be obtained by applying the present invention to logic operation circuits such as arithmetic and logic operation units that employ the conditional addition method and the carry lookahead method. . In other words, (11B) In a logical operation circuit that has an addition function for CD-encoded operation data and uses a conditional addition method, two sets of minus 6
By providing a selection circuit that selectively transmits the output signals of these minus 6 circuits according to the group carry propagation function and group carry generation function output from the corresponding intergroup number generation circuit, addition to the calculation data can be performed. The advantageous effect is that the processing and the 6-subtraction processing for the result of the calculation can be performed in parallel with the series of carry calculation processing.

(2)上記(1)項により、算術論理演算ユニット等の
論理演算回路全体としての演算処理を高速化できるとい
う効果が得られる。
(2) According to the above item (1), it is possible to achieve the effect that the arithmetic processing of the entire logic operation circuit such as the arithmetic logic operation unit can be made faster.

(3)上記(11項及び(2)項により、算術論理演算
ユニット等の論理演算回路を含むマイクロコンピュータ
等の処理能力を高めることができるという効果が得られ
る。
(3) The above (11) and (2) provide the effect that the processing capacity of a microcomputer or the like including a logic operation circuit such as an arithmetic and logic operation unit can be increased.

以上本発明者によってなされた発明を実施例に基づき具
体的に説明したが、本発明は前記実施例に限定されるも
のではなく、その要旨を通説しない範囲で種々変更可能
であることは言うまでもない。例えば、第1図において
、各単位加算回路に設けられる2組の加算回路は、関数
発生回路、半加算回路、全加算回路、キャリー発生回路
ならびに群間数発生回路とが一体化されるものであって
もよい、この場合、例えば演算データX0−X3及びY
O−Y3が半加算回路に直接入力される。
Although the invention made by the present inventor has been specifically explained based on Examples above, it goes without saying that the present invention is not limited to the above-mentioned Examples, and can be modified in various ways without getting across the gist of the invention. . For example, in FIG. 1, the two sets of adder circuits provided in each unit adder circuit are a function generator, a half adder, a full adder, a carry generator, and an intergroup number generator. In this case, for example, the calculation data X0-X3 and Y
O-Y3 is directly input to the half adder circuit.

群キャリー発生回路GC01〜GCG4及びユニットキ
ャリー発生回路UCGは、それぞれ条件付演算方式を採
るものであってもよい。選択回路5EL3は、例えば群
キャリー伝播関数PO3及び群キャリー発生関数GO3
の両方を切り換え制御信号として用いるものであっても
よい。また、選択回路5EL3及び5EL4と選択回路
5EL5は、例えば内部制御信号bedと群キャリー伝
播関数PO3及び群キャリー発生関数GO3ならびにキ
ャリー信号CO4を受ける1個の選択回路に一体化して
もよい、算術論理演算ユニッ)ALUに供給される演算
データは、任意のビット長をとりうる。また、算術論理
演算ユニットALUは、補数発生回路COMを含まない
ものであってもよい。さらに、第1図に示される算術論
理演算ユニットALUのブロック構成や第2図及び第3
図に示される各ブロックの具体的な回路構成ならびに演
算データや各制御信号等の組み合わせなど、種々の実施
形態を採りうる。
Each of the group carry generation circuits GC01 to GCG4 and the unit carry generation circuit UCG may employ a conditional calculation method. The selection circuit 5EL3 includes, for example, a group carry propagation function PO3 and a group carry generation function GO3.
Both of these may be used as switching control signals. Further, the selection circuits 5EL3 and 5EL4 and the selection circuit 5EL5 may be integrated into one selection circuit that receives the internal control signal bed, the group carry propagation function PO3, the group carry generation function GO3, and the carry signal CO4. The operation data supplied to the ALU (operation unit) can have any bit length. Furthermore, the arithmetic and logic unit ALU may not include the complement generation circuit COM. Furthermore, the block configuration of the arithmetic and logic unit ALU shown in FIG.
Various embodiments may be adopted, such as the specific circuit configuration of each block shown in the figure, and combinations of calculation data, control signals, etc.

以上の説明では、主として本発明者によってなされた発
明を、その背景となった利用分野であるマイクロコンピ
ュータの算術論理演算ユニットに通用した場合について
説明したが、それに限定されず、例えば、各種のディジ
タル処理装置やディジタル制御装置に含まれる同様な演
算論理回路にも適用できる。この発明は、少なくとも、
BCDコード化された演算データに対する加減算機能を
持ちかつ条件付加算方式を採る論理演算回路あるいはこ
のような論理演算回路を含むディジタル装置に広く通用
できる。
In the above explanation, the invention made by the present inventor was mainly explained in the case where it was applied to the arithmetic and logic operation unit of a microcomputer, which is the background field of application. It can also be applied to similar arithmetic logic circuits included in processing devices and digital control devices. This invention at least
It can be widely used in logic operation circuits that have addition/subtraction functions for BCD encoded operation data and employs a conditional addition method, or digital devices that include such logic operation circuits.

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

本願において開示される発明のうち代表的なものによっ
て得られる効果を簡単に説明すれば、下記の通りである
。すなわち、BCDコード化された演算データに対する
加算機能を有し条件付加算方式を採る論理演算回路にお
いて、2組設けられる加算回路の後段にそれぞれマイナ
ス6回路を設け、これらのマイナス6回路の出力信号を
対応する群間数発生回路から出力される群キャリー伝播
関数及び群キャリー発生関数に従って選択的に伝達する
選択回路を設けることで、演算データに対する加算処理
及びその演算結果に対する6減算処理を、一連のキャリ
ー演算処理と並行して行うことができる。これにより、
論理演算回路の演算処理を高速化し、論理演算回路を含
むディジタル処理装置の処理能力を高めることができる
A brief explanation of the effects obtained by typical inventions disclosed in this application is as follows. That is, in a logical operation circuit that has an addition function for BCD-coded operation data and uses a conditional addition method, minus 6 circuits are provided at the rear stage of two sets of addition circuits, and the output signals of these minus 6 circuits are By providing a selection circuit that selectively transmits the data according to the group carry propagation function and group carry generation function output from the corresponding intergroup number generation circuit, addition processing to the operation data and 6 subtraction processing to the operation result can be performed in a series. This can be done in parallel with the carry operation processing. This results in
The processing speed of the logical operation circuit can be increased, and the processing capacity of the digital processing device including the logical operation circuit can be increased.

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

第1図は、この発明が通用された算術論理演算ユニット
の一実施例を示す部分的なブロック図、第2図及び第3
図は、第1図の算術論理演算ユニットの一実施例を示す
部分的な回路図、第4図は、従来の算術論理演算ユニッ
トの一例を示す部分的なブロック図である。 ALU・・・算術論理演算ユニット、COM・・・補数
発生回路、+6・・・プラス6回路、AFG・・・関数
発生回路、HA・・・半加算回路、CGA、CGB・・
・キャリー発生回路、GAFG・・・群間数発生回路、
FAA、FAB・・・全加算回路、−6,−6A、−6
B・・・マイナス6回路、GCG1〜GCG4・・・群
キャリー発生回路、UCG・・・ユニットキャリー発生
回路、SEL 1〜5EL7・・・選択回路。
FIG. 1 is a partial block diagram showing an embodiment of an arithmetic and logic unit to which the present invention is applied, and FIGS.
FIG. 4 is a partial circuit diagram showing an embodiment of the arithmetic and logic unit shown in FIG. 1, and FIG. 4 is a partial block diagram showing an example of the conventional arithmetic and logic unit. ALU...Arithmetic logic unit, COM...Complement generation circuit, +6...Plus 6 circuit, AFG...Function generation circuit, HA...Half addition circuit, CGA, CGB...
・Carry generation circuit, GAFG... intergroup number generation circuit,
FAA, FAB...Full adder circuit, -6, -6A, -6
B...minus 6 circuit, GCG1 to GCG4... group carry generation circuit, UCG... unit carry generation circuit, SEL 1 to 5EL7... selection circuit.

Claims (1)

【特許請求の範囲】 1、BCDコード化された演算データに対する加算機能
を有し、そのためのプラス6回路と加算回路及びマイナ
ス6回路とを具備し、かつ上記マイナス6回路を包含す
る形で条件付加算方式を採ることを特徴とする論理演算
回路。 2、上記論理演算回路は、4ビットごとに群分割された
第1の演算データを受けその補数を形成する補数発生回
路と、演算モードに従って上記第1の演算データ又は上
記補数発生回路の出力信号を選択し第1の内部演算デー
タとして伝達する第1の選択回路と、4ビットごとに群
分割された第2の演算データを受けそれに6を加算する
プラス6回路と、演算モードに従って上記第2の演算デ
ータ又は上記プラス6回路の出力信号を選択し第2の内
部演算データとして伝達する第2の選択回路と、上記第
1及び第2の内部演算データを受けかつその入力キャリ
ー信号が論理“1”に固定される第1の加算回路と、上
記第1及び第2の内部演算データを受けかつその入力キ
ャリー信号が論理“0”に固定される第2の加算回路と
、上記第1の加算回路の出力信号から6を減算する第1
のマイナス6回路と、上記第2の加算回路の出力信号か
ら6を減算する第2のマイナス6回路と、演算モード又
は演算結果に従って上記第1の加算回路又は第1のマイ
ナス6回路の出力信号を選択し第1の内部出力データと
して伝達する第3の選択回路と、演算モード又は演算結
果に従って上記第2の加算回路又は第2のマイナス6回
路の出力信号を選択し第2の内部出力データとして伝達
する第4の選択回路と、対応する群の出力キャリー信号
に従って上記第1又は第2の内部出力データを選択し出
力データとして伝達する第5の選択回路とをそれぞれ含
む複数の単位加算回路を具備するものであることを特徴
とする特許請求の範囲第1項記載の論理演算回路。 3、上記単位加算回路は、上記第1及び第2の内部演算
データを受け対応するキャリー伝播関数及びキャリー発
生関数を形成する関数発生回路と、上記キャリー伝播関
数及びキャリー発生関数を受けかつその入力キャリー信
号が論理“1”に固定される第1のキャリー発生回路と
、上記キャリー伝播関数及びキャリー発生関数を受けか
つその入力キャリー信号が論理“0”に固定される第2
のキャリー発生回路と、対応する上記キャリー伝播関数
及びキャリー発生関数をそれぞれ受ける4個の排他的論
理和回路からなる半加算回路と、上記第1のキャリー発
生回路及び半加算回路の対応する出力信号をそれぞれ受
ける4個の排他的論理和回路からなる第1の全加算回路
と、上記第2のキャリー発生回路及び半加算回路の対応
する出力信号をそれぞれ受ける4個の排他的論理和回路
からなる第2の全加算回路と、上記キャリー伝播関数及
びキャリー発生関数を受け対応する群キャリー伝播関数
及び群キャリー発生関数を形成する群関数発生回路とを
含むものであって、上記第1の加算回路は、上記関数発
生回路と半加算回路ならびに上記第1のキャリー発生回
路及び第1の全加算回路により構成され、上記第2の加
算回路は、上記関数発生回路と半加算回路ならびに上記
第2のキャリー発生回路及び第2の全加算回路とにより
構成されるものであり、上記第3及び第4の選択回路は
、上記群キャリー伝播関数及び群キャリー発生関数をも
とに上記演算結果を判定するものであることを特徴とす
る特許請求の範囲第1項又は第2項記載の論理演算回路
[Scope of Claims] 1. It has an addition function for BCD-encoded calculation data, and includes a plus 6 circuit, an addition circuit, and a minus 6 circuit for that purpose, and the conditions include the minus 6 circuit. A logic operation circuit characterized by adopting an additive method. 2. The logic operation circuit includes a complement generation circuit that receives first operation data divided into groups of 4 bits and forms its complement, and an output signal of the first operation data or the complement generation circuit according to the operation mode. a first selection circuit that selects and transmits it as the first internal calculation data; a plus-six circuit that receives second calculation data divided into groups of 4 bits and adds 6 to it; a second selection circuit that selects the calculated data or the output signal of the plus 6 circuit and transmits it as second internal calculation data; and a second selection circuit that receives the first and second internal calculation data and whose input carry signal is a logic a first adder circuit whose input carry signal is fixed at logic "0"; a second adder circuit which receives the first and second internal calculation data and whose input carry signal is fixed at logic "0"; The first step is to subtract 6 from the output signal of the adder circuit.
a second minus 6 circuit that subtracts 6 from the output signal of the second addition circuit, and an output signal of the first addition circuit or the first minus 6 circuit according to the operation mode or the operation result. a third selection circuit that selects and transmits the signal as the first internal output data; and a third selection circuit that selects the output signal of the second addition circuit or the second minus 6 circuit according to the calculation mode or the calculation result and transmits the second internal output data. and a fifth selection circuit that selects the first or second internal output data according to the output carry signal of the corresponding group and transmits the selected internal output data as output data. A logic operation circuit according to claim 1, characterized in that the logic operation circuit comprises: 3. The unit addition circuit includes a function generation circuit that receives the first and second internal operation data and forms a corresponding carry propagation function and carry generation function, and a function generation circuit that receives the carry propagation function and carry generation function and receives the input of the carry propagation function and the carry generation function. a first carry generation circuit whose carry signal is fixed to logic "1"; and a second carry generation circuit which receives the carry propagation function and carry generation function and whose input carry signal is fixed to logic "0".
a carry generation circuit, a half adder circuit consisting of four exclusive OR circuits each receiving the corresponding carry propagation function and carry generation function, and corresponding output signals of the first carry generation circuit and the half adder circuit. a first full adder circuit consisting of four exclusive OR circuits each receiving a second full adder circuit; and a group function generation circuit that receives the carry propagation function and the carry generation function and forms a corresponding group carry propagation function and group carry generation function, the first adder circuit is composed of the function generation circuit, the half addition circuit, the first carry generation circuit, and the first full addition circuit, and the second addition circuit is composed of the function generation circuit, the half addition circuit, and the second carry generation circuit. It is composed of a carry generation circuit and a second full addition circuit, and the third and fourth selection circuits determine the operation result based on the group carry propagation function and the group carry generation function. 3. The logic operation circuit according to claim 1 or 2, wherein the logic operation circuit is
JP63110244A 1988-05-06 1988-05-06 Arithmetic logic unit Expired - Fee Related JP2561639B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63110244A JP2561639B2 (en) 1988-05-06 1988-05-06 Arithmetic logic unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63110244A JP2561639B2 (en) 1988-05-06 1988-05-06 Arithmetic logic unit

Publications (2)

Publication Number Publication Date
JPH01280828A true JPH01280828A (en) 1989-11-13
JP2561639B2 JP2561639B2 (en) 1996-12-11

Family

ID=14530763

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63110244A Expired - Fee Related JP2561639B2 (en) 1988-05-06 1988-05-06 Arithmetic logic unit

Country Status (1)

Country Link
JP (1) JP2561639B2 (en)

Also Published As

Publication number Publication date
JP2561639B2 (en) 1996-12-11

Similar Documents

Publication Publication Date Title
JP3153370B2 (en) Multiplication device
US4878192A (en) Arithmetic processor and divider using redundant signed digit arithmetic
US3711693A (en) Modular bcd and binary arithmetic and logical system
JP3436994B2 (en) Shift device
US4873660A (en) Arithmetic processor using redundant signed digit arithmetic
JPS61229122A (en) Binary subtractor
JPH0552530B2 (en)
US4866655A (en) Arithmetic processor and divider using redundant signed digit
JPH01280828A (en) Logical operation circuit
WO1993024880A2 (en) Low-power area-efficient absolute value arithmetic unit
KR20020040937A (en) Apparatus and method for digital multiplication using a redundant binary arithmetic
Makino et al. A 286 MHz 64-b floating point multiplier with enhanced CG operation
US4935892A (en) Divider and arithmetic processing units using signed digit operands
US5031136A (en) Signed-digit arithmetic processing units with binary operands
JPH10133857A (en) Division device
US5153847A (en) Arithmetic processor using signed digit representation of internal operands
Singh et al. Design Of High-Speed Vedic Multiplier Using Urdhva Tiryakbhyam Sutra
JPH01286021A (en) Logical arithmetic circuit
CN117075842B (en) Decimal adder and decimal operation method
JPS6275840A (en) Carry selecting adder
JPS6349835A (en) Arithmetic processor
Veeramachaneni et al. A novel carry-look ahead approach to a unified bcd and binary adder/subtractor
JPH0367328A (en) Floating point arithmetic unit
JPS638826A (en) Arithmetic processing unit
JPS6349836A (en) Arithmetic processor

Legal Events

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