JPS62134720A - Digital signal selecting circuit - Google Patents

Digital signal selecting circuit

Info

Publication number
JPS62134720A
JPS62134720A JP27544785A JP27544785A JPS62134720A JP S62134720 A JPS62134720 A JP S62134720A JP 27544785 A JP27544785 A JP 27544785A JP 27544785 A JP27544785 A JP 27544785A JP S62134720 A JPS62134720 A JP S62134720A
Authority
JP
Japan
Prior art keywords
signal
signals
digital
bit
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
JP27544785A
Other languages
Japanese (ja)
Inventor
Kenji Oe
健二 大江
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 JP27544785A priority Critical patent/JPS62134720A/en
Publication of JPS62134720A publication Critical patent/JPS62134720A/en
Pending legal-status Critical Current

Links

Landscapes

  • Logic Circuits (AREA)

Abstract

PURPOSE:To decrease the number of elements and an operation time, and to improve the reliability by constituting the titled circuit by using almost the same module by a gate array, etc., and executing a processing in parallel even in case the number of digital signals for fetching the minimum value has increased. CONSTITUTION:In the second logic circuit 2, P1=0, Q1=1, and R1=0, they are inputted to OR circuits (gate) 211-213 together with a control signal, its output is inputted to an AND circuit 201, and the minimum value bit signal Z1 outputs '1'. At the same time, this signal is inputted to an invertor 202, and '0' which is outputted from the inverter 202 is inputted to AND circuits 221-223, respectively, together with outputs of the OR circuits 211-213. Outputs of the AND circuits 221-223 become all '0', and control signals outputted from OR circuits 231-233 become 101, respectively in accordance with digital signals P, Q, and R, in the same way as the control signal which has been inputted from the second logic circuit 3, and outputted to the second logic circuit 1.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデジタル信号選別回路に関し、特に複数個のデ
ジタル信号の中から最小値を有するデジタル信号を取出
すデジタル信号選別回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a digital signal selection circuit, and more particularly to a digital signal selection circuit that extracts a digital signal having a minimum value from among a plurality of digital signals.

〔従来の技術〕[Conventional technology]

従来、多数のデジタル信号の中から最小の値を有するデ
ジタル信号を取出すには、入力さjした2個のデジタル
信号を比較していすnが大きいがを検する比較器と、そ
の結果によりいずれが一方のデジタル信号を取出す選択
器とが基本となり、最小値全取出すべきデジタル信号の
数が多くなると、こnらの素子の数の増加率はデジタル
信号の数の増加率を上廻わる↓うになる。きらに比較処
理の回数が増加するので、演算時間の増加にもつながっ
ている。以下従来の技術によるデジタル信号選別回路の
構成と作動を中心に第4図・第5図(a)および(b)
 t=参照して簡単に説明する。
Conventionally, in order to extract a digital signal with the minimum value from among a large number of digital signals, a comparator is used to compare two input digital signals and detect which one is larger, and a is basically a selector that extracts one digital signal, and as the number of digital signals to extract all minimum values increases, the rate of increase in the number of these elements exceeds the rate of increase in the number of digital signals ↓ Become. Since the number of comparison processes increases, the calculation time also increases. Below, we will focus on the configuration and operation of a digital signal selection circuit according to the conventional technology, as shown in Figures 4 and 5 (a) and (b).
A brief explanation will be given with reference to t=.

第4図を見るに、2個のデジタル信号入力を有するデジ
タル信号選別回路の従来の技術による構成の一例は、比
較器(501と選択器602とを伽えている。
Referring to FIG. 4, an example of a conventional configuration of a digital signal selection circuit having two digital signal inputs includes a comparator (501) and a selector 602.

4ビツトで構成さ牡るデジタル信号Pの各ビットPo−
P3(Poが最下位+ P 3が最上位のビットを示す
、以下同じ)およびデジタル信号Qの各ビット信号Q、
−Q、が、比較器601および選択器602へ入力する
Each bit Po- of the digital signal P consisting of 4 bits
P3 (Po indicates the least significant bit + P3 indicates the most significant bit, the same applies hereinafter) and each bit signal Q of the digital signal Q,
−Q, is input to the comparator 601 and the selector 602.

比較器601ではデジタル信号PおよびQの判別を行い
、PがQよりも小さい場合は出力される判別信号Mが1
となり、他の場合には判別信号N1は0となる。次に選
択器602において、判別信号Mが1のときはデジタル
信号Pが最小f力信号Zとしてその各ビット信号2.−
23が出力される。
A comparator 601 discriminates between digital signals P and Q, and if P is smaller than Q, the output discrimination signal M is 1.
In other cases, the discrimination signal N1 becomes 0. Next, in the selector 602, when the discrimination signal M is 1, the digital signal P is set as the minimum f-force signal Z, and each bit signal 2. −
23 is output.

判別18号がOのときはデジタル信号Qが最小値信号Z
として出力され、最小値を示す信号の種類とその値が出
力される。
When discrimination No. 18 is O, the digital signal Q is the minimum value signal Z
The type of signal indicating the minimum value and its value are output.

次に第5図(、l)を見るに、4個のデジタル信号入力
を有するデジタル信号選別回路の従来の技術による構成
の一例は、比較器701〜703と、選択器704〜7
06と、変換器707とを備えている。4ビツトで構成
されるデジタル信号Pの各ビット信号Po−P3および
デジタル信号Qの各ビット信号Q o= Q 3が、比
較器701および選択器704へ入力する。またテジタ
ル信号凡の各ビット信号Ro−R3およびデジタル信号
Sの各ビット信号5o−S3が、比較器702および選
択器705へ入力する。比較器701・702から出力
される判別信号MO−M、に従って選択器704・70
5からそれぞれに入力されたデジタル信号を比較して小
でい方の信号が出力される。
Next, looking at FIG. 5(, l), an example of a conventional configuration of a digital signal selection circuit having four digital signal inputs includes comparators 701 to 703 and selectors 704 to 707.
06 and a converter 707. Each bit signal Po-P3 of the digital signal P and each bit signal Qo=Q3 of the digital signal Q, each consisting of 4 bits, are input to a comparator 701 and a selector 704. Further, each bit signal Ro-R3 of the digital signal and each bit signal 5o-S3 of the digital signal S are input to the comparator 702 and the selector 705. Selectors 704 and 70 according to the discrimination signals MO-M output from comparators 701 and 702
The digital signals input from 5 to 5 are compared and the smaller signal is output.

これらのデジタル信号は比較器703および選択器70
6に印加され、比較器703から出力芒れる判別信号M
2に従りて、選択器706から最小値信号Zの各ビット
信号2o−23が出力される。
These digital signals are sent to a comparator 703 and a selector 70.
6 and is output from the comparator 703.
2, the selector 706 outputs each bit signal 2o-23 of the minimum value signal Z.

また、変換器707は第5図(b)の説明図金兄るに、
入力する判別信号M o = M 2の値に対応して得
られる変換器707の出力である判別信号N、−N、の
値により、最小値信号となるデジタル信号の種類(P−
8のうち少なくとも1個)が決定される。
In addition, the converter 707 is shown in the explanatory diagram of FIG. 5(b).
The type of digital signal that becomes the minimum value signal (P-
8) is determined.

さらに入力するデジタル信号の数が2倍になったときこ
の中から最小の値を有するデジタル信号を選別するには
、第5図(a)に示す回路素子を2組集め、この2組の
回路素子から得られた結果をさらに比較する必要がある
。従って、入力するデジタル信号の数量が増加する割合
よりも、デジタル信号選別回路の素子の増加割合の方が
多くなり、そのため演算も縦統的に行なわれるようにな
り、変換器のような新らしい素子も必要となる。
Furthermore, when the number of input digital signals is doubled, in order to select the digital signal having the minimum value from among them, two sets of circuit elements shown in FIG. 5(a) are collected, and these two sets of circuit elements are Results obtained from the devices need to be further compared. Therefore, the number of elements in the digital signal selection circuit is increasing faster than the number of input digital signals, and as a result, operations are being performed vertically, and new devices such as converters are being used. An element is also required.

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

本発明が解決しようとする従来の技術の問題点は上述の
ように、最小値を取り出すべきデジタル信号の数の増加
するとこの増加率よりもテジメル信号選別回路を構成す
る素子の増加率が多く最終的には大規模となり演算時間
も増加するという点にある。
The problem with the conventional technology that the present invention aims to solve is that, as described above, when the number of digital signals from which the minimum value is to be extracted increases, the increase rate of the elements constituting the Tesimer signal selection circuit is greater than this increase rate. The problem is that the scale becomes large and the calculation time increases.

従って本発明の目的は、上記欠点を解決したデジタル信
号選別回路を提供することにある。
SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide a digital signal selection circuit which solves the above-mentioned drawbacks.

〔問題を解決するだめの手段〕[Failure to solve the problem]

本発明のデジタル信号選別回路は、″OL数個のデジタ
ル信号の中から最小の値を有するデジタル信号を選別す
るデジタル信号選別回路において、あらかじめ定められ
た桁数を有する複数個のデジタル信号の最高位桁のビッ
ト信号を入力し、その各ビット信号の論理積を表わす第
一の論理積出力信号を出力し、前記第一の論理積出力信
号の反転信号と前記最高位桁のビット信号のおのおのと
の論理積を表わす第一の縦続制御信号を前記被数個のデ
ジタル信号に対応して出力する第一の論理回路と、前記
複数のデジタル信号ごとに、前記第一の縦続制御信号と
と扛に対応するデジタル信号の第2位桁のビット信号と
の論理11fをあらわす複数個の論理和信号の論理損金
表わす第二の論理積出力信号を出力し、前記第二の論理
積出力信号の反転信号とデジタル信号に対応する前記論
理和信号のおのおのとの論理積を表わす信号と、前記第
1の縦続制御信号のうち論理和信号と同じデジタル信号
に対応する第一の縦続制御信号との論理和を表わす第二
の縦続制御信号を前記複数個のデジタル信号ごとにそれ
ぞれ次段に出力する第二の論理回路とを備え、前記第二
の論理回路と同一構成の論理回路を前記複数個のデジタ
ル信号の第3位桁から最下位桁に対応する41M数を備
え、第3位桁から最下位桁に対応するおのおのの論理回
路に前記複数個のデジタル信号の対応する桁のビット信
号入力し、前記複数個のデジタル信号ごとに前段から出
力される縦続制御信号と、前記複数のデジタル信号のビ
ット信号のうち縦続部」御信号と対応するデジタル信号
のビット信号との論理和を表わす複数個の論理オ[(信
号の論理積を表わす論理積出力信号を出力し、この信号
の反転信号とデジタル信号と対応する前記複数個の論理
和信号のおのおのの論理績を表わす信号と、前段から出
力される縦続制御信号のうち前記論理和信号と同じデジ
タル信号に対応する縦続制御信号との論理和を表わす信
号を該当論理回路の縦続制御信号として前記複数個のデ
ジタル信号ごとにそれぞれ次段へ出力することを特徴と
して構成される。
The digital signal selection circuit of the present invention is a digital signal selection circuit that selects a digital signal having the minimum value from among several digital signals. A first logical product output signal representing the logical product of each of the bit signals is input, and an inverted signal of the first logical product output signal and the highest significant bit signal are respectively output. a first logic circuit that outputs a first cascaded control signal representing a logical product of outputting a second logical product output signal representing a logical loss of a plurality of logical sum signals representing a logic 11f with a bit signal of the second digit of the digital signal corresponding to the digital signal; a signal representing the logical product of each of the logical sum signals corresponding to the inverted signal and the digital signal, and a first cascaded control signal corresponding to the same digital signal as the logical sum signal among the first cascaded control signals; and a second logic circuit that outputs a second cascade control signal representing a logical sum to the next stage for each of the plurality of digital signals, and the plurality of logic circuits have the same configuration as the second logic circuit. bit signals of corresponding digits of the plurality of digital signals are input to each logic circuit corresponding to the third digit to the least significant digit. and a plurality of signals representing the logical sum of a cascaded control signal outputted from the preceding stage for each of the plurality of digital signals, and a bit signal of the digital signal corresponding to the cascaded control signal among the bit signals of the plurality of digital signals. A logical product output signal representing the logical product of the plurality of logical sum signals is output, and an inverted signal of this signal and a signal representing the logical product of the plurality of logical sum signals corresponding to the digital signal are output from the previous stage. Among the output cascade control signals, a signal representing the logical sum of the logical sum signal and a cascade control signal corresponding to the same digital signal is used as a cascade control signal of the corresponding logic circuit, and is sent to the next stage for each of the plurality of digital signals. It is configured with the feature of output.

し実施例〕 次に本発明について実施例を示す図面を参照して詳細に
説明する。第1図は本発明の概要を示すフロック図、第
2図は本発明の第一の実施例の構成を示すブロック図、
第3図は本発明の第二の実施例の構成を示すブロック図
である。
Embodiments] Next, the present invention will be described in detail with reference to drawings showing embodiments. FIG. 1 is a block diagram showing an overview of the present invention, FIG. 2 is a block diagram showing the configuration of a first embodiment of the present invention,
FIG. 3 is a block diagram showing the configuration of a second embodiment of the present invention.

まず本発明の実施例の概要について第1図を参照して説
明する。
First, an outline of an embodiment of the present invention will be explained with reference to FIG.

本発明のデジタル信号選別回路では複数個のデジタル信
号P−Q−−−Yが、最高桁のビット信号PN−1−Q
N−1−一−YN−、ないし最低桁のビット信号Po−
Qo−−−Yoに分離され、それぞれの桁ごとに論理回
路へ入力する。各桁ごとの論理回路へ入力した各ビット
信号はゲートを通しその論理積信号を順次出力し、その
値は最小値信号Zとして最小値ビット信号ZN−,−−
−z 1・Zoの順に出力される。
In the digital signal selection circuit of the present invention, the plurality of digital signals P-Q---Y are the bit signals PN-1-Q of the highest digit.
N-1-1-YN- or lowest digit bit signal Po-
It is separated into Qo---Yo, and each digit is input to the logic circuit. Each bit signal input to the logic circuit for each digit passes through a gate and sequentially outputs its AND signal, and the value is converted into the minimum value signal Z as the minimum value bit signal ZN-,--
-z Output in the order of 1 and Zo.

被数個のデジタル信号の各ビットを各桁ごとに最高位桁
から順次比較してそのビットがOおよび1で構成されて
いるときは、0をその桁の値として出力するとともに、
デジタル信号のビット信号が1に対応する制御信号を、
そn以下の桁についてすべて1として比較判別から除外
するように選別回路を構成し、それ以下の桁でも最低位
桁に達するまで順次比較判定ケする。従って最低位桁か
ら出力される制御信号(すなわち判別信号)のうちその
出力がOとなる制御信号に対応するデジタル信号が最小
となり、その領は各桁ごとに出力されている。なお、比
較判別をするビット信号がすべて同一であるときは、そ
の値をその桁の値として出力し、比較判別をするビット
信号に対応した制御信号はOが出力される。
Compare each bit of the digital signal of the digit in sequence starting from the highest digit, and if the bit is composed of O and 1, output 0 as the value of that digit,
The control signal whose bit signal of the digital signal corresponds to 1 is
The selection circuit is configured so that all digits below n are set to 1 and excluded from the comparison judgment, and the digits below this number are sequentially compared and judged until the lowest digit is reached. Therefore, among the control signals (i.e., discrimination signals) output from the lowest digit, the digital signal corresponding to the control signal whose output is O is the smallest, and that area is output for each digit. Note that when the bit signals to be compared and determined are all the same, that value is output as the value of that digit, and O is output as the control signal corresponding to the bit signal to be compared and determined.

最高位桁のビット信号を入力する第一の論理回路LCN
−1では最高桁のビット信号PN−1−QN−1−−−
YN−、を入力し、これらの論理積をル/J%値ビット
信号ZN−1として出力する。入力した最高桁ビット信
号が0となっているデジタル信号に対応する制御信号が
Oとなり、入力した最高桁ビット信号が1となっている
デジタル信号に対応する沖J御信号が1となって、それ
ぞれ第二の論理回路LC,,に出力される。なお、入力
した最高桁ビット信号がすべて同一の場合も、出力する
制御信号がすべて0となる。また、制御信号が1になる
と、これより下位桁のこれに対応するデジタル信号の制
御信号は、すべて1となり判別の対象とならない。次位
桁以下のビット信号を入力する第二の論理回路LC(1
−LCl−−−LCH−zでは、入力した制御信号が0
となっている各デジタル信号のビット信号の論理積全最
小値ビット信号ZN−4−−−Z2・zIとして出力す
る。値が0となっている制御信号に対応するデジタル信
号のビット信号がOと1で構成されるときは、そのビッ
ト信号の値に従ってそのデジタル信号に対応する制御信
号がOまたは1となり、すべてが同一であるときは、そ
のデジタル信号に対応する制御信号も0となる。これ以
外のデジタル信号に対応する制御信号はlとなりそれぞ
れ次位桁の第二の論理回路に出力する。
First logic circuit LCN that inputs the bit signal of the highest digit
-1, the highest digit bit signal PN-1-QN-1---
YN-, and outputs the AND of these as a L/J% value bit signal ZN-1. The control signal corresponding to the input digital signal whose highest digit bit signal is 0 becomes O, and the Oki J control signal corresponding to the input digital signal whose highest digit bit signal is 1 becomes 1, They are output to the second logic circuits LC, , respectively. It should be noted that even if all input highest bit bit signals are the same, all output control signals will be 0. Further, when the control signal becomes 1, all the control signals of the digital signals corresponding to the lower digits become 1 and are not subject to discrimination. A second logic circuit LC (1
-LCl---LCH-z, the input control signal is 0
The logical product of the bit signals of each digital signal is output as an overall minimum value bit signal ZN-4---Z2.zI. When the bit signal of a digital signal corresponding to a control signal whose value is 0 is composed of O and 1, the control signal corresponding to that digital signal becomes O or 1 according to the value of that bit signal, and all If they are the same, the control signal corresponding to that digital signal will also be 0. Control signals corresponding to other digital signals become l and are output to the second logic circuit of the next digit.

最低位桁の第二の論理回路LCoから出力する制御信号
(すなわち判別信号Zp−ZQ −−−Zy )のうち
、その値が0の制御信号に対応するデジタル信号がその
最小値の示すもので、その値は2となる。
Among the control signals output from the second logic circuit LCo of the lowest digit (i.e., the discrimination signal Zp-ZQ ---Zy), the digital signal corresponding to the control signal whose value is 0 is the one indicated by its minimum value. , its value is 2.

以上述べた回路の概要の説明では、2進法(ストレート
バイナリ方式)で表わされたデジタル信号にりいて述べ
たが、高位桁から低位桁へ1み付けがされており、一つ
の桁で1が0より大きいという粂件が満足されれば、別
の表現方式(例えば2進化lO進法)でも適用が可能で
ある。
In the above explanation of the circuit outline, we have talked about digital signals expressed in binary system (straight binary system), but 1 is assigned from high-order digits to low-order digits, and one digit is As long as the condition that 1 is greater than 0 is satisfied, other representation systems (for example, binary IO base system) can also be applied.

次に本発明の実施例についてその構成と作動を中心に説
明する。第2図を見るに本発明の第一の実施例は第一の
論理回路4と第二の論理回路1〜3とを備えており、4
桁のデジタル信号を3個比較して最小値を有するデジタ
ル信号を取り出すようになっている。デジタル信号P−
Q−Rは、最高桁のビット信号P3・Q3・几3ないし
最低桁のビット信号Po−Qo−几◎に分離され、それ
ぞれの桁ごとに第一の論理回路4と第二の論理回路1〜
3へ入力する。ここでP=1101.Q=lO1l。
Next, an embodiment of the present invention will be described, focusing on its configuration and operation. As shown in FIG. 2, the first embodiment of the present invention includes a first logic circuit 4 and second logic circuits 1 to 3.
Three digit digital signals are compared and the digital signal having the minimum value is extracted. Digital signal P-
QR is separated into the highest digit bit signal P3, Q3, 几3 or the lowest digit bit signal Po-Qo-几◎, and a first logic circuit 4 and a second logic circuit 1 are connected for each digit. ~
Enter into 3. Here P=1101. Q=lO1l.

几=llOOとすればP3=l、Q3=l、R8=1と
なるので、ビット信号P3・Q3・ル3が論理積回路4
01に入力すると最小値ビット信号Z3は1が出力する
。同時にこの信号はインバータ402に入力され、イン
バータ402から出力される0がビット信号P3・Q3
・几3と同時に論理積回路421〜423にそれぞれ入
力される。従って論理積回路421・422・423か
らはそれぞれ制御信号はOが出力し、第二の論理回路3
へ出力する。
If 几=llOO, then P3=l, Q3=l, and R8=1, so the bit signals P3, Q3, and R3 are connected to the AND circuit 4.
When the minimum value bit signal Z3 is input to 01, 1 is output. At the same time, this signal is input to the inverter 402, and the 0 output from the inverter 402 is the bit signal P3/Q3.
- Simultaneously with 几3, it is input to AND circuits 421 to 423, respectively. Therefore, the control signal O is output from the AND circuits 421, 422, and 423, and the second logic circuit 3
Output to.

第二の論理回路3では、P2=l、Q2 =0゜几、=
lであり、ビット信号P2・Q2・凡!が第一の論理回
路4から出力された制御信号と共に論理和回路(ゲート
)311〜313に入カレ、その出力はデジタル信号P
−Q−Rに対応してそれぞれl・0・lとなり、これら
は論理積回路301に入力し最小値ビット信号Z2は0
が出力する。
In the second logic circuit 3, P2=l, Q2=0゜几,=
l, and the bit signals P2, Q2, and ordinary! enters the OR circuits (gates) 311 to 313 together with the control signal output from the first logic circuit 4, and its output is the digital signal P.
-Q-R correspond to l, 0, and l, respectively, and these are input to the AND circuit 301, and the minimum value bit signal Z2 is 0.
outputs.

同時にこの信号はインバータ302に入力され、インバ
ータ302から出力されるlが論理和回路311〜31
3の出力と共に、それぞれ論理積回路321〜323に
入力される。
At the same time, this signal is input to the inverter 302, and l output from the inverter 302 is input to the OR circuits 311 to 31.
3 are input to AND circuits 321 to 323, respectively.

論理積回路321〜323の出力はデジタル信号P−Q
−Rに対応してそれぞれ1・0・1となり、論理積回路
421〜423の出力(すなわち制御信号)と共にそれ
ぞれ論理和回路331〜333に入力し、その出力はデ
ジタル信号P−Q・几に対応してそれぞれ1・0−1と
なり、第二の論理回路2へ制御信号として出力する。従
りて11m1理利回路332の出力がOとなり、デジタ
ル信号Qに対応する制御信号は0となる。また、論理和
回路331・333の出力が1となるので、デジタル1
5号P−Rに対応する制御18号は最下位桁まで1とな
る。
The outputs of the AND circuits 321 to 323 are digital signals P-Q
-R corresponds to 1, 0, and 1, respectively, and are input to the OR circuits 331 to 333 together with the outputs (i.e., control signals) of the AND circuits 421 to 423, respectively, and the outputs are converted to the digital signals P-Q and 几. Correspondingly, they become 1 and 0-1, respectively, and are outputted to the second logic circuit 2 as a control signal. Therefore, the output of the 11m1 logic circuit 332 becomes O, and the control signal corresponding to the digital signal Q becomes 0. Also, since the outputs of the OR circuits 331 and 333 become 1, the digital 1
Control No. 18 corresponding to No. 5 PR has 1 up to the lowest digit.

第二の論理回路2では、P1=O2Q1=l、R1=0
であり、制御信号と共に論理和回路(ケート)211〜
213に入力し、その出力は論理積回路201に入力し
、最小値ビット信号21は1が出力する。同時に、この
信号はインバータ202に入力され、インバータ202
から出力される0が論理和回路211〜213の出力と
共に、それぞれ論理積回路221〜223に入力される
In the second logic circuit 2, P1=O2Q1=l, R1=0
, and the logical sum circuit (gate) 211 to
213, its output is input to the AND circuit 201, and 1 is output as the minimum value bit signal 21. At the same time, this signal is input to the inverter 202, and the inverter 202
0 outputted from the logical sum circuits 211 to 213 are input to the logical product circuits 221 to 223, respectively.

論理積回路221〜223の出力はすべて0となり、論
理和回路231′〜233から出力される制御信号は、
第二の論理回路3から入力された制御信号と同様に、デ
ジタル信号P 、Q、Rに対応してそれぞれ101とな
り、第二の論理回路1へ出力される。
The outputs of the AND circuits 221 to 223 are all 0, and the control signals output from the OR circuits 231' to 233 are as follows.
Similarly to the control signal inputted from the second logic circuit 3, the output signal becomes 101 corresponding to the digital signals P, Q, and R, respectively, and is output to the second logic circuit 1.

第二の論理回路lでは、Pn=l l Qo= 1 、
 ft1=0であり、制御信号と共にそれぞれ論理和回
路(ケート)111〜113に入力し、その出力は論理
積回路101に入力し、最小値ビット信号Z。
In the second logic circuit l, Pn=l l Qo=1,
ft1=0, and the output is input to the logical sum circuits (gates) 111 to 113 together with the control signal, and the output thereof is input to the logical product circuit 101, and the minimum value bit signal Z is input.

は1が出力する。同時に、この信号はインバータ102
に入力されインバータ102から出力されるOが論理和
回路Ill〜113の出力と共に、それぞれ論理積回路
121〜123に入力する。
outputs 1. At the same time, this signal is transferred to the inverter 102
O inputted into the inverter 102 and outputted from the inverter 102 are inputted to the AND circuits 121 to 123, respectively, together with the outputs of the OR circuits Ill to 113.

論理積回路121〜123の出力はすべて0となり、論
理和回路131〜133から出力される弔」別信号ZP
−ZRは1であるが判別信号ZQは0となる。従って判
別信号からデジタル信号Qが最小値を示し、その値は最
小値信号Zすなわち1011となる。
The outputs of the AND circuits 121-123 are all 0, and the "condolence" signal ZP output from the OR circuits 131-133.
-ZR is 1, but the discrimination signal ZQ is 0. Therefore, the digital signal Q shows the minimum value from the discrimination signal, and that value becomes the minimum value signal Z, that is, 1011.

この実施例では、ゲートアレーを主とした論理回路を2
種類のモジュールとしてあらかじめ作っておけば、桁数
を自由に選ぶことができ、デジタル信号の数にあらかじ
め余裕をもたせて設計をすれば汎用的な選別回路を構成
することができる。
In this example, two logic circuits mainly consisting of gate arrays are used.
If the module is made in advance as a type of module, the number of digits can be freely selected, and if the design is designed with a margin in the number of digital signals in advance, a general-purpose selection circuit can be constructed.

また、デジタル信号の数が増加した場合でも選別1  
処理が並列に実行されるので、処理時間はほぼ一定とな
る。なお、デジタル信号P〜I(、の最小の信号を示す
判別信号ZP−ZRは、その値がOにな1  ることを
もって判別しているが、第二の論理回路lの判別信号Z
P−ZRの出力にインバータを接続し、その出力か1に
なることをもって判別することもできる。
In addition, even if the number of digital signals increases, sorting 1
Since the processing is executed in parallel, the processing time is approximately constant. Note that the discrimination signal ZP-ZR indicating the minimum signal of the digital signals P to I(,
It is also possible to connect an inverter to the output of P-ZR and determine if the output becomes 1.

第3図を見るに本発明の第二の実施例は第二の論理回路
11〜14を備えており、4桁のデジタル信号を3個比
教して、最大値を有するデジタル信号を取り出すように
なっている。デジタル信号P−Q−itは最高位桁のビ
ット信号P3・Q3・凡3ないし最低位桁のビット信’
jji P o−Qo−几◎までのビンHg号に分離さ
れ、それぞれの桁ごとに第二の論理回路11−14へ入
力する。その結果は最小値信号2(ビット信号2.−2
3からなる)が第二の論理回路11〜14から出力され
、そのデジタル信号の種類を判別信号ZP−2Q−ZR
の中の該当信号が0となることで判別されることは、第
一の実施例と同様であるので、二つの実施例の相異点の
みを次に述べる。
As shown in FIG. 3, the second embodiment of the present invention is equipped with second logic circuits 11 to 14, and is configured to input three 4-digit digital signals and extract the digital signal having the maximum value. It has become. The digital signal P-Q-it is a bit signal of the highest digit P3, Q3, or a bit signal of the lowest digit.
It is separated into bins Hg from jji Po to Qo to ◎, and inputs each digit to the second logic circuit 11-14. The result is the minimum value signal 2 (bit signal 2.-2
3) is output from the second logic circuits 11 to 14, and a signal ZP-2Q-ZR is used to determine the type of digital signal.
It is the same as the first embodiment that the determination is made when the corresponding signal in 0 becomes 0, so only the differences between the two embodiments will be described below.

最高位桁のビット信号P3・Q3・R3が入力する第二
の論理回路14は、第一の実施例における第一の論理回
路4と異なり制御信号の入力端子を設けである。これら
制御信号の入力端子を一括して0となる信号Aを加えれ
ば、論理和回路511〜513は入出力の機能において
直結と同様となり、第二の論理回路14は第一の実施例
の第一の論理回路4と作動が同一となる。
The second logic circuit 14 to which the highest-order bit signals P3, Q3, and R3 are input is provided with an input terminal for a control signal, unlike the first logic circuit 4 in the first embodiment. If the input terminals of these control signals are collectively added with a signal A that becomes 0, the OR circuits 511 to 513 will have input/output functions similar to those of direct connection, and the second logic circuit 14 will be the same as the one in the first embodiment. The operation is the same as that of the first logic circuit 4.

よってこの実施例では、ゲートアレーを主とした論理回
路の1種類のモジー−ルをあらかじめ作っておけば、桁
数を自由に選ぶことができ、デジタル信号の数にあらか
じめ余裕を持たせて設計すれは、第一の実施例よりも効
率のよい選別回路を構成することができる。また、デジ
タル信号の数が増加した場合でも選別処理が並列に実行
されるので、処理時間がほぼ一定となることも第一の実
施例と同6pである。
Therefore, in this embodiment, if one type of logic circuit module, mainly a gate array, is created in advance, the number of digits can be freely selected, and the design can be designed with a margin in advance for the number of digital signals. In this case, a more efficient selection circuit than the first embodiment can be constructed. Further, even when the number of digital signals increases, since the sorting process is executed in parallel, the processing time is almost constant, which is the same as in the first embodiment.

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

本発明のデジタル信号選別回路は、ゲートアレーなどに
よるほとんど同一のモジー−ルf:使用して構成し、最
小値を取り出すべきデジタル信号の数が増加した場合で
も並列に処理をするようになしたので、素子の数や演算
時間が減少すると共に信頼性も向上するという効果があ
る。
The digital signal selection circuit of the present invention is configured using almost the same module f: such as a gate array, so that even when the number of digital signals from which the minimum value is to be extracted increases, processing is performed in parallel. Therefore, the number of elements and calculation time are reduced, and reliability is also improved.

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

第1図は本発明の一実施例の概要を示すブロック図、第
2図は本発明の第一の実施例の構成を示すロック図、第
3図は本発明の第二の実施例の構成を示すブロック図、
第4図は従来の技術の一例の構成を示すブロック図、第
5図(a)は従来の技術の他の一例の構成を示すブロッ
ク図、第5図(b)は変換器の作動を示す説明図。 L cN−、・・・・・・第一の論理回路、LC,〜L
 CN−。 ・・・・・・第二の論理回路、4・・・・・・第一の論
理回路、lZp −Za−−−:lY −牢1」別ag
羊 l 曹 第 2 @ 7“7Qzp  牛3 回 た1 −硅田呂旧s4シ 第4 図 P′〜″″″′。′)。< 7−7’aルイニシ)ヒ・
ト1訪Po−に3・so〜S3 H,、M2 ・Na  Nt  ’  4ざIJ アブ
リイ占4畔i牛5凹(α)
Fig. 1 is a block diagram showing an overview of an embodiment of the present invention, Fig. 2 is a lock diagram showing the configuration of the first embodiment of the invention, and Fig. 3 is a configuration of the second embodiment of the invention. A block diagram showing
FIG. 4 is a block diagram showing the configuration of an example of the conventional technology, FIG. 5(a) is a block diagram showing the configuration of another example of the conventional technology, and FIG. 5(b) shows the operation of the converter. Explanatory diagram. L cN-, ...... first logic circuit, LC, ~L
CN-. ...Second logic circuit, 4...First logic circuit, lZp -Za---:lY -Jail 1'' separate ag
Sheep l Cao No. 2 @ 7"7Qzp Cow 3 times 1 - Shitaro old s4shi No. 4 Figure P'~"""'. '). <7-7'a Ruinishi) Hi・
To 1 visit Po- 3・so~S3 H,, M2 ・Na Nt' 4za IJ Aburii fortune 4 畔i cow 5 concave (α)

Claims (1)

【特許請求の範囲】 複数個のデジタル信号の中から最小の値を有するデジタ
ル信号を選別するデジタル信号選別回路において、 あらかじめ定められた桁数を有する複数個のデジタル信
号の最高位桁のビット信号を入力し、その各ビット信号
の論理積を表わす第一の論理積出力信号を出力し、前記
第一の論理積出力信号の反転信号と前記最高位桁のビッ
ト信号のおのおのとの論理積を表わす第一の縦続制御信
号を前記複数個のデジタル信号に対応して出力する第一
の論理回路と、 前記複数のデジタル信号ことに、前記第一の縦続制御信
号とこれに対応するデジタル信号の第2位桁のビット信
号との論理和をあらわす複数個の論理和信号の論理積を
表わす第二の論理積出力信号を出力し、前記第二の論理
積出力信号の反転信号とデジタル信号に対応する前記論
理和信号のおのおのとの論理積を表わす信号と、前記第
1の縦続制御信号のうち論理和信号と同じデジタル信号
に対応する第一の縦続制御信号との論理和を表わす第二
の縦続制御信号を前記複数個のデジタル信号ごとにそれ
ぞれ次段に出力する第二の論理回路とを備え、 前記第二の論理回路と同一構成の論理回路を前記複数個
のデジタル信号の第3位桁から最下位桁に対応する個数
を備え、第3位桁から最下位桁に対応するおのおのの論
理回路に前記複数個のデジタル信号の対応する桁のビッ
ト信号入力し、前記複数個のデジタル信号ごとに前段か
ら出力される縦続制御信号と、前記複数のデジタル信号
のビット信号のうち縦続制御信号と対応するデジタル信
号のビット信号との論理和を表わす複数個の論理和信号
の論理積を表わす論理積出力信号を出力し、この信号の
反転信号とデジタル信号と対応する前記複数個の論理和
信号のおのおのの論理積を表わす信号と、前段から出力
される縦続制御信号のうち前記論理和信号と同じデジタ
ル信号に対応する縦続制御信号との論理和を表わす信号
を該当論理回路の縦続制御信号として前記複数個のデジ
タル信号ごとにそれぞれ次段へ出力することを特徴とす
るデジタル信号選別回路。
[Claims] In a digital signal selection circuit that selects a digital signal having a minimum value from among a plurality of digital signals, a bit signal of the highest digit of a plurality of digital signals having a predetermined number of digits. is input, a first logical product output signal representing the logical product of the respective bit signals is outputted, and the logical product of the inverted signal of the first logical product output signal and each of the bit signals of the highest digit is calculated. a first logic circuit that outputs a first cascaded control signal representing the plurality of digital signals in correspondence with the plurality of digital signals; A second logical product output signal representing the logical product of a plurality of logical sum signals representing a logical sum with the bit signal of the second digit is output, and an inverted signal of the second logical product output signal and a digital signal are output. a second signal representing the logical product of each of the corresponding logical sum signals and a first cascaded control signal corresponding to the same digital signal as the logical sum signal among the first cascaded control signals; a second logic circuit that outputs a cascade control signal for each of the plurality of digital signals to the next stage, and a logic circuit having the same configuration as the second logic circuit as a third logic circuit of the plurality of digital signals. A bit signal of the corresponding digit of the plurality of digital signals is inputted to each logic circuit corresponding to the third digit to the least significant digit, and the bit signal of the corresponding digit of the plurality of digital signals is A logical product of a plurality of logical sum signals representing the logical sum of the cascaded control signal outputted from the previous stage for each signal and the bit signal of the digital signal corresponding to the cascaded control signal among the bit signals of the plurality of digital signals. outputs an AND output signal representing the inverted signal of this signal, a signal representing the AND of each of the plurality of OR signals corresponding to the digital signal, and the logical OR of the cascade control signal output from the previous stage; A digital signal selection circuit characterized in that a signal representing the logical sum of the signal and a cascade control signal corresponding to the same digital signal is outputted to the next stage for each of the plurality of digital signals as a cascade control signal of the corresponding logic circuit. .
JP27544785A 1985-12-06 1985-12-06 Digital signal selecting circuit Pending JPS62134720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27544785A JPS62134720A (en) 1985-12-06 1985-12-06 Digital signal selecting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27544785A JPS62134720A (en) 1985-12-06 1985-12-06 Digital signal selecting circuit

Publications (1)

Publication Number Publication Date
JPS62134720A true JPS62134720A (en) 1987-06-17

Family

ID=17555652

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27544785A Pending JPS62134720A (en) 1985-12-06 1985-12-06 Digital signal selecting circuit

Country Status (1)

Country Link
JP (1) JPS62134720A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02196362A (en) * 1989-01-25 1990-08-02 Toshiba Corp Priority order discriminating device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02196362A (en) * 1989-01-25 1990-08-02 Toshiba Corp Priority order discriminating device

Similar Documents

Publication Publication Date Title
US4573137A (en) Adder circuit
US4639888A (en) Circuit arrangement for accelerated carry formation in an adder device
US4035780A (en) Priority interrupt logic circuits
US4761760A (en) Digital adder-subtracter with tentative result correction circuit
US5311442A (en) Technology mapping apparatus for a combination circuit for use in automatically synthesizing an LSI logic circuit
JPH0428180B2 (en)
US6618804B1 (en) System and method for rearranging bits of a data word in accordance with a mask using sorting
EP0543517B1 (en) A circuit detecting the position of an extreme &#34;1&#34; bit in a binary number
US4623872A (en) Circuit for CSD-coding of a binary number represented in two&#39;s complement
JPS62134720A (en) Digital signal selecting circuit
JPH10154066A (en) N-bit comparator
JPH01187630A (en) Size comparison circuit
JPS62134721A (en) Digital signal selecting circuit
US7447716B2 (en) Data coding method and corresponding data processing unit having a coding/decoding circuit
US5821850A (en) Method and apparatus for comparing magnitude of data from a plurality of data sources
US4156113A (en) Programmable data processor for use in small and medium-size switching systems, especially in telephone exchanges
US5724275A (en) Fast multi-operand bit pattern detection method and circuit
JPH04112362A (en) Accumulation circuit
EP0413831B1 (en) Method of optimising logic circuit
EP0091214B1 (en) Ratio comparator for digital signals
JPS6136412B2 (en)
JPH11102284A (en) Method and circuit for selection
US4334213A (en) Circuit for addressing binarily addressable memories with BCD addresses
US20040109444A1 (en) Circuit to extract logical values at arbitrary bit positions
JPH06161763A (en) Min-max arithmetic circuit for fuzzy inference