JPH0396034A - Advance priority selection circuit - Google Patents

Advance priority selection circuit

Info

Publication number
JPH0396034A
JPH0396034A JP23243789A JP23243789A JPH0396034A JP H0396034 A JPH0396034 A JP H0396034A JP 23243789 A JP23243789 A JP 23243789A JP 23243789 A JP23243789 A JP 23243789A JP H0396034 A JPH0396034 A JP H0396034A
Authority
JP
Japan
Prior art keywords
circuit
input
signal
terminal
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
JP23243789A
Other languages
Japanese (ja)
Inventor
Shinichi Nakamura
伸一 中村
Noriyuki Suzuki
紀之 鈴木
Noriyuki Yogoshi
余越 紀之
Hirotomo Miyawaki
宮脇 浩智
Shigeatsu Sagawa
寒川 重厚
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP23243789A priority Critical patent/JPH0396034A/en
Publication of JPH0396034A publication Critical patent/JPH0396034A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electronic Switches (AREA)
  • Dc Digital Transmission (AREA)

Abstract

PURPOSE:To execute advance priority selection control even with a slight time difference by inputting a strobe signal representing the input of a signal to a selection control circuit so as to output a signal inputted precedingly. CONSTITUTION:When a signal data A is inputted to a terminal a of a selection circuit 1, a strobe signal S(A) ('0') is fed to an OR circuit 5-1. As a result, a level '0' is outputted from the OR circuit 5-1 and a level '1' is outputted from a NOT AND circuit 6-1. On the other hand, an inverted strobe signal inverse of S(A) is inputted to an OR circuit 5-2, from which a level '1' is outputted and the NOT AND circuit 6-1 outputs '1'. That is, while the signal data A is inputted to the terminal a of the selection circuit 1, even when a signal data B is inputted to other terminal b, the output of the NOT AND circuit 6-1 remains logical 1 and the signal data A is outputted succeedingly from the selection circuit 1.

Description

【発明の詳細な説明】 〔概 要〕 通信装置等に使用され、2つの入力端子を有し先に入力
した端子の信号を選択して出力する先優先選択回路に関
し、 回路が小型で、時間的にわずかな差であっても先優先が
実現できる先優先選択回路を提供することを目的とし、 2つの入力端子を有し、それぞれの端子に信号が入力可
能な回路であって、先に入力した信号を選択して出力す
る選択回路を有する先優先選択回路において、信号を入
力したことを示すストローブ信号を入力して、選択回路
において先に入力した信号を選択して出力し、一方の端
子に信号を入力中は他方の端子に後に入力した信号を出
力しないようにするための制御信号を該選択回路に出力
する選択制御回路を設けて構戒する。
[Detailed Description of the Invention] [Summary] This invention relates to a first priority selection circuit used in communication devices, etc., which has two input terminals and selects and outputs the signal from the terminal input first. The purpose of this circuit is to provide a first priority selection circuit that can realize first priority even if there is a slight difference in terms of performance. In a first priority selection circuit having a selection circuit that selects and outputs an input signal, a strobe signal indicating that a signal is input is input, the selection circuit selects and outputs the signal input first, and one of the signals is selected and output. A selection control circuit is provided to output a control signal to the selection circuit so as not to output a signal input later to the other terminal while a signal is being input to the other terminal.

〔産業上の利用分野〕[Industrial application field]

本発明は、通信装置等に使用され、2つの入力端子を有
し先に入力した端子の信号を選択して出力する先優先選
択回路の改良に関するものである。
The present invention relates to an improvement in a first priority selection circuit used in communication devices and the like, which has two input terminals and selects and outputs the signal from the terminal inputted first.

例えば通信装置の増設工事等を行う場合に、複数の入力
端子を有する装置のそれぞれの入力端子にコネクタを接
続して{f号データを入力する時、その接続、信号デー
タの入力順序を記憶し、入力順に(先優先して)入力信
号データを出力することが、信号データの破壊を防止す
る観点から必要である。
For example, when carrying out expansion work on a communication device, etc., connect a connector to each input terminal of a device that has multiple input terminals and input No. f data, memorize the connection and input order of signal data. It is necessary to output the input signal data in the order of input (giving priority to the first one) from the viewpoint of preventing destruction of the signal data.

このため、回路が小型で、時間的にわずかな差であって
も先優先が実現できる先優先選択回路が要望されている
For this reason, there is a need for a first priority selection circuit that is compact and can implement first priority even if there is a slight difference in time.

〔従来の技術〕[Conventional technology]

第3図は従来例の先優先選択回路の構或を示すブロック
図である。
FIG. 3 is a block diagram showing the structure of a prior art priority selection circuit.

第3図において、信号データAが選択回路(以下SEL
と称する)1の端子aに、あるいは信号データBが端子
bに入力される。今、例えば信号データAがSEL 1
の端子aに入力されたとする。同時に、信号データAを
入力したことを示すストローブ信号S (A)が、フリ
ップフロップ回路(以下FFと称する)2−1のD端子
に入力される。そして、制御回路3内のCF’U  (
図示しない)により作られたサンプリングクロツクをF
F2−1のC端子に加えることにより、Q端子からS(
A)’として出力される。
In FIG. 3, signal data A is a selection circuit (hereinafter SEL).
) 1, or signal data B is input to terminal b. Now, for example, signal data A is SEL 1
Suppose that an input is made to terminal a of . At the same time, a strobe signal S (A) indicating that signal data A has been input is input to the D terminal of the flip-flop circuit (hereinafter referred to as FF) 2-1. Then, CF'U (
F
By adding it to the C terminal of F2-1, S(
A)' is output.

この出力S(A)’が制御回路3に入力され、SELl
で信号データAを選択するための制御信号をSEL1に
出力する。SEL 1ではこの制御信号入力により、信
号データAを選択して出力する。
This output S(A)' is input to the control circuit 3, and SEL1
A control signal for selecting signal data A is output to SEL1. In SEL 1, signal data A is selected and output by this control signal input.

又、信号データAの入力をやめて信号データBをSEL
  1の端子bに入力したとする。すると、上述の場合
と同様にしてFF2−2のD端子にストローブ信号S 
(B)が入力され、C端子に入力したサンプリングクロ
ックによりQ端子からS(B)’が制御回路3に入力さ
れる。制御回路3からは、SEL 1で信号データBを
選択するための制御信号をSEL1に出力する。SEL
  1ではこの制御信号入力により、信号データBを選
択して出力する。
Also, stop inputting signal data A and SEL signal data B.
Suppose that an input is made to terminal b of No. 1. Then, the strobe signal S is applied to the D terminal of FF2-2 in the same way as in the above case.
(B) is input, and S(B)' is input to the control circuit 3 from the Q terminal by the sampling clock input to the C terminal. The control circuit 3 outputs a control signal for selecting signal data B at SEL1 to SEL1. SEL
1, signal data B is selected and output by this control signal input.

このようにして先優先の選択を行っていた。In this way, they made choices that prioritized the first.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら上述の回路においては、クロックが必要で
あり、かつ、サンプリングをするためのレジスタが必要
なために、ハードウエアが大きくなるという問題点があ
った。
However, the above-mentioned circuit requires a clock and a register for sampling, so there is a problem that the hardware becomes large.

更に、クロックでストローブ信号をサンプリングしてい
るため、実際にストロープ信号が発生してからSELで
切り替えが行われるまで、サンプリングするクロックで
1クロック分の遅れが生ずるという問題点があった。
Furthermore, since the strobe signal is sampled using a clock, there is a problem that there is a delay of one clock in the sampling clock from when the strobe signal is actually generated until switching is performed by SEL.

又、第4図に示すように、AとBのストローブ信号にあ
る程度の時間差があってもサンプリング点が同じである
と、同時にストローブ信号が見えるために実際の先優先
ではない方を選択してしまう場合も存在し、信号データ
を破壊することがあるという問題点があった。
Furthermore, as shown in Fig. 4, even if there is a certain time difference between the strobe signals A and B, if the sampling points are the same, the strobe signals can be seen at the same time, so the one that is not actually given priority is selected. There is a problem that there are cases where the signal data is destroyed, and the signal data may be destroyed.

したがって本発明の目的は、回路が小型で、時間的にわ
ずかな差であっても先優先が実現できる先優先選択回路
を提供することにある。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a first priority selection circuit which is small in size and can realize first priority even if there is a slight difference in time.

〔課題を解決するための手段〕[Means to solve the problem]

上記問題点は第1図に示す回路構戒によって解決される
The above problem is solved by the circuit structure shown in FIG.

即ち第l図において、2つの入力端子を有し、それぞれ
の端子に信号が入力可能な回路であって、先に入力した
信号を選択して出力する選択回路l00を有する先優先
選択回路において、 600は信号を入力したことを示すストローブ信号を入
力して、選択回路において先に入力した信号を選択して
出力し、一方の端子に信号を入力中は他方の端子に後に
入力した信号を出力しないようにするための制御信号を
選択回路に出力する,選択M御回路である。
That is, in FIG. 1, the first priority selection circuit is a circuit having two input terminals and into which signals can be input, and has a selection circuit 100 that selects and outputs the signal input first. 600 inputs a strobe signal indicating that a signal has been input, selects and outputs the signal input earlier in the selection circuit, and while a signal is input to one terminal, outputs the signal input later to the other terminal. This is a selection M control circuit that outputs a control signal to the selection circuit to prevent this from occurring.

〔作 用〕[For production]

第1図において、信号を入力したことを示すストローブ
信号を選択制御回路600に入力して、選択回路100
において先に入力した信号を選択して出力し、一方の端
子に信号を入力中は他方の端子に後に入力した信号を出
力しないようにするための制御信号を選択回路100に
出力する。
In FIG. 1, a strobe signal indicating that a signal has been input is input to the selection control circuit 600, and the selection circuit 100
A control signal is output to the selection circuit 100 to select and output the signal inputted earlier, and to prevent the signal inputted later from the other terminal from being outputted while the signal is inputted to one terminal.

この結果、時間的にわずかな差であっても先優先を実現
することができる。又、従来例のようにゲート回路を多
く使用しなくてすむため回路が小型化できる。
As a result, priority can be achieved even if there is a slight difference in time. Further, since it is not necessary to use as many gate circuits as in the conventional example, the circuit can be made smaller.

〔実施例〕〔Example〕

第2図は本発明の実施例の回路の構或を示すブロック図
である。
FIG. 2 is a block diagram showing the structure of a circuit according to an embodiment of the present invention.

全図を通じて同一符号は同一対象物を示す。The same reference numerals indicate the same objects throughout the figures.

第2図において、信号データAがSEL 1の端子aに
入力された時、ストロープ信号S (A)は″0″にな
るとする(回路構戒上から従来例の場合と逆にしている
)。このS(A)(″0#)が論理相回路(以下OR回
路と称する5−1に加えられる。OR回路5−1にはス
トローブ信号S(B)  (今の場合、信号データBは
SEL lに入力されていないため、S(B)は“1″
である)をインバータ4−1を介して反転して“O”に
した信号も加えられる。更にOR回路5−1には後述す
るプロテクト信号(通常は“0”)も加えられる。
In FIG. 2, it is assumed that when signal data A is input to terminal a of SEL 1, the strobe signal S (A) becomes "0" (the circuit configuration is reversed from the conventional example). This S(A) ("0#) is added to a logic phase circuit (hereinafter referred to as OR circuit) 5-1. OR circuit 5-1 is supplied with strobe signal S(B) (in this case, signal data B is SEL Since it is not input to l, S(B) is “1”
) is inverted to "O" via the inverter 4-1. Furthermore, a protect signal (usually "0"), which will be described later, is also applied to the OR circuit 5-1.

この結果、OR回路5−1からは“0”が出力され、否
定論理積回路(以下NAND回路と称する)6−1の一
方の入力端子Cに加えられる。NAND回路は2つの入
力がともに“l”の時には“0”を出力し、一方の入力
が“0”の時には“1”を出力する性質を有する。
As a result, "0" is output from the OR circuit 5-1, and is applied to one input terminal C of a negative AND circuit (hereinafter referred to as a NAND circuit) 6-1. A NAND circuit has a property of outputting "0" when both inputs are "L", and outputting "1" when one input is "0".

このため、今の場合NANO回路6−1からは“1″を
出力する。この出力“l”がNAND回路6−2の一方
の入力端子eに加えられる。
Therefore, in this case, the NANO circuit 6-1 outputs "1". This output "l" is applied to one input terminal e of the NAND circuit 6-2.

一方、OR回路5−2にはストローブ信号S (A)(
今の場合”0”)がインバータ4−2を介して反転され
て“1″となって入力される。又、S(B)  (今の
場合“l”)及びプロテクト信号(“0”)も入力され
る。
On the other hand, the strobe signal S (A) (
(in this case, "0") is inverted via the inverter 4-2 to become "1" and input. Further, S(B) (“l” in this case) and a protect signal (“0”) are also input.

この結果、OR回路5−2からは“1″が出力され、N
AND回路6−2の他方の入力端子[に加えられる。N
AND回路6−2の2つの入力端子にはともに“l”が
加えられたことになり、NANO回路の性質から“O”
を出力する。この出力“0”がNAND回路6−1の他
方の端子dに加えられる。この結果、NAND回路6−
1からは“l”を出力する。即ち、NAND回路6−1
 、6−2からなる回路は、今の場合“l“の出力を保
持することになるため、セット、リセット保持回路(以
下S,Rラッチ回路と称する)の特性を有する。
As a result, "1" is output from the OR circuit 5-2, and N
It is added to the other input terminal [ of the AND circuit 6-2. N
This means that "l" is added to both of the two input terminals of the AND circuit 6-2, and due to the nature of the NANO circuit, "0" is applied to both input terminals.
Output. This output "0" is applied to the other terminal d of the NAND circuit 6-1. As a result, NAND circuit 6-
1 outputs "l". That is, the NAND circuit 6-1
, 6-2 holds the output of "1" in this case, so it has the characteristics of a set/reset holding circuit (hereinafter referred to as an S, R latch circuit).

次に、信号デークAをSEL 1の端子aに入力中に、
SEL  1の端子bに信号データBを入力したとする
。この時、ストローブ信号S (B)は“O″となり、
OR回路5−2に加えられるとともに、インバータ4−
1を介して反転して“1″となってOR回路5−1に加
えられる。この結果、OR回路5−1 、5−2からは
共に″1mを出力する。このOR回路5−1の出力“l
″がNAND回路6−1の入力端子Cに加えられる。N
AND回路6−1の出力は今まで“1”を保持していた
ため、NAND回路6−2の2つの入力端子e,fには
共に“1”が加えられることになり、NAND回路6−
2からは“0″を出力する。この結果、NANO回路6
−1の2つの入力端子c,dには“1″及び“O”が加
えられ、NAND回路6−1からは“1″を出力する。
Next, while inputting signal data A to terminal a of SEL 1,
Assume that signal data B is input to terminal b of SEL1. At this time, the strobe signal S (B) becomes "O",
In addition to being added to the OR circuit 5-2, the inverter 4-
1, it is inverted to become "1", and is applied to the OR circuit 5-1. As a result, the OR circuits 5-1 and 5-2 both output "1m." The output of the OR circuit 5-1 is "l
'' is applied to the input terminal C of the NAND circuit 6-1.N
Since the output of the AND circuit 6-1 has been holding "1" until now, "1" is added to both the two input terminals e and f of the NAND circuit 6-2.
2 outputs "0". As a result, NANO circuit 6
"1" and "O" are applied to the two input terminals c and d of -1, and "1" is output from the NAND circuit 6-1.

即ち、信号データAをSEL 1の端子aに入力中に、
SEL lの端子bに信号データBを入力したとしても
NAND回路6−1の出力は“ドのままであり、SEL
 1からは引き続き信号データAを出力する。
That is, while inputting signal data A to terminal a of SEL 1,
Even if signal data B is input to terminal b of SEL l, the output of the NAND circuit 6-1 remains at "do", and SEL
1 continues to output signal data A.

逆に、信号データAをSEL 1に入力しないで信号デ
ータBをSEL 1の端子bに入力してSEL 1から
信号データBを出力中に、SEL 1の端子aに信号デ
ータAを入力した時にも、上述の場合と同様にしてSE
L 1からは信号データBを出力し続ける。
Conversely, when signal data B is input to terminal b of SEL 1 without inputting signal data A to SEL 1 and signal data B is being output from SEL 1, when signal data A is input to terminal a of SEL 1. Similarly to the above case, SE
Signal data B continues to be output from L1.

又、SEL 1に信号データAを入力してSEL  1
から信号データAを出力中に、SEL 1に信号データ
Bを入力してもSEL 1の出力は上述したように変わ
らないが、その後信号データAの入力を除去した場合、
ストローブ信号S (A)が“0″から“■“に変化し
、OR回路5〜1にはS(八)として″1″、S(B)
 (“0”)はインバータ4−1で反転されて“1”が
入力され、OR回路5−1からは“1”を出力する。
Also, input signal data A to SEL 1 and
Even if signal data B is input to SEL 1 while signal data A is being output from , the output of SEL 1 will not change as described above, but if the input of signal data A is subsequently removed,
The strobe signal S (A) changes from "0" to "■", and the OR circuits 5 to 1 receive "1" as S (8), S (B)
("0") is inverted by the inverter 4-1 and "1" is input, and "1" is output from the OR circuit 5-1.

一方、012回路5〜2にはS (A) (“l”)が
インバータ4−2により反転されて“0”となって入力
され、S(B) としては“O″が入力されるため、O
R回路5−2からは“O″が出力される。この出力“0
″がNAIJ[1回路6−2の入力端子rに加えられ、
他方の入力端子eにはそれまでNAND回路6−1の出
力で保持していた“1″が加えられるため、NAND回
路6−2からは“1”が出力されNAND回路6−1の
一方の入力端子dに加えられる。この結果、NAND回
路6−1の2つの入力端子c,dには共に”1”が加え
られ、NAND回路6−1からは“0”を出力するよう
になる。
On the other hand, S (A) (“l”) is inverted by the inverter 4-2 and input as “0” to the 012 circuits 5 to 2, and “O” is input as S (B). , O
"O" is output from the R circuit 5-2. This output “0”
” is applied to the input terminal r of NAIJ[1 circuit 6-2,
Since "1", which had been held at the output of the NAND circuit 6-1, is added to the other input terminal e, "1" is output from the NAND circuit 6-2, and one of the NAND circuits 6-1 outputs "1". applied to input terminal d. As a result, "1" is added to both the two input terminals c and d of the NAND circuit 6-1, and the NAND circuit 6-1 outputs "0".

即ち、NAND回路6−1の出力は“1″から“Onに
変わり、このため、SEL 1は信号データBを選択し
て出力することになる。
That is, the output of the NAND circuit 6-1 changes from "1" to "On", so that SEL 1 selects and outputs signal data B.

尚、プロテクト信号は通常は“0”を出力するが、特に
S,Rラッチ回路の出力(NAND回路6−1の出力)
を一定の値に保持したい時に“l”を出力し、ストロー
プ信号S(A) 、S(B)の値に関係なくS、Rラッ
チ回路の出力を一定に保持する。
Note that the protect signal normally outputs "0", but especially the output of the S, R latch circuit (output of the NAND circuit 6-1)
When it is desired to hold S(A) and S(B) at a constant value, "l" is output, and the outputs of the S and R latch circuits are held constant regardless of the values of the strobe signals S(A) and S(B).

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

以上説明したように本発明によれば、ストローブ信号を
サンプリングすることなく先優先の選択回路を実現する
ことが出来るので、ハードウエアの削減が可能となる。
As described above, according to the present invention, it is possible to realize a first-priority selection circuit without sampling the strobe signal, thereby making it possible to reduce the amount of hardware.

又、ストローブ信号のレベル(“0”■”)による方法
を用いているので、サンプリングする時のように少ない
時間差のストローブ信号を同時と見なしてしまうことが
なく、わずかな時間差であっても先優先を実現すること
ができる。
In addition, since it uses a method based on the strobe signal level (“0”■”), strobe signals with a small time difference are not treated as simultaneous, unlike when sampling, and even a small time difference can be detected first. Priority can be achieved.

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

第1図は本発明の原理図、 第2図は本発明の実施例の回路の構或を示すブロック図
、 第3図は従来例の先優先選択回路の構成を示すブロック
図、 第4図は従来例において先優先が実現されない場合を説
明する図である。 図において 600は選択制御回路 を示す。
FIG. 1 is a diagram showing the principle of the present invention. FIG. 2 is a block diagram showing the circuit configuration of an embodiment of the present invention. FIG. 3 is a block diagram showing the configuration of a conventional prioritization selection circuit. FIG. 2 is a diagram illustrating a case where first priority is not realized in the conventional example. In the figure, 600 indicates a selection control circuit.

Claims (1)

【特許請求の範囲】 2つの入力端子を有し、それぞれの端子に信号が入力可
能な回路であって、先に入力した信号を選択して出力す
る選択回路(100)を有する先優先選択回路において
、 該信号を入力したことを示すストローブ信号を入力して
、該選択回路において先に入力した信号を選択して出力
し、一方の端子に信号を入力中は他方の端子に後に入力
した信号を出力しないようにするための制御信号を該選
択回路に出力する選択制御回路(600)を設けたこと
を特徴とする先優先選択回路。
[Claims] A first priority selection circuit which has two input terminals and into which signals can be input, and which has a selection circuit (100) that selects and outputs the signal input first. , a strobe signal indicating that the signal has been input is input, and the selection circuit selects and outputs the signal input earlier, and while the signal is input to one terminal, the signal input later to the other terminal is input. 1. A first priority selection circuit comprising a selection control circuit (600) for outputting a control signal to the selection circuit so as not to output the first priority selection circuit.
JP23243789A 1989-09-07 1989-09-07 Advance priority selection circuit Pending JPH0396034A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23243789A JPH0396034A (en) 1989-09-07 1989-09-07 Advance priority selection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23243789A JPH0396034A (en) 1989-09-07 1989-09-07 Advance priority selection circuit

Publications (1)

Publication Number Publication Date
JPH0396034A true JPH0396034A (en) 1991-04-22

Family

ID=16939252

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23243789A Pending JPH0396034A (en) 1989-09-07 1989-09-07 Advance priority selection circuit

Country Status (1)

Country Link
JP (1) JPH0396034A (en)

Similar Documents

Publication Publication Date Title
JPS60183669A (en) Memory controller
JP3380329B2 (en) Digital data arbitration device
JPS595736A (en) Timing generating circuit
JPH03111960A (en) One-chip microcomputer
JPH0396034A (en) Advance priority selection circuit
JPH05134007A (en) Semiconductor integrated logic circuit
JP2810584B2 (en) Serial data transfer circuit
KR100199190B1 (en) Data acquisition logic
JPH07146842A (en) Bus interface circuit
JPS63282820A (en) Clock signal switching system
KR910006684Y1 (en) Cpu signal controlling circuit
JPH01147648A (en) Data memory device
JPH03164852A (en) Integrated circuit
JPS6282820A (en) Comparator circuit
JPS61166664A (en) Data transfer device
KR20000002891U (en) Clock and Data Recovery Circuit
JPH0422220A (en) Synchronous output circuit
JPS61179621A (en) Serial/parallel converting circuit
JPS6386046A (en) Memory selection system
JPH06112812A (en) Binary counter
JPH0324661A (en) Bus access device for microprocessor
JPS6234438A (en) Elastic store memory circuit
JPH08329670A (en) Semiconductor device
JPH08204524A (en) Clock phase control circuit and digital signal processing circuit using the circuit
JPH0441383B2 (en)