JPS63304318A - Multi-input comparator - Google Patents

Multi-input comparator

Info

Publication number
JPS63304318A
JPS63304318A JP14080187A JP14080187A JPS63304318A JP S63304318 A JPS63304318 A JP S63304318A JP 14080187 A JP14080187 A JP 14080187A JP 14080187 A JP14080187 A JP 14080187A JP S63304318 A JPS63304318 A JP S63304318A
Authority
JP
Japan
Prior art keywords
circuit
data
input
selection
output
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
JP14080187A
Other languages
Japanese (ja)
Inventor
Minoru Usami
宇佐見 稔
Tsutomu Hayase
早瀬 力
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP14080187A priority Critical patent/JPS63304318A/en
Publication of JPS63304318A publication Critical patent/JPS63304318A/en
Pending legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

PURPOSE:To acquire the output data of each sequence at a high speed by using a memory circuit and a level deciding circuit which produces sequentially the selection signals for each shift pulse and in the order of levels. CONSTITUTION:The input data E-H are supplied to a latch circuit 3 and stored there. The latch data 9 undergoes the comparison of levels through a 2-input comparator 4 in terms of the combination to select two out of four pieces of data. Then a level deciding circuit 5 produces successively the selection signals 17 by the outputs of the circuits 4 and in the order of higher levels of data. A coder 14 converts four signals 17 into the 2-bit signals and sends them to a selection circuit 6. The circuit 6 selects a pieces of data corresponding to the selection signal out of the input data 9. Then a shift register 15 stores the selected data synchronously with a shift pulse 12. Thus the output data 7 are arranged in the order of higher levels after inputting the 4th pulse 12.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は多入力比較回路、特に複数の2進数で表わされ
るデータをデータの最大値(または最小値)の1唄に並
べ替えて出力する多入力比較回路に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a multi-input comparator circuit, particularly a multi-input comparator circuit that rearranges data represented by a plurality of binary numbers into one song of the maximum value (or minimum value) of the data and outputs the same. Related to multi-input comparison circuits.

〔従来の技術〕[Conventional technology]

従来、この檀の多入力比較回路は、第4図1c4入力比
較回路の場合を示すように、各入力データ毎のラッチ回
路と、複数個の2入力比較回路と、最大入力判定回路と
、リセ、トノくルス発生回路と、符号器と、選択回路と
、7フトレジスタとを有して構成されている。なお第5
図は最犬入力刊定回路の回路図である。
Conventionally, this multi-input comparison circuit has a latch circuit for each input data, a plurality of two-input comparison circuits, a maximum input determination circuit, and a reset circuit, as shown in the case of the 4-input comparison circuit shown in FIG. , a pulse generation circuit, an encoder, a selection circuit, and a 7-foot register. Furthermore, the fifth
The figure is a circuit diagram of the most dog input publication circuit.

次にその動作を説明する。4つの入力データ1(E、F
、G、H)G!、ラッチ回路10IC人カされ、ラッチ
パルス2に同期して記憶される。次に複数個の2入力比
較回路4において、4個中2個を選ぶ組合せ全てについ
て、大小比較が行なわれる。この場合の組合せ数は、(
1)式で求められるように6となる。
Next, its operation will be explained. Four input data 1 (E, F
,G,H)G! , the latch circuit 10 IC is input and stored in synchronization with the latch pulse 2. Next, in the plurality of two-input comparison circuits 4, magnitude comparisons are performed for all combinations in which two of the four are selected. In this case, the number of combinations is (
1) It becomes 6 as determined by formula.

nCr = 4 C2=−」ニー−=62 ! (4−
2) !    °−−−−−(1)なお、回路全体と
しては入力データの太さぎ順に並べて出力するものであ
るため、この比較回路では2つの人力データが同唾でめ
った場合は、A側のデータが大きかったものとして処理
している。
nCr=4 C2=-”knee=62! (4-
2)! °------(1) Since the circuit as a whole outputs the input data in order of thickness, in this comparison circuit, if two pieces of manual data are the same, the data on the A side will be output. It is treated as if it were large.

次に、6つの2入力比較回路4の出力8は最大入力判定
回路114C入力され、その論理回路によって4つのう
ちの1つが選択される。っまり、入力データEが最大値
である場合は (E≧F)ρ(E≧G)(′N(E≧H)の比較結果が
得られ、第5図の象大入力判定回路のアンド回路11m
−1ipのうちのアンド回路11mの出力のみが1H”
レベルとなる。同様に最大値が入力データF、Gまたは
Hの場合には、それぞれアンド回路11n、llo’!
たI!lipの出力のみが1H#レベルとなる。この4
つの出力線からなる最大値選択信号16は、符号器14
によシ2ビ、トの信号にコード化され、選択回路6にお
いて、ラッチ回路10罠記憶されているデータの甲のか
ら最大値選択信号16に対応するデータのlりを抽出す
るとともに、この最大値選択信号はリセットパルス発生
回路13に送られる。
Next, the outputs 8 of the six two-input comparison circuits 4 are input to the maximum input determination circuit 114C, and one of the four is selected by the logic circuit. In other words, when the input data E is the maximum value, the comparison result of (E≧F)ρ(E≧G)('N(E≧H) is obtained, and the AND circuit 11m
Only the output of AND circuit 11m of -1ip is 1H"
level. Similarly, when the maximum value is input data F, G, or H, AND circuits 11n and llo'!
Ta I! Only the output of lip becomes 1H# level. This 4
The maximum value selection signal 16 consisting of two output lines is transmitted to the encoder 14.
The selection circuit 6 extracts the data corresponding to the maximum value selection signal 16 from the data stored in the latch circuit 10, and extracts the data corresponding to the maximum value selection signal 16. The maximum value selection signal is sent to the reset pulse generation circuit 13.

欠1’(77トパルス12がシフトレジスタ15に入力
されると、シフトレジスタ15の1段目のレジスタ15
aに選択回路6で抽出されていた最大値のデータが記憶
され、また、リセットパルス発生l!121路13では
、先の最大値選択信号16の4りの出力線とシフトパル
スとのそれぞれの論理積がとられる。この4つの論理積
13a〜13dは、先に最大値を示していたもの1つだ
けがW″H”レベルを出力し、リセット信号としてラッ
チ回路lOK記憶していたデータのlり、りまシ最大値
のデータのみをリセ、トシ10′にする。この動作によ
り2入力比較回路4への入力信号は、2着目に大きなデ
ータが新たな最大値データとなって比較データ8を更新
する。同様にしてシフト パルス12が入る毎に比較デ
ータ84更新される。このようにして、4つのシフトパ
ルス12が入力サレること罠より、シフトレジスタ15
には、大キナデータの順にレジスタ15d、15c、1
5bおよび15aから出力データ7が得られる。
Missing 1' (77 When pulse 12 is input to shift register 15, register 15 of the first stage of shift register 15
The maximum value data extracted by the selection circuit 6 is stored in a, and a reset pulse is generated l! In the 121 path 13, the respective ANDs of the four output lines of the previous maximum value selection signal 16 and the shift pulse are taken. Of these four logical products 13a to 13d, only one which had previously shown the maximum value outputs the W"H" level, and the data stored in the latch circuit lOK is used as a reset signal. Only the maximum value data is reset and set to 10'. As a result of this operation, the input signal to the two-input comparison circuit 4 updates the comparison data 8 with the second largest data becoming the new maximum value data. Similarly, the comparison data 84 is updated every time the shift pulse 12 is input. In this way, the shift register 15 is prevented from inputting four shift pulses 12.
registers 15d, 15c, 1 in the order of major kina data.
Output data 7 is obtained from 5b and 15a.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の多入力比較回路は、最大値のみを選択し
ながらシフトパルスを入力データの数与えることにより
、シフトレジスタへ太きgの[Cデータを保持させるも
のとなっているので、全入力データが1幀位毎のデータ
として出力されるまでには、少なくとも、データ数(ロ
)の2人力比較をする時間が必要であるという欠点があ
る。
The conventional multi-input comparator circuit described above allows the shift register to hold thick g [C data] by applying shift pulses to the number of input data while selecting only the maximum value. There is a drawback that at least time is required to compare the number of data (b) by two people before the data is output as data for each rank.

本発明の目的は、記憶回路を含む大小判定回路によシ、
1回の2入力比較回路の結果からデータを大きさの順に
並べることによシ、2入力比較回路の比較を複数回繰返
すことなく迅速に出力データの得られる多入力比較回路
を提供することにある0 〔問題点を解決するための手段〕 本発明の多入力比較回路は、複数の2進数で表わされる
データをり、テパルスによって記憶するラッチ回路と、
このラッチ回路に記憶された複数個のデータから2個の
データを選ぶすべての組合せのそれぞれについて大小関
係を比較するm数個の2入力回路と、リセットパルスに
よって初期化された後に前記複数個の2入力比較回路の
出力から最大値(または最小値)のデータを判定して選
択信号を出力し、シフトパルスが入力される毎にその選
択信号を保持し、保持された選択信号と前記2入力比較
回路の出力との論理積によシ欠に大きい(または小さい
)データの判定を繰返すことにより、大きい順(または
小さい順)に選択信号を出力する大小判定回路と、前記
ラッチ回路に記tはされた複数個のデータを大小判定回
路から出力される選択信号により選択する選択回路と、
この選択回路で選択された出力をシフトパルスによつて
順次移送するンフトレジスタとを有して構成される。
An object of the present invention is to use a size determination circuit including a memory circuit.
To provide a multi-input comparator circuit that can quickly obtain output data without repeating the comparison of the two-input comparator circuit multiple times by arranging data from the results of a single two-input comparator circuit in order of size. [Means for solving the problem] The multi-input comparator circuit of the present invention includes a latch circuit that stores data represented by a plurality of binary numbers using tepulses;
m number of 2-input circuits that compare the magnitude relationship for each of all combinations of selecting two pieces of data from a plurality of pieces of data stored in this latch circuit; The data of the maximum value (or minimum value) is determined from the output of the 2-input comparator circuit, and a selection signal is output, and each time a shift pulse is input, the selection signal is held, and the held selection signal and the 2 inputs are a magnitude determination circuit that outputs selection signals in ascending order (or descending order) by repeatedly determining data that is consistently large (or small) by logical product with the output of the comparison circuit; a selection circuit that selects the plurality of pieces of data according to a selection signal output from the size determination circuit;
It is configured to include a shift register that sequentially transfers the output selected by the selection circuit using a shift pulse.

〔実施例」 次に、本発明の実施例につい1図面を参照して説明する
[Example] Next, an example of the present invention will be described with reference to one drawing.

第1図は本発明の一実施例の回路図であり、4入力デー
タの場合を示している。第1図において第4図と同じ符
号のものは同じものを示している。
FIG. 1 is a circuit diagram of an embodiment of the present invention, and shows the case of 4 input data. In FIG. 1, the same reference numerals as in FIG. 4 indicate the same components.

図において、4つの入力データlとう、テパルス2は、
7ツチ回路3へ入力される。ラッチ回路3の出力は2入
力比較回路4と選択回路6とへ入力される。大小判定回
路5へは、6つの2入力比較回路4の出力8と、ンフト
 パルス12およびリセットパルス18が入力される。
In the figure, the four input data l and te pulse 2 are as follows:
It is input to the 7-touch circuit 3. The output of the latch circuit 3 is input to a two-input comparison circuit 4 and a selection circuit 6. The outputs 8 of the six two-input comparison circuits 4, the offset pulse 12, and the reset pulse 18 are input to the magnitude determination circuit 5.

選択回路6にはラッチ回路3にう、チされたう、テデー
タ9と、大小判定画w!r5から得られた順位選択信号
17を符号器14でコード化した信号とが入力される。
The selection circuit 6 contains the latch circuit 3, ``Yes'', ``Checked'', data 9, and a size determination image lol! A signal obtained by encoding the rank selection signal 17 obtained from r5 by the encoder 14 is input.

ンフトレジスタ15には選択回路6の出力およびンフト
 パルス12が入力され、その出力が出力データ7とな
る。
The output of the selection circuit 6 and the shift pulse 12 are input to the shift register 15, and its output becomes the output data 7.

矢に第1図の動作について説明を進めると、まず4つの
入力データ1(E、F、GおよびH)は、ラッチ回路3
に入力され、ラッチパルス2に同期して記憶される。次
にラッチデータ9は6つの2入力比較回路4において、
4個中2個を選ぶ組合せ全てについて大小比較が行なわ
れる。なお、回路全体としては、入力データの大きい順
に韮べて出力するものであるため、この比較回路では、
2つのデータが同値であった場合は、A@のデータが大
きかったものとして処理している。次に、この6つの2
入力比較回路4の出力により、大小判定回路5ではデー
タの大きな順位ごとに順次選択信号17を発生する。
To explain the operation of FIG. 1 according to the arrows, first, the four input data 1 (E, F, G, and H)
and is stored in synchronization with latch pulse 2. Next, the latch data 9 is sent to six two-input comparison circuits 4,
A size comparison is performed for all combinations in which two out of four are selected. In addition, since the circuit as a whole outputs the input data in descending order, this comparison circuit
If the two data have the same value, it is assumed that the data of A@ is larger. Next, these six 2
Based on the output of the input comparison circuit 4, the magnitude determination circuit 5 sequentially generates a selection signal 17 for each order of data.

第2図は大小判定回路5の一例を示す回路図である。こ
の大小判定回路5は、インバータ回路5al 〜5a6
.5cl 〜5c6,5g1〜5g6と、アンド回路5
bl〜5b6.5dl〜5d6゜5el 〜5e6.5
hl 〜5h4.5 i1〜5i4と、オア回路5fl
〜5f6と、フリップフロ。
FIG. 2 is a circuit diagram showing an example of the size determination circuit 5. This size determination circuit 5 includes inverter circuits 5al to 5a6.
.. 5cl ~ 5c6, 5g1 ~ 5g6, and AND circuit 5
bl~5b6.5dl~5d6゜5el~5e6.5
hl ~5h4.5 i1~5i4 and OR circuit 5fl
~5f6 and flip-flo.

プ5j1〜5j4とで構成されている。まず、フリップ
フロ、グ511〜5j4はリセットパルス18によって
全てリセットされている。
5j1 to 5j4. First, the flip-flops 511 to 5j4 are all reset by the reset pulse 18.

次に、6つの比較データ8が入力されると、インバータ
回路5al〜5a6によシそれぞれの反転信号が得られ
る。これらの反転信号は比較データ8に対し、それぞれ
E≧F、E≧G、E≧H9F≧G、F≧H,G≧Hの意
味を持つ。アンド回路5dl〜5d6には、それぞれの
比較データ8と、比較した2信号に関係するフリ、グア
0ツブ5jl〜5j4のQ出力のアンド回路5bl〜5
b6の反転信号5cl〜5C6とが入力される。
Next, when six pieces of comparison data 8 are input, respective inverted signals are obtained from inverter circuits 5al to 5a6. These inverted signals have the meanings of E≧F, E≧G, E≧H9F≧G, F≧H, and G≧H for comparison data 8, respectively. AND circuits 5dl to 5d6 include respective comparison data 8 and AND circuits 5bl to 5 of the Q outputs of the signals 5jl to 5j4 related to the two compared signals.
Inverted signals 5cl to 5C6 of b6 are input.

また、アンド回路5el〜5e6にI言それぞれの比較
データの反転信号と、アンド回路5bl〜5b6の出力
信号が入力される。この2つのアンド回路5dl 〜5
d6と5 e 1〜5 e 6との論理和はオア回路5
flの場合(2)式で示される。
Further, the inverted signals of the comparison data of the respective I words and the output signals of the AND circuits 5bl to 5b6 are input to the AND circuits 5el to 5e6. These two AND circuits 5dl ~5
The logical sum of d6 and 5 e 1 to 5 e 6 is OR circuit 5
In the case of fl, it is expressed by equation (2).

(E<F )・QK−QF+(E≧F)・QE−QF・
・・・・・(2)ここでQE、QFはノリ、グア0.グ
5J1゜5j2のQ出力をさし、これらの7リツプ70
ツグがセットされた時は″″L#L#レベル。従うてフ
リ、グフロ、グ5jllたは5J2がセットされること
罠より、EくFのときはオア回路5flはOから1に変
り、またE≧Fのとぎは、lからQK変る。つまり、セ
ットされる前の状態を反転させるようになっている。第
2図はこれら6つのオア回45fL〜5f6の出力から
入力データ1を大きさ順に選択するための信号を生成す
るようなっていて、この大小判定回路5では、入力デー
タの大きい順に選択するものになっており、最初には次
のようにして最大値が選ばれる。即ち、リセットパルス
18によりフリップフロ、グ5j1〜5J4のQttl
力1ユ全1ユ全Hsであるから、オア回路5fl〜5f
6の出力1ま、比較データ8の反転信号そのままとなる
。次いで、アンド回路5hl〜5h41j、オア回路5
fl〜5f6の出力と、そのインバータ回路5g1〜5
g6の出力とから、最大値を選択し、その出力を“l■
”レベルにする。
(E<F)・QK−QF+(E≧F)・QE−QF・
...(2) Here, QE and QF are Nori and Gua 0. Indicates the Q output of the group 5J1゜5j2, and these 7
When Tsugu is set, it is ``''L#L# level. Accordingly, when Furi, Gflo, G5jll or 5J2 is set, the OR circuit 5fl changes from O to 1 when E is F, and when E≧F, it changes from l to QK. In other words, the state before being set is reversed. FIG. 2 shows a circuit that generates a signal for selecting input data 1 in order of magnitude from the outputs of these six OR circuits 45fL to 5f6, and this magnitude determination circuit 5 selects input data in order of magnitude. , and the maximum value is initially selected as follows. That is, the reset pulse 18 causes the Qttl of the flip-flops 5j1 to 5j4 to
Since the force is 1 unit and all 1 unit is Hs, OR circuit 5fl to 5f
The output 1 of 6 remains the inverted signal of comparison data 8 as it is. Next, AND circuits 5hl to 5h41j, OR circuit 5
Outputs of fl~5f6 and their inverter circuits 5g1~5
Select the maximum value from the output of g6 and set the output to “l■
“Level it up.

つまり、入力データE、F、G、Hのうちの最大がEで
あれば、E≧F、E≧G、E≧Hの条件が成りたちアン
ド回路5hlのみが1H”レベルになる。′!た、最大
がFであればE(F、F≧G。
In other words, if the maximum of input data E, F, G, and H is E, the conditions of E≧F, E≧G, and E≧H are satisfied, and only the AND circuit 5hl becomes 1H” level.'! Also, if the maximum is F, then E(F, F≧G.

F≧Hの条件が成りたちアンド回路5h2のみが、最大
がGであればE(G、F(G、G≧Hの条件が成りたち
アンド回路5h3のみが、最大がHであればE(H,F
(H,G(Hの条件が成り立ちアンド回路5h4のみが
それぞれ1H”レベルとなる。これらアンド回路5hl
〜5114の4本の信号が順位選択信号17として符号
器14へ送られる。また、シフトパルス12に同期して
フリ。
If the condition of F≧H holds true, only the AND circuit 5h2, if the maximum is G, E(G, H,F
(H, G (H conditions hold, and only the AND circuit 5h4 becomes 1H" level. These AND circuits 5hl
The four signals 5114 to 5114 are sent to the encoder 14 as the rank selection signal 17. Also, it is synchronous with shift pulse 12.

グフロッグ5j1〜s34に記憶され、最大値に選択さ
れた入力データに関するフリ、グア0.グのみセットさ
れる。このセットされたフリ、グフロッグのQ出力は、
6つのアンド回路5bl〜5b6のうち、3つの出力を
反転させ、それらに関係するオア回路5fl〜5f6の
出力のうちの3つを反転させる。従って2番目に大きな
入力データは、それらオア回路出力の残シの3信号から
同様にして選ばれ、2つめのシフトパルス12によって
、フリ、グ フロ、グ5j1〜5j4に記憶される。こ
のとき、前に最大値に選択されたものけ、そのフリッグ
フロ、グのQ出力によって、シフトパルス12の入力を
禁止しているため、その捷ま保持されている。このよう
にして同様の動作をデータ数回繰り返すことにより、順
位選択信号17が順序よく生成される。
Furi, Gua 0. set only. The Q output of this set Furi and Gufrog is:
Outputs of three of the six AND circuits 5bl to 5b6 are inverted, and three of the outputs of the OR circuits 5fl to 5f6 related thereto are inverted. Therefore, the second largest input data is similarly selected from the remaining three signals of the OR circuit outputs, and is stored in FRI, GFURO, and G5j1 to G5j4 by the second shift pulse 12. At this time, input of the shift pulse 12 is inhibited by the Q output of the flip-flop, which was previously selected to the maximum value, so that the shift pulse is maintained. In this way, by repeating the same operation several times for data, the rank selection signal 17 is generated in an orderly manner.

次に符号器14ではこの4本の順位選択信号17を、2
ビツトの信号に変換し、選択回路6へ送る。
Next, the encoder 14 converts these four rank selection signals 17 into 2
It is converted into a bit signal and sent to the selection circuit 6.

選択回路6では、入力され℃いるう、チデータ9の中か
ら選択信号に対応するデータを1つ選び、次のシフトレ
ジスタ15では、これを77トハルス12に同期させて
記憶する。このようにして4りめのシフトパルス12が
入力された後には、出力データ7として、大きい順に並
んだデータが得られる。
The selection circuit 6 selects one piece of data corresponding to the selection signal from among the input data 9, and the next shift register 15 stores it in synchronization with the 77th pulse 12. After the fourth shift pulse 12 is input in this manner, data arranged in descending order of magnitude is obtained as output data 7.

なお、本実施例では、大小判定回路5からの選択信号を
符号器14にてコード化し℃いるが、選択回路6の回路
構成によってはコード化せずにそのまま入力してもよく
、その場合には符号器14は不喪罠なる。
In this embodiment, the selection signal from the magnitude determination circuit 5 is encoded by the encoder 14, but depending on the circuit configuration of the selection circuit 6, it may be input as is without being encoded. In this case, the encoder 14 becomes a fumo trap.

第3図は本発明の別の実施例の回路図で、3入力データ
の場合を示し℃いる。回路構成、動作とも第1図の実施
例と同じであるが、第3図では、3人力比較であるため
2入力比較回路4は3つである。また、大小判定回路5
Aは、アンド回路5kl 〜5に3.5n1〜5n3.
5o1〜5゜3と、エクスクル−7ブ0几回路511〜
513と、インバータ回路5 m 1〜5 m 3とフ
リ、グフロ、グ5pl〜5p3とで構成され℃おり、第
2図のインバータ回路2つとアンド回路2つとオア回路
1つとをエクスクル−7グO凡回路1)K置換えている
う なお、第1図および第3図の実施例において、大小判定
回路は入力データの最大値のものから選択するものとし
たが、逆に入力データの最小値のものから選択しても一
向に拘わないことは明らかである。
FIG. 3 is a circuit diagram of another embodiment of the present invention, showing the case of three input data. Although the circuit configuration and operation are the same as the embodiment shown in FIG. 1, in FIG. 3, there are three 2-input comparison circuits 4 because the comparison is performed by three people. In addition, the size determination circuit 5
A is the AND circuit 5kl to 5 and 3.5n1 to 5n3.
5o1~5゜3 and exclusive 7b0 circuit 511~
513, inverter circuits 5m1 to 5m3, and Furi, Gflo, and G5pl to 5p3, and the two inverter circuits, two AND circuits, and one OR circuit shown in Fig. General circuit 1) Replacement with K Note that in the embodiments shown in FIGS. 1 and 3, the size judgment circuit was supposed to select from the maximum value of the input data, but conversely, it selected from the maximum value of the input data. It is clear that it does not matter what you choose.

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

以上説明したように本発明は、記憶回路を有し各大きさ
の順位ごと罠、その選択信号をシフトパルスごとに順次
生成する大小判定回路を設けること罠より、全ての順位
に対する選択信号が1回の2人力比較によシ得られるた
め、各順位の出力データが従来の回路より高速に得られ
る効果がある。
As explained above, the present invention provides a trap for each rank of each size having a memory circuit, and a size judgment circuit that sequentially generates a selection signal for each shift pulse. Since the output data can be obtained by comparing two people twice, the output data of each rank can be obtained faster than the conventional circuit.

なお、本発明においては記憶回路、論理回路の大小判定
回路内部でデータ数の回数の処理を行なうが、2人力比
較に比べて処理時間が十分小さいため、全体としての処
理時間は従来の多入力比較回路に較べておよそ1/デー
タ数になる。
In addition, in the present invention, the number of times of data is processed within the size judgment circuit of the memory circuit and logic circuit, but the processing time is sufficiently small compared to the two-man comparison, so the overall processing time is shorter than that of the conventional multi-input method. Compared to the comparison circuit, it is approximately 1/the number of data.

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

第1図は本発明の一実施例の回路図、第2図は第1図の
大小判定回路の回路図、第3図は別の実施例の回路図、
第4図は従来の多入力比較回路の回路図、第5図は第4
図の中の最大入力判定回路の回路図である。 1・・・・・・人力データ、2.12・・・・・・シフ
トパルス、3.3A、10・・・・・・ラッチ回路、4
・・・・・・2入力比較回路、5.5A・・・・・・大
小判定回路、6.6A・・・・・・選択回路、7・・・
・・・出力データ、8・・・・・・比較データ、9・−
・・・・ラッチデータ、11・・・・・・最犬入力判定
回路、13・・・・・・リセットパルス発生回路、14
゜14A・・・・・・符号器、15,15A・・・・・
・シフトレジスタ、17・・・・・・順位選択信号。 )r′Jl  場 箭 2 図 第 3 図 ′!J 4 図 第 5 回
FIG. 1 is a circuit diagram of one embodiment of the present invention, FIG. 2 is a circuit diagram of the size determination circuit of FIG. 1, and FIG. 3 is a circuit diagram of another embodiment.
Figure 4 is a circuit diagram of a conventional multi-input comparison circuit, and Figure 5 is a circuit diagram of a conventional multi-input comparison circuit.
FIG. 3 is a circuit diagram of a maximum input determination circuit in the figure. 1...Manpower data, 2.12...Shift pulse, 3.3A, 10...Latch circuit, 4
...2-input comparison circuit, 5.5A...size judgment circuit, 6.6A...selection circuit, 7...
...Output data, 8...Comparison data, 9.-
... Latch data, 11 ... Most input determination circuit, 13 ... Reset pulse generation circuit, 14
゜14A... Encoder, 15,15A...
・Shift register, 17... Rank selection signal. ) r'Jl 宭 2 fig. 3 fig.'! J 4 Figure No. 5

Claims (1)

【特許請求の範囲】[Claims] 複数の2進数で表わされるデータをラッチパルスによっ
て記憶するラッチ回路と、このラッチ回路に記憶された
複数個のデータから2個のデータを選ぶすべての組合せ
のそれぞれについて大小関係を比較する複数個の2入力
比較回路と、リセットパルスによって初期化された後に
前記複数個の2入力比較回路の出力から最大値(または
最小値)のデータを判定して選択信号を出力し、シフト
パルスが入力される毎にその選択信号を保持し、保持さ
れた選択信号と前記2入力比較回路の出力との論理積に
より次に大きい(または小さい)データの判定を繰返す
ことにより、大きい順(または小さい順)に選択信号を
出力する大小判定回路と、前記ラッチ回路に記憶された
複数個のデータを前記大小判定回路から出力される選択
信号により選択する選択回路と、この選択回路で選択さ
れた出力をシフトパルスによって順次移送するシフトレ
ジスタとを有することを特徴とする多入力比較回路。
A latch circuit that stores data represented by a plurality of binary numbers using latch pulses, and a plurality of latch circuits that compare the magnitude relationships for all combinations of selecting two pieces of data from the plurality of pieces of data stored in this latch circuit. A two-input comparator circuit and, after being initialized by a reset pulse, determines the maximum value (or minimum value) data from the outputs of the plurality of two-input comparator circuits, outputs a selection signal, and inputs a shift pulse. By holding the selection signal for each time, and repeating the judgment of the next largest (or smallest) data by ANDing the held selection signal and the output of the two-input comparator circuit, a magnitude determination circuit that outputs a selection signal; a selection circuit that selects a plurality of pieces of data stored in the latch circuit according to a selection signal output from the magnitude determination circuit; and a shift pulse that outputs the output selected by the selection circuit. 1. A multi-input comparison circuit comprising: a shift register that sequentially transfers data.
JP14080187A 1987-06-04 1987-06-04 Multi-input comparator Pending JPS63304318A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14080187A JPS63304318A (en) 1987-06-04 1987-06-04 Multi-input comparator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14080187A JPS63304318A (en) 1987-06-04 1987-06-04 Multi-input comparator

Publications (1)

Publication Number Publication Date
JPS63304318A true JPS63304318A (en) 1988-12-12

Family

ID=15277056

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14080187A Pending JPS63304318A (en) 1987-06-04 1987-06-04 Multi-input comparator

Country Status (1)

Country Link
JP (1) JPS63304318A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02301878A (en) * 1989-05-16 1990-12-13 Japan Radio Co Ltd Method for sorting vertex of triangle for processing graphic picture
EP0803800A2 (en) * 1996-04-26 1997-10-29 Mitsubishi Denki Kabushiki Kaisha A sort processor and a sort processing device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02301878A (en) * 1989-05-16 1990-12-13 Japan Radio Co Ltd Method for sorting vertex of triangle for processing graphic picture
EP0803800A2 (en) * 1996-04-26 1997-10-29 Mitsubishi Denki Kabushiki Kaisha A sort processor and a sort processing device
EP0803800A3 (en) * 1996-04-26 1997-12-03 Mitsubishi Denki Kabushiki Kaisha A sort processor and a sort processing device
US5903780A (en) * 1996-04-26 1999-05-11 Mitsubishi Denki Kabushiki Kaisha Data sorting device having multi-input comparator comparing data input from latch register and key value storage devices

Similar Documents

Publication Publication Date Title
Warnaar et al. New construction of solvable lattice models including an Ising model in a field
JP4413858B2 (en) Random number test circuit
US5282147A (en) Method and apparatus for optimizing a logic network
EP0444911B1 (en) Integrated high speed synchronous counter with asynchronous read-out
US3863224A (en) Selectively controllable shift register and counter divider network
US5276635A (en) Method and apparatus for performing carry look-ahead addition in a data processor
Arun Sekar et al. Implementation of FIR filter using reversible modified carry select adder
Matsuda et al. How Far Can the SO (10) Two Higgs Model Describe the Observed Neutrino Masses and Mixings?
JPS63304318A (en) Multi-input comparator
US10592439B2 (en) Arbitrating circuitry and method
JPS6240824A (en) Synchronous type binary counter
JPS6230451B2 (en)
US3862407A (en) Decimal to binary converter
JPH0397038A (en) Multiplier
JPS59123048A (en) Sorting processor
Mathew et al. Augmented partial reset
TWI730335B (en) Sorting device
Fourny A note on weakening free choice in quantum theory
Servit Hazard correction in asynchronous sequential circuits using inertial delay elements
JPS62237523A (en) Sorting circuit
Muralidharan Performance Enhancement Counter with Minimal Clock Period
JPH01302421A (en) Multi-input comparing circuit
GB2083930A (en) Circuit for sorting a set of values into ascending or descending order of magnitude
JPH0683066B2 (en) Counter circuit
SU851783A1 (en) Circular counter