JPS6051941A - Multivariable comparing circuit - Google Patents

Multivariable comparing circuit

Info

Publication number
JPS6051941A
JPS6051941A JP15977783A JP15977783A JPS6051941A JP S6051941 A JPS6051941 A JP S6051941A JP 15977783 A JP15977783 A JP 15977783A JP 15977783 A JP15977783 A JP 15977783A JP S6051941 A JPS6051941 A JP S6051941A
Authority
JP
Japan
Prior art keywords
bit
mask
digit
data
circuit
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
JP15977783A
Other languages
Japanese (ja)
Inventor
Makoto Suwada
諏訪田 誠
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
Nippon Electric Co 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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP15977783A priority Critical patent/JPS6051941A/en
Publication of JPS6051941A publication Critical patent/JPS6051941A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30007Arrangements for executing specific machine instructions to perform operations on data operands
    • G06F9/30021Compare instructions, e.g. Greater-Than, Equal-To, MINMAX
    • 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/22Arrangements for sorting or merging computer data on continuous record carriers, e.g. tape, drum, disc

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Bus Control (AREA)

Abstract

PURPOSE:To execute quickly a multivariable comparing operation by comparing simultaneously all input variables, in case of detecting the maximum value and the minimum value in a multivariable comparing circuit. CONSTITUTION:Input registers 100-103 strobe a 4-bit data of each digit, respectively. A subscript of each variable bit shows identification of the digit. Basic function blocks 300-303 are constituted of a bit data detecting circuit, a mask bit generating circuit and a bit mask circuit. Connecting buses 200-203 and 400 -403 show connecting buses between registers 100-103 and blocks 300-303 and between each block 300-303, respectively. The buses 400-403 transfer a mask bit of an upper digit to the basic function block of a lower digit. A bus 500 connects the blocks 300-303 and an output register 600, to transfer the data.

Description

【発明の詳細な説明】 この発明はデータ処理装置における演算装置、特に多変
数の比較演算を行う多変数比較回路に関するものである
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an arithmetic unit in a data processing device, and particularly to a multivariable comparison circuit that performs multivariable comparison operations.

〈背 景〉 従来、多変数における最大値又は最小値を検出する場合
、その変数の個数をn個(n≧2)とした時、2変数の
比較回路を(n−1)個構成することにより行うか、又
はこの2変数の比較回路による動作を、2変数の大小関
係を判断して(n−1)回繰り返すことにより行われて
いた。
<Background> Conventionally, when detecting the maximum or minimum value in multiple variables, when the number of variables is n (n≧2), it is necessary to configure (n-1) two-variable comparison circuits. or by repeating the operation of this two-variable comparison circuit (n-1) times by determining the magnitude relationship between the two variables.

〈発明の目的〉 この発明の目的は変数の比較が多変数に亘る場合に、2
変数比較回路を多段接続することによるハードウェア量
の増加、又はこの回路動作を多数回繰り返すことによる
演算時間の増加を、入力変数の全てを同時に比較するこ
とにより回避し、多変数比較演算を速かに行う多変数比
較回路を提供することにある。
<Purpose of the invention> The purpose of the invention is to
By comparing all input variables at the same time, it is possible to avoid an increase in the amount of hardware due to multistage connection of variable comparison circuits or an increase in calculation time due to repeating this circuit operation many times, thereby speeding up multivariable comparison operations. The object of the present invention is to provide a multivariable comparison circuit that performs the following functions.

〈発明の概袈〉 この発明による多変数比較回路はn個m桁の2進変数に
対し、変数の各桁のn個の1ビツトデータを、上位桁の
回路から転送されたマスクデータによりマスク動作を行
うビットマスク手段と、このマスク手段によって得たn
ビットデータの全てが”1”又は“0”であることを検
出するnビットデータ検出手段と、上記ビットマスク手
段と、nビットデータ検出手段とにより得たデータによ
ってマスクビットを生成するマスクビット生成手段、と
を含んで構成される。
<Summary of the Invention> The multivariable comparison circuit according to the present invention masks n 1-bit data of each digit of the variable with mask data transferred from the upper digit circuit for n binary variables of m digits. Bit mask means for performing the operation and n obtained by this mask means
n-bit data detection means for detecting whether all bit data is "1" or "0"; mask bit generation for generating mask bits from data obtained by the bit mask means and the n-bit data detection means; It consists of means.

〈発明の原理〉 先ず、この発明による多変数比較回路の動作アルゴリズ
ムを以下に示す。
<Principle of the Invention> First, the operating algorithm of the multivariable comparison circuit according to the present invention will be described below.

1)最小値をめる場合、 1)オペランドである全ての変数の最上位1ビツトデー
タを比較し、その最小値(2進数なので全て“1″のと
きは最小値は“1#、それ以外は“0#)をめ、1ビツ
トデータのうち″1″である変数に対してマスクデータ
をたて下位に転送する。
1) When calculating the minimum value, 1) Compare the most significant 1-bit data of all variables that are operands, and calculate the minimum value (because it is a binary number, if all are "1", the minimum value is "1#", otherwise The mask data is set for the variable that is "1" among the 1-bit data and transferred to the lower order.

11)次の桁の全ての1ビツトデータを、上位かう転送
されたマスクデータによりマスクをして比較対象から除
外する。
11) All 1-bit data of the next digit is masked with the mask data transferred from the higher order and excluded from the comparison target.

111)残った1ビツトデータを比較し、その最小値(
全て“1”のとき最小値は“1”、それ以外は°0 ”
 )をめ、この最小値により1ビツトデータが°1”の
変数に対してマスクデータをたて、十位からのマスクデ
ータに付加して下位に転送する。
111) Compare the remaining 1-bit data and find the minimum value (
When all are “1”, the minimum value is “1”, otherwise it is °0”
), and using this minimum value, mask data is created for the variable whose 1-bit data is 1", added to the mask data from the 10th digit, and transmitted to the lower order.

!V) ii)及び111)の操作を順次上位桁から下
位桁に対して行う3、 比較する変数の例として、4桁4変数デ7−タ、a=0
101 、b=1001 、c=0001 。
! V) Perform the operations in ii) and 111) sequentially from the upper digit to the lower digit 3. As an example of the variables to be compared, 4-digit 4-variable data 7-a = 0
101, b=1001, c=0001.

d=1010を考え、上記操作をj以下に示す。Considering d=1010, the above operation is shown below for j.

比較後マスクデータ abed 最小値 a ’b e d 最上位桁 ”0,1,0.1” ” 0” ”0,1,
0,1”上位第2桁−11cIL O、r−::、、 
* O” ” 1 + I HO+ 1”上位第3桁 
“rXJ+L二’、0.’:、7u “0″ “1,1
,0.1”最下位桁 IJ・L−J・l、−、1”1,
1・0,1”最小値として0=0001が得られ、マス
クデータとしてM=lIO1を得る。(たソし、以下に
示す回路の説明では・・−ドウエアの簡略化のためにマ
スクデータ幻“1″と“0”の関係が逆(3) になっている。) 2)最大値をめる場合、 1)オペランドである全ての変数の最上位1ビツトデー
タを比較し、その最大値(2進数なので、全て“θ″の
とき最大値は”0”、それ以外は“1#)をめ、1ビツ
トデータのうち10”である変数に対してマスクデータ
をたて、下位に転送する。
Mask data after comparison abed Minimum value a 'b e d Most significant digit ``0,1,0.1''``0'' ``0,1,
0,1” Upper 2nd digit-11cIL O,r-::,,
* O” ” 1 + I HO+ 1” Upper 3rd digit
"rXJ+L2',0.':,7u "0""1,1
,0.1"Lowest digit IJ・L-J・l,-,1"1,
1・0,1'' 0=0001 is obtained as the minimum value, and M=lIO1 is obtained as the mask data. (The relationship between “1” and “0” is reversed (3).) 2) When calculating the maximum value, 1) Compare the most significant 1-bit data of all variables that are operands, and calculate the maximum value. (Since it is a binary number, when all values are "θ", the maximum value is "0", otherwise "1#"), mask data is created for variables that are 10 out of 1 bit data, and transferred to the lower part. do.

11)次の桁の全ての1ビツトデータを、上位から転送
されたマスクデータによりマスクをして、比較対象から
除外する。
11) Mask all 1-bit data of the next digit with the mask data transferred from the higher order and exclude it from comparison.

111)残った1ビツトデータを比較し、その最大値(
全て”0#のときは最大値“0”、それ以外は”1″)
をめ、この最大値により1ビツトデータが′″0”の変
数に対してマスクデータをたて、上位からのマスクデー
タに付加して下位に転送する。
111) Compare the remaining 1-bit data and find its maximum value (
When all are “0#”, the maximum value is “0”, otherwise “1”)
Based on this maximum value, mask data is created for a variable whose 1-bit data is ``0'', added to the mask data from the upper order, and transferred to the lower order.

iv) ii)及び111)の操作を順次上位桁から下
位桁に対して行う。
iv) Perform operations ii) and 111) sequentially from the upper digits to the lower digits.

前記のデータa、b、c、dに対して上記操作(4) を行うと以下のようになる1゜ 比較後マスクデータ abed 最大値 abed 最上位桁“0,1,0.1” ”1”1,0,1.0”
、上位第2桁 “Σ課、0,5ニコ、0″“O”i、o
、i、o”上位第3桁a7:−1,0+’T」、 1”
1” −1,、1、I−、0”最下位桁“L:’i+c
l’hクー1,0″′ ”0”]、i、1.O”最大値
として0=1010が得られ、まだマスクデータとして
M=11]0が得られる。(たソし、以下に示す回路の
説明では・・−ドウエアの簡略化のために、マスクデー
タは1”と0”の関係が逆になっている。) 〈実施例〉 次にこの発明について図面を参照して詳細に説明する。
When the above operation (4) is performed on the above data a, b, c, and d, the following will be obtained: 1° comparison mask data abed Maximum value abed Most significant digit “0, 1, 0.1” ”1 "1,0,1.0"
, upper 2nd digit “Σ section, 0,5 Nico, 0” “O”i, o
, i, o" Upper third digit a7: -1,0+'T", 1"
1” -1,, 1, I-, 0” Least significant digit “L:'i+c
0=1010 is obtained as the maximum value of l'hku1,0'''``0''], i, 1.O'', and M=11]0 is still obtained as mask data. (In the circuit description below, the relationship between 1" and 0" in the mask data is reversed to simplify the hardware.) <Example> Next, regarding this invention. This will be explained in detail with reference to the drawings.

第1図はこの発明の実施例を示すブロック図である。こ
の実施例では説明のため、4変数(a。
FIG. 1 is a block diagram showing an embodiment of the invention. For the sake of explanation, this example uses four variables (a.

b、c、d)4桁の場合を考える。100〜103は入
力レジスタを示し、各桁の4ビツトデータを各々ストロ
ーブする。各変数ビットの添字は桁の識別を示している
。300〜303は基本機能ブロックを示し、ビットデ
ータ検出回路とマスクビット生成回路及びビットマスク
回路により構成される。200〜203及び400〜4
03は各々入力レジスタ100〜103、基本機能ブロ
ック300〜303間、及び基本機能ブロック300〜
303相互間の接続バスを示しており、接続バス400
〜403は上位桁のマスクビットを下位桁の基本機能ブ
ロックに転送する。600け出力レジスタを示し、50
0は各基本機能ブロック300〜303と出力レジスタ
600との間を接続し、出力データを転送するバスを示
している。
b, c, d) Consider the case of 4 digits. Reference numerals 100 to 103 indicate input registers, which strobe the 4-bit data of each digit. The subscript of each variable bit indicates the digit identification. Reference numerals 300 to 303 indicate basic functional blocks, which are composed of a bit data detection circuit, a mask bit generation circuit, and a bit mask circuit. 200-203 and 400-4
03 are input registers 100 to 103, basic function blocks 300 to 303, and basic function blocks 300 to 303, respectively.
303 shows a connection bus between each other, and a connection bus 400
403 transfers the upper digit mask bit to the lower digit basic function block. 600 output registers are shown, 50
0 indicates a bus that connects each basic functional block 300 to 303 and the output register 600 and transfers output data.

最小値をめる場合におけるi桁目の基本機能ブロック内
の構成を第2図に示す。1o(1−i)。
FIG. 2 shows the configuration of the i-th basic functional block when calculating the minimum value. 1o(1-i).

40(i−1)、30(i−1)は第1図における入力
レジスタ100〜103、接続バス400〜403、基
本機能ブロック300〜303にそれぞれ対応し、31
(i−1)、32(i−1)、33(i−1)はそれぞ
れビットマスク回路、ビットデータ検出回路、マスクビ
ット生成N路を示す、又40(i−2)は(i−1)桁
目の基本機能ブロックのマスクビット出力の転送バスを
示している。最上位桁に関しては転送バス/10(i−
2)は全て”1″入力とする。
40(i-1) and 30(i-1) correspond to input registers 100 to 103, connection buses 400 to 403, and basic function blocks 300 to 303 in FIG.
(i-1), 32(i-1), and 33(i-1) respectively indicate a bit mask circuit, a bit data detection circuit, and a mask bit generation N path, and 40(i-2) indicates (i-1 ) shows the transfer bus for the mask bit output of the basic functional block in the digit. For the most significant digit, transfer bus /10(i-
2) are all "1" inputs.

第3図、第4図は第1図に示しだ回路にa = Q10
1、b=100]、c=0001.d−1011なる変
数を入力した場合の動作例を示す。第3図は最小値をめ
る動作である。Ma 、 Mb 。
Figures 3 and 4 are based on the circuit shown in Figure 1 with a = Q10.
1, b=100], c=0001. An example of operation when a variable d-1011 is input is shown. FIG. 3 shows the operation to find the minimum value. Ma, Mb.

Me、M’dはそれぞれ変数a、b、c、dに対応する
マスクデータであり、a’、b’、c’、d’はマスク
後のデータを示す。0は出力データを表わし、又、添字
のjは、i桁目のデータを示す。以下に論理式を示す。
Me and M'd are mask data corresponding to variables a, b, c, and d, respectively, and a', b', c', and d' indicate data after masking. 0 represents output data, and the subscript j represents data at the i-th digit. The logical formula is shown below.

(だソし、式中における演算記号(i−1)までの論理
積を、又“+”は論理和を示す) all−alIIMaト1 b、−二bi・Mbi−1 (7) Ci’ =Ci eMci−1 di ’ = d i llMd1−tOl−ail・
 biI@ C1I″ ail、 1−1 Mci=Oi・c l+・(J:OM c j)Md 
1=oi−di’・(j:oMdj)たソし、最上位桁
に関しては、MB o=Ml) 0=へ’Ic o=M
do=1である。al’+ b1’+ el’l dj
’はビットマスク回路31(i−1)の出力として得ら
れ、Oiはビットデータ検出回路a2(i−1)の出力
として得られ、Ma i +Mb i +Mc i 、
Md iはマスクビット生成回路a3(i−1)の出力
として得られる。この演算動作を最上位桁より、最下位
桁まで行うと出力Oに最小値を得、又、最下位桁のマス
クデータには最小値の変数に対応するマスクビットが“
1″としく9) (8) て出力される。
(So, the logical product up to the operation symbol (i-1) in the formula, and "+" indicates the logical sum) all-alIIMato1 b, -2bi・Mbi-1 (7) Ci' = Ci eMci-1 di ' = d i llMd1-tOl-ail・
biI@C1I″ ail, 1-1 Mci=Oi・c l+・(J:OM c j)Md
1=oi-di'・(j:oMdj), and for the most significant digit, MB o=Ml) 0=to'Ic o=M
do=1. al'+ b1'+ el'l dj
' is obtained as the output of the bit mask circuit 31 (i-1), Oi is obtained as the output of the bit data detection circuit a2 (i-1), Ma i +Mb i +Mc i ,
Md i is obtained as the output of the mask bit generation circuit a3(i-1). If this calculation operation is performed from the most significant digit to the least significant digit, the minimum value will be obtained at the output O, and the mask data of the least significant digit will have the mask bit corresponding to the variable with the minimum value “
1″ (9) (8) is output.

第4図は最大値をめる動作を示し、第5図はこの時の実
施例である。論理式で示すと以下のようになる。
FIG. 4 shows the operation of calculating the maximum value, and FIG. 5 is an example at this time. Expressed as a logical formula, it is as follows.

ai ’ = a i −Mai−1 J ’ = b i −Mbi−1 ci ’ = c i @M(B−1 di ’ = d H*Mdj−t (] ”= ai’+ bi’+ci’−1−di’−
、i−t Mai=O1@ai・(jr!、。Maj)−1 Mbi= 0i−bi’・(jミ。Mbj)、1−l Md+=Oi・d iI・(j江。Mdj)たソし、最
上位桁に関してはMa O=Mb O=Mc O=Md
 O=1とする。この演算動作を最上位桁より最下位桁
まで行うと、出力Oに最大値を得、最下位桁のマスクデ
ータには、最大値の変数に対応するマスクビットが“1
”として出力される。
ai' = ai -Mai-1 J' = b i -Mbi-1 ci' = c i @M(B-1 di' = d H*Mdj-t (] ”= ai'+ bi'+ci'- 1-di'-
, it Mai=O1@ai・(jr!,.Maj)−1 Mbi=0i−bi′・(jmi.Mbj), 1−l Md+=Oi・d iI・(jjiang.Mdj) So, regarding the most significant digit, Ma O=Mb O=Mc O=Md
Let O=1. When this operation is performed from the most significant digit to the least significant digit, the maximum value is obtained at the output O, and the mask bit corresponding to the variable with the maximum value is "1" in the mask data of the least significant digit.
” is output.

又、上記第2図、第5図に示す実施例の回路を並列に接
続することにより、最大値と最小値を同時に検出するこ
とも可能である。第6図は並列に接続した基台の実施例
であり、100〜600は第1図に示した実施例の番号
に対応し、特に300〜303は最大値を得る基本機能
ブロックを示す。
Furthermore, by connecting the circuits of the embodiments shown in FIGS. 2 and 5 in parallel, it is also possible to detect the maximum value and the minimum value simultaneously. FIG. 6 shows an embodiment of the bases connected in parallel, 100 to 600 correspond to the numbers of the embodiment shown in FIG. 1, and in particular, 300 to 303 indicate basic functional blocks that obtain the maximum value.

又、2001〜6001は第1図に示した200〜60
0にそれぞれ対応し、特に300′〜303′は最小値
を得る基本機能ブロックを示す。第6図に示すように接
続することにより、01〜03には、変数a −dのう
ちの最大値が得られ、011〜03′には変数a −d
の最小値が得られる。又、403及び403’にはそれ
ぞれ変数a −dの最大値と最小値に対応したマスクデ
ータが出力”1”として得られる。
Also, 2001 to 6001 are 200 to 60 shown in Figure 1.
0, and in particular, 300' to 303' indicate basic functional blocks for obtaining the minimum value. By connecting as shown in FIG. 6, the maximum value of variables a - d is obtained for 01 to 03, and the maximum value of variables a - d is obtained for 011 to 03'.
The minimum value of is obtained. Further, mask data corresponding to the maximum and minimum values of variables a to d, respectively, are obtained as output "1" at 403 and 403'.

又、第7図に選択信号を1ビツト付加することにより、
最大値又は最小値を選択する場合の回路の接続例を示す
。、100〜600は第1図の100〜600に対応し
、700は選択信号入力を示す。
Also, by adding 1 bit of selection signal to Fig. 7,
An example of circuit connection when selecting the maximum value or minimum value is shown. , 100 to 600 correspond to 100 to 600 in FIG. 1, and 700 indicates a selection signal input.

又、第8図はその1桁目の基本機能ブロック3゜(i−
1)内の構成例であり、34(j−1)、35(i −
1) 、 36(i−1)は全く同様の2信号選択回路
を示す。34に−1)、35(+−1)、36(i−1
)内の破線は最小値をめる場合の接続状態を表わし、又
最大値をめる場合は反対側の接続となる。又、接続状態
の制御は700の選択信号によって行われる。この回路
についても最上位桁のマスクピッ、 ト入力M’ao 
、Mbo 、Men 、Mdoは11”が入力され、最
下位桁のマスクビット出力Ma4.Mb4.Mc4.M
d+には選択に灯応して最大値又は最小値である変数に
対応するマスクビットが@1#とじて出力される。
In addition, Fig. 8 shows the basic functional block 3゜(i-
1), 34(j-1), 35(i-
1) and 36(i-1) show completely similar two-signal selection circuits. -1), 35 (+-1), 36 (i-1
The broken line in parentheses () represents the connection state when the minimum value is calculated, and the connection on the opposite side when the maximum value is calculated. Further, the connection state is controlled by a selection signal 700. For this circuit as well, the mask pit of the most significant digit, the input M'ao
, Mbo, Men, and Mdo are input with 11", and the least significant digit mask bit output Ma4.Mb4.Mc4.M
A mask bit corresponding to a variable having a maximum value or a minimum value is outputted as @1# to d+ according to the selection.

く効 果〉 この発明はυ上説明したように、変数の数の増加による
ハードウェア量の増加は単に各信号の付随的なハード量
の増加だけである事、又、各桁のビットデータに対し、
全く同様な回路構成を用いて構成できる事、演算に要す
る時間は変数の数に依存しない事、特に多変数少桁数の
演算に関しては、2変数比較器による演算よシも高速に
行う事ができる等の効果がある。
Effects〉 As explained above, this invention is based on the fact that the increase in the amount of hardware due to the increase in the number of variables is simply an increase in the amount of hardware associated with each signal, and that the bit data of each digit is On the other hand,
It can be configured using exactly the same circuit configuration, the time required for calculation does not depend on the number of variables, and especially when it comes to calculations with many variables and a small number of digits, it can be performed faster than calculations using a two-variable comparator. There are effects such as being able to do it.

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

第1図はこの発明の実施例を示すブロック図、第2図は
第1図に示した基本機能ブロック300の構成例を示す
回路図、第3図は最小値をめる場合の基本的な動作を示
す演算動作説明図、第4図は最大値をめる場合の基本的
な動作を示す演算動作説明図、第5図は最大値をめる場
合における基本機能ブロックの構成例を示す回路図、第
6図は最小値と最大値の基本機能ブロックを並列に接続
することにより最大値と最小値を同時にめうるように構
成した接続例を示すブロック図、第7図は第1図に示し
た回路に最大値、最小値選択信号を付加することにより
、最大値と最小値を・ 選択的にめうるように構成した
例を示すブロック図、第8図は第7図における基本機能
ブロックの回路構成例を示す接続図である。 100〜103:入力レジスタ、300〜303:基本
機能ブロック、600:出力レジスタ、31(i−1)
:ビットマスク回路、32(i−1):ビットデータ検
出回路、33(i−1):マスクビット生成回路。 特許出願人 日本電気株式会社 代理人 草野 卓 ロ 和 223−
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a circuit diagram showing an example of the configuration of the basic functional block 300 shown in FIG. Fig. 4 is an explanatory diagram of arithmetic operation showing the basic operation when calculating the maximum value, and Fig. 5 is a circuit showing an example of the configuration of the basic functional block when calculating the maximum value. Figure 6 is a block diagram showing a connection example in which the minimum value and maximum value basic function blocks are connected in parallel so that the maximum value and minimum value can be determined at the same time, and Figure 7 is similar to Figure 1. A block diagram showing an example of a configuration in which the maximum value and minimum value can be selectively determined by adding maximum value and minimum value selection signals to the shown circuit. Figure 8 is the basic functional block in Figure 7. FIG. 2 is a connection diagram showing an example of a circuit configuration. 100-103: Input register, 300-303: Basic function block, 600: Output register, 31 (i-1)
: Bit mask circuit, 32 (i-1): Bit data detection circuit, 33 (i-1): Mask bit generation circuit. Patent Applicant NEC Corporation Agent Takuro Kusano 223-

Claims (1)

【特許請求の範囲】[Claims] (1)n個のm桁2進変数に対し、上位から1桁目(m
≧i≧1)のnビットデータを、上位桁の回路から転送
されたnビットのマスクデータによりマスク動作を行う
ビットマスク手段と、そのマスクしたnビットのデータ
の全てが@1″又は“0”であることを検出するnビッ
トデータ検出手段と、上記ビットマスク手段及び上記n
ビットデータ検出手段により得たデータによってマスク
ビットを生成し、下位桁に供給するマスクビット生成手
段とを有し、n個の変数の最小値又は最大値を検出する
ことを特徴とする多変数比較回路。
(1) For n m-digit binary variables, the first digit (m
≧i≧1), a bit masking means performs a masking operation using n-bit mask data transferred from the upper digit circuit, and all of the masked n-bit data is @1" or "0". ”, the bit masking means, and the n bit data detection means for detecting that the
A multi-variable comparison characterized in that the multi-variable comparison has a mask bit generating means for generating mask bits based on data obtained by the bit data detecting means and supplying the mask bits to lower digits, and detects the minimum value or maximum value of n variables. circuit.
JP15977783A 1983-08-31 1983-08-31 Multivariable comparing circuit Pending JPS6051941A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15977783A JPS6051941A (en) 1983-08-31 1983-08-31 Multivariable comparing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15977783A JPS6051941A (en) 1983-08-31 1983-08-31 Multivariable comparing circuit

Publications (1)

Publication Number Publication Date
JPS6051941A true JPS6051941A (en) 1985-03-23

Family

ID=15701034

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15977783A Pending JPS6051941A (en) 1983-08-31 1983-08-31 Multivariable comparing circuit

Country Status (1)

Country Link
JP (1) JPS6051941A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62174827A (en) * 1986-01-28 1987-07-31 Nec Corp Digital signal prioritizing circuit
JPS62174828A (en) * 1986-01-28 1987-07-31 Nec Corp Digital signal prioritizing circuit
JPS63208121A (en) * 1987-02-24 1988-08-29 Nec Corp Digital signal sorting circuit
JPH0280169A (en) * 1988-09-13 1990-03-20 Matsushita Electric Ind Co Ltd Automatic jet type soldering device
JPH02196362A (en) * 1989-01-25 1990-08-02 Toshiba Corp Priority order discriminating device
JP2017500682A (en) * 2013-10-31 2017-01-05 マイクロン テクノロジー, インク. Apparatus and method for identifying extreme values stored in a memory cell array

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62174827A (en) * 1986-01-28 1987-07-31 Nec Corp Digital signal prioritizing circuit
JPS62174828A (en) * 1986-01-28 1987-07-31 Nec Corp Digital signal prioritizing circuit
JPS63208121A (en) * 1987-02-24 1988-08-29 Nec Corp Digital signal sorting circuit
JPH0280169A (en) * 1988-09-13 1990-03-20 Matsushita Electric Ind Co Ltd Automatic jet type soldering device
JPH02196362A (en) * 1989-01-25 1990-08-02 Toshiba Corp Priority order discriminating device
JP2017500682A (en) * 2013-10-31 2017-01-05 マイクロン テクノロジー, インク. Apparatus and method for identifying extreme values stored in a memory cell array

Similar Documents

Publication Publication Date Title
JP3573755B2 (en) Image processing processor
US11836629B2 (en) Computationally efficient softmax loss gradient backpropagation
US11327923B2 (en) Sigmoid function in hardware and a reconfigurable data processor including same
JPH0479013B2 (en)
JPH0542011B2 (en)
Li et al. A stochastic reconfigurable architecture for fault-tolerant computation with sequential logic
JPS6051941A (en) Multivariable comparing circuit
KR920700496A (en) Vector Quantizer Codebook Processing Circuit
Manohar et al. Asynchronous parallel prefix computation
JPS5948421B2 (en) Parity prediction circuit
CN113031915A (en) Multiplier, data processing method, device and chip
JPH028936A (en) Computer system
JPH04157527A (en) Mathematical computing element with fault detecting function
JPH02213938A (en) Arithmetic unit
KR100252766B1 (en) Sticky signal generator operating at high-speed
EP0704793B1 (en) Method and circuit to compare the sum of two numbers to a third number
JP2654062B2 (en) Information processing device
JP2653134B2 (en) Arithmetic processing unit
SU1108437A1 (en) Device for detecting extremum number
JP3260395B2 (en) Multi-input fuzzy logic operation circuit
JPH01227973A (en) Test facilitating circuit
US5958001A (en) Output-processing circuit for a neural network and method of using same
SU840890A1 (en) Number comparing device
SU1019437A1 (en) Device for comparing n-bit binary numbers
JPS6126088B2 (en)