JPS5933546A - Digital comparator - Google Patents

Digital comparator

Info

Publication number
JPS5933546A
JPS5933546A JP14440982A JP14440982A JPS5933546A JP S5933546 A JPS5933546 A JP S5933546A JP 14440982 A JP14440982 A JP 14440982A JP 14440982 A JP14440982 A JP 14440982A JP S5933546 A JPS5933546 A JP S5933546A
Authority
JP
Japan
Prior art keywords
comparator
output
input
data
comparison
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
JP14440982A
Other languages
Japanese (ja)
Inventor
Hirobumi Oda
博文 小田
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 JP14440982A priority Critical patent/JPS5933546A/en
Publication of JPS5933546A publication Critical patent/JPS5933546A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/02Comparing digital values
    • G06F7/026Magnitude comparison, i.e. determining the relative order of operands based on their numerical value, e.g. window comparator

Abstract

PURPOSE:To set a comparison data into an optional bit number with a sole comparator, by connecting an FF to an output of the comparator, and feeding back the output to the input side of the comparator. CONSTITUTION:Comparison data A, B inputted to a comparator 10 are used as series data and the comparison outputs A>B, A<B of the comparator 10 are inputted to FFs 11, 12. Further, an output Q of the FF11 is fed back to an input terminal a0 of an LSB section of the comparator 10 and the output Q of the FF12 is fed similarly back to an input terinal b0 of the LSB section of the comparator 10. Then, each one bit is compared by the LSB of the data A, B by inputting the clock pulse CP synchronized with the input data A, B in series to a clock terminal T of the FFs 11, 12. Further, the output data is latched to the FFs 11, 12 in synchronizing with the clock pulse, and the output is fed back to the input side of the comparator 10. The newest result of comparison is kept through the repetition.

Description

【発明の詳細な説明】 この発明はディジタルデータの大小を比較するコンパレ
ータに関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a comparator that compares the magnitude of digital data.

従来、ディジタルデータの大小を比較する場合は、第1
図に示すように、nビットのディジタルデータ(第1図
の例ではn=4)を比較するコンパレータ(10)を設
け、比較すべき2つの並列っ入力データAおよびBをそ
れぞれコンパレータ(1o)の入力端子(ao、)〜(
a3)t (bx)〜(bs) ヘそのLS−p−から
上位の順番に入力し、コンパレータ(10)で比較され
る入力データ、AとBとの大小関係に応じた出力co−
C2を取シ出すようにしたものがある。
Conventionally, when comparing the size of digital data, the first
As shown in the figure, a comparator (10) is provided to compare n-bit digital data (n=4 in the example in Figure 1), and two parallel input data A and B to be compared are each input to a comparator (1o). The input terminals (ao,) to (
a3) t (bx) ~ (bs) Input data is input in ascending order from the LS-p-, and is compared by the comparator (10), and output co- according to the magnitude relationship between A and B.
There is one that takes out C2.

この場合、コンパレータ(10)は、2つの入力データ
AとBがA)Bのとき各出力Co −C2がCo=1゜
Cx=0 、 C2=Oとな、シ、また、A=Bのとき
出力Co=0 、 C+==1 、 C2=0、A(B
のとき出力C0=0、 C1=O,C,=0となるもの
となっている。
In this case, the comparator (10) calculates that when the two input data A and B are A)B, each output Co-C2 is Co=1°Cx=0, C2=O, and also when A=B. When output Co=0, C+==1, C2=0, A(B
When , the output C0=0, C1=O, C,=0.

しかし、このような従来のコンパレータにおいては、入
力データをJ七較するコンパレータ(10)の入力ビツ
ト数によって比較可能なピット長が制限されてしまい、
それ以上のビット長の2つの入力データを比較する場合
には複数個のコンパレータを用いることが必要になシ、
また、それらを接続するために種々の周辺回路を付加し
なければならないなどの欠点があった。
However, in such conventional comparators, the pit length that can be compared is limited by the number of input bits of the comparator (10) that compares the input data.
When comparing two input data with longer bit length, it is necessary to use multiple comparators.
Further, there is a drawback that various peripheral circuits must be added to connect them.

この発明は上記のような従来のものの欠点を除去するた
めになされたもので、コンパレータの各比較出力をそれ
ぞれフリップフロップでラッチし、これらフリップフロ
ップの各出力をそれぞれコンパレークの入力側にフィー
ドバック(帰還ともいう)させることにより、任意のピ
ット長の入力データを唯一つのコンパレータで比較を行
うようにしたディジタルコンパレータを4部供すること
を目的としている。
This invention was made in order to eliminate the drawbacks of the conventional ones as described above. Each comparison output of the comparator is latched by a flip-flop, and each output of these flip-flops is fed back to the input side of the comparator. The purpose is to provide four digital comparators that can compare input data of any pit length using only one comparator.

以下、この発明の実施例を図に基いて説明する。Embodiments of the present invention will be described below with reference to the drawings.

第2図はこの発明の一実施例によるディジタルコンパレ
ータを示ず回路借成図である。同図において、(10)
は従来と同様のコンパレータであシ、この入力端子(n
l)には直列の入力デ〜りAが被比較信号として入力さ
れ、その入力端子(bl)には直列の入カデ〜りBが比
較信号として入力されている。(11)、(12)はコ
ンパレータ(10)のそれぞれの比較出力(A>B )
 l (A<8 )を入力とするノリツブフロップであ
り、これらフリップフロップ(11)、 (12)のク
ロック端子(T)には比較すべき2つの直列の入力デー
タA、I3と同期したクロックパルスCPが入力される
。そしで、7リツプンロツプ(H)の出力Qはコンパレ
ータ(10)のLSB部の入力端子(駒)に、フリップ
フロップ(12)の出力Qは同じくコンパレータ(10
)の入力端子(bo)にそれぞれフィードバックされて
いる。また、各7リツプ7rIツブ(11)、 (12
)の出力はノア(NOR)回路(13)に入力されてお
シ、フリップフロップ(11)(7) 出力Qがコンパ
レータ(10)の出力(A>11)に対応した出力CO
として取シ出さ11.る。また、ノア回路(13)の出
力がコンパレータ(10)のイ、8力(A=n)に対応
した出力CIとし、フリップフロップ(12)の出力Q
がコンパレータ(1o)の出力(1c<n)に対応した
出力C2としてそれぞれ取シ出されるものとなっている
。なお、ラリツブフロップ(11)および(12)のリ
セット端子(R)にはリセットパルスRPが入力される
FIG. 2 is a circuit diagram without showing a digital comparator according to an embodiment of the present invention. In the same figure, (10)
is a comparator similar to the conventional one, and this input terminal (n
A serial input signal A is input as a comparison signal to the input terminal (bl), and a series input signal B is input to the input terminal (bl) as a comparison signal. (11) and (12) are the respective comparison outputs (A>B) of the comparator (10)
1 (A<8), and the clock terminals (T) of these flip-flops (11) and (12) have a clock synchronized with the two serial input data A and I3 to be compared. Pulse CP is input. Then, the output Q of the 7 flip-flop (H) is connected to the input terminal (piece) of the LSB part of the comparator (10), and the output Q of the flip-flop (12) is connected to the input terminal (piece) of the LSB part of the comparator (10).
) are fed back to the input terminals (bo) of the respective input terminals (bo). In addition, each 7 lip 7rI tube (11), (12
) is input to the NOR circuit (13), and the output of the flip-flop (11) (7) is the output CO whose output Q corresponds to the output (A>11) of the comparator (10).
Take out as 11. Ru. In addition, the output of the NOR circuit (13) is the output CI corresponding to the A and 8 outputs (A=n) of the comparator (10), and the output Q of the flip-flop (12) is
are respectively taken out as the output C2 corresponding to the output (1c<n) of the comparator (1o). Note that a reset pulse RP is input to the reset terminals (R) of the Raritub flops (11) and (12).

このように、コンパレータ(10)に入力する比較デー
タA、13を直列人力データとし、コンパレータ(10
)の各比較出力(A>B ) 、 (A<B )をフリ
ップフロップ(11)、 (12)に入力とする。そし
て、このクリップ70ツブ(11)の出力Qをコンパレ
ータ(10)のLSI3部の入力端子(−0)にフィー
ドバックさせ、同様に7リツプフロツプ(12)の出力
Qt−コンパレータ(10)のLSB部の入力端子(b
O)にフィードバックさせる。したがって、各フリップ
フロップ(11)、 (12)のクロック端子(T)に
直列の入力データA、Bと同期したクロックパルスCP
を入力することにより、各クロックパルスごとに比較人
力データA、BのI、Sllから1.・ビットずつ比較
され、その出力データがり′ロックパルスに同期してフ
リップフロップ(11)、 (12)にラッチされ、こ
の出力がコンパレータ(10)の入力側にフィードバッ
クされる。次のクロックパルスCPにて、次の入力ビツ
トと前クロックパルスでフィードバックして得られたコ
ンパレータ(10)の出力との2ビツトずつが比較され
、それらの大小に応じてコンパレータ(1のから比較結
果が出力され、そめ出力データがフリップフロップ(1
1)、 (12)にラッチされる。以後、これらの動作
を繰り返すことにより、各クロックパルスCPの時点t
l、t2.・・・ に同期した入力データA、13とそ
の大小を比較した出力Co〜C2との入出力データの遷
移を示すと、下記第1表のとおシとなる。
In this way, the comparison data A and 13 input to the comparator (10) are serial human data, and the comparator (10
), the comparison outputs (A>B) and (A<B) are input to flip-flops (11) and (12). Then, the output Q of this clip 70 tube (11) is fed back to the input terminal (-0) of the LSI 3 part of the comparator (10), and similarly the output Qt of the 7 lip-flop (12) - the LSB part of the comparator (10) is fed back. Input terminal (b
Provide feedback to O). Therefore, the clock pulse CP synchronized with the serial input data A, B is applied to the clock terminal (T) of each flip-flop (11), (12).
By inputting 1. from I and Sll of comparison human power data A and B for each clock pulse.・The output data is compared bit by bit and latched in flip-flops (11) and (12) in synchronization with the lock pulse, and this output is fed back to the input side of the comparator (10). At the next clock pulse CP, the next input bit is compared 2 bits at a time with the output of the comparator (10) obtained by feedback with the previous clock pulse, and depending on their magnitude, the comparator (from 1 to 1) is compared. The result is output, and the output data is transferred to the flip-flop (1
1) and (12). Thereafter, by repeating these operations, the time t of each clock pulse CP
l, t2. The transition of input/output data between the input data A, 13 synchronized with , and the outputs Co to C2 whose magnitudes are compared is shown in Table 1 below.

第1表 即ち、第1表はフリップフロップ(11)、ノア回路(
13)および7リツプフロツブ(12)の出力Co、C
1およびC2の各クロックパルスの時点tl +t2t
・・・におけるコンパレータの比較結果を示しておシ、
比較すべき直列の入力データA、Bつまシ1ビットの入
力データAl 、Bt  がコンパレータ(10)に1
1原次入力すれば、入力される1ビツト毎にそのクロッ
ク入力以前の各フリップフロップ(11)および(12
)の出力が入力信号Ao、I3o としてコンパレータ
(10)のLSI1部の入力端子(&0)および(bo
)にフイードパックされているので、常に最新の入力デ
ータAt 、T3t が入った時点で比較結果が更新ま
たは維持される。このようにして、任意のビット数のデ
ータを1つのコンパレータ(10)で比較することが可
能になシ、この結果U、リセットパルスRPが7リツプ
70ツブ(it)、(12)のリセット端子匹)に入力
されるまで有効となる。
Table 1, that is, Table 1 shows the flip-flop (11), the NOR circuit (
13) and the output Co, C of the 7 lip flop (12)
Time tl + t2t of each clock pulse of 1 and C2
Showing the comparison results of the comparators in...
Serial input data A and B to be compared and 1-bit input data Al and Bt are input to the comparator (10).
If one primary input is applied, each input bit causes each flip-flop (11) and (12) before the clock input.
) is input to the input terminals (&0) and (bo
), the comparison results are always updated or maintained when the latest input data At, T3t is received. In this way, it is possible to compare data of any number of bits with one comparator (10), and as a result, the reset pulse U and reset pulse RP are 7 and 70 bits (it) at the reset terminal (12). It remains valid until it is entered in

なお、上記実施例では比較データとしてそれぞれ1チヤ
ネルの直列データの場合について示したが、並列BCD
つま、91チヤネルが4ビツトで構成される2データの
コンパレータとして実現させることも全く同様の手段で
可能となる。
In addition, in the above example, the case of serial data of one channel was shown as comparison data, but parallel BCD
In other words, it is also possible to implement the 91 channel as a 2-data comparator composed of 4 bits using exactly the same means.

以上のように、この発明によれは、コンパレータの出力
に7リツプ70ツブを接続し、その出力をコンパレータ
の入力側にフィードバックさせるように構成したので、
唯一つのコンパレータだけで比較データを任意のビット
数に設定可能となり、また回路を実現する部品数も従来
の回路よシ少なくて済み、回路の簡素化がはかれる効果
がある。
As described above, according to the present invention, 7 lips and 70 tubes are connected to the output of the comparator, and the output is fed back to the input side of the comparator.
Comparison data can be set to any number of bits using only one comparator, and the number of components required to implement the circuit is also smaller than that of conventional circuits, which has the effect of simplifying the circuit.

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

第1図は従来のディジタルコンパレータを示す構成図、
第2図はこの発明の一実施例によるディジタルコンパレ
ータを示す回路構成図である。 (10)・・・・コンパレータ、(it)、(12)・
ψ・・フリップフロップ、(13)―・・−ノア回路。 代理人  葛 野 信 − 特許庁長官殿 ■、小事件表示    特願昭 57−144409号
2、発明の名称 ディジタルコンパレータ 3、補正をする者 代表者片由仁へ部 5、補正の対象 明細書の発明の詳細な脱時の欄 6、補正の内容 Ill  明細書第2頁第1行の[(bl)〜(b:1
’)jをr (bo”t〜(b3)Jと補正する。 以  上
Figure 1 is a configuration diagram showing a conventional digital comparator.
FIG. 2 is a circuit diagram showing a digital comparator according to an embodiment of the present invention. (10)... Comparator, (it), (12)
ψ...Flip-flop, (13)--Nor circuit. Agent Makoto Kuzuno - Mr. Commissioner of the Japan Patent Office■, Small case indication Japanese Patent Application No. 57-144409 2, Title of the invention Digital comparator 3, Part 5 to representative Kata Yuni of the person making the amendment, Invention of the specification subject to the amendment Detailed omission column 6, content of amendment [(bl) to (b:1
')j is corrected as r(bo"t~(b3)J. That's all.

Claims (1)

【特許請求の範囲】[Claims] ディジタルの入力データの大小を比較するコンパレータ
において、前記コンパレータの各比較出力をそれぞれラ
ッチするフリップ70ツブを設け、これらフリップフロ
ッグの各出力をそれぞれ前記コンパレータの入力側に帰
還させることにより、前記フリップフロップの各出力を
比較出力として取シ出すようにした・ことを/)¥t1
tとするディジタルコンパレータ。
In a comparator that compares the magnitude of digital input data, a flip-flop 70 is provided to latch each comparison output of the comparator, and each output of these flip-flops is fed back to the input side of the comparator, so that the flip-flop I made it possible to extract each output as a comparison output/)\t1
A digital comparator with t.
JP14440982A 1982-08-18 1982-08-18 Digital comparator Pending JPS5933546A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14440982A JPS5933546A (en) 1982-08-18 1982-08-18 Digital comparator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14440982A JPS5933546A (en) 1982-08-18 1982-08-18 Digital comparator

Publications (1)

Publication Number Publication Date
JPS5933546A true JPS5933546A (en) 1984-02-23

Family

ID=15361496

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14440982A Pending JPS5933546A (en) 1982-08-18 1982-08-18 Digital comparator

Country Status (1)

Country Link
JP (1) JPS5933546A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0284822A (en) * 1988-08-31 1990-03-26 Railway Technical Res Inst Method and device for stabilizing frequency of bit data comparing and judging device
US10873441B2 (en) * 2019-03-29 2020-12-22 Teledyne E2V Semiconductors Sas Method for synchronizing digital data sent in series

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0284822A (en) * 1988-08-31 1990-03-26 Railway Technical Res Inst Method and device for stabilizing frequency of bit data comparing and judging device
US10873441B2 (en) * 2019-03-29 2020-12-22 Teledyne E2V Semiconductors Sas Method for synchronizing digital data sent in series

Similar Documents

Publication Publication Date Title
JPS5933546A (en) Digital comparator
JPS60193082A (en) Analog signal processor
JPS6229239A (en) Frame synchronizing system in cyclic information transmitter
JPH0210619B2 (en)
JPS59123337A (en) Frame synchronizing system
JPS6010922A (en) Binary counter
JPS6097727A (en) Analog-digital converter
KR0143245B1 (en) 2&#39;s complement type serial data operating device using latch
JPS55158752A (en) Receiving system for inverse double transmission data
JP2731881B2 (en) Mark ratio setting circuit
JPH0722915Y2 (en) Digital automatic optimum phase synchronization circuit
KR920009069B1 (en) Extention method of motion factor
JPS5851616A (en) Serial-parallel converting system
JP2599984B2 (en) Input data peak value detection circuit
KR20000043989A (en) Up-down counter
JPS598428A (en) Time division integraed s/p conversion circuit
JP3471275B2 (en) Synchronization circuit
JPS62227220A (en) Frequency division circuit
JPS61284117A (en) Sequential comparison type analog-digital converter
JPS63194422A (en) Parallel-serial conversion circuit
JPS62276928A (en) Signature conversion circuit
JPH01263839A (en) Synthesizing circuit for pendulum circuit
JPS63201719A (en) Complement generating circuit
JPS62133821A (en) Analog-digital converter
JPH07200254A (en) Serial data arithmetic circuit