JP2000101594A - Overflow alarm detecting device, method therefor an recording medium recorded with control program - Google Patents

Overflow alarm detecting device, method therefor an recording medium recorded with control program

Info

Publication number
JP2000101594A
JP2000101594A JP26872898A JP26872898A JP2000101594A JP 2000101594 A JP2000101594 A JP 2000101594A JP 26872898 A JP26872898 A JP 26872898A JP 26872898 A JP26872898 A JP 26872898A JP 2000101594 A JP2000101594 A JP 2000101594A
Authority
JP
Japan
Prior art keywords
address
pointer
data
ring memory
carry flag
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.)
Withdrawn
Application number
JP26872898A
Other languages
Japanese (ja)
Inventor
Toshio Horage
俊男 洞毛
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 Engineering Ltd
Original Assignee
NEC Engineering Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP26872898A priority Critical patent/JP2000101594A/en
Publication of JP2000101594A publication Critical patent/JP2000101594A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To detect inversion of a cell transmission order by the fault of one address by comparing respective points after a free address search by contention control and confirming the sequential relation. SOLUTION: After contention control, a search start pointer SP, a read pointer RP, a write pointer WP and a carry flag CRY are set. In this case, it is normal (S4) at the time RP<SP and RP<WP and not being CRY=1, it is normal (S7) at the time of not RP<SP, not RP<WP and not CRY=1 and it is normal (S8) in the case of RP<SP and not RP<WP. Also, an overflow alarm is detected (S9) at the time RP<SP and RP<WP and CRY=1, the overflow alarm is detected (S10) at the time RP<SP and RP<WP and the overflow alarm is detected (S11) at the time not RP<SP, not RP<WP and CRY=1.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はオーバフローアラー
ム検出装置及び検出方法並びに制御プログラムを記録し
た記録媒体に関し、特にATM−クロスコネクト装置及
びATM−SLT装置等の複数のコネクションのデータ
をセル単位で伝送し、トラヒック制御としてシェーピン
グ機能を有する装置に用いられるオーバフローアラーム
検出装置及び検出方法並びに制御プログラムを記録した
記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an overflow alarm detecting device, a detecting method, and a recording medium on which a control program is recorded. More particularly, data of a plurality of connections, such as an ATM-crossconnect device and an ATM-SLT device, are transmitted in cell units. Further, the present invention relates to an overflow alarm detecting device and a detecting method used in a device having a shaping function as traffic control, and a recording medium recording a control program.

【0002】[0002]

【従来の技術】現在、音声、画像、データ等のマルチメ
ディアを伝送する技術としてATM(非同期転送モー
ド)が実用化してきている。ATMはセルと呼ばれる固
定長パケットを用い、異種多重/交換機能を持つととも
に、高速伝送を可能とするシステムである。
2. Description of the Related Art At present, ATM (Asynchronous Transfer Mode) has been put to practical use as a technique for transmitting multimedia such as voice, image and data. ATM is a system that uses fixed-length packets called cells, has a heterogeneous multiplexing / switching function, and enables high-speed transmission.

【0003】ATMの特徴としては、以下のことが挙げ
られる。(1)任意異速度の多重が可能となる。(2)
統計多重効果を用いることにより、ランダムに発生する
バーストデータの効果的収容が可能になる。(3)非階
層化多重化により網の設計、運用、管理をシンプルにす
ることができる。(4)遅延にゆらぎが存在する。
(5)セル損失が発生する場合がある。(6)チャネル
の設定とその容量設定とを切り離して行うことができ
る。
[0003] The features of ATM include the following. (1) Multiplexing at arbitrary different speeds becomes possible. (2)
By using the statistical multiplexing effect, it is possible to effectively store randomly generated burst data. (3) Network design, operation, and management can be simplified by non-hierarchical multiplexing. (4) There is fluctuation in the delay.
(5) Cell loss may occur. (6) Channel setting and its capacity setting can be performed separately.

【0004】ATM網では、複数のコネクションを扱う
ために、SW部やMUX部にバッファを持っている。網
にバースト的なデータが入力された場合、伝送密度に差
ができSW部やMUX部のバッファに負担がかかる。こ
のバースト的なデータを一定間隔に整形することをシェ
ーピングという。
[0004] In the ATM network, a buffer is provided in the SW section and the MUX section to handle a plurality of connections. When burst-like data is input to the network, a difference in transmission density occurs, and a load is imposed on the buffers of the SW unit and the MUX unit. Shaping this bursty data at regular intervals is called shaping.

【0005】リングメモリはシェーピング処理の結果、
数セル後に出力となった場合に、数セル分の時間だけセ
ルを格納しておくメモリである。本発明は、このリング
メモリのオーバフローアラームの検出に関するものであ
る。
[0005] As a result of the shaping process, the ring memory
This is a memory for storing cells for a time corresponding to several cells when output is made after several cells. The present invention relates to detection of an overflow alarm of the ring memory.

【0006】図5は従来のオーバフローアラーム検出装
置の一例の構成図である。このオーバフローアラーム検
出装置は、一般にシェーパ(シェーピング機能を有する
回路を意味する)と称されるものである。以下、オーバ
フローアラーム検出装置をシェーパという場合がある。
FIG. 5 is a block diagram of an example of a conventional overflow alarm detecting device. This overflow alarm detection device is generally called a shaper (meaning a circuit having a shaping function). Hereinafter, the overflow alarm detection device may be referred to as a shaper.

【0007】シェーパは入力されたセルの種類及びコネ
クション番号を識別するセル識別部51と、入力セルの
理想送出時刻を求めるアルゴリズム演算部52と、入力
セルを理想送出時刻まで保持する主信号メモリ53(リ
ングメモリ)と、主信号メモリ53とのリード/ライト
を制御するメモリ制御部54と、アルゴリズム演算部5
2で求められた理想送出時刻から競合制御により主信号
メモリ53への書込みアドレスを探索するマッピング部
55と、出力処理を行う出力部56とから構成される。
The shaper includes a cell identification unit 51 for identifying the type and connection number of an input cell, an algorithm operation unit 52 for determining an ideal transmission time of the input cell, and a main signal memory 53 for holding the input cell until the ideal transmission time. (Ring memory), a memory control unit 54 for controlling read / write of the main signal memory 53, and an algorithm operation unit 5
The mapping unit 55 includes a mapping unit 55 that searches for a write address to the main signal memory 53 by contention control from the ideal transmission time obtained in step 2, and an output unit 56 that performs output processing.

【0008】図6はマッピング部の一例の構成図であ
る。マッピング部55は主信号メモリ53のデータフラ
グを持っており、図6に示すように各アドレス(add
1〜7)のデータフラグを持ったレジスタ61〜67が
リング状に連結されている。
FIG. 6 is a configuration diagram of an example of the mapping unit. The mapping unit 55 has a data flag of the main signal memory 53, and as shown in FIG.
Registers 61 to 67 having data flags 1 to 7) are connected in a ring shape.

【0009】リングメモリのオーバフローアラームの検
出は、各レジスタのデータフラグのAND(論理積)を
取って行っており、全てのデータフラグが書込み状態に
なった場合にアラームを検出する。
The detection of the overflow alarm of the ring memory is performed by taking the AND (logical product) of the data flags of the respective registers. When all the data flags are in the write state, the alarm is detected.

【0010】シェーパとは、ATM網において多種多様
な通信メディアの情報品質を保証するために行っている
トラヒック制御の一方式である。ユーザが契約値以上の
情報を網に流した場合、契約値以内の情報量になるよう
に整形を行っている。シェーパの動作概要を図5を用い
て説明する。
[0010] The shaper is a type of traffic control performed to guarantee the information quality of various communication media in an ATM network. When the user sends information over the contract value to the network, the information is shaped so that the amount of information is within the contract value. An outline of the operation of the shaper will be described with reference to FIG.

【0011】シェーパに入力されたセルはセル識別部5
1で入力セルのヘッダ情報よりセルの種類とコネクショ
ン番号を識別し、アルゴリズム演算部52にセル情報を
通知する。
The cell input to the shaper is a cell identification unit 5
In step 1, the cell type and connection number are identified from the header information of the input cell, and the cell information is notified to the algorithm operation unit 52.

【0012】又、同時にデータをメモリ制御部54に出
力する。アルゴリズム演算部52では、セル識別部51
からのセル情報を基に理想送出時刻を求め、マッピング
部55に通知する。
At the same time, data is output to the memory control unit 54. In the algorithm operation unit 52, the cell identification unit 51
Then, the ideal transmission time is obtained based on the cell information from the base station, and is notified to the mapping unit 55.

【0013】マッピング部55では理想送出時刻から空
きアドレス探索による競合制御を行い、探索結果を主信
号メモリ53のライトアドレスとしてメモリ制御部54
に通知する。
The mapping section 55 performs contention control by searching for an empty address from the ideal transmission time, and uses the search result as a write address of the main signal memory 53 as a memory control section 54.
Notify.

【0014】メモリ制御部54ではセル識別部51より
入力したデータをマッピング部55からのライトアドレ
ス情報に従い主信号メモリ53に書込む。又、メモリ制
御部54は主信号メモリ53からの読出しも行い、デー
タの到着時刻に合わせて順次読出し、出力部56に出力
する。
The memory control unit 54 writes the data input from the cell identification unit 51 into the main signal memory 53 according to the write address information from the mapping unit 55. The memory control unit 54 also reads from the main signal memory 53, sequentially reads the data in accordance with the arrival time of the data, and outputs the data to the output unit 56.

【0015】次に、マッピング部55におけるリングメ
モリ53を使った競合制御について図6を用いて説明す
る。
Next, contention control using the ring memory 53 in the mapping unit 55 will be described with reference to FIG.

【0016】アルゴリズム演算部52で算出された理想
送出時刻は、マッピング部55にて探索開始ポインタS
Pに変換される。マッピング部55では主信号メモリ5
3の全アドレスのデータフラグFLGを持っており、探
索開始ポインタSPが与えられたなら、その探索開始ポ
インタSPが与えられた探索開始アドレスのデータフラ
グを確認する。
The ideal transmission time calculated by the algorithm operation unit 52 is calculated by the mapping unit 55 using the search start pointer S
Converted to P. In the mapping unit 55, the main signal memory 5
3 has the data flags FLG of all the addresses, and if the search start pointer SP is given, the data flag of the search start address to which the search start pointer SP is given is confirmed.

【0017】データフラグが「空」状態なら該当アドレ
スを書込みポインタWPとしてメモリ制御部54に通知
する。データフラグが「有」状態なら探索開始ポインタ
SPに「1」加算したアドレスのデータフラグを確認す
る。「空」状態が見つかるまでこれを繰り返して行う。
If the data flag is "empty", the corresponding address is notified to the memory control unit 54 as a write pointer WP. If the data flag is in the "present" state, the data flag at the address obtained by adding "1" to the search start pointer SP is confirmed. Repeat this until an "empty" condition is found.

【0018】主信号メモリ53の最後尾まで探索しても
「空」状態が見つからなかった場合は、主信号メモリ5
3はリングメモリであるのでメモリの先頭に戻って探索
を続ける。この場合、キャリーフラグCRYを「1」に
する。
If an "empty" state is not found even after searching to the end of the main signal memory 53, the main signal memory 5
Since 3 is a ring memory, the search is continued by returning to the head of the memory. In this case, the carry flag CRY is set to “1”.

【0019】又、主信号メモリ53からデータの読出し
が行われた場合、読出しポインタRPのアドレスのデー
タフラグを「空」状態にする。
When data is read from the main signal memory 53, the data flag at the address of the read pointer RP is set to "empty".

【0020】図6の場合、理想送出時刻から変換された
探索開始ポインタSPがアドレス3(add3)を示し
ており、まず最初にadd3のデータフラグの状態を確
認する。
In the case of FIG. 6, the search start pointer SP converted from the ideal transmission time indicates the address 3 (add3). First, the state of the data flag of add3 is confirmed.

【0021】この場合、add3のデータフラグは
「有」状態であるため探索開始ポインタSPに「1」を
加算し、add4のデータフラグを確認する。ところ
が、add4のデータフラグも「有」状態であるため、
さらに探索開始ポインタSPに「1」を加算し、add
5のデータフラグを確認する。そして、add5のデー
タフラグは「空」状態であるのでadd5が書込みポイ
ンタWPとなる。
In this case, since the data flag of add3 is in the "present" state, "1" is added to the search start pointer SP, and the data flag of add4 is confirmed. However, since the data flag of add4 is also in the “present” state,
Further, “1” is added to the search start pointer SP, and add
Check the data flag of No. 5. Then, since the data flag of add5 is "empty", add5 becomes the write pointer WP.

【0022】これに対し、読出し側は書込みポインタW
Pの探索後、読出しポインタRPのポインタ値であるa
dd6の状態を確認する。この場合、データフラグが
「有」状態であるため、主信号メモリ53よりデータを
読出した後、データフラグを「空」状態にする。なお、
データフラグが「空」状態の場合はこの処理は行わな
い。
On the other hand, on the read side, the write pointer W
After searching for P, the pointer value a of the read pointer RP
Check the state of dd6. In this case, since the data flag is in the “present” state, after reading the data from the main signal memory 53, the data flag is set to the “empty” state. In addition,
If the data flag is "empty", this process is not performed.

【0023】主信号メモリ53へのアクセスは書込み側
はランダムであるが、読出し側はシーケンシャルであ
る。
The access to the main signal memory 53 is random on the write side, but is sequential on the read side.

【0024】即ち、主信号メモリ53へのアクセスは書
込み側は、例えばadd3の次にadd1がアクセスさ
れ、さらにその次にadd5がアクセスされるというふ
うに番号順にアクセスされるものではないが、読出し側
は、例えば、add6がアクセスされると次にアクセス
されるのはadd7、その次はadd1に戻り、その次
はadd2というふうに番号が若いものから順にアクセ
スされるのである。
That is, in the access to the main signal memory 53, the write side does not access in order of numbers, for example, add1 is accessed next to add3, and then add5 is accessed next. On the side, for example, when add6 is accessed, the next access is add7, the next returns to add1, and the next is add2, and so on.

【0025】又、1セル時間内に行われる主信号メモリ
53へのアクセスはライト、リードの順で夫々1回行わ
れる。
Access to the main signal memory 53 performed within one cell time is performed once each in the order of write and read.

【0026】このため、書込み終了全アドレスにデータ
が書込まれた場合でも、同じセル時間の読出しで1セル
データを読出すため、次のセルの書込み時には必ず空き
アドレスができている。これにより、通常時はメモリが
オーバフローを起こすことはなく、メモリがオーバフロ
ーを起こす場合はメモリが故障している。
For this reason, even when data is written to all addresses where writing is completed, one cell data is read in the same cell time reading, so that an empty address is always created when writing the next cell. As a result, the memory does not normally overflow, and if the memory overflows, the memory has failed.

【0027】そこで従来方式のオーバフローアラーム検
出方式では、全アドレスのフラグをANDゲート68に
よりAND(論理積)することにより「有」状態を検出
し、この「有」状態が検出された場合にオーバフローを
起こしたと判定していた。
In the overflow alarm detection system of the prior art, the "presence" state is detected by ANDing all the flags of the addresses with the AND gate 68. If the "presence" state is detected, an overflow occurs. Was determined to have occurred.

【0028】又、この種のオーバフローアラーム検出装
置の一例が特開平4−26251号公報(以下、先行技
術という)に開示されている。この装置は多重化クロス
コネクト装置内のバッファのキュー長の測定による結果
が、バッファ長より小さなある一定値に達したとき、所
要のバスへの呼の受付を制限するための制御信号を送出
するため、バッファ溢れによるセル廃棄を低減できる、
というものである。
An example of this type of overflow alarm detecting device is disclosed in Japanese Patent Laid-Open No. Hei 4-26251 (hereinafter referred to as prior art). This device sends out a control signal for limiting the acceptance of a call to a required bus when the result of measuring the queue length of a buffer in a multiplexing cross-connect device reaches a certain value smaller than the buffer length. Therefore, cell loss due to buffer overflow can be reduced.
That is.

【0029】[0029]

【発明が解決しようとする課題】しかし、従来技術では
主信号メモリ53の状態フラグのANDをとってオーバ
フローアラームの検出を行っていたため、ある1アドレ
スのフラグ故障によるオーバフローアラームを検出する
ことができないという欠点があった。
However, in the prior art, since the overflow alarm is detected by ANDing the status flags of the main signal memory 53, an overflow alarm due to a flag failure at a certain address cannot be detected. There was a disadvantage.

【0030】図6に示すように、正常な読出しデータは
時刻0にデータA、時刻4にデータB、時刻5にデータ
C、時刻6にデータDと順序よくデータが読出される。
As shown in FIG. 6, normal read data is data A at time 0, data B at time 4, data C at time 5, data D at time 6, and so on.

【0031】一方、図7のマッピング部の他の一例の構
成図を参照すると、add1,2,5,7が故障して全
てのデータフラグが「有」状態に見えるため、それらの
ANDを取ったメモリオーバフローアラーム68が
「1」となり、この場合は故障アラームの検出が可能で
ある。
On the other hand, referring to the configuration diagram of another example of the mapping unit shown in FIG. 7, since add1, 2, 5, 7 fail and all data flags appear to be in the "present" state, their ANDs are taken. The memory overflow alarm 68 becomes "1", and in this case, a failure alarm can be detected.

【0032】他方、図8のマッピング部の他の一例の構
成図を参照すると、add5のみが故障した場合、メモ
リオーバフローアラーム68が「1」とならないため、
メモリオーバフローアラーム68で故障が検出できない
にも拘らず、読出しデータは時刻0にデータA、時刻1
にデータD、時刻4にデータB、時刻5にデータCとな
り、正常な場合とでは読出し順序が入れ替わってしま
う。
On the other hand, referring to the configuration diagram of another example of the mapping unit in FIG. 8, if only add5 fails, the memory overflow alarm 68 does not become "1".
Despite the failure not being detected by the memory overflow alarm 68, the read data is data A at time 0 and data 1 at time 0.
Data D, data B at time 4 and data C at time 5, and the reading order is changed in a normal case.

【0033】具体的には、図8を参照して、SPがad
d3に設定されるがadd3,4は「有」状態である。
しかし、次のadd5は「空」状態なのでWPをadd
5に設定しようとする。
More specifically, referring to FIG.
Although set to d3, add3 and 4 are in the "present" state.
However, the next add5 is "empty", so WP is added.
Try to set to 5.

【0034】ところが、add5は故障しているため
「有」状態に見えWPを設定することができない。続
く、add6も「有」状態であるため、結局WPはad
d7に設定される。
However, since add5 is out of order, it looks like "present" and WP cannot be set. Subsequently, since add6 is also in the “presence” state, WP eventually becomes ad.
It is set to d7.

【0035】WPが本来であればadd5に設定される
ところ、add5が故障であるためadd7に設定され
たため、読出し順序が入れ替わってしまったのである。
If the WP was originally set to add5, the read order was changed because add5 was set to add7 because it was a fault.

【0036】このように、従来、1アドレスの故障の場
合、セル送出順序の逆転が起きているにも拘らず、この
故障を検出することができないという致命的な欠点があ
った。
As described above, conventionally, in the case of a failure of one address, there is a fatal defect that this failure cannot be detected even though the cell transmission order is reversed.

【0037】そこで本発明の目的は、1アドレスの故障
によるセル送出順序の逆転を検出することが可能なオー
バフローアラーム検出装置及び検出方法並びに制御プロ
グラムを記録した記録媒体を提供することにある。
It is therefore an object of the present invention to provide an overflow alarm detecting device and a detecting method capable of detecting the reversal of the cell sending order due to a failure of one address, and a recording medium on which a control program is recorded.

【0038】[0038]

【課題を解決するための手段】前記課題を解決するため
に第1の発明は、複数のデータが予め設定された読出し
順に従って下位アドレスから順に書込まれるリングメモ
リと、このリングメモリの各アドレスに前記データが書
込まれているか否かを示すデータフラグと、前記データ
を前記リングメモリに書込む仮アドレスを指定する第1
ポインタと、前記仮アドレスの前記データフラグに基づ
き前記リングメモリに書込む書込みアドレスを指定する
第2ポインタと、前記リングメモリの読出しアドレスを
指定する第3ポインタと、前記書込みアドレスが最後尾
まで達しさらに先頭に戻ったか否かを示すキャリーフラ
グと、前記第1〜第3ポインタ及びキャリーフラグに基
づき前記リングメモリからデータを読出す順序の逆転を
検出する逆転検出手段とを含んでオーバフローアラーム
検出装置を構成したことを特徴とする。
According to a first aspect of the present invention, there is provided a ring memory in which a plurality of data are sequentially written from a lower address in accordance with a preset reading order, and each address of the ring memory. A data flag indicating whether or not the data has been written, and a first address for specifying a temporary address at which the data is to be written to the ring memory.
A pointer, a second pointer that specifies a write address to be written to the ring memory based on the data flag of the temporary address, a third pointer that specifies a read address of the ring memory, and the write address reaches the end. Further, an overflow alarm detection device includes a carry flag indicating whether or not the head has returned to the head, and a reverse rotation detecting means for detecting a reverse of the order of reading data from the ring memory based on the first to third pointers and the carry flag. Is constituted.

【0039】第1の発明によれば、前記第1〜第3ポイ
ンタが設定されているアドレスの位置関係及びキャリー
フラグが設定されているか否かによってデータを読出す
順序の逆転を検出することができる。
According to the first aspect, the reversal of the data reading order is detected based on the positional relationship between the addresses where the first to third pointers are set and whether the carry flag is set. it can.

【0040】又、第2の発明は複数のデータが予め設定
された読出し順に従って下位アドレスから順に書込まれ
るリングメモリと、このリングメモリの各アドレスに前
記データが書込まれているか否かを示すデータフラグ
と、前記データを前記リングメモリに書込む仮アドレス
を指定する第1ポインタと、前記仮アドレスの前記デー
タフラグに基づき前記リングメモリに書込む書込みアド
レスを指定する第2ポインタと、前記リングメモリの読
出しアドレスを指定する第3ポインタと、前記書込みア
ドレスが最後尾まで達しさらに先頭に戻ったか否かを示
すキャリーフラグと、前記第1〜第3ポインタ及びキャ
リーフラグに基づき前記リングメモリからデータを読出
す順序の逆転を検出する逆転検出手段とを含むオーバフ
ローアラーム検出装置の検出方法であって、前記逆転検
出手段は、前記第3ポインタのアドレスが前記第1ポイ
ンタのアドレスよりも下位であるか否かを判定する第1
処理と、この第1処理にて前記第3ポインタのアドレス
が前記第1ポインタのアドレスよりも下位であると判定
された場合に、前記第3ポインタのアドレスが前記第2
ポインタのアドレスよりも下位であるか否かを判定する
第2処理と、この第2処理にて前記第3ポインタのアド
レスが前記第2ポインタのアドレスよりも下位であると
判定された場合に、前記キャリーフラグが前記書込みア
ドレスが最後尾から先頭に戻ったことを示すか否かを判
定する第3処理と、この第3処理にて前記キャリーフラ
グが前記書込みアドレスが最後尾から先頭に戻ったこと
を示すと判定された場合に、前記リングメモリからデー
タを読出す順序が逆転していると判定する第4処理とを
含むことを特徴とする。
According to a second aspect of the present invention, there is provided a ring memory in which a plurality of data are written in order from a lower address in accordance with a preset reading order, and whether or not the data is written to each address of the ring memory. A data flag indicating a temporary address at which the data is written to the ring memory; a second pointer specifying a write address at which the data is written to the ring memory based on the data flag of the temporary address; A third pointer for designating a read address of the ring memory, a carry flag indicating whether the write address has reached the end and has returned to the beginning, and a first pointer from the ring memory based on the first to third pointers and a carry flag. An overflow alarm detecting device including a reverse rotation detecting means for detecting a reverse of the order of reading data. A detection method, the reverse detecting means, first determines whether the address of the third pointer is lower than the address of the first pointer
Processing, and when it is determined in the first processing that the address of the third pointer is lower than the address of the first pointer, the address of the third pointer is changed to the second address.
A second process of determining whether or not the address of the pointer is lower than the address of the pointer; and, in the second process, determining that the address of the third pointer is lower than the address of the second pointer. A third process for determining whether or not the carry flag indicates that the write address has returned from the end to the beginning; and in the third process, the carry flag indicates that the write address has returned from the end to the beginning. And determining that the order of reading data from the ring memory is reversed.

【0041】第2の発明によれば、第1の発明と同様の
作用・効果を奏する。
According to the second aspect, the same operation and effect as those of the first aspect can be obtained.

【0042】さらに、第3の発明は複数のデータが予め
設定された読出し順に従って下位アドレスから順に書込
まれるリングメモリと、このリングメモリの各アドレス
に前記データが書込まれているか否かを示すデータフラ
グと、前記データを前記リングメモリに書込む仮アドレ
スを指定する第1ポインタと、前記仮アドレスの前記デ
ータフラグに基づき前記リングメモリに書込む書込みア
ドレスを指定する第2ポインタと、前記リングメモリの
読出しアドレスを指定する第3ポインタと、前記書込み
アドレスが最後尾まで達しさらに先頭に戻ったか否かを
示すキャリーフラグと、前記第1〜第3ポインタ及びキ
ャリーフラグに基づき前記リングメモリからデータを読
出す順序の逆転を検出する逆転検出手段とを含むオーバ
フローアラーム検出装置の制御プログラムを記録した記
録媒体であって、その記録媒体に前記第3ポインタのア
ドレスが前記第1ポインタのアドレスよりも下位である
か否かを判定する第1処理と、この第1処理にて前記第
3ポインタのアドレスが前記第1ポインタのアドレスよ
りも下位であると判定された場合に、前記第3ポインタ
のアドレスが前記第2ポインタのアドレスよりも下位で
あるか否かを判定する第2処理と、この第2処理にて前
記第3ポインタのアドレスが前記第2ポインタのアドレ
スよりも下位であると判定された場合に、前記キャリー
フラグが前記書込みアドレスが最後尾から先頭に戻った
ことを示すか否かを判定する第3処理と、この第3処理
にて前記キャリーフラグが前記書込みアドレスが最後尾
から先頭に戻ったことを示すと判定された場合に、前記
リングメモリからデータを読出す順序が逆転していると
判定する第4処理とをコンピュータに実行させるための
制御プログラムを記録したことを特徴とする。
Further, according to a third aspect of the present invention, there is provided a ring memory in which a plurality of data are sequentially written from a lower address in accordance with a preset reading order, and whether or not the data is written to each address of the ring memory. A data flag indicating a temporary address at which the data is written to the ring memory; a second pointer specifying a write address at which the data is written to the ring memory based on the data flag of the temporary address; A third pointer for designating a read address of the ring memory, a carry flag indicating whether the write address has reached the end and has returned to the beginning, and a first pointer from the ring memory based on the first to third pointers and a carry flag. An overflow alarm detecting means for detecting a reverse of the order of reading data. A first process for determining whether or not the address of the third pointer is lower than the address of the first pointer on the recording medium on which the control program of the apparatus is recorded; When it is determined that the address of the third pointer is lower than the address of the first pointer, it is determined whether the address of the third pointer is lower than the address of the second pointer. A second process, and when it is determined in the second process that the address of the third pointer is lower than the address of the second pointer, the carry flag changes the write address from the last to the first. A third process of determining whether or not the return has been performed, and determining that the carry flag indicates that the write address has returned from the end to the top in the third process. If it, characterized in that the reading order of data from the ring memory has recorded a control program for executing a fourth process for determining that the reverse to the computer.

【0043】第3の発明によれば、第1の発明と同様の
作用・効果を奏する。
According to the third aspect, the same operation and effect as those of the first aspect can be obtained.

【0044】[0044]

【発明の実施の形態】以下、本発明の実施の形態につい
て添付図面を参照しながら説明する。図1は本発明に係
るオーバフローアラーム検出装置の要部構成図、図2は
競合制御動作を条件別に分類した図、図3は本発明の動
作を示すフローチャートである。
Embodiments of the present invention will be described below with reference to the accompanying drawings. FIG. 1 is a configuration diagram of a main part of an overflow alarm detection device according to the present invention, FIG. 2 is a diagram in which contention control operations are classified according to conditions, and FIG. 3 is a flowchart showing operations of the present invention.

【0045】まず、本発明の概要について説明する。従
来の方式ではオーバフローアラームを検出するには、全
てのアドレスのデータフラグが「有」状態でなければな
らなかった。これに対し、本発明は競合制御による空き
アドレス探索後、各ポインタを比較し、その前後関係を
確認することにより、セルの順序逆転が起きた場合にア
ラームを検出するものである。
First, the outline of the present invention will be described. In the conventional method, in order to detect an overflow alarm, the data flags of all addresses have to be in the "present" state. On the other hand, according to the present invention, after searching for a free address by conflict control, each pointer is compared and the context is confirmed, thereby detecting an alarm when the order of the cells is reversed.

【0046】本発明は、探索開始ポインタSP、書込み
ポインタWP、読出しポインタRP及びキャリーCRY
を設定し、図3に示すように条件4の「RP<SPかつ
RP<WPかつCRY=1」の場合、条件5の「RP≧
SPかつRP<WP」の場合及び条件6の「RP≧SP
かつRP≧WPかつCRY=1」の場合にオーバフロー
アラームを検出する。
According to the present invention, the search start pointer SP, the write pointer WP, the read pointer RP, and the carry CRY
Is set, and as shown in FIG. 3, when “RP <SP and RP <WP and CRY = 1” of the condition 4, “RP ≧
SP and RP <WP and condition 6 “RP ≧ SP”
When RP ≧ WP and CRY = 1, an overflow alarm is detected.

【0047】これにより、従来方式では検出できなかっ
た1アドレスのみの故障の場合でも故障の検出が可能と
なった。
As a result, even in the case of a failure of only one address, which cannot be detected by the conventional method, the failure can be detected.

【0048】又、この発明だけでは、従来アラームを検
出していた全てのアドレスのデータフラグが「有」状態
の場合にWPの設定ができないため、アラームの検出が
できない。
Also, according to the present invention alone, the WP cannot be set when the data flags of all the addresses for which an alarm has been detected in the prior art are "present", so that the alarm cannot be detected.

【0049】従って、従来の方式、即ち、全アドレスの
フラグをANDする方式と兼用してて本発明を用いるこ
とによりオーバフローアラームを検出する。
Therefore, the overflow alarm is detected by using the present invention in combination with the conventional method, that is, the method of ANDing the flags of all addresses.

【0050】なお、本発明に係るオーバフローアラーム
検出装置の全体構成は図5の従来例と同様であり、又、
マッピング部の構成も図6の構成を含むため、図示及び
動作説明を省略する。
The overall configuration of the overflow alarm detecting device according to the present invention is the same as that of the conventional example shown in FIG.
Since the configuration of the mapping unit also includes the configuration of FIG. 6, illustration and operation description are omitted.

【0051】本発明ではマッピング部55には図6の構
成とともに図1の構成が含まれる。即ち、本発明は図6
に示す構成のオーバフローアラームと図1に示す構成の
オーバフローアラームとの2系統のオーバフローアラー
ムを有する。
In the present invention, the mapping unit 55 includes the configuration of FIG. 1 in addition to the configuration of FIG. That is, the present invention is shown in FIG.
And an overflow alarm having a configuration shown in FIG. 1 and an overflow alarm having a configuration shown in FIG.

【0052】次に、第1の実施の形態について説明す
る。第1の実施の形態では競合制御による空きアドレス
探索後、各ポインタ値を比較し、その前後関係を確認す
ることにより、セルの順序逆転が起きた場合にアラーム
を出力するものである。
Next, a first embodiment will be described. In the first embodiment, after searching for a free address by contention control, each pointer value is compared and the context is confirmed, thereby outputting an alarm when the order of the cells is reversed.

【0053】詳細な手順を図2及び図3を用いて説明す
る。競合制御後、探索開始ポインタSP、読出しポイン
タRP、書込みポインタWP及びキャリーフラグCRY
を設定する。
The detailed procedure will be described with reference to FIGS. After the conflict control, the search start pointer SP, the read pointer RP, the write pointer WP, and the carry flag CRY
Set.

【0054】競合制御後の各ポインタの位置関係は図2
の6種類の条件に分類することができ、各条件をフロー
チャートに表すと図3のようになる。
FIG. 2 shows the positional relationship between the pointers after the conflict control.
These conditions can be classified into the following six conditions, and each condition is represented in a flowchart as shown in FIG.

【0055】即ち、図3のフローチャートを参照して、
RP<SPであり(S1でYES)、RP<WPであり
(S2でYES)、かつCRY=1でなければ(S3で
NO)、正常である(S4)。これが条件1である。
That is, referring to the flowchart of FIG.
If RP <SP (YES in S1), RP <WP (YES in S2), and if CRY = 1 is not true (NO in S3), it is normal (S4). This is condition 1.

【0056】又、RP<SPではなく(S1でNO)、
RP<WPではなく(S5でNO)、かつCRY=1で
なければ(S6でNO)、正常である(S7)。これが
条件2である。
Also, not RP <SP (NO in S1),
If RP <WP is not satisfied (NO in S5) and CRY = 1 is not satisfied (NO in S6), it is normal (S7). This is condition 2.

【0057】又、RP<SPであり(S1でYES)、
かつRP<WPではない場合は(S2でNO)、正常で
ある(S8)。これが条件3である。
If RP <SP (YES in S1),
If it is not RP <WP (NO in S2), it is normal (S8). This is condition 3.

【0058】又、RP<SPであり(S1でYES)、
RP<WPであり(S2でYES)、かつCRY=1で
あれば(S3でYES)、オーバフローアラームを検出
する(S9)。これが条件4である。
If RP <SP (YES in S1),
If RP <WP (YES in S2) and CRY = 1 (YES in S3), an overflow alarm is detected (S9). This is condition 4.

【0059】又、RP<SPではなく(S1でNO)、
RP<WPである場合は(S5でYES)、オーバフロ
ーアラームを検出する(S10)。これが条件5であ
る。
Also, not RP <SP (NO in S1),
If RP <WP (YES in S5), an overflow alarm is detected (S10). This is condition 5.

【0060】又、RP<SPではなく(S1でNO)、
RP<WPではなく(S5でNO)、かつCRY=1で
あれば(S6でYES)、オーバフローアラームを検出
する(S11)。これが条件6である。
Also, not RP <SP (NO in S1),
If RP <WP is not satisfied (NO in S5) and CRY = 1 (YES in S6), an overflow alarm is detected (S11). This is condition 6.

【0061】次に、本発明の要部、即ちマッピング部5
5の構成について説明する。図1を参照して、マッピン
グ部55は比較回路CMP1,2と、論理和ゲートOR
1〜3と、論理積ゲートAND1〜5とにより構成され
る。
Next, the main part of the present invention, that is, the mapping unit 5
5 will be described. Referring to FIG. 1, mapping unit 55 includes comparison circuits CMP1 and CMP2 and OR gate OR.
1 to 3 and AND gates AND1 to AND5.

【0062】なお、このマッピング部55は図6に示す
構成のオーバフローアラームも有することは前述したと
おりである。
As described above, the mapping unit 55 also has an overflow alarm having the configuration shown in FIG.

【0063】図1CMP1でRPとSPの比較を行い、
CMP2でRPとWPの比較を行う。次に、CMP1の
「RP<SP」出力とCMP2の「RP<SP」出力と
をAND(AND1)し、さらにこのAND1の出力と
CRYとをAND(AND3)した出力が条件4とな
る。
FIG. 1 Comparison between RP and SP in CMP1
RP and WP are compared by CMP2. Next, the “RP <SP” output of the CMP1 and the “RP <SP” output of the CMP2 are ANDed (AND1), and the output obtained by ANDing this output of the AND1 and CRY (AND3) is the condition 4.

【0064】又、CMP1の「RP=SP」と「RP>
SP」のOR(OR1)と、CMP2の「RP<SP」
をAND(AND4)したAND4の出力が条件5とな
る。
Further, “RP = SP” and “RP>
SP ”OR (OR1) and CMP2“ RP <SP ”
AND4 (AND4) is the output of AND4.

【0065】又、CMP1の「RP=SP」と「RP>
SP」のOR(OR1)と、CMP2の「RP=WP」
と「RP>WP」のOR(OR2)とをAND(AND
2)し、さらにこのAND2の出力とCRYとをAND
(AND5)したAND5の出力が条件6となる。
Further, “RP = SP” and “RP>
SP ”OR (OR1) and CMP2“ RP = WP ”
AND (OR2) of “RP> WP” with AND (AND
2) Then, the output of AND2 and CRY are ANDed.
(AND5) The output of AND5 is the condition 6.

【0066】最後に、これらAND3〜5をOR(OR
3)した出力をオーバフローアラームとする。
Finally, these ANDs 3 to 5 are ORed (OR
3) Use the output as an overflow alarm.

【0067】次に、第2の実施の形態について説明す
る。第2の実施の形態はオーバフローアラーム検出装置
の制御プログラムを記録した記録媒体に関するものであ
る。
Next, a second embodiment will be described. The second embodiment relates to a recording medium on which a control program for an overflow alarm detection device is recorded.

【0068】図4は記録媒体及びその駆動装置の構成図
である。同図を参照して、駆動装置はCPU(中央処理
装置)71と、入力部72と、記憶装置73と、出力部
74と、マッピング部1とから構成され、便宜上この駆
動装置により駆動される記録媒体2も表示されている。
FIG. 4 is a configuration diagram of a recording medium and its driving device. Referring to FIG. 1, the driving device includes a CPU (central processing unit) 71, an input unit 72, a storage device 73, an output unit 74, and a mapping unit 1, and is driven by this driving device for convenience. The recording medium 2 is also displayed.

【0069】マッピング部1は図1に示す構成のもので
あり、記録媒体2には図3にフローチャートで示したプ
ログラムが記録されている。
The mapping unit 1 has the configuration shown in FIG. 1, and the recording medium 2 stores the program shown in the flowchart of FIG.

【0070】次に、この駆動装置の動作について説明す
る。入力部72よりプログラム・ロードの命令がCPU
71に入力されると、CPU71は記録媒体2に記録さ
れたプログラムを読出し、その読出したプログラムを記
憶装置73に書込む。
Next, the operation of the driving device will be described. A program load instruction is input from the input unit 72 to the CPU.
When input to 71, CPU 71 reads the program recorded on recording medium 2 and writes the read program in storage device 73.

【0071】次に、入力部72よりプログラム・ランの
命令がCPU71に入力されると、CPU71は記録媒
体2に記録されたプログラムを読出し、そのプログラム
に従ってマッピング部1を制御する。
Next, when a program run command is input to the CPU 71 from the input section 72, the CPU 71 reads out the program recorded on the recording medium 2 and controls the mapping section 1 according to the program.

【0072】マッピング部1の制御内容の説明は前述し
たので省略する。なお、オーバフローアラームは出力部
74に表示される。
The description of the control contents of the mapping unit 1 has been described above, and will not be repeated. The overflow alarm is displayed on the output unit 74.

【0073】[0073]

【発明の効果】第1の発明によれば、複数のデータが予
め設定された読出し順に従って下位アドレスから順に書
込まれるリングメモリと、このリングメモリの各アドレ
スに前記データが書込まれているか否かを示すデータフ
ラグと、前記データを前記リングメモリに書込む仮アド
レスを指定する第1ポインタと、前記仮アドレスの前記
データフラグに基づき前記リングメモリに書込む書込み
アドレスを指定する第2ポインタと、前記リングメモリ
の読出しアドレスを指定する第3ポインタと、前記書込
みアドレスが最後尾まで達しさらに先頭に戻ったか否か
を示すキャリーフラグと、前記第1〜第3ポインタ及び
キャリーフラグに基づき前記リングメモリからデータを
読出す順序の逆転を検出する逆転検出手段とを含んでオ
ーバフローアラーム検出装置を構成したため、前記第1
〜第3ポインタが設定されているアドレスの位置関係及
びキャリーフラグが設定されているか否かによってデー
タを読出す順序の逆転を検出することができる。
According to the first aspect of the present invention, a ring memory in which a plurality of data are written sequentially from a lower address in accordance with a preset reading order, and whether the data is written to each address of the ring memory A first address specifying a temporary address at which the data is to be written to the ring memory; and a second pointer specifying a write address at which the data is to be written to the ring memory based on the data flag of the temporary address. A third pointer that specifies a read address of the ring memory, a carry flag that indicates whether the write address has reached the end and has returned to the beginning, and the first to third pointers and the carry flag. Reversal detection means for detecting reversal of the order of reading data from the ring memory; Because you configure the detection apparatus, the first
The reverse of the data reading order can be detected based on the positional relationship between the addresses where the third pointer is set and whether the carry flag is set.

【0074】又、第2の発明によれば、複数のデータが
予め設定された読出し順に従って下位アドレスから順に
書込まれるリングメモリと、このリングメモリの各アド
レスに前記データが書込まれているか否かを示すデータ
フラグと、前記データを前記リングメモリに書込む仮ア
ドレスを指定する第1ポインタと、前記仮アドレスの前
記データフラグに基づき前記リングメモリに書込む書込
みアドレスを指定する第2ポインタと、前記リングメモ
リの読出しアドレスを指定する第3ポインタと、前記書
込みアドレスが最後尾まで達しさらに先頭に戻ったか否
かを示すキャリーフラグと、前記第1〜第3ポインタ及
びキャリーフラグに基づき前記リングメモリからデータ
を読出す順序の逆転を検出する逆転検出手段とを含むオ
ーバフローアラーム検出装置の検出方法であって、前記
逆転検出手段は、前記第3ポインタのアドレスが前記第
1ポインタのアドレスよりも下位であるか否かを判定す
る第1処理と、この第1処理にて前記第3ポインタのア
ドレスが前記第1ポインタのアドレスよりも下位である
と判定された場合に、前記第3ポインタのアドレスが前
記第2ポインタのアドレスよりも下位であるか否かを判
定する第2処理と、この第2処理にて前記第3ポインタ
のアドレスが前記第2ポインタのアドレスよりも下位で
あると判定された場合に、前記キャリーフラグが前記書
込みアドレスが最後尾から先頭に戻ったことを示すか否
かを判定する第3処理と、この第3処理にて前記キャリ
ーフラグが前記書込みアドレスが最後尾から先頭に戻っ
たことを示すと判定された場合に、前記リングメモリか
らデータを読出す順序が逆転していると判定する第4処
理とを含むため、第1の発明と同様の効果を奏する。
According to the second aspect of the present invention, a ring memory in which a plurality of data are written sequentially from a lower address in accordance with a preset reading order, and whether the data is written to each address of the ring memory A first address specifying a temporary address at which the data is to be written to the ring memory; and a second pointer specifying a write address at which the data is to be written to the ring memory based on the data flag of the temporary address. A third pointer that specifies a read address of the ring memory, a carry flag that indicates whether the write address has reached the end and has returned to the beginning, and the first to third pointers and the carry flag. Reversal detection means for detecting reversal of the order of reading data from the ring memory A detection method of a detection device, wherein the reverse rotation detection means determines whether or not the address of the third pointer is lower than the address of the first pointer. When it is determined that the address of the third pointer is lower than the address of the first pointer, it is determined whether or not the address of the third pointer is lower than the address of the second pointer. 2 and if the second processing determines that the address of the third pointer is lower than the address of the second pointer, the carry flag returns the write address from the end to the top. A third process of determining whether or not the write address indicates that the write address has returned from the end to the top in the third process; Since the reading sequence data from the serial ring memory includes a fourth process for determining that the reverse, the same effect as the first invention.

【0075】又、第3の発明によれば、複数のデータが
予め設定された読出し順に従って下位アドレスから順に
書込まれるリングメモリと、このリングメモリの各アド
レスに前記データが書込まれているか否かを示すデータ
フラグと、前記データを前記リングメモリに書込む仮ア
ドレスを指定する第1ポインタと、前記仮アドレスの前
記データフラグに基づき前記リングメモリに書込む書込
みアドレスを指定する第2ポインタと、前記リングメモ
リの読出しアドレスを指定する第3ポインタと、前記書
込みアドレスが最後尾まで達しさらに先頭に戻ったか否
かを示すキャリーフラグと、前記第1〜第3ポインタ及
びキャリーフラグに基づき前記リングメモリからデータ
を読出す順序の逆転を検出する逆転検出手段とを含むオ
ーバフローアラーム検出装置の制御プログラムを記録し
た記録媒体であって、その記録媒体に前記第3ポインタ
のアドレスが前記第1ポインタのアドレスよりも下位で
あるか否かを判定する第1処理と、この第1処理にて前
記第3ポインタのアドレスが前記第1ポインタのアドレ
スよりも下位であると判定された場合に、前記第3ポイ
ンタのアドレスが前記第2ポインタのアドレスよりも下
位であるか否かを判定する第2処理と、この第2処理に
て前記第3ポインタのアドレスが前記第2ポインタのア
ドレスよりも下位であると判定された場合に、前記キャ
リーフラグが前記書込みアドレスが最後尾から先頭に戻
ったことを示すか否かを判定する第3処理と、この第3
処理にて前記キャリーフラグが前記書込みアドレスが最
後尾から先頭に戻ったことを示すと判定された場合に、
前記リングメモリからデータを読出す順序が逆転してい
ると判定する第4処理とをコンピュータに実行させるた
めの制御プログラムを記録したため、第1の発明と同様
の効果を奏する。
According to the third aspect of the present invention, a ring memory in which a plurality of data are written in order from a lower address in accordance with a preset reading order, and whether the data is written to each address of the ring memory A first address specifying a temporary address at which the data is to be written to the ring memory; and a second pointer specifying a write address at which the data is to be written to the ring memory based on the data flag of the temporary address. A third pointer that specifies a read address of the ring memory, a carry flag that indicates whether the write address has reached the end and has returned to the beginning, and the first to third pointers and the carry flag. Reversal detection means for detecting reversal of the order of reading data from the ring memory A first process for determining whether or not the address of the third pointer is lower than the address of the first pointer on the recording medium on which the control program of the detecting device is recorded; If it is determined in the processing that the address of the third pointer is lower than the address of the first pointer, it is determined whether the address of the third pointer is lower than the address of the second pointer. A second process for determining, and when the address of the third pointer is determined to be lower than the address of the second pointer in the second process, the carry flag indicates that the write address is from the last to the first. A third process of determining whether or not the return to
If it is determined in the processing that the carry flag indicates that the write address has returned from the end to the beginning,
Since a control program for causing a computer to execute the fourth process of determining that the order of reading data from the ring memory is reversed is recorded, the same effects as those of the first invention are obtained.

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

【図1】本発明に係るオーバフローアラーム検出装置の
要部構成図である。
FIG. 1 is a configuration diagram of a main part of an overflow alarm detection device according to the present invention.

【図2】競合制御動作を条件別に分類した図である。FIG. 2 is a diagram in which contention control operations are classified according to conditions;

【図3】本発明の動作を示すフローチャートである。FIG. 3 is a flowchart showing the operation of the present invention.

【図4】記録媒体及びその駆動装置の構成図である。FIG. 4 is a configuration diagram of a recording medium and a driving device thereof.

【図5】従来のオーバフローアラーム検出装置の一例の
構成図である。
FIG. 5 is a configuration diagram of an example of a conventional overflow alarm detection device.

【図6】マッピング部の一例の構成図である。FIG. 6 is a configuration diagram of an example of a mapping unit.

【図7】マッピング部の他の一例の構成図である。FIG. 7 is a configuration diagram of another example of a mapping unit.

【図8】マッピング部の他の一例の構成図である。FIG. 8 is a configuration diagram of another example of the mapping unit.

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

1,55 マッピング部 2 記録媒体 51 セル識別部 52 アルゴリズム演算部 53 主信号メモリ 54 メモリ制御部 55 マッピング部 56 出力部 61〜67 レジスタ 68 論理積ゲート AND1〜5 論理積ゲート CMP1,2 比較回路 OR1〜3 論理和ゲート 1, 55 mapping unit 2 recording medium 51 cell identification unit 52 algorithm operation unit 53 main signal memory 54 memory control unit 55 mapping unit 56 output unit 61 to 67 register 68 AND gate AND1 to 5 AND gate CMP1, comparison circuit OR1 -3 OR gate

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】 複数のデータが予め設定された読出し順
に従って下位アドレスから順に書込まれるリングメモリ
と、このリングメモリの各アドレスに前記データが書込
まれているか否かを示すデータフラグと、前記データを
前記リングメモリに書込む仮アドレスを指定する第1ポ
インタと、前記仮アドレスの前記データフラグに基づき
前記リングメモリに書込む書込みアドレスを指定する第
2ポインタと、前記リングメモリの読出しアドレスを指
定する第3ポインタと、前記書込みアドレスが最後尾ま
で達しさらに先頭に戻ったか否かを示すキャリーフラグ
と、前記第1〜第3ポインタ及びキャリーフラグに基づ
き前記リングメモリからデータを読出す順序の逆転を検
出する逆転検出手段とを含むことを特徴とするオーバフ
ローアラーム検出装置。
1. A ring memory in which a plurality of data are written in order from a lower address according to a preset reading order, a data flag indicating whether or not the data is written to each address of the ring memory, A first pointer for specifying a tentative address for writing the data to the ring memory, a second pointer for specifying a write address for writing to the ring memory based on the data flag of the tentative address, and a read address for the ring memory And a carry flag indicating whether the write address has reached the end and has returned to the beginning, and an order in which data is read from the ring memory based on the first to third pointers and the carry flag. Overflow detection means for detecting a reverse rotation of the vehicle. Place.
【請求項2】 前記逆転検出手段は前記第3ポインタの
アドレスが前記第1ポインタのアドレスよりも下位であ
り、前記第3ポインタのアドレスが前記第2ポインタの
アドレスよりも下位であり、かつ前記キャリーフラグが
前記書込みアドレスが最後尾から先頭に戻ったことを示
すとき前記リングメモリからデータを読出す順序が逆転
していることを検出することを特徴とする請求項1記載
のオーバフローアラーム検出装置。
2. The reverse rotation detecting means, wherein the address of the third pointer is lower than the address of the first pointer, the address of the third pointer is lower than the address of the second pointer, and 2. The overflow alarm detecting device according to claim 1, wherein when the carry flag indicates that the write address has returned from the end to the start, the overflow alarm detecting device detects that the order of reading data from the ring memory is reversed. .
【請求項3】 前記逆転検出手段は前記第3ポインタの
アドレスが前記第1ポインタのアドレスと等しいかもし
くは前記第1ポインタのアドレスよりも上位であり、か
つ前記第3ポインタのアドレスが前記第2ポインタのア
ドレスよりも下位であるとき前記リングメモリからデー
タを読出す順序が逆転していることを検出することを特
徴とする請求項1記載のオーバフローアラーム検出装
置。
3. The reverse rotation detecting means, wherein the address of the third pointer is equal to or higher than the address of the first pointer, and the address of the third pointer is higher than the address of the second pointer. 2. The overflow alarm detecting device according to claim 1, wherein when the address is lower than the address of the pointer, it is detected that the order of reading data from the ring memory is reversed.
【請求項4】 前記逆転検出手段は前記第3ポインタの
アドレスが前記第1ポインタのアドレスと等しいかもし
くは前記第1ポインタのアドレスよりも上位であり、前
記第3ポインタのアドレスが前記第2ポインタのアドレ
スと等しいかもしくは前記第2ポインタのアドレスより
も上位であり、かつ前記キャリーフラグが前記書込みア
ドレスが最後尾から先頭に戻ったことを示すとき前記リ
ングメモリからデータを読出す順序が逆転していること
を検出することを特徴とする請求項1記載のオーバフロ
ーアラーム検出装置。
4. The reverse rotation detecting means, wherein the address of the third pointer is equal to or higher than the address of the first pointer, and the address of the third pointer is higher than the address of the second pointer. When the carry flag indicates that the write address has returned from the tail to the head, the order of reading data from the ring memory is reversed. 2. The overflow alarm detecting device according to claim 1, wherein the overflow alarm is detected.
【請求項5】 前記リングメモリはATM網に入力され
たバースト的なデータを一定間隔に整形するために用い
られることを特徴とする請求項1〜4いずれかに記載の
オーバフローアラーム検出装置。
5. The overflow alarm detecting device according to claim 1, wherein said ring memory is used for shaping burst-like data input to an ATM network at a predetermined interval.
【請求項6】 複数のデータが予め設定された読出し順
に従って下位アドレスから順に書込まれるリングメモリ
と、このリングメモリの各アドレスに前記データが書込
まれているか否かを示すデータフラグと、前記データを
前記リングメモリに書込む仮アドレスを指定する第1ポ
インタと、前記仮アドレスの前記データフラグに基づき
前記リングメモリに書込む書込みアドレスを指定する第
2ポインタと、前記リングメモリの読出しアドレスを指
定する第3ポインタと、前記書込みアドレスが最後尾ま
で達しさらに先頭に戻ったか否かを示すキャリーフラグ
と、前記第1〜第3ポインタ及びキャリーフラグに基づ
き前記リングメモリからデータを読出す順序の逆転を検
出する逆転検出手段とを含むオーバフローアラーム検出
装置の検出方法であって、 前記逆転検出手段は、前記第3ポインタのアドレスが前
記第1ポインタのアドレスよりも下位であるか否かを判
定する第1処理と、この第1処理にて前記第3ポインタ
のアドレスが前記第1ポインタのアドレスよりも下位で
あると判定された場合に、前記第3ポインタのアドレス
が前記第2ポインタのアドレスよりも下位であるか否か
を判定する第2処理と、この第2処理にて前記第3ポイ
ンタのアドレスが前記第2ポインタのアドレスよりも下
位であると判定された場合に、前記キャリーフラグが前
記書込みアドレスが最後尾から先頭に戻ったことを示す
か否かを判定する第3処理と、この第3処理にて前記キ
ャリーフラグが前記書込みアドレスが最後尾から先頭に
戻ったことを示すと判定された場合に、前記リングメモ
リからデータを読出す順序が逆転していると判定する第
4処理とを含むことを特徴とするオーバフローアラーム
検出方法。
6. A ring memory in which a plurality of data are written in order from a lower address in accordance with a preset reading order, a data flag indicating whether or not the data is written to each address of the ring memory, A first pointer for specifying a tentative address for writing the data to the ring memory, a second pointer for specifying a write address for writing to the ring memory based on the data flag of the tentative address, and a read address for the ring memory And a carry flag indicating whether the write address has reached the end and has returned to the beginning, and an order in which data is read from the ring memory based on the first to third pointers and the carry flag. And a reversal detection means for detecting reversal of the signal. The reverse rotation detecting means determines whether or not the address of the third pointer is lower than the address of the first pointer, and the address of the third pointer is determined in the first processing. When it is determined that the address of the third pointer is lower than the address of the first pointer, a second process of determining whether the address of the third pointer is lower than the address of the second pointer, If it is determined in step 2 that the address of the third pointer is lower than the address of the second pointer, the carry flag indicates whether the write address has returned from the end to the beginning. A third process for determining whether or not the carry flag indicates that the write address has returned from the end to the beginning in the third process. And a fourth process of determining that the order in which data is read out is reversed.
【請求項7】 前記逆転検出手段は、前記第3ポインタ
のアドレスが前記第1ポインタのアドレスと等しいかも
しくは前記第1ポインタのアドレスよりも上位であるか
否かを判定する第5処理と、この第5処理にて前記第3
ポインタのアドレスが前記第1ポインタのアドレスと等
しいかもしくは前記第1ポインタのアドレスよりも上位
であると判定された場合に、前記第3ポインタのアドレ
スが前記第2ポインタのアドレスよりも下位であるか否
かを判定する第6処理と、この第6処理にて前記第3ポ
インタのアドレスが前記第2ポインタのアドレスよりも
下位であると判定された場合に、前記リングメモリから
データを読出す順序が逆転していると判定する第7処理
とを含むことを特徴とする請求項6記載のオーバフロー
アラーム検出方法。
7. A fifth process for determining whether or not the address of the third pointer is equal to the address of the first pointer or higher than the address of the first pointer, In this fifth process, the third
When it is determined that the address of the pointer is equal to the address of the first pointer or higher than the address of the first pointer, the address of the third pointer is lower than the address of the second pointer. A sixth process of determining whether the address of the third pointer is lower than the address of the second pointer in the sixth process, and reading data from the ring memory. 7. The overflow alarm detection method according to claim 6, further comprising: a seventh process for determining that the order is reversed.
【請求項8】 前記逆転検出手段は、前記第3ポインタ
のアドレスが前記第1ポインタのアドレスと等しいかも
しくは前記第1ポインタのアドレスよりも上位であるか
否かを判定する第8処理と、この第8処理にて前記第3
ポインタのアドレスが前記第1ポインタのアドレスと等
しいかもしくは前記第1ポインタのアドレスよりも上位
であると判定された場合に、前記第3ポインタのアドレ
スが前記第2ポインタのアドレスと等しいかもしくは前
記第2ポインタのアドレスよりも上位であるか否かを判
定する第9処理と、この第9処理にて前記第3ポインタ
のアドレスが前記第2ポインタのアドレスと等しいかも
しくは前記第2ポインタのアドレスよりも上位であると
判定された場合に、前記キャリーフラグが前記書込みア
ドレスが最後尾から先頭に戻ったことを示すか否かを判
定する第10処理と、この第10処理にて前記キャリー
フラグが前記書込みアドレスが最後尾から先頭に戻った
ことを示すと判定された場合に、前記リングメモリから
データを読出す順序が逆転していると判定する第11処
理とを含むことを特徴とする請求項6記載のオーバフロ
ーアラーム検出方法。
8. An eighth process for determining whether the address of the third pointer is equal to the address of the first pointer or higher than the address of the first pointer; In the eighth process, the third
If it is determined that the address of the pointer is equal to the address of the first pointer or higher than the address of the first pointer, the address of the third pointer is equal to the address of the second pointer or A ninth process for determining whether or not the address is higher than the address of the second pointer; and in this ninth process, the address of the third pointer is equal to the address of the second pointer or the address of the second pointer. If it is determined that the carry flag is higher than the carry flag, the carry flag indicates whether the write address indicates that the write address has returned from the end to the head, and in the tenth process, the carry flag is determined. Indicates that the write address has returned from the end to the beginning, the order in which data is read from the ring memory. Overflow alarm detection method according to claim 6, characterized in that it comprises but a 11th process determines to be reversed.
【請求項9】 前記リングメモリはATM網に入力され
たバースト的なデータを一定間隔に整形するために用い
られることを特徴とする請求項6〜8いずれかに記載の
オーバフローアラーム検出方法。
9. The overflow alarm detection method according to claim 6, wherein said ring memory is used for shaping burst-like data input to an ATM network at regular intervals.
【請求項10】 複数のデータが予め設定された読出し
順に従って下位アドレスから順に書込まれるリングメモ
リと、このリングメモリの各アドレスに前記データが書
込まれているか否かを示すデータフラグと、前記データ
を前記リングメモリに書込む仮アドレスを指定する第1
ポインタと、前記仮アドレスの前記データフラグに基づ
き前記リングメモリに書込む書込みアドレスを指定する
第2ポインタと、前記リングメモリの読出しアドレスを
指定する第3ポインタと、前記書込みアドレスが最後尾
まで達しさらに先頭に戻ったか否かを示すキャリーフラ
グと、前記第1〜第3ポインタ及びキャリーフラグに基
づき前記リングメモリからデータを読出す順序の逆転を
検出する逆転検出手段とを含むオーバフローアラーム検
出装置の制御プログラムを記録した記録媒体であって、 前記第3ポインタのアドレスが前記第1ポインタのアド
レスよりも下位であるか否かを判定する第1処理と、こ
の第1処理にて前記第3ポインタのアドレスが前記第1
ポインタのアドレスよりも下位であると判定された場合
に、前記第3ポインタのアドレスが前記第2ポインタの
アドレスよりも下位であるか否かを判定する第2処理
と、この第2処理にて前記第3ポインタのアドレスが前
記第2ポインタのアドレスよりも下位であると判定され
た場合に、前記キャリーフラグが前記書込みアドレスが
最後尾から先頭に戻ったことを示すか否かを判定する第
3処理と、この第3処理にて前記キャリーフラグが前記
書込みアドレスが最後尾から先頭に戻ったことを示すと
判定された場合に、前記リングメモリからデータを読出
す順序が逆転していると判定する第4処理とをコンピュ
ータに実行させるための制御プログラムを記録した記録
媒体。
10. A ring memory in which a plurality of data are sequentially written from a lower address in accordance with a preset reading order, a data flag indicating whether or not the data is written to each address of the ring memory, A first address for specifying a temporary address at which the data is written to the ring memory;
A pointer, a second pointer that specifies a write address to be written to the ring memory based on the data flag of the temporary address, a third pointer that specifies a read address of the ring memory, and the write address reaches the end. The overflow alarm detecting device further includes a carry flag indicating whether or not the head has returned to the head, and a reverse rotation detecting means for detecting a reverse of the order of reading data from the ring memory based on the first to third pointers and the carry flag. A recording medium on which a control program is recorded, wherein a first process of determining whether an address of the third pointer is lower than an address of the first pointer, and the third pointer Address is the first
When it is determined that the address of the third pointer is lower than the address of the pointer, a second process of determining whether the address of the third pointer is lower than the address of the second pointer; When it is determined that the address of the third pointer is lower than the address of the second pointer, it is determined whether the carry flag indicates that the write address has returned from the end to the beginning. And if the carry flag indicates that the write address has returned from the end to the head in the third process, the order of reading data from the ring memory is reversed. A recording medium on which a control program for causing a computer to execute a fourth process to be determined is recorded.
【請求項11】 前記第3ポインタのアドレスが前記第
1ポインタのアドレスと等しいかもしくは前記第1ポイ
ンタのアドレスよりも上位であるか否かを判定する第5
処理と、この第5処理にて前記第3ポインタのアドレス
が前記第1ポインタのアドレスと等しいかもしくは前記
第1ポインタのアドレスよりも上位であると判定された
場合に、前記第3ポインタのアドレスが前記第2ポイン
タのアドレスよりも下位であるか否かを判定する第6処
理と、この第6処理にて前記第3ポインタのアドレスが
前記第2ポインタのアドレスよりも下位であると判定さ
れた場合に、前記リングメモリからデータを読出す順序
が逆転していると判定する第7処理とをコンピュータに
実行させるための制御プログラムを記録した請求項10
記載の記録媒体。
11. A fifth step of judging whether the address of the third pointer is equal to the address of the first pointer or higher than the address of the first pointer.
Processing, and when it is determined in the fifth processing that the address of the third pointer is equal to or higher than the address of the first pointer, the address of the third pointer is determined. A process for determining whether or not is lower than the address of the second pointer, and it is determined in the sixth process that the address of the third pointer is lower than the address of the second pointer. 11. A control program for causing a computer to execute a seventh process of judging that the order of reading data from the ring memory is reversed in the case where the data is read.
The recording medium according to the above.
【請求項12】 前記第3ポインタのアドレスが前記第
1ポインタのアドレスと等しいかもしくは前記第1ポイ
ンタのアドレスよりも上位であるか否かを判定する第8
処理と、この第8処理にて前記第3ポインタのアドレス
が前記第1ポインタのアドレスと等しいかもしくは前記
第1ポインタのアドレスよりも上位であると判定された
場合に、前記第3ポインタのアドレスが前記第2ポイン
タのアドレスと等しいかもしくは前記第2ポインタのア
ドレスよりも上位であるか否かを判定する第9処理と、
この第9処理にて前記第3ポインタのアドレスが前記第
2ポインタのアドレスと等しいかもしくは前記第2ポイ
ンタのアドレスよりも上位であると判定された場合に、
前記キャリーフラグが前記書込みアドレスが最後尾から
先頭に戻ったことを示すか否かを判定する第10処理
と、この第10処理にて前記キャリーフラグが前記書込
みアドレスが最後尾から先頭に戻ったことを示すと判定
された場合に、前記リングメモリからデータを読出す順
序が逆転していると判定する第11処理とをコンピュー
タに実行させるための制御プログラムを記録した請求項
10記載の記録媒体。
12. An eighth step of judging whether the address of the third pointer is equal to the address of the first pointer or higher than the address of the first pointer.
And if the address of the third pointer is equal to or higher than the address of the first pointer in the eighth process, the address of the third pointer is determined. Ninth processing for determining whether or not is equal to the address of the second pointer or higher than the address of the second pointer;
When it is determined in the ninth processing that the address of the third pointer is equal to the address of the second pointer or is higher than the address of the second pointer,
A tenth process for determining whether the carry flag indicates that the write address has returned from the tail to the head, and in the tenth process, the carry flag indicates that the write address has returned from the tail to the head. 11. A recording medium according to claim 10, further comprising a control program for causing a computer to execute an eleventh process of determining that the order of reading data from the ring memory is reversed when it is determined that the data is read. .
【請求項13】 前記リングメモリはATM網に入力さ
れたバースト的なデータを一定間隔に整形するために用
いられることを特徴とする請求項10〜12いずれかに
記載の記録媒体。
13. The recording medium according to claim 10, wherein said ring memory is used for shaping burst-like data input to an ATM network at regular intervals.
JP26872898A 1998-09-22 1998-09-22 Overflow alarm detecting device, method therefor an recording medium recorded with control program Withdrawn JP2000101594A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26872898A JP2000101594A (en) 1998-09-22 1998-09-22 Overflow alarm detecting device, method therefor an recording medium recorded with control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26872898A JP2000101594A (en) 1998-09-22 1998-09-22 Overflow alarm detecting device, method therefor an recording medium recorded with control program

Publications (1)

Publication Number Publication Date
JP2000101594A true JP2000101594A (en) 2000-04-07

Family

ID=17462533

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26872898A Withdrawn JP2000101594A (en) 1998-09-22 1998-09-22 Overflow alarm detecting device, method therefor an recording medium recorded with control program

Country Status (1)

Country Link
JP (1) JP2000101594A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7848334B2 (en) 2002-06-13 2010-12-07 Thomson Licensing Method and device for transferring data packets

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7848334B2 (en) 2002-06-13 2010-12-07 Thomson Licensing Method and device for transferring data packets

Similar Documents

Publication Publication Date Title
JPH07297840A (en) Priority control method for output buffer type atm switch
JPS60142439A (en) Store buffer device
US5914935A (en) Traffic shaper apparatus
JP2010262435A (en) Data buffer device having passing mode
JP2000101594A (en) Overflow alarm detecting device, method therefor an recording medium recorded with control program
JPH10260909A (en) Shared memory controller
JP2929977B2 (en) UPC cell interval determination circuit
JPH11219344A (en) Method and device for flow control over network between processors
US6789176B2 (en) Address release method, and common buffering device for ATM switching system which employs the same method
US5691977A (en) Virtual channel converter and VCC table access method
JPH04220834A (en) Control system for priority control buffer in atm switch
JP2000172651A (en) Asynchronous transfer mode cell pipeline processor
JP3221429B2 (en) OAM processing device for ATM cells
JP3130866B2 (en) ATM switch permanent stay address detection circuit and permanent stay address detection method
JPH1051469A (en) Atm switch
JPH1131066A (en) Buffer control system
JPH1173299A (en) Buffer memory controller
JPH0918486A (en) Atm cell switching system
JPH0833869B2 (en) Data processing device
JPH05134889A (en) Redundant system for process controller
JPH08153038A (en) Method and device for data storage control
JPH0832590A (en) Decision circuit and deciding method for buffer memory read sequence
JP3256652B2 (en) Competition control circuit
JPH08223170A (en) Atm cell switch
JPH0969838A (en) Priority read-out system

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060110