JPH10336196A - Output conflict controller - Google Patents

Output conflict controller

Info

Publication number
JPH10336196A
JPH10336196A JP14365597A JP14365597A JPH10336196A JP H10336196 A JPH10336196 A JP H10336196A JP 14365597 A JP14365597 A JP 14365597A JP 14365597 A JP14365597 A JP 14365597A JP H10336196 A JPH10336196 A JP H10336196A
Authority
JP
Japan
Prior art keywords
output
fifo
flag
fifos
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
JP14365597A
Other languages
Japanese (ja)
Inventor
裕昭 ▲高▼野
Hiroaki Takano
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP14365597A priority Critical patent/JPH10336196A/en
Publication of JPH10336196A publication Critical patent/JPH10336196A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To separately prevent plural FIFOs that have output requests from remaining without being selected for a long time and to need only a small amount of hardwares. SOLUTION: This output conflict controller selects plural FIFOs 0 to 7 which make output requests every two FIFO output requests and has plural stages of output conflict circuits 2a to 2d, 3a and 3b and 4 which output one FIFO output request, and finally, the circuit 4 on the final stage outputs one FIFO output request. In such cases, a flag control part 1 which is installed between plural FIFOs and each output conflict circuit 2a to 2d performs such flag control as to fix the flag value of an FIFO that is finally selected in an output conflict circuit on the final stage to zero. When flags are the same in each output conflict circuit, an upper is preceded, and when flags are different, an FIFO of a flag one is preceded so that a flag zero may not be selected, the rest of FIFOs are successively and finally selected in the circuit 4 on the final stage, and plural FIFOs are prevented from remaining without being selected for a long time.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、シェーピング装置
における出力競合制御装置に関し、例えば、ATM(As
ynchronous Transfer Mode) 交換網や、ATM通信シス
テムの端末側などに適用し得るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an output contention control device in a shaping device, for example, an ATM (As
(ynchronous Transfer Mode) This can be applied to a switching network, a terminal side of an ATM communication system, and the like.

【0002】[0002]

【従来の技術】一般に、サブスクライブ・ライン・ター
ミナル(SLT:Subscribe Line Terminal )では同時
に多数の接続を行うが、このSLTに入力されるATM
セルは、コネクション受け付け制御(CAC:Call Adm
ission Contorol)で許容される条件を満たすように、使
用量パラメータ制御(UPC:Usage Parameter Contor
ol)のチェックを受けている。しかしながら、サブスク
ライブ・ライン・ターミナルSLTでは、ATMスイッ
チによって各方路にセルが集められるので特定の方路に
ATMセルが集中し、その結果、バーチャルパス( V
P:Virtual Path) の容量を超えて速い瞬時速度でAT
Mセルを送出しなければならないことが起りえる。この
ため、各ATMセルを一旦、コネクション毎に設けられ
たバッファメモリに蓄積し、ATMセルの瞬時速度が一
定値(VPの容量)を超えないようにATMセルを読み
出すことが行われている。このような機能をシェーピン
グと呼び、かかる機能を備えた装置をシェーピング装置
という。
2. Description of the Related Art In general, a Subscribe Line Terminal (SLT) makes a large number of connections at the same time.
The cell performs connection admission control (CAC: Call Adm).
Usage parameter control (UPC: Usage Parameter Control) so as to satisfy the conditions allowed by the ission control.
ol). However, in the subscribe line terminal SLT, ATM cells are collected on each route by the ATM switch, so that ATM cells are concentrated on a specific route, and as a result, the virtual path (V
AT: Fast instantaneous speed exceeding the capacity of P: Virtual Path)
It may happen that M cells have to be sent. For this reason, each ATM cell is temporarily stored in a buffer memory provided for each connection, and the ATM cell is read so that the instantaneous speed of the ATM cell does not exceed a certain value (the capacity of VP). Such a function is called shaping, and a device having such a function is called a shaping device.

【0003】このシェーピング装置では、一旦バッファ
に書き込まれたATMセルは、スケジューラの指示によ
り読み出される。スケジューラは各コネクション毎に独
立に読み出し要求を出力するが、場合によってスケジュ
ーラは複数のコネクションに対してセルの読み出し要求
の指示をする場合がある。この場合、シェーピング装置
から出力され得るセルは1つであるので、複数のコネク
ションの中からATMセルを出力すべきコネクションを
選択しなければならないことが生じる。これがシェーピ
ング装置における出力競合制御である。この出力競合制
御において、選択されなかったコネクションは引き続き
出力要求が出ているので、次のセル出力タイミングで、
さらに競合制御を行う。
In this shaping apparatus, ATM cells once written in a buffer are read out according to a scheduler instruction. The scheduler outputs a read request independently for each connection, but in some cases, the scheduler may instruct a plurality of connections to request a cell read. In this case, since one cell can be output from the shaping device, a connection to output an ATM cell must be selected from a plurality of connections. This is output conflict control in the shaping device. In this output contention control, an unselected connection continues to output, so at the next cell output timing,
Further, contention control is performed.

【0004】[0004]

【発明が解決しようとする課題】シェーピング装置にお
いて競合しているコネクションを選択する方法の1つと
して、各コネクションに対応するFIFOに0からNま
での番号をつけ、競合が起こった場合、番号の小さいF
IFOからセルを出力するという方法がある。この場
合、競合により選択される番号は小さいものに片寄る傾
向にあるので、各コネクションのセルのトラヒックの性
質に差が出てしまうという欠点がある。次に、競合して
いる各コネクションからの出力をランダムで選択する方
法が考えられる。この場合は各コネクションの競合時の
選択される確率は、統計的に平等となるが、一方ランダ
ムに選ぶということは、あるコネクションに着目した場
合に、いつまでも選択されない可能性が、小さい確率な
がらありえることになって望ましくない。
As one method of selecting conflicting connections in a shaping device, the FIFOs corresponding to the connections are numbered from 0 to N. Small F
There is a method of outputting cells from the IFO. In this case, there is a drawback that the number of cells selected due to contention tends to be smaller, so that there is a difference in the traffic characteristics of the cell of each connection. Next, a method of randomly selecting an output from each of the conflicting connections can be considered. In this case, the probability of each connection being selected at the time of contention is statistically equal. On the other hand, selecting at random means that when focusing on a certain connection, there is a small probability that it will not be selected forever. That is undesirable.

【0005】次に、各コネクションにカウンタを配備
し、競合制御により選択されなかった回数を保持するこ
とにより、回数の大きいものから出力(回数が同じとき
は、ランダムで選択もしくは、番号の小さいもので選択
してもよい)する方法が考えられる。この場合はカウン
タを構成するので、そのカウンタのビット長およびコネ
クション数が大きい場合はハード規模が大きくなるとい
う欠点を有する。以上で述べた方法のいずれの方法によ
っても、シェーピング装置においてハード量が小さく、
残留時間が小さいコネクションが存在する競合制御は実
現不可能であった。
[0005] Next, a counter is provided for each connection and the number of times not selected by the conflict control is retained, so that the output from the one with the largest number is output (if the number is the same, the one selected at random or the one with the smaller number is output). May be selected). In this case, since the counter is configured, there is a disadvantage that the hardware scale becomes large when the bit length and the number of connections of the counter are large. With any of the methods described above, the amount of hardware in the shaping device is small,
Contention control in which a connection with a short remaining time exists cannot be realized.

【0006】[0006]

【課題を解決するための手段】本発明に係る出力競合制
御装置は、複数のFIFOから出力要求があった場合
に、複数のFIFOの出力要求に対して2つの出力要求
毎に第1段の各出力競合回路が択一選択を行って1つの
FIFOの出力要求を出力し、その選択されたFIFO
の出力要求に対してさらに2つの出力要求毎に第2段の
各出力競合回路が択一選択を行って1つのFIFOの出
力要求を出力し、このように次々と各段の各出力競合回
路が択一選択を行い、最終的に最終段の出力競合回路が
1つのFIFOの出力要求を出力するようにした出力競
合制御装置において、前記複数のFIFOと前記第1段
の各出力競合回路との間に設けたフラグ制御部は複数の
全てのFIFOのフラグが0の場合においてのみ、FI
FOから出力要求があった場合に当該出力要求があった
FIFOについてだけフラグを1にし、複数のFIFO
のうち1つでもフラグが1のものがある場合にはどのF
IFOに出力要求があっても全てのFIFOのフラグの
値が変化しないようにし、最終段の出力競合回路が出力
したFIFOについてはそのフラグの値を0に設定する
ようフラグ制御し、前記各出力競合回路は2つのFIF
Oから出力要求がある場合でその出力要求に上位と下位
の位置付けがあり、且つ共にフラグが0又は1のときに
は上位のFIFOを選択して当該FIFOの番号と出力
要求とフラグを出力し、上位と下位で一方のフラグが1
のときはフラグが1のFIFOの番号と出力要求とフラ
グを出力し、2つのFIFOから共に出力要求がない場
合は上位のFIFOの番号とフラグを出力し、上位と下
位で一方のみの出力要求があるときは要求のあるFIF
Oの番号と出力要求とフラグを出力するように構成され
ている。
SUMMARY OF THE INVENTION An output contention control apparatus according to the present invention is arranged such that, when output requests are issued from a plurality of FIFOs, the output competition control device of the first stage responds to the output requests of the plurality of FIFOs every two output requests. Each output competing circuit makes an alternative selection, outputs an output request of one FIFO, and outputs the selected FIFO.
In response to the output request, each of the output competition circuits in the second stage makes an alternative selection for every two output requests, and outputs one FIFO output request. Performs an alternative selection, and finally, a final-stage output competition circuit outputs an output request of one FIFO. In the output competition control device, the plurality of FIFOs and each of the first-stage output competition circuits are The flag control unit provided between the first and second registers is used only when the flags of all the FIFOs are 0.
When an output request is issued from the FO, the flag is set to 1 only for the FIFO for which the output request has been issued, and a plurality of FIFOs are set.
If any one of the flags has a flag of 1,
Even if there is an output request to the FIFO, the values of the flags of all FIFOs are kept unchanged, and flag control is performed so that the value of the flag is set to 0 for the FIFO output by the final output competition circuit. The competing circuit has two FIFOs
When there is an output request from O, the output request has a high order and a low position, and when both the flags are 0 or 1, the high-order FIFO is selected and the number of the FIFO, the output request, and the flag are output. And one of the lower flags is 1
In the case of, the FIFO number and output request and the flag whose flag is 1 are output. If there is no output request from both FIFOs, the upper FIFO number and flag are output, and only one of the upper and lower output requests is output. If there is a requested FIF
It is configured to output an O number, an output request, and a flag.

【0007】本発明においては、フラグ制御部が複数の
全てのFIFOのフラグが0の場合においてのみ、FI
FOから出力要求があった場合に当該出力要求があった
FIFOについてだけフラグを1にし、複数のFIFO
のうち1つでもフラグが1のものがある場合にはどのF
IFOに出力要求があっても全てのFIFOのフラグの
値が変化しないようにし、最終段の出力競合回路が出力
したFIFOについてはそのフラグの値を0に設定する
ようフラグ制御し、第1段から最終段の各出力競合回路
では、2つのFIFOから出力要求がある場合でその出
力要求に上位と下位の位置付けがあり、且つ共にフラグ
が0又は1のときには上位のFIFOを選択して当該F
IFOの番号と出力要求とフラグを出力し、上位と下位
で一方のフラグが1のときはフラグが1のFIFOの番
号と出力要求とフラグを出力し、2つのFIFOから共
に出力要求がない場合は上位のFIFOの番号とフラグ
を出力し、上位と下位で一方のみの出力要求があるとき
は要求のあるFIFOの番号と出力要求とフラグを出力
するから、最終段の出力競合回路で最終的に選択された
FIFOのフラグの値が0に設定されて固定された場合
にそのFIFOと他のFIFOが競合したときには出力
要求が共に有ってフラグが1のFIFOが優先されるた
めにそのFIFOが選択されることはなくなり、今まで
最終的に選択されなかった残りのFIFOがなくなるま
で最終段の出力競合回路で次々と最終的に選択され、全
てのFIFOが選択されてFIFOのフラグの値が全て
0になったときに再び出力要求が有ったものについてフ
ラグを1にするようにして選択されるため、複数のFI
FOのそれぞれが長い時間選択されず残留してしまうこ
とを防止できる。また、フラグ制御部のフラグ制御と複
数の出力制御回路を用意するだけでよいので、ハード量
もわずかで済む。
In the present invention, the flag control unit sets the FI only when the flags of all the plurality of FIFOs are 0.
When an output request is issued from the FO, the flag is set to 1 only for the FIFO for which the output request has been issued, and a plurality of FIFOs are set.
If any one of the flags has a flag of 1,
The flag control is performed so that the values of the flags of all FIFOs do not change even if there is an output request to the FIFO, and the values of the flags output from the final output competition circuit are set to 0. In the output competing circuits from the last stage, when there is an output request from two FIFOs, the output request has the upper and lower positions, and when both flags are 0 or 1, the upper FIFO is selected and the corresponding FIFO is selected.
Outputs the FIFO number, output request, and flag. When one of the upper and lower flags is 1, outputs the FIFO number, output request, and flag whose flag is 1. When there is no output request from both FIFOs Outputs the number and flag of the upper FIFO, and outputs the requested FIFO number, output request, and flag when there is only one of the upper and lower output requests. When the value of the flag of the selected FIFO is set to 0 and fixed and the FIFO and another FIFO compete with each other, there is an output request, and the FIFO with the flag of 1 is given priority. Will not be selected, and will be finally selected one after another by the output competition circuit in the final stage until all remaining FIFOs that have not been finally selected are exhausted, and all FIFOs will be selected. Has been the value of the FIFO flag is selected as the flag to 1 for that there is an output request again when it is all 0, a plurality of FI
It is possible to prevent each of the FOs from being left unselected for a long time. Also, since only the flag control of the flag control unit and a plurality of output control circuits need to be prepared, the amount of hardware is small.

【0008】[0008]

【発明の実施の形態】図1は本発明の実施の形態1の出
力競合制御装置のブロック図、図2は同出力競合制御装
置の出力競合回路の入出力を表すブロック図、図3は同
出力競合制御装置の出力競合回路の動作を表すフローチ
ャート、図4は同出力競合制御装置のフラグ制御回路の
動作を表すフローチャートである。この実施の形態1に
おける出力競合制御装置は7つのFIFOの出力を競合
させる場合を示している。図において、1は入力情報で
ある7つのFIFOのフラグを制御するフラグ制御回
路、2a〜2dはフラグ制御回路1からそれぞれ入力さ
れた2つのFIFOから1つの入力を選択する第1段の
出力競合回路、3aは第1段の出力競合回路2a、2b
によってそれぞれ選択された2つのFIFOから1つの
入力を選択する第2段の出力競合回路、3bは第1段の
出力競合回路2c、2dによってそれぞれ選択された2
つのFIFOから1つの入力を選択するもう一つの第2
段の出力競合回路、4は第2段の出力競合回路3a、3
bによってそれぞれ選択された2つのFIFOから1つ
の入力を選択する最終段である第3段の出力競合回路で
ある。なお、入力情報である各FIFOはFIFO番
号、出力要求、フラグを有している。
FIG. 1 is a block diagram of an output conflict control device according to a first embodiment of the present invention, FIG. 2 is a block diagram showing inputs and outputs of an output conflict circuit of the output conflict control device, and FIG. FIG. 4 is a flowchart showing the operation of the output conflict circuit of the output conflict control device, and FIG. 4 is a flowchart showing the operation of the flag control circuit of the output conflict control device. The output conflict control device according to the first embodiment shows a case where the outputs of seven FIFOs conflict. In the figure, reference numeral 1 denotes a flag control circuit for controlling flags of seven FIFOs as input information, and 2a to 2d first-stage output competition for selecting one input from two FIFOs input from the flag control circuit 1, respectively. Circuit 3a is a first stage output competition circuit 2a, 2b
The second stage output competition circuit 3b, which selects one input from the two FIFOs respectively selected by the first and second stages, is selected by the first stage output competition circuits 2c, 2d, respectively.
Another second to select one input from one FIFO
The output competing circuit of the stage is 4 and the output competing circuits 3a, 3
This is a third stage output competing circuit which is the last stage for selecting one input from the two FIFOs respectively selected by b. Each FIFO, which is input information, has a FIFO number, an output request, and a flag.

【0009】次に、第1段から第3段の出力競合回路2
a〜2d、3a〜3b、4の動作について図2及び図3
のフローチャートに基づいて説明する。なお、これら出
力競合回路2a〜2d、3a〜3b、4はいずれも同じ
動作をするので、出力競合回路2aについて説明する。
例えば出力競合回路2aに2つのFIFOが入力されて
競合する場合、競合する2者を上位と下位とする。この
上位と下位の決定基準は例えばFIFOのFIFO番号
の若い方を上位としている。まず、上位も下位も出力要
求がある場合(ステップS1)、両者共フラグが1のと
き(ステップS2)は上位が選択され、片方の上位のフ
ラグが1のとき(ステップS3)は上位が選択され、ま
た片方の下位のフラグが1のとき(ステップS4)は下
位が選択され、両者ともフラグが0のときも上位が選択
される。結局、片方のみフラグが1の場合は、フラグが
1のFIFOが選択されることとなる。
Next, the first to third stage output competition circuits 2
a to 2d, 3a to 3b, and 4 are shown in FIGS.
A description will be given based on the flowchart of FIG. Since the output competing circuits 2a to 2d, 3a to 3b, and 4 all perform the same operation, the output competing circuit 2a will be described.
For example, when two FIFOs are input to the output competition circuit 2a to compete with each other, the two competing parties are defined as a higher order and a lower order. The upper and lower determination criteria are, for example, the higher of the FIFO numbers of the FIFO. First, when there is an output request for both the high order and the low order (step S1), when both of the flags are 1 (step S2), the high order is selected, and when one of the high order flags is 1 (step S3), the high order is selected. When one of the lower flags is 1 (step S4), the lower is selected, and when both of the flags are 0, the upper is selected. As a result, if only one of the flags is 1, the FIFO with the flag of 1 is selected.

【0010】次に、上位と下位の両者の出力要求がない
場合で、上位について出力要求がある(ステップS5)
ときはその上位が選択され、上位について出力要求がな
く下位について出力要求がある(ステップS8)ときは
その下位が選択され(ステップS6)、上位と下位のい
ずれもが出力要求がないときは上位が選択される。そし
て、出力競合回路2aからは選択されたFIFOのFI
FO番号とそれに付随する出力要求及びフラグが出力さ
れる。
Next, when there is no output request for both the upper and lower orders, there is an output request for the upper order (step S5).
At this time, the upper order is selected. If there is no output request for the upper order and there is an output request for the lower order (step S8), the lower order is selected (step S6). If neither the upper order nor the lower order is output, the upper order is selected. Is selected. Then, the FIFO of the selected FIFO is output from the output competition circuit 2a.
The FO number and its associated output request and flag are output.

【0011】さらに、フラグ制御回路1の動作について
図4のフローチャートに基づいて説明する。あるFIF
Oについて出力要求があった場合(ステップS10)、
全てのFIFOのフラグが0のとき(ステップS11)
は、その出力要求があったFIFOのフラグだけ1にす
る(ステップS12)。従って、全てのFIFOについ
て出力要求があれば、その出力要求があった全てのFI
FOのフラグは1にする。なお、全てのFIFOのフラ
グが0でないとき、即ち、複数のFIFOのうち1つで
もフラグが1のときは、どのFIFOに出力要求があっ
たとしても全てのFIFOのフラグは変化しない。さら
に、出力競合制御装置により選択されたFIFOは、そ
のフラグの値を0にする(ステップS12)。
Next, the operation of the flag control circuit 1 will be described with reference to the flowchart of FIG. A FIF
If there is an output request for O (step S10),
When the flags of all FIFOs are 0 (step S11)
Sets only the flag of the FIFO for which the output request has been made to 1 (step S12). Therefore, if there are output requests for all FIFOs, all the FIFOs for
The FO flag is set to 1. When the flags of all FIFOs are not 0, that is, when the flag of one of the plurality of FIFOs is 1, the flags of all FIFOs do not change even if an output request is issued to any FIFO. Further, the value of the flag of the FIFO selected by the output contention control device is set to 0 (step S12).

【0012】次に、本発明の実施の形態1の出力競合制
御装置の動作について説明する。例えば、FIFO 0
〜7 の全てに出力要求があった場合、フラグ制御回路
1はFIFO 0〜7 のフラグを全て1にする。そし
て、第1段の出力競合回路2aにはFIFO 0と1
の出力要求が入力され、第1段の出力競合回路2bには
FIFO 2と3 の出力要求が入力され、第1段の出
力競合回路2cにはFIFO 4と5 の出力要求が入
力され、第1段の出力競合回路2dにはFIFO 6
と7 の出力要求が入力される。第1段の出力競合回路
2aは、入力されたFIFO 0と1 のフラグは共に
1であるから、上位のFIFOであるFIFO 0
(即ち、FIFO番号が若いFIFOを上位と定めてい
るから、上位のFIFOはFIFO 0 である)を選
択して出力する。従って、第1段における出力競合回路
2bはFIFO 2 を、出力競合回路2cはFIFO
4 を、出力競合回路2dはFIFO 6 を出力す
る。
Next, the operation of the output conflict control device according to the first embodiment of the present invention will be described. For example, FIFO 0
When there is an output request for all of the registers 0 to 7, the flag control circuit 1 sets all the flags of the FIFOs 0 to 7 to 1. The first stage output competition circuit 2a has FIFOs 0 and 1
, The first stage output competition circuit 2b receives FIFO 2 and 3 output requests, the first stage output competition circuit 2c receives FIFO 4 and 5 output requests, and FIFO 6 is provided in the one-stage output competition circuit 2d.
And 7 output requests are input. The first-stage output competition circuit 2a determines that the input FIFO 0 and 1 flags are both “1”, so that the higher-order FIFO 0
(In other words, the FIFO with the smaller FIFO number is defined as the higher order, so the higher order FIFO is FIFO 0) and output. Therefore, the output competition circuit 2b in the first stage uses the FIFO 2 and the output competition circuit 2c uses the FIFO 2
4 and the output competition circuit 2d outputs FIFO 6.

【0013】次に、第2段の出力競合回路3aにはFI
FO 0と2 が入力され、第2段の出力競合回路3b
にはFIFO 4と6 が入力される。第2段の出力競
合回路3aは、入力されたFIFO 0と2 のフラグ
は共に1であるから、上位のFIFOであるFIFO
0 を選択して出力する。従って、第2段における出力
競合回路3bはFIFO 4を出力する。更に、最終段
である第3段の出力競合回路4にはFIFO 0と4
が入力され、第3段の出力競合回路4は、入力されたF
IFO 0と4 のフラグは共に1であるから、上位の
FIFOであるFIFO 0 を最後に選択して出力す
る。そして、最終的に選択されて出力されたFIFO
0 はフラグ制御回路1によってそのフラグの値が0に
設定されて固定される。
Next, the second stage output competing circuit 3a has a FI
FO 0 and 2 are input, and the second stage output competition circuit 3b
Are input with FIFOs 4 and 6. The output competing circuit 3a of the second stage, since both the input FIFO 0 and 2 flags are 1, the upper FIFO, FIFO
Select 0 and output. Therefore, the output competition circuit 3b in the second stage outputs FIFO4. Furthermore, FIFOs 0 and 4 are provided to the third stage output competition circuit 4 which is the last stage.
And the third stage output competition circuit 4 outputs the input F
Since the flags of IFOs 0 and 4 are both 1, FIFO 0 which is the upper FIFO is finally selected and output. Then, the FIFO that is finally selected and output
In the case of 0, the value of the flag is set to 0 by the flag control circuit 1 and fixed.

【0014】この状態で、FIFO 0〜7 の全てに
出力要求があった場合、第1段の出力競合回路2aには
FIFO 0と1 の出力要求が入力されるが、FIF
O0 のフラグは0で、FIFO 1 のフラグは1で
あるから、フラグ1が優先されて第1段の出力競合回路
2aはFIFO 1 を出力する。第1段の他の出力競
合回路2b〜2dは前述と同様のFIFOを出力し、第
2段の出力競合回路3aにはFIFO 1と2 が入力
され、第2段の出力競合回路3bには前述と同様にFI
FO 4と6 が入力され、第2段の出力競合回路3a
はFIFO 1 を出力し、第2段の出力競合回路3b
はFIFO 4 を出力する。更に、最終段である第3
段の出力競合回路4にはFIFO 1と4 が入力さ
れ、第3段の出力競合回路4は、入力されたFIFO
1と4 のフラグは共に1であるから、上位のFIFO
であるFIFO 1 を最後に選択して出力する。そし
て、最終的に選択されて出力されたFIFO 1 はフ
ラグ制御回路1によってそのフラグの値が0に設定され
て固定される。このようにして、最終的に選択されて出
力されたFIFOは出力要求があっても選択されること
はないから、残りのFIFOが全て出力されるまでは、
競合するFIFOが新規に追加されることはない。
In this state, if there is an output request to all of the FIFOs 0 to 7, the output requests of the FIFOs 0 and 1 are input to the first stage output competition circuit 2a.
Since the flag of O0 is 0 and the flag of FIFO 1 is 1, flag 1 has priority and the first-stage output competition circuit 2a outputs FIFO 1. The other output competition circuits 2b to 2d in the first stage output the same FIFO as described above, FIFO1 and 2 are input to the output competition circuit 3a in the second stage, and the output competition circuit 3b in the second stage FI as before
FO 4 and 6 are input, and the second stage output competition circuit 3a
Outputs FIFO 1 and outputs the second-stage output competition circuit 3b
Outputs FIFO 4. In addition, the third stage
FIFO 1 and 4 are input to the output competition circuit 4 of the stage, and the output competition circuit 4 of the third stage
Since the flags of 1 and 4 are both 1, the upper FIFO
Is finally selected and output. Then, the flag value of the FIFO 1 finally selected and output is set to 0 by the flag control circuit 1 and fixed. In this way, the FIFO that is finally selected and output is not selected even if there is an output request, so until the remaining FIFOs are all output,
No new competing FIFOs are added.

【0015】従って、最終段の出力競合回路4で最終的
に選択されたFIFOのフラグの値が0に設定されて固
定された場合にそのFIFOと他のFIFOが競合した
ときには出力要求が共に有ってフラグが1のFIFOが
優先されるためにそのFIFOが選択されることはなく
なり、今まで最終的に選択されなかった残りのFIFO
がなくなるまで最終段の出力競合回路4で次々と最終的
に選択され、全てのFIFOが選択されてFIFOのフ
ラグの値が全て0になったときに再び出力要求が有った
ものについてフラグを1にするようにして選択されるた
め、複数のFIFOのそれぞれが長い時間選択されず残
留してしまうことを防止できる。また、フラグ制御部1
のフラグ制御と複数の出力制御回路2a〜2d、3a〜
3b、4を用意するだけでよいので、従来のようにコネ
クションにカウンタ等を設けなくてもよいため、ハード
量もわずかで済む。
Therefore, when the value of the flag of the FIFO finally selected by the final output competing circuit 4 is set to 0 and fixed, when the FIFO competes with another FIFO, an output request is issued. Therefore, the FIFO with the flag of 1 is prioritized, so that the FIFO is not selected, and the remaining FIFOs that have not been finally selected until now are not selected.
Are finally selected one after another by the output competing circuit 4 at the last stage until all the FIFOs are selected, and when all the FIFO flags become 0, a flag is output again for the output request. Since the selection is made to be 1, it is possible to prevent each of the plurality of FIFOs from being left unselected for a long time. The flag control unit 1
Control and a plurality of output control circuits 2a to 2d, 3a to
Since only 3b and 4 need to be prepared, there is no need to provide a counter or the like in the connection as in the related art, so that the amount of hardware is small.

【0016】また、例えば、FIFO 0〜7 の全て
に出力要求があった場合、FIFO1のフラグが1のと
きはフラグ制御回路1はどのFIFOに出力要求があっ
てもFIFO 0〜7 のフラグの値は変化させない。
従って、第1段の出力競合回路2aにはFIFO 0と
1 の出力要求が入力され、第1段の出力競合回路2b
にはFIFO 2と3 の出力要求が入力され、第1段
の出力競合回路2cにはFIFO 4と5 の出力要求
が入力され、第1段の出力競合回路2dにはFIFO
6と7 の出力要求が入力される。第1段の出力競合回
路2aは、入力されたFIFO 0 のフラグが0で、
FIFO 1 のフラグが1であるから、フラグ1のF
IFOが優先されるため、FIFO 1 を選択して出
力する。また、第1段における出力競合回路2bは入力
されたFIFO 2と3 のフラグは共に0であるか
ら、上位のFIFOであるFIFO 2 を選択して出
力する。従って、第1段における出力競合回路2bはF
IFO 2 を、出力競合回路2cはFIFO 4
を、出力競合回路2dはFIFO 6 を出力する。
For example, when output requests are issued to all of the FIFOs 0 to 7, when the flag of the FIFO 1 is 1, the flag control circuit 1 sets the flags of the FIFOs 0 to 7 regardless of which FIFO has the output request. Do not change the value.
Accordingly, the output requests of FIFO 0 and 1 are input to the first stage output competition circuit 2a, and the first stage output competition circuit 2b
, The output requests of FIFO 2 and 3 are input, the first stage output competition circuit 2c receives the output requests of FIFO 4 and 5, and the first stage output competition circuit 2d receives the FIFO request.
6 and 7 output requests are input. The first stage output competition circuit 2a sets the flag of the input FIFO 0 to 0,
Since the flag of FIFO 1 is 1, the F of flag 1
Since the IFO is prioritized, FIFO 1 is selected and output. Further, the output competition circuit 2b in the first stage selects and outputs the FIFO 2 which is the higher-order FIFO since the input flags of FIFO 2 and 3 are both 0. Therefore, the output competition circuit 2b in the first stage is F
The output competition circuit 2c outputs FIFO 4
And the output competition circuit 2d outputs FIFO 6.

【0017】次に、第2段の出力競合回路3aにはFI
FO 1と2 が入力され、第2段の出力競合回路3b
にはFIFO 4と6 が入力される。第2段の出力競
合回路3aは入力されたFIFO 1 のフラグが1
で、FIFO 2 のフラグが0であるから、フラグ1
のFIFOが優先されるため、FIFO 1 を選択し
て出力する。また、第2段における出力競合回路3bは
入力されたFIFO 4と6 のフラグは共に0である
から、上位のFIFOであるFIFO 4 を選択して
出力する。更に、最終段である第3段の出力競合回路4
にはFIFO 1と4 が入力され、第3段の出力競合
回路4は、入力されたFIFO 1 のフラグが1で、
FIFO 4 のフラグが0であるから、フラグ1のF
IFOが優先されるため、FIFO 1 選択して出力
する。
Next, the second stage output competing circuit 3a has the FI
FO 1 and FO 2 are input, and the second stage output competition circuit 3b
Are input with FIFOs 4 and 6. The output competition circuit 3a of the second stage sets the input FIFO 1 flag to 1
Since the flag of FIFO 2 is 0, the flag 1
FIFO 1 is given priority, so that FIFO 1 is selected and output. Further, the output competition circuit 3b in the second stage selects and outputs the FIFO 4 which is the higher-order FIFO since both the flags of the input FIFOs 4 and 6 are 0. Further, a third stage output competition circuit 4 which is the last stage
, FIFO 1 and 4 are input, and the third-stage output competition circuit 4 sets the input FIFO 1 flag to 1 and outputs
Since the flag of FIFO 4 is 0, the F of flag 1
Since IFO has priority, FIFO 1 is selected and output.

【0018】そして、最終的に選択されて出力されたF
IFO 1 はフラグ制御回路1によってそのフラグの
値が0に設定されて固定される。そうすると、FIFO
0〜7 のフラグは全て0になるから、FIFO 0
〜 7の全てに出力要求があった場合、フラグ制御回路
1はFIFO 0〜7のフラグを全て1にすることにな
る。これは当初に説明した状態に戻ることになる。な
お、上述の説明はFIFO 0〜7 について、複数の
FIFOに1のフラグが1つあった場合であるが、複数
あれば複数のFIFOについて各出力競合回路で上位優
先の基準で選択され、次々と最終的に選択出力されるこ
とにより、フラグ制御回路1によってそのフラグの値が
次々と0に設定され、FIFO 0〜7 のフラグが全
て0になったところで、フラグ制御回路1はFIFO
0〜7のフラグを全て1にすることになる。
Then, the finally selected and output F
The flag value of IFO 1 is fixed to 0 by the flag control circuit 1. Then, FIFO
Since all the flags of 0 to 7 become 0, FIFO 0
When an output request is issued to all of the registers 7 to 7, the flag control circuit 1 sets all flags of the FIFOs 0 to 7 to 1. This will return to the state described earlier. In the above description, the FIFOs 0 to 7 have one flag of 1 in a plurality of FIFOs. However, if there are a plurality of FIFOs, the plurality of FIFOs are selected by each output competing circuit on the basis of higher priority, and successively. Finally, the flag control circuit 1 sets the values of the flags to 0 one after another, and when all the flags of FIFO 0 to 7 have become 0, the flag control circuit 1
All of the flags 0 to 7 are set to 1.

【0019】[0019]

【発明の効果】本発明は以上説明したとおり、フラグ制
御部が複数の全てのFIFOのフラグが0の場合におい
てのみ、FIFOから出力要求があった場合に当該出力
要求があったFIFOについてだけフラグを1にし、複
数のFIFOのうち1つでもフラグが1のものがある場
合にはどのFIFOに出力要求があっても全てのFIF
Oのフラグの値が変化しないようにし、最終段の出力競
合回路が出力したFIFOについてはそのフラグの値を
0に設定するようフラグ制御し、第1段から最終段の各
出力競合回路では、2つのFIFOから出力要求がある
場合でその出力要求に上位と下位の位置付けがあり、且
つ共にフラグが0又は1のときには上位のFIFOを選
択して当該FIFOの番号と出力要求とフラグを出力
し、上位と下位で一方のフラグが1のときはフラグが1
のFIFOの番号と出力要求とフラグを出力し、2つの
FIFOから共に出力要求がない場合は上位のFIFO
の番号とフラグを出力し、上位と下位で一方のみの出力
要求があるときは要求のあるFIFOの番号と出力要求
とフラグを出力するので、最終段の出力競合回路で最終
的に選択されたFIFOのフラグの値が0に設定されて
固定された場合にそのFIFOと他のFIFOが競合し
たときには出力要求が共に有ってフラグが1のFIFO
が優先されるためにそのFIFOが選択されることはな
くなり、今まで最終的に選択されなかった残りのFIF
Oがなくなるまで最終段の出力競合回路で次々と最終的
に選択され、全てのFIFOが選択されてFIFOのフ
ラグの値が全て0になったときに再び出力要求が有った
ものについてフラグを1にするようにして選択されるた
め、複数のFIFOのそれぞれが長い時間選択されず残
留してしまうことを防止できるという効果を有する。ま
た、フラグ制御部のフラグ制御と複数の出力制御回路を
用意するだけでよいので、ハード量もわずかで済むとい
う効果を有する。
As described above, according to the present invention, only when the flags of all the plurality of FIFOs are 0, the flag control unit sets the flag only for the FIFO for which the output request was made when the output request was issued from the FIFO. Is set to 1, and if at least one of a plurality of FIFOs has a flag of 1, all FIFOs are output regardless of which FIFO is requested.
The value of the flag of O is not changed, and flag control is performed so that the value of the flag is set to 0 for the FIFO output by the output competition circuit of the final stage. In each of the output competition circuits of the first to final stages, When there are output requests from the two FIFOs, the output requests are ranked higher and lower, and when both flags are 0 or 1, the upper FIFO is selected and the number of the FIFO, the output request, and the flag are output. When one of the upper and lower flags is 1, the flag is 1.
FIFO number, output request, and flag are output, and if there is no output request from both FIFOs, the upper FIFO
Is output, and if only one of the upper and lower output requests is issued, the number of the requested FIFO, the output request, and the flag are output. When the value of the flag of the FIFO is set to 0 and fixed, when the FIFO competes with another FIFO, there is an output request and the FIFO of flag 1 is set.
Will no longer be selected because it has priority, and the remaining FIFOs that have never been finally selected
Until O is exhausted, final selection is sequentially performed by the output competing circuit at the final stage. When all FIFOs are selected and the values of the flags of the FIFOs are all set to 0, a flag is output again for an output request. Since the selection is made to be 1, there is an effect that it is possible to prevent each of the plurality of FIFOs from being left unselected for a long time. In addition, since only the flag control of the flag control unit and a plurality of output control circuits need to be prepared, there is an effect that the amount of hardware is small.

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

【図1】本発明の実施の形態1の出力競合制御装置のブ
ロック図である。
FIG. 1 is a block diagram of an output conflict control device according to a first embodiment of the present invention.

【図2】同出力競合制御装置の出力競合回路の入出力を
表すブロック図である。
FIG. 2 is a block diagram showing inputs and outputs of an output conflict circuit of the output conflict control device.

【図3】同出力競合制御装置の出力競合回路の動作を表
すフローチャートである。
FIG. 3 is a flowchart illustrating an operation of an output conflict circuit of the output conflict control device.

【図4】同出力競合制御装置のフラグ制御回路の動作を
表すフローチャートである。
FIG. 4 is a flowchart illustrating an operation of a flag control circuit of the output conflict control device.

【符号の説明】[Explanation of symbols]

1 フラグ制御回路、2a〜2d 第1段の出力競合回
路、3a〜3b 第2段の出力競合回路、4 第3段の
出力競合回路(最終段の出力競合回路)。
1 Flag control circuit, 2a to 2d First stage output competition circuit, 3a to 3b Second stage output competition circuit, Third stage output competition circuit (final stage output competition circuit).

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数のFIFOから出力要求があった場
合に、複数のFIFOの出力要求に対して2つの出力要
求毎に第1段の各出力競合回路が択一選択を行って1つ
のFIFOの出力要求を出力し、その選択されたFIF
Oの出力要求に対してさらに2つの出力要求毎に第2段
の各出力競合回路が択一選択を行って1つのFIFOの
出力要求を出力し、このように次々と各段の各出力競合
回路が択一選択を行い、最終的に最終段の出力競合回路
が1つのFIFOの出力要求を出力するようにした出力
競合制御装置において、 前記複数のFIFOと前記第1段の各出力競合回路との
間に設けたフラグ制御部は複数の全てのFIFOのフラ
グが0の場合においてのみ、FIFOから出力要求があ
った場合に当該出力要求があったFIFOについてだけ
フラグを1にし、複数のFIFOのうち1つでもフラグ
が1のものがある場合にはどのFIFOに出力要求があ
っても全てのFIFOのフラグの値が変化しないように
し、最終段の出力競合回路が出力したFIFOについて
はそのフラグの値を0に設定するようフラグ制御し、 前記各出力競合回路は2つのFIFOから出力要求があ
る場合でその出力要求に上位と下位の位置付けがあり、
且つ共にフラグが0又は1のときには上位のFIFOを
選択して当該FIFOの番号と出力要求とフラグを出力
し、上位と下位で一方のフラグが1のときはフラグが1
のFIFOの番号と出力要求とフラグを出力し、2つの
FIFOから共に出力要求がない場合は上位のFIFO
の番号とフラグを出力し、上位と下位で一方のみの出力
要求があるときは要求のあるFIFOの番号と出力要求
とフラグを出力するように構成されていることを特徴と
する出力競合制御装置。
When there is an output request from a plurality of FIFOs, each output competition circuit in the first stage selects one of the output requests of a plurality of FIFOs for every two output requests, and outputs one FIFO. Output request and outputs the selected FIF
In response to the output request of O, each of the output competition circuits in the second stage makes an alternative selection for every two output requests, and outputs one FIFO output request. An output contention control device in which a circuit makes a selection and an output contention circuit of a final stage finally outputs an output request of one FIFO. The plurality of FIFOs and each output contention circuit of the first stage The flag control unit provided between the first and second sets the flag to 1 only when the output request is issued from the FIFO only when the flags of all the plurality of FIFOs are 0, and sets the flag to 1 for only the FIFO for which the output request was issued. If at least one of the flags has a flag of 1, even if an output request is issued to any of the FIFOs, the values of the flags of all the FIFOs are kept unchanged, and Then, the flag control is performed so that the value of the flag is set to 0, and each of the output conflict circuits has an upper and lower position in the output request when there is an output request from two FIFOs,
When both flags are 0 or 1, the upper FIFO is selected and the FIFO number, output request and flag are output, and when one of the upper and lower flags is 1, the flag is 1
FIFO number, output request, and flag are output, and if there is no output request from both FIFOs, the upper FIFO
And a flag for outputting the requested FIFO number, output request and flag when there is only one of the upper and lower output requests. .
JP14365597A 1997-06-02 1997-06-02 Output conflict controller Pending JPH10336196A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14365597A JPH10336196A (en) 1997-06-02 1997-06-02 Output conflict controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14365597A JPH10336196A (en) 1997-06-02 1997-06-02 Output conflict controller

Publications (1)

Publication Number Publication Date
JPH10336196A true JPH10336196A (en) 1998-12-18

Family

ID=15343852

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14365597A Pending JPH10336196A (en) 1997-06-02 1997-06-02 Output conflict controller

Country Status (1)

Country Link
JP (1) JPH10336196A (en)

Similar Documents

Publication Publication Date Title
US6781986B1 (en) Scalable high capacity switch architecture method, apparatus and system
JP2915323B2 (en) Packet switch and its extension module
EP0329082B1 (en) Self-routing switch and its routing method
JPH05207062A (en) Packet switching system
JPH1093591A (en) Method for optimum transmission of atm cell
US6728256B1 (en) Shared buffer control device
US7184443B2 (en) Packet scheduling particularly applicable to systems including a non-blocking switching fabric and homogeneous or heterogeneous line card interfaces
US6888841B1 (en) Pipelined scheduling technique
EP1113627B1 (en) Method of determining network paths in a three stage switching matrix
US5914935A (en) Traffic shaper apparatus
JPH10336196A (en) Output conflict controller
US7269158B2 (en) Method of operating a crossbar switch
JPH09321768A (en) Atm exchange
JP2982755B2 (en) Switch device
JP2917966B2 (en) Multi-stage switch connection information check method
JPH0927812A (en) Address generating circuit for atm switch
JP3149143B2 (en) Access arbitration method
US20010014098A1 (en) Multi-mode scheduler, apparatus including multi-mode scheduler and multi-mode scheduling method
JP3054395B2 (en) ATM switch
JPH05292116A (en) Control circuit for input buffer type atm switch
JPH1168776A (en) Shaping device
JPH11234333A (en) Gateway device
JPH0496546A (en) Queue buffer configuration system
JP3609908B2 (en) Computer connection device
US7408937B1 (en) Methods and apparatus for identifying a variable number of items first in sequence from a variable starting position which may be particularly useful by packet or other scheduling mechanisms