JPH0256024A - Large/small comparing circuit - Google Patents

Large/small comparing circuit

Info

Publication number
JPH0256024A
JPH0256024A JP20681388A JP20681388A JPH0256024A JP H0256024 A JPH0256024 A JP H0256024A JP 20681388 A JP20681388 A JP 20681388A JP 20681388 A JP20681388 A JP 20681388A JP H0256024 A JPH0256024 A JP H0256024A
Authority
JP
Japan
Prior art keywords
input
output
input terminal
circuit
bit
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.)
Pending
Application number
JP20681388A
Other languages
Japanese (ja)
Inventor
Shinichi Uramoto
浦本 紳一
Hideyuki Terane
寺根 秀幸
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 JP20681388A priority Critical patent/JPH0256024A/en
Publication of JPH0256024A publication Critical patent/JPH0256024A/en
Pending legal-status Critical Current

Links

Landscapes

  • Logic Circuits (AREA)

Abstract

PURPOSE:To decrease the number of constituting elements of a large/small comparing circuit of natural binary numbers by connecting unit circuits in series by the number being equal to that of bit lines of the natural binary numbers to be compared and allowing each unit circuit to correspond to each bit. CONSTITUTION:At the time of executing a large/small comparison of natural binary numbers A of 4 bits (A3, A2, A1 and A0) and B (B3, B2, B1 and B0), unit circuits 23a - 23b are connected in series, binary digits of bits corresponding to the respective first input terminal 1 and second input terminal 2 are inputted. To a third input terminal of the unit circuit 23a, a power supply voltage 21 is connected, and to third input terminals of unit circuits 23b, 23c and 23d, first output terminals 4 of the unit circuits being subordinate by 1 bit are connected, respectively. A large/small result of the natural binary numbers A, B is outputted from an output terminal 24 of the unit circuit 23d. In such a way, when a minuend A and a subtrahend B are inputted, a large/small relation is discriminated by an output of the output terminal 24.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は大小比較回路に関し、特に0然2進数の大小
の判別を行なう大小比較回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a magnitude comparison circuit, and more particularly to a magnitude comparison circuit for determining the magnitude of a binary number.

[従来の技術] 第3図は一般のコンピュータシステムの構成を示すシス
テム構成図である。
[Prior Art] FIG. 3 is a system configuration diagram showing the configuration of a general computer system.

コンピュータシステム50は、一般にコンピュータの心
臓部である中央処理装置(CPU)51と、CPU5】
に接続されシステム外部とデータのやり取りを行なう入
出力部52と、CPU51に接続されデータやプログラ
ム等を記憶する記憶部53とから構成される。CPU5
1は、算術および論理演算を行なう回路ユニット(AL
U)54と、CPU51で処理される各種情報を記憶す
るレジスタ55と、CPU51の動作シーケンスを制御
する制御部56との3つの要素から構成される。
The computer system 50 generally includes a central processing unit (CPU) 51, which is the heart of the computer, and a CPU 5].
It is composed of an input/output section 52 connected to the CPU 51 for exchanging data with the outside of the system, and a storage section 53 connected to the CPU 51 for storing data, programs, etc. CPU5
1 is a circuit unit (AL) that performs arithmetic and logical operations.
It is composed of three elements: a register 55 that stores various information processed by the CPU 51, and a control section 56 that controls the operation sequence of the CPU 51.

第4図は第3図で示したALU54の内部構成を示した
図である。
FIG. 4 is a diagram showing the internal configuration of the ALU 54 shown in FIG. 3.

ALU54は主に算術演算装置57と論理演算装置58
とが含まれる。算術演算装置57は加算機能、減算機能
、大小比較機能、インクリメント機能等の各種機能を有
し、演算命令に応じた処理を行なう。論理演算装置58
は、AND機能、OR機能、XOR機能等の各種機能を
有し、命令に応じた論理演算を行なう。このような各種
演算機能はそれぞれ半導体チップ上に形成された機能回
路によってその機能が達成されている。
The ALU 54 mainly includes an arithmetic operation unit 57 and a logic operation unit 58.
and is included. The arithmetic operation unit 57 has various functions such as an addition function, a subtraction function, a magnitude comparison function, and an increment function, and performs processing according to an arithmetic instruction. Logical operation device 58
has various functions such as AND function, OR function, and XOR function, and performs logical operations according to instructions. These various arithmetic functions are achieved by functional circuits formed on semiconductor chips.

第5図は従来の自然2進数の大小を比較する大小比較回
路の構成を示す図である。
FIG. 5 is a diagram showing the configuration of a conventional magnitude comparison circuit for comparing the magnitudes of natural binary numbers.

図において、全加算器26a〜26eはそのキャリーが
直列に接続されて大小比較回路27を構成する。各全加
算器26a〜26dには、A、およびB、を最上位ビッ
トとする自然2進数A(As + A2 + A+ r
 AO)およびB(B、、B2゜B+、Bo)の各々の
ビットが入力される。但し自然2進数Bの各ビットは、
インバータ回路25a〜25dによって反転されて全加
算器に入力される。また全加算器26aのキャリー入力
端子は電源電圧21aに接続され、全加算器26eのキ
ャリー入力端子以外の2つの入力端子は各々設置電源2
2および電源電圧21bに接続される。
In the figure, the carries of full adders 26a to 26e are connected in series to form a magnitude comparison circuit 27. Each full adder 26a to 26d has a natural binary number A (As+A2+A+r) with A and B as the most significant bits.
AO) and B (B, , B2°B+, Bo) are input. However, each bit of natural binary number B is
The signals are inverted by inverter circuits 25a to 25d and input to the full adder. Further, the carry input terminal of the full adder 26a is connected to the power supply voltage 21a, and the two input terminals other than the carry input terminal of the full adder 26e are connected to the installed power supply voltage 21a.
2 and the power supply voltage 21b.

(S5.S31  S2.Sl、SO)はS、を符号ビ
ットとする大小比較回路27による加算結果である。
(S5.S31 S2.Sl, SO) is the result of addition by the magnitude comparison circuit 27 with S as the sign bit.

次に動作について説明する。Next, the operation will be explained.

自然2進数の大小比較を行なうには、自然2進数に符号
ビットを付加して補数表現の2進数として減算を行ない
、その結果が正か負かを判定してやればよい。全加算器
(FA)によるこの補数表現の2進数は、被減数をA1
減数をBとした場合A+B+1で与えられる(BはBの
反転)。
To compare the magnitude of natural binary numbers, it is sufficient to add a sign bit to the natural binary number, perform subtraction as a binary number in complement representation, and determine whether the result is positive or negative. The binary number of this complement representation by the full adder (FA) has the minuend A1
If the subtrahend is B, it is given by A+B+1 (B is the inverse of B).

第5図は上記の動作を実現するための従来の回路であり
、接地電源22により自然2進数Aに付加される正を示
す符号ビット″0“が入力され、電源電圧21bにより
自然2進数Bに付加される符号ビット″O“が1”に反
転して入力される。
FIG. 5 shows a conventional circuit for realizing the above operation, in which a sign bit "0" indicating positive is added to the natural binary number A by the ground power supply 22, and the natural binary number B is input by the power supply voltage 21b. The sign bit "O" added to the signal is inverted to 1 and input.

・また全加算器26aのキャリー入力端子が電源電圧2
1aに接続されており、最下位のキャリー入力に“1°
が与えられることになる。したがって、自然2進数Aお
よびBの各々のビットを全加算器に入力することによっ
て減算が行なわれ、2の補数表現の2進数(S!、Sl
、S2+  Sl、So)として結果が得られる。そこ
で減算結果の符号ビットS、が“0”のときには減算結
果が正を意味し、すなわち自然2進数A≧自然2進数B
となる。
・Also, the carry input terminal of the full adder 26a is connected to the power supply voltage 2.
1a, and “1°” is connected to the lowest carry input.
will be given. Therefore, subtraction is performed by inputting each bit of the natural binary numbers A and B into a full adder, and the binary numbers (S!, Sl
, S2+ Sl, So). Therefore, when the sign bit S of the subtraction result is "0", it means that the subtraction result is positive, that is, natural binary number A ≧ natural binary number B
becomes.

符号ビットS、が“1”のときには減算結果が負を意味
し、すなわち自然2進数Aく自然2進数Bとなる。この
ようにして、自然2進数AとBとの大小比較が行なわれ
る。
When the sign bit S is "1", it means that the subtraction result is negative, that is, natural binary number A times natural binary number B. In this way, the natural binary numbers A and B are compared in magnitude.

第6図は従来の大小比較回路に使用される全加算器の具
体的構成を示す回路であり、村上等による「ア ディジ
タル プロセッサ フォオ デコーディング フンポジ
ット ティーブイ シグナルズ ユージング アダプテ
ィブ フィルタリング(A  Digital  Pr
ocessorfor  Decodfng  Com
positeTV  Si gnals   Usin
g  Adaptive   Filtering)J
  (Journal   of   5olid  
 5tate   C1rcutts、   Vol、
5C−21No、5に収録)に記載されているものであ
る。
Figure 6 is a circuit showing a specific configuration of a full adder used in a conventional magnitude comparison circuit.
ocessorfor Decodfng Com
positTV Signals Usin
g Adaptive Filtering)J
(Journal of 5olid
5tate C1rcutts, Vol.
5C-21 No. 5).

図において、5個のインバータと6個のトランスファゲ
ートと1個のノンインバーテツドとから回路が構成され
、第1入力端子1、第2入力端子2、第3入力端子3、
第1出力端子4および第2出力端子30を備える。した
がって1ビツトあたりの素子数は22トランジスタであ
る。mlおよび第2の入力端子には比較されるべき2進
ディジットが入力され、第3の入力端子にはキャリーに
よる2進ディジットが入力される。第1の出力端子4か
ら、キャリー出力としての2進ディジットが出力され、
第2の出力端子30からそのビットの桁の減算結果を示
す2進ディジットが出力される。
In the figure, the circuit is composed of five inverters, six transfer gates, and one non-inverter, and includes a first input terminal 1, a second input terminal 2, a third input terminal 3,
A first output terminal 4 and a second output terminal 30 are provided. Therefore, the number of elements per one bit is 22 transistors. The binary digits to be compared are input to the ml and second input terminals, and the binary digits by carry are input to the third input terminal. A binary digit is output as a carry output from the first output terminal 4,
A binary digit indicating the result of subtracting the digit of the bit is output from the second output terminal 30.

この場合の真理値表を下記の第1表に示す。The truth table in this case is shown in Table 1 below.

第1表 [発明が解決しようとする課題] 上記のような従来の大小比較回路では、回路の構成する
素子数が多く、・装置の集積化に対して不利であった。
Table 1 [Problems to be Solved by the Invention] In the conventional size comparison circuit as described above, the number of elements constituting the circuit is large, which is disadvantageous to the integration of the device.

また、演′n、機能としての大小比較機能は、演算の種
類によっては必ずしも2つの自然2進数の減算値を必要
とする場合ばかりではなく、単なる大小関係の結果だけ
を必要とする場合もある。したがって、大小のみを比較
するような演算回路としては、従来の大小比較回路は適
切な構成となっていなかった。
Also, depending on the type of operation, the magnitude comparison function as an operation'n function does not necessarily require the subtraction value of two natural binary numbers, but may also require only the result of a simple magnitude relationship. . Therefore, the conventional magnitude comparison circuit has not been appropriately configured as an arithmetic circuit that compares only magnitude.

この発明は上記のような課題を解決するためになされた
もので、大小比較のみを行なう大小比較回路であって、
その構成素子数が少なく集積度の向上に寄与し得る大小
比較回路を提供することを目的とする。
This invention was made to solve the above problems, and is a magnitude comparison circuit that only performs magnitude comparison,
It is an object of the present invention to provide a magnitude comparison circuit that has a small number of constituent elements and can contribute to improving the degree of integration.

[課題を解決するための手段] この発明に係る大小比較回路は、比較すべき第1および
第2の2進ディジットがそれぞれ入力される第1および
第2の入力端子と、キャリー入力データとしての第3の
2進ディジットが入力される第3の入力端子と、第1の
2進ディジットと第2の2進ディジットの反転の2進デ
ィジットと第3の2進ディジットとの加算による2進デ
ィジットのキャリー出力データを演算する演算回路と、
キャリー出力データが出力される出力端子とからなる単
位回路とを備え、単位回路を比較すべき自然2進数のビ
ット線に等しい数だけ直列させて、各単位回路を各ビッ
トに対応させ、1の単位回路の出力端子と他の単位回路
の第3の入力端子とを相互に接続し、最下位のビットに
対応する単位回路の第3の入力端子には所定の2進ディ
ジットが入力され、最上位のビットに対応する単位回路
の出力端子の出力データによって比較すべき自然2進数
の大小を判別するものである。
[Means for Solving the Problems] A magnitude comparison circuit according to the present invention has first and second input terminals into which first and second binary digits to be compared are respectively input, and a terminal as carry input data. a third input terminal into which a third binary digit is input, and a binary digit obtained by adding the inverted binary digit of the first binary digit and the second binary digit and the third binary digit; an arithmetic circuit that calculates the carry output data of the
A unit circuit consisting of an output terminal from which carry output data is output, and a number of unit circuits equal to the bit lines of the natural binary number to be compared are connected in series, and each unit circuit is made to correspond to each bit. The output terminal of a unit circuit and the third input terminal of another unit circuit are connected to each other, and a predetermined binary digit is input to the third input terminal of the unit circuit corresponding to the lowest bit, and the third input terminal of the unit circuit corresponding to the lowest bit is inputted. The magnitude of the natural binary numbers to be compared is determined based on the output data of the output terminal of the unit circuit corresponding to the upper bit.

[作用] この発明においては、自然2進数の大小のみを比較し減
算値については出力しないので、必要な素子数が減じら
れる。
[Operation] In this invention, only the magnitude of the natural binary numbers is compared and the subtracted value is not output, so that the number of required elements can be reduced.

【実施例J 第1図はこの発明の一実施例における大小比較回路に使
用される単位回路の構成を示す回路図である。
Embodiment J FIG. 1 is a circuit diagram showing the configuration of a unit circuit used in a magnitude comparison circuit in an embodiment of the present invention.

図において、入出力端子として、比較されるべき2進デ
ィジットAが入力される第1の入力端子1と、比較され
るべき2進ディジットBが入力される第2の入力端子2
と、キャリーによる。2進ディジットCinが入力され
る第3の入力端子3と、キャリー出力としての2進ディ
ジットCoutが出力される出力端子4とが倫えられる
。第1の入力端子1と出力端子4との間に、トランスフ
ァゲート17および19が直列に接続される。同様にト
ランスファゲート18および2oも第1の入力端子1と
出力端子4との間に直列に接続される。
In the figure, as input/output terminals, a first input terminal 1 receives a binary digit A to be compared, and a second input terminal 2 receives a binary digit B to be compared.
and by Carey. A third input terminal 3 to which the binary digit Cin is input and an output terminal 4 to which the binary digit Cout is output as a carry output are connected. Transfer gates 17 and 19 are connected in series between first input terminal 1 and output terminal 4. Similarly, transfer gates 18 and 2o are also connected in series between first input terminal 1 and output terminal 4.

トランスファゲート17はN型トランジスタ9とP型ト
ランジスタ13よりなる。トランスファゲート18はN
型トランジスタ1oとP型トランジスタ14とからなる
。トランスファゲート19はN型トランジスタ11とP
型トランジスタ15とからなる。トランスファゲート2
oはN型トランジスタ12とP型トランジスタ16とか
らなる。
Transfer gate 17 consists of N-type transistor 9 and P-type transistor 13. Transfer gate 18 is N
It consists of a P-type transistor 1o and a P-type transistor 14. The transfer gate 19 has an N-type transistor 11 and a P-type transistor.
type transistor 15. transfer gate 2
o consists of an N-type transistor 12 and a P-type transistor 16.

トランスファゲート17と19との間のノードN1と電
源電圧21との間にP型トランジスタ7が接続される。
P-type transistor 7 is connected between node N1 between transfer gates 17 and 19 and power supply voltage 21.

トランスファゲート18と20との間のノードN2と接
地電源22との間にN型トランジスタ8が接続される。
N-type transistor 8 is connected between node N2 between transfer gates 18 and 20 and ground power supply 22.

第2の入力端子2は、P型トランジスタ7のゲートと、
N型トランジスタ9のゲートと、P型トランジスタ14
のゲートとN型トランジスタ8のゲートとに接続される
The second input terminal 2 is connected to the gate of the P-type transistor 7,
The gate of N-type transistor 9 and P-type transistor 14
and the gate of N-type transistor 8.

P型トランジスタ13のゲートとN型トランジスタ10
のゲートとは相互に接続され、その間のノードN3と第
2の入力端子2との間にインバータ5が接続される。P
型トランジスタ15のゲートと、N型トランジスタ12
のゲートとは相互に接続される。第3の入力端子3はN
型トランジスタ11のゲートとP型トランジスタ16の
ゲートとにそれぞれ接続される。P型トランジスタ15
のゲートとN型トランジスタ12のゲートとの間の接続
線のノードN4と、N型トランジスタ11のゲートとP
型トランジスタ16のゲートとの間の接続線のノードN
5との間にインバータ6が接続される。
Gate of P-type transistor 13 and N-type transistor 10
The inverter 5 is connected between the node N3 therebetween and the second input terminal 2. P
type transistor 15 and the N type transistor 12
The gates of the gates are connected to each other. The third input terminal 3 is N
The gate of the P-type transistor 11 and the gate of the P-type transistor 16 are connected to each other. P-type transistor 15
and the gate of the N-type transistor 12, and the node N4 of the connection line between the gate of the N-type transistor 11 and the gate of the N-type transistor 12,
node N of the connection line between the gate of the type transistor 16
An inverter 6 is connected between the inverter 5 and the inverter 5.

次にこの単位回路の動作を説明するが、まずこ第2表 Bが“0”かつCinが“0“の場合には、P型トラン
ジスタ7がオンとなり、トランスファゲート18および
20がオンとなる。またN型トランジスタ8およびトラ
ンスファゲート17ならびに1つがオフとなるので出力
端子4の出力Coutは第1の入力端子1の入力がその
まま伝わり、すなわちAが′1゛の場合にはCoutが
“1“Aが“0”の場合には、coutが“0”となる
Next, the operation of this unit circuit will be explained. First, when Table 2 B is "0" and Cin is "0", the P-type transistor 7 is turned on, and the transfer gates 18 and 20 are turned on. . Also, since the N-type transistor 8 and the transfer gate 17 are turned off, the output Cout of the output terminal 4 transmits the input of the first input terminal 1 as it is, that is, when A is '1', Cout is '1'. When A is "0", cout becomes "0".

Bが“1″かつCinが“0”の場合には、N型トラン
ジスタ8およびトランジスタ17ならびに20がオンと
なり、P型トランジスタ7およびトランスファゲート1
8ならびに19がオフとなるので出力端子4の出力Co
utは“0“となる。
When B is "1" and Cin is "0", N-type transistor 8 and transistors 17 and 20 are turned on, and P-type transistor 7 and transfer gate 1 are turned on.
8 and 19 are turned off, the output Co of output terminal 4
ut becomes "0".

Bが“0”かつCinが“1#の場合にはP型トランジ
スタ7およびトランスファゲート18および19がオン
となり、N型トランジスタ8およびトランスファゲート
17ならびに20がオフとなるので出力端子4の出力C
outは“1″となる。
When B is "0" and Cin is "1#", the P-type transistor 7 and transfer gates 18 and 19 are turned on, and the N-type transistor 8 and transfer gates 17 and 20 are turned off, so that the output C of the output terminal 4 is
out becomes "1".

Bが“1゛かつCinが“1”の場合には、N型トラン
ジスタ8およびトラシスファゲート17ならびに19が
オンとなり、P型トランジスタ7およびトランスファゲ
ート18ならびに20がオフとなるので、出力端子4の
出力Coutは第1の入力端子1の入力がそのまま伝わ
り、すなわちAが1”の場合に″はCou tが1″、
Aが“0“の場合にはCoutが′0”となる。
When B is "1" and Cin is "1", N-type transistor 8 and transfer gates 17 and 19 are turned on, and P-type transistor 7 and transfer gates 18 and 20 are turned off, so that output terminal 4 The output Cout of is transmitted as is from the input of the first input terminal 1, that is, when A is 1'', Cout is 1'',
When A is "0", Cout becomes '0'.

第2図は第1図に示す単位回路を用いて4ビツトの大小
比較回路を構成した図である。
FIG. 2 is a diagram in which a 4-bit magnitude comparison circuit is constructed using the unit circuit shown in FIG. 1.

この実施例においては、4ビツトの自然2進数A CA
3 + A2 + A+ r Ao )と自然2進数B
(Ba 、B2 、B+ 、Bg )との大小を比較し
ている。単位回路23a〜23dは直列に接続され、そ
れぞれの第1の入力端子1および第2の入力端子2に対
応するビットの2進ディジットが入力される。単位回路
23aの第3の入力端子には電源電圧21が接続され、
単位回路23b、23C。
In this example, a 4-bit natural binary number ACA
3 + A2 + A+ r Ao ) and natural binary number B
(Ba, B2, B+, Bg) are compared in size. The unit circuits 23a to 23d are connected in series, and binary digits of bits corresponding to the first input terminal 1 and the second input terminal 2 are inputted. The power supply voltage 21 is connected to the third input terminal of the unit circuit 23a,
Unit circuits 23b and 23C.

23dの第3の入力端子3には、1ビツト下位の単位回
路の第1の出力端子4がそれぞれ接続されている。単位
回路23dの出力端子24から自然2進数AおよびBの
大小結果が出力される。
The first output terminals 4 of the one-bit lower unit circuits are connected to the third input terminals 3 of 23d. The magnitude results of the natural binary numbers A and B are output from the output terminal 24 of the unit circuit 23d.

このようにして被減数Aおよび減数Bを入力すると、各
単位回路は第2表の真理値表に従って、第3の入力端子
3をキャリー入力とする減算を行ない、その結果単位回
路23dの出力端子24の出力によってその大小関係が
判別される。すなわち出力端子24の値が“1″であれ
ばA≧Bを意味し、その出力が“0”であれば、A<B
の場合を意味する。
When the minuend A and the subtrahend B are input in this way, each unit circuit performs subtraction using the third input terminal 3 as a carry input according to the truth table shown in Table 2, and as a result, the output terminal 24 of the unit circuit 23d The magnitude relationship is determined by the output of . That is, if the value of the output terminal 24 is "1", it means A≧B, and if the output is "0", A<B.
means the case of

このようにして、従来のような全加算器を用いることな
く自然2進数の大小が容易に得られることになる。
In this way, the magnitude of a natural binary number can be easily obtained without using a conventional full adder.

なお、上記実施例では、コンピュータシステムにおける
大小比較回路に適用しているが、その他の単なる演算器
や比較器として用いられる°ことができるのは言うまで
もない。
In the above embodiment, the present invention is applied to a magnitude comparison circuit in a computer system, but it goes without saying that it can also be used as a simple arithmetic unit or comparator.

また、上記実施例では、4ビツトの自然2進数の比較を
行なっているが、1ビツトも含み、他のビット数の自然
2進数の比較にも適用できることは言うまでもない。
Further, in the above embodiment, 4-bit natural binary numbers are compared, but it goes without saying that the comparison can also be applied to comparisons of natural binary numbers of other bit numbers, including 1-bit.

さらに、上記実施例では、単位回路の具体的構成を一例
として示しているが、このような機能を有する他の具体
的構成であってもよい。
Further, in the above embodiment, the specific configuration of the unit circuit is shown as an example, but other specific configurations having such functions may be used.

[発明の効果] この発明は以上説明したとおり、従来の全加算器を用い
ることなく自然2進数の大小を比較することかできるの
で、その素子数を少なくすることができ半導体集積回路
装置の集積化に寄与することができる。
[Effects of the Invention] As explained above, the present invention can compare the magnitude of natural binary numbers without using a conventional full adder, so the number of elements can be reduced and the integration of semiconductor integrated circuit devices can be improved. It is possible to contribute to the development of

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

第1図はこの発明の一実施例における大小比較回路に使
用される単位回路の構成を示す回路図、第2図は第1図
に示す単位回路を用いて4ビツトの大小比較回路を構成
した図、第3図は一般のコンピュータシステムの構成を
示すシステム構成図、第4図は第3図で示されたALU
の内部構成を示した図、第5図は従来の大小比較回路の
構成を示した図、第6図は従来の大小比較回路に使用さ
れる全加算器の具体的構成を示す図である。 図において、1は第1の入力端子、2は第2の入力端子
、3は第3の入力端子、4は出力端子、23a〜23d
は単位回路、21は電源電圧、24は出力端子である。 なお、各図中同一符号は同一または相当部分を示す。
Figure 1 is a circuit diagram showing the configuration of a unit circuit used in a magnitude comparison circuit in an embodiment of the present invention, and Figure 2 shows a 4-bit magnitude comparison circuit using the unit circuit shown in Figure 1. Figure 3 is a system configuration diagram showing the configuration of a general computer system, and Figure 4 is an ALU shown in Figure 3.
5 is a diagram showing the configuration of a conventional magnitude comparison circuit, and FIG. 6 is a diagram showing a specific configuration of a full adder used in the conventional magnitude comparison circuit. In the figure, 1 is a first input terminal, 2 is a second input terminal, 3 is a third input terminal, 4 is an output terminal, 23a to 23d
21 is a unit circuit, 21 is a power supply voltage, and 24 is an output terminal. Note that the same reference numerals in each figure indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】 比較すべき第1および第2の2進ディジットがそれぞれ
入力される第1および第2の入力端子と、キャリー入力
データとしての第3の2進ディジットが入力される第3
の入力端子と、 前記第1の2進ディジットと、前記第2の2進ディジッ
トの反転の2進ディジットと、第3の2進ディジットと
の加算による2進ディジットのキャリー出力データを演
算する演算回路と、 前記キャリー出力データが出力される出力端子とからな
る単位回路を備え、 前記単位回路を比較すべき自然2進数のビット数に等し
い数だけ直列させて、各単位回路を各ビットに対応させ
、1の単位回路の出力端子と他の単位回路の第3の入力
端子とを相互に接続し、最下位のビットに対応する単位
回路の第3の入力端子には、“1”の2進ディジットが
入力され、最上位のビットに対応する単位回路の出力端
子の出力データによって、前記比較すべき自然2進数の
大小を判別する、大小比較回路。
[Claims] First and second input terminals into which first and second binary digits to be compared are input, respectively, and a third input terminal into which a third binary digit as carry input data is input.
an operation for calculating carry output data of binary digits by adding the first binary digit, the inverted binary digit of the second binary digit, and a third binary digit; a unit circuit consisting of a circuit and an output terminal from which the carry output data is output, the unit circuits are connected in series in a number equal to the number of bits of the natural binary number to be compared, and each unit circuit corresponds to each bit. The output terminal of one unit circuit and the third input terminal of another unit circuit are connected to each other, and the third input terminal of the unit circuit corresponding to the lowest bit is connected to the second input terminal of "1". A magnitude comparison circuit that receives a base digit and determines the magnitude of the natural binary numbers to be compared based on the output data of the output terminal of the unit circuit corresponding to the most significant bit.
JP20681388A 1988-08-20 1988-08-20 Large/small comparing circuit Pending JPH0256024A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20681388A JPH0256024A (en) 1988-08-20 1988-08-20 Large/small comparing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20681388A JPH0256024A (en) 1988-08-20 1988-08-20 Large/small comparing circuit

Publications (1)

Publication Number Publication Date
JPH0256024A true JPH0256024A (en) 1990-02-26

Family

ID=16529514

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20681388A Pending JPH0256024A (en) 1988-08-20 1988-08-20 Large/small comparing circuit

Country Status (1)

Country Link
JP (1) JPH0256024A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61255013A (en) * 1985-05-08 1986-11-12 松下電器産業株式会社 Variable ceramic capacitor

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6142030A (en) * 1984-08-04 1986-02-28 Horiba Ltd Numerical value comparator
JPS618348B2 (en) * 1976-08-13 1986-03-13 Gram Brdr As

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS618348B2 (en) * 1976-08-13 1986-03-13 Gram Brdr As
JPS6142030A (en) * 1984-08-04 1986-02-28 Horiba Ltd Numerical value comparator

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61255013A (en) * 1985-05-08 1986-11-12 松下電器産業株式会社 Variable ceramic capacitor
JPH045254B2 (en) * 1985-05-08 1992-01-30

Similar Documents

Publication Publication Date Title
US4953115A (en) Absolute value calculating circuit having a single adder
Kawahito et al. A 32* 32-bit multiplier using multiple-valued MOS current-mode circuits
EP0186974B1 (en) Integrated circuit for checking boundaries
US6301600B1 (en) Method and apparatus for dynamic partitionable saturating adder/subtractor
JPS61204736A (en) Multi-bit adder
US4153939A (en) Incrementer circuit
JPH0310973B2 (en)
US3970833A (en) High-speed adder
US4407018A (en) Digital signal processor suited for LSI fabrication
US4709346A (en) CMOS subtractor
CA1173918A (en) Cmos static alu
JPH0256024A (en) Large/small comparing circuit
US6055557A (en) Adder circuit and method therefor
US5333120A (en) Binary two&#39;s complement arithmetic circuit
US6484193B1 (en) Fully pipelined parallel multiplier with a fast clock cycle
JP2614496B2 (en) Size comparison circuit
US6334136B1 (en) Dynamic 3-level partial result merge adder
JP2808604B2 (en) Binary n-ary arithmetic circuit
US6631393B1 (en) Method and apparatus for speculative addition using a limited carry
US6219686B1 (en) Method and apparatus for an N-NARY sum/HPG adder/subtractor gate
KR0144416B1 (en) Full adder
Bi et al. An area-reduced scheme for modulo 2/sup n/-1 addition/subtraction
US6301597B1 (en) Method and apparatus for saturation in an N-NARY adder/subtractor
US6272514B1 (en) Method and apparatus for interruption of carry propagation on partition boundaries
JPH09185493A (en) Integrated circuit for adder