JPH0516215B2 - - Google Patents

Info

Publication number
JPH0516215B2
JPH0516215B2 JP31020887A JP31020887A JPH0516215B2 JP H0516215 B2 JPH0516215 B2 JP H0516215B2 JP 31020887 A JP31020887 A JP 31020887A JP 31020887 A JP31020887 A JP 31020887A JP H0516215 B2 JPH0516215 B2 JP H0516215B2
Authority
JP
Japan
Prior art keywords
packet
circuit
address
write
outputs
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.)
Expired - Lifetime
Application number
JP31020887A
Other languages
Japanese (ja)
Other versions
JPH01149643A (en
Inventor
Hideaki Tani
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP62310208A priority Critical patent/JPH01149643A/en
Publication of JPH01149643A publication Critical patent/JPH01149643A/en
Publication of JPH0516215B2 publication Critical patent/JPH0516215B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はパケツト通信システムにおけるパケツ
トバツフア装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a packet buffer device in a packet communication system.

〔従来の技術〕[Conventional technology]

パケツト通信システムでは、通信装置間におけ
るデータパケツトの授受をパケツトバツフアを介
して行うことにより、通信装置を非同期に、すな
わち独立のクロツクで動作させることができ、ク
ロツク障害に対するシステム全体の信頼性を向上
させることができる。
In a packet communication system, by sending and receiving data packets between communication devices via a packet buffer, the communication devices can be operated asynchronously, that is, with independent clocks, and the reliability of the entire system against clock failure can be improved. I can do it.

このパケツトバツフアにはリング構成にしたも
のが多く用いられていて、リング構成のバツフア
ではデータ書込み回路とデータ読出し回路とがバ
ツフアに対してそれぞれ独立したアドレスポイン
タを持ち、独立にそれぞれパケツトの書込み、読
出しの動作を行う。リング構成のバツフアのアク
セスアドレスには論理的に終端がなく、物理的な
最終アドレスの次に物理的な先頭アドレスが読
く。これによりバツフアメモリの全体を有効に利
用することができる。
A ring configuration is often used for this packet buffer, and in a ring configuration buffer, a data write circuit and a data read circuit have independent address pointers for the buffer, and write and read packets independently. perform the following actions. The access address of a buffer in a ring configuration has no logical end, and the physical start address is read after the physical end address. This allows the entire buffer memory to be used effectively.

このようにパケツトの書込み回路と読出し回路
とが独立に動作するバツフア装置においては、バ
ツフアメモリのオーバフローおよびアンダーフロ
ーを避けるため、パケツトの書込み回路と読出し
回路との間にフロー制御のための交信機構を設け
る必要がある。従来のバツフア装置ではこうした
フロー制御機能を実現するために主として以下の
)または)に示すような方法を採つている。
)バツフアに対するパケツトの書込み回路の書
込みアドレスとパケツトの読出し回路の読出しア
ドレスとを直接比較する方式。但し、非同期的に
動作する2つのレジスタを常時比較することは困
難であることから、双方の回路において1パケツ
トを処理した時点におけるアドレスを別々のレジ
スタに保持してその値を比較し、両者が一致して
いるときにバツフアが空であることを示すエンプ
テイ信号をパケツトの読出し回路に、また書込み
アドレスが読出しアドレスから予め定められた距
離より近づいたときに閉塞信号をパケツトの書込
み回路に伝達する方式。
In a buffer device in which the packet write circuit and read circuit operate independently in this way, a communication mechanism for flow control is provided between the packet write circuit and read circuit in order to avoid overflow and underflow of the buffer memory. It is necessary to provide Conventional buffer devices mainly employ the methods shown in () and () below to realize such a flow control function.
) A method in which the write address of the packet write circuit and the read address of the packet read circuit for the buffer are directly compared. However, since it is difficult to constantly compare two registers that operate asynchronously, the addresses at the time when one packet is processed in both circuits are held in separate registers and their values are compared. When they match, an empty signal indicating that the buffer is empty is transmitted to the packet read circuit, and when the write address is closer than a predetermined distance from the read address, a blockage signal is transmitted to the packet write circuit. method.

)バツフア内のパケツト数を示すカウンタを
設置し、パケツトの書込み時に加算、パケツトの
読出し時に減算し、バツフア内パケツト数が0で
あることを示すゼロ信号をパケツトの読出し回路
に、またバツフア内パケツト数が予め定められた
値を越えたことを示す閉塞信号をパケツトの書込
み回路に伝達する方式。
) Install a counter that indicates the number of packets in the buffer, add it when writing a packet, subtract it when reading a packet, and send a zero signal indicating that the number of packets in the buffer is 0 to the packet readout circuit. A method in which a blocking signal indicating that the number of packets exceeds a predetermined value is transmitted to the packet writing circuit.

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

しかしながら、このようにパケツトの書込み回
路と読出し回路とが独立に動作するバツフア装置
においては両回路が直接結合されないため、バツ
フア内のデータ、書込みまたは読出しポインタ、
あるいは制御用カウンタのどれか一つに偶発的な
誤りが生じた場合に、その障害を検出して元の状
態に復旧させることが困難である。そこで間接的
な障害検出手段としては、読出されたパケツトの
長さをカウントし、正常なパケツトの最大長を越
えた場合に異常状態と判定する方法があるが、バ
ツフア内のデータエラーによつて2つのパケツト
が連結し、かつ連結されたパケツトの全長が正常
なパケツト長の最大長を越えない場合には異常状
態は検出されない。
However, in a buffer device in which the packet write circuit and the read circuit operate independently, the two circuits are not directly coupled, so the data in the buffer, the write or read pointer,
Alternatively, if an accidental error occurs in one of the control counters, it is difficult to detect the error and restore the original state. Therefore, as an indirect means of detecting a failure, there is a method of counting the length of the read packet and determining an abnormal state when the length exceeds the maximum length of a normal packet. If two packets are concatenated and the total length of the concatenated packets does not exceed the maximum normal packet length, no abnormal condition is detected.

また、前述)のアドレス比較による方式で
は、パケツトの書込みアドレスレジスタに保持さ
れたアドレスのデータがエラーした場合、アドレ
ス比較によりパケツトの読出し回路を停止させる
点が失われ、暴走する可能性がある。
Furthermore, in the method using address comparison described above, if the address data held in the packet write address register has an error, the point at which the packet readout circuit is stopped due to address comparison is lost, and there is a possibility of runaway.

さらにまた、前述)のパケツト数カウンタを
用いた方式では、カウンタのエラーまたはバツフ
ア内のデータのエラーにより、カウンタの値とバ
ツフア内に蓄積されたバケツトの数との間に矛盾
が生じる可能性がある。パケツトの読出し回路が
バツフア内のパケツトを全て読出したにも拘らず
カウンタが0にならない場合には、読出し回路は
パケツトの読出しを停止せず、ときにはバツフア
に書かれている古いデータを読出すことがある
が、前述の間接的な障害検出手段では確実に障害
を検出することはできない。また、読出し回路が
バツフア内の全てのパケツトを読出す前にカウン
タが0になつた場合には、読出し回路はパケツト
の読出しを停止するが、障害状態は検出されな
い。
Furthermore, in the method using the packet number counter described above, there is a possibility that an error in the counter or an error in the data in the buffer will cause a discrepancy between the counter value and the number of packets accumulated in the buffer. be. If the counter does not reach 0 even though the packet readout circuit has read all the packets in the buffer, the readout circuit does not stop reading packets and sometimes reads old data written in the buffer. However, the above-mentioned indirect fault detection means cannot reliably detect faults. Also, if the counter reaches zero before the read circuit has read all packets in the buffer, the read circuit will stop reading packets, but no fault condition will be detected.

このように異常状態を確実に検出できないバツ
フア管理手段では、信頼性の高いバツフア装置を
実現することができないと云う問題点を有してい
る。
A buffer management means that cannot reliably detect an abnormal state as described above has the problem that a highly reliable buffer device cannot be realized.

本発明の目的は、偶発的な誤りを確実に検出
し、正常状態に復旧することのできる信頼性の高
いパケツトバツフア装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a highly reliable packet buffer device that can reliably detect accidental errors and restore a normal state.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のパケツトバツフア装置は、パケツトを
一時的に蓄積するリング構成のバツフアメモリ
と、外部から到着したパケツトを前記バツフアメ
モリに書込み、一つのパケツトの書込みが終了し
たときに書込み終了パルスを出力し、最後にパケ
ツトの書込みが終了したときの最終アドレスを保
持して出力するパケツト書込み回路と、前記バツ
フアメモリからパケツトを読出して外部に送出
し、一つのパケツトの読出しが終了したときに読
出し終了パルスを出力し、最終にパケツトの読出
しが終了したときの最終アドレスを保持して出力
するパケツト読出し回路と、前記書込み終了パル
スにより加算され、前記読出し終了パルスにより
減算されるアツプダウンカウンタを有し、このカ
ウンタの内容が0であることを示すゼロ信号を前
記パケツト読出し回路に出力するカウンタ回路
と、前記最後にパケツトの書込みが終了したとき
の最終アドレスから前記最後にパケツトの読出し
が終了したときの最終アドレスをモジユロ引算
し、その演算結果が0であることを示すアドレス
一致信号を出力し、この演算結果が予め設定され
た閾値を下回つたとき閉塞信号を前記パケツト書
込み回路に出力するアドレス比較回路と、前記ゼ
ロ信号が出力されたときに前記アドレス一致信号
を検査し、この検査結果に不一致をみたとき前記
パケツト書込み回路と前記パケツト読出し回路と
カウンタ回路とにリセツト信号を送出する一致信
号検査回路とを有して構成される。
The packet buffer device of the present invention includes a ring-configured buffer memory that temporarily stores packets, writes packets arriving from the outside into the buffer memory, outputs a write end pulse when writing of one packet is completed, and finally outputs a write end pulse. a packet write circuit that holds and outputs the final address when writing of the packet is completed; a packet write circuit that reads the packet from the buffer memory and sends it to the outside; and outputs a read end pulse when reading of one packet is completed; It has a packet read circuit that holds and outputs the final address when packet reading is finally completed, and an up-down counter that is added by the write end pulse and subtracted by the read end pulse, and the contents of this counter are a counter circuit that outputs a zero signal indicating that the packet is 0 to the packet reading circuit; an address comparison circuit that performs subtraction and outputs an address match signal indicating that the operation result is 0, and outputs a blockage signal to the packet write circuit when the operation result is less than a preset threshold; a coincidence signal inspection circuit that inspects the address coincidence signal when the zero signal is output, and sends a reset signal to the packet write circuit, the packet read circuit, and the counter circuit when a mismatch is found in the inspection result; It is composed of:

〔作用〕[Effect]

第1図は本発明によるパケツトバツフア装置の
構成を示したブロツク図である。第1図におい
て、11はリング構成のバツフアメモリ、12は
カウンタ回路、13はアドレス比較回路、14は
パケツト書込み回路、15はパケツト読出し回
路、16は一致信号検査回路、17は外部からパ
ケツトが入来する端子、18は外部へパケツトを
を送出する端子を示す。
FIG. 1 is a block diagram showing the configuration of a packet buffer device according to the present invention. In FIG. 1, 11 is a buffer memory in a ring configuration, 12 is a counter circuit, 13 is an address comparison circuit, 14 is a packet write circuit, 15 is a packet read circuit, 16 is a coincidence signal check circuit, and 17 is a circuit for receiving packets from outside. 18 indicates a terminal for sending packets to the outside.

端子17から1つのパケツトが入来すると、パ
ケツト書込み回路14はバツフアメモリ11に書
込みを行い、書込みが終了した時点で書込みアド
レスをラツチしてアドレス比較回路13へ伝達す
るとともにカウンタ回路12へ書込み終了パルス
を与える。パケツト読出し回路15はカウンタ回
路12からカウンタの値が0のとき入力される信
号をモニターし、この信号がオフのときにバツフ
アメモリ11からのパケツトの読出しを開始し、
読出したデータを端子18へ送出する。またパケ
ツト読出し回路15は1つのパケツトの読出しを
完了した時点で読出しアドレスをラツチしてアド
レス比較回路13へ伝達するとともに、カウンタ
回路12へ読出し終了パルスを与える。
When one packet comes in from the terminal 17, the packet write circuit 14 writes to the buffer memory 11, and when the write is completed, it latches the write address and transmits it to the address comparison circuit 13, and also sends a write end pulse to the counter circuit 12. give. The packet reading circuit 15 monitors the signal input from the counter circuit 12 when the counter value is 0, and starts reading packets from the buffer memory 11 when this signal is off.
The read data is sent to the terminal 18. Furthermore, when the packet readout circuit 15 completes the readout of one packet, it latches the readout address and transmits it to the address comparison circuit 13, and also provides a readout end pulse to the counter circuit 12.

本構成においてカウンタ回路12は、パケツト
の書込み終了時に加算(+1)、パケツトの読出
し終了時に減算(−1)されるので、正常動作時
には常にバツフアメモリ11内のパケツト数を示
している。カウンタの内容が0のときには、カウ
ンタ回路12はパケツト読出し装置15へゼロ信
号を出力し、パケツトの読出動作を停止させる。
一方、アドレス比較回路13は常にパケツト書込
み回路14から入力される最終の書込みアドレス
と、パケツト読出し回路15から入力される最終
の読出しアドレスとの距離を測定しており、書込
みアドレスから読出しアドレスまでの距離が、ア
ドレス比較回路の内部に格納されている予め設定
された値よりも接近した場合には、閉塞信号をパ
ケツト書込み回路14へ出力し、パケツトの書込
み動作を停止させる。
In this configuration, the counter circuit 12 is incremented (+1) at the end of packet writing and subtracted (-1) at the end of packet reading, so that it always indicates the number of packets in the buffer memory 11 during normal operation. When the content of the counter is 0, the counter circuit 12 outputs a zero signal to the packet reading device 15 to stop the packet reading operation.
On the other hand, the address comparison circuit 13 always measures the distance between the final write address input from the packet write circuit 14 and the final read address input from the packet read circuit 15, and measures the distance between the write address and the read address. If the distance is closer than a preset value stored inside the address comparison circuit, a blocking signal is output to the packet write circuit 14 to stop the packet write operation.

以上のように、正常動作時にはパケツト書込み
回路にゼロ信号を、またパケツト読出し回路15
に閉塞信号を与えることにより、バツフアメモリ
11に対する書込み・読出しフロー制御を実現す
ることができる。ところで、正常動作時にはバツ
フアメモリ11内に蓄積されているパケツト数と
カウンタ回路12の内容とが一致しているため、
カウンタ回路12の内容が0、すなわちゼロ信号
が一致信号検査回路16に与えられているときに
は、バツフアメモリ11内にはパケツトが存在せ
ず、最終の書込みアドレスと最終の読出しアドレ
スとが一致し、アドレス比較回路13からアドレ
ス一致信号が一致信号検査回路16に与えられて
いるはずである。逆にバツフア内のデータ、書込
みまたは読出しポインタ、あるいは制御用カウン
タのどれか一つに偶発的な誤りが発生し、バツフ
アメモリ11とカウンタ回路12との間に矛盾が
生じた場合には、カウンタ回路12の内容が0と
なりゼロ信号が一致信号検査回路16に与えられ
たときに、最終の書込みアドレスと最終の読出し
アドレスとが一致せず、アドレス一致信号が検出
されない。そこで一致信号検査回路16ではゼロ
信号がオンのときアドレス一致信号を検査するこ
とにより障害状態を検知し、リセツト信号をパケ
ツト書込み回路14、パケツト読出し回路15、
およびカウンタ回路12に帰還することができ
る。リセツト信号によりカウンタ回路12をリセ
ツトし、パケツト書込み回路14の書込みアドレ
スポインタのパケツト読出し回路15の読出しア
ドレスポインタを初期化すれば、正常状態に復旧
させることができる。
As described above, during normal operation, a zero signal is sent to the packet write circuit, and a zero signal is sent to the packet read circuit 15.
By applying a blockage signal to the buffer memory 11, write/read flow control for the buffer memory 11 can be realized. By the way, during normal operation, the number of packets stored in the buffer memory 11 and the contents of the counter circuit 12 match, so
When the content of the counter circuit 12 is 0, that is, a zero signal is given to the coincidence signal check circuit 16, there is no packet in the buffer memory 11, the final write address and the final read address match, and the address The address match signal should have been supplied from the comparison circuit 13 to the match signal test circuit 16. Conversely, if an accidental error occurs in any one of the data in the buffer, the write or read pointer, or the control counter, and a contradiction occurs between the buffer memory 11 and the counter circuit 12, the counter circuit When the content of 12 becomes 0 and a zero signal is applied to the coincidence signal checking circuit 16, the final write address and the final read address do not match, and no address coincidence signal is detected. Therefore, the coincidence signal inspection circuit 16 detects a failure state by inspecting the address coincidence signal when the zero signal is on, and sends a reset signal to the packet write circuit 14, packet read circuit 15,
and can be fed back to the counter circuit 12. By resetting the counter circuit 12 with a reset signal and initializing the write address pointer of the packet write circuit 14 and the read address pointer of the packet read circuit 15, the normal state can be restored.

〔実施例〕〔Example〕

以下、第1図に示した本発明のパケツトバツフ
ア装置の主要回路の実施例について図面を参照し
て説明する。
Hereinafter, an embodiment of the main circuit of the packet buffer device of the present invention shown in FIG. 1 will be described with reference to the drawings.

第2図はアドレス比較回路13の一実施例のブ
ロツク図である。第2図において、21はモジユ
ロ引算回路、22は引算回路、23はゼロ判定回
路、24は固定レジスタ、25はパケツト書込み
回路14から書込みアドレスデータを入力する端
子、26はパケツト読出し回路15から読出しア
ドレスデータを入力する端子、27はゼロ判定回
路の出力をアドレス一致信号として一致信号検査
回路16へ伝達する端子、28は引算回路22の
演算結果の符号ビツトの出力を閉塞信号としてパ
ケツト書込み回路14へ伝達する端子を示す。
FIG. 2 is a block diagram of one embodiment of the address comparison circuit 13. In FIG. 2, 21 is a modulo subtraction circuit, 22 is a subtraction circuit, 23 is a zero judgment circuit, 24 is a fixed register, 25 is a terminal for inputting write address data from the packet write circuit 14, and 26 is a packet read circuit 15. 27 is a terminal for transmitting the output of the zero determination circuit as an address match signal to the match signal checking circuit 16; 28 is a terminal for transmitting the output of the sign bit of the operation result of the subtraction circuit 22 as a block signal to the packet. A terminal for transmitting data to the write circuit 14 is shown.

モジユロ引算回路21は、端子26を介してパ
ケツト読出し回路14から与えられる読出しアド
レスデータから、端子25を介してパケツト書込
み回路15から与えられる書込みアドレスデータ
を差し引く引算回路で、演算結果が負の場合には
バツフアメモリ11の物理的なアドレス空間長を
加え、バツフアメモリ11上における2つのアド
レス間の論理的な距離を算出し、引算回路22お
よびゼロ判定回路23にその結果を出力する。引
算回路22は、モジユロ引算回路21出力から固
定レジスタ24に格納された値を差し引く符号付
き引算を行い、その符号ビツトを端子28へ出力
する。ゼロ判定回路23はモジユロ引算回路21
の出力が0であるときにオンを、0でないときに
オフを端子27に出力する。
The modulo subtraction circuit 21 is a subtraction circuit that subtracts the write address data given from the packet write circuit 15 via the terminal 25 from the read address data given from the packet read circuit 14 via the terminal 26. In this case, the physical address space length of the buffer memory 11 is added, the logical distance between the two addresses on the buffer memory 11 is calculated, and the result is output to the subtraction circuit 22 and the zero determination circuit 23. The subtraction circuit 22 performs signed subtraction to subtract the value stored in the fixed register 24 from the output of the modulo subtraction circuit 21, and outputs the sign bit to the terminal 28. The zero judgment circuit 23 is a modulo subtraction circuit 21
When the output is 0, ON is output to the terminal 27, and when it is not 0, OFF is output to the terminal 27.

第3図はカウンタ回路12の一実施例のブロツ
ク図である。第3図において、31はカウンタ、
32はゼロ判定回路、33はパケツト書込み回路
14から書込み終了パルスを入力する端子、34
はパケツト読出し回路15から読出し終了パルス
を入力する端子、35はゼロ判定回路32の出力
をパケツト読出し回路および一致信号検査回路1
6へ出力する端子、36は一致信号検査回路16
から入来するリセツト信号を入力する端子を示
す。
FIG. 3 is a block diagram of one embodiment of the counter circuit 12. In FIG. 3, 31 is a counter;
32 is a zero determination circuit; 33 is a terminal for inputting a write end pulse from the packet write circuit 14; 34
35 is a terminal for inputting the read end pulse from the packet reading circuit 15, and 35 is a terminal for inputting the output of the zero judgment circuit 32 to the packet reading circuit and the coincidence signal checking circuit 1.
6 is a terminal for outputting to 6, 36 is a coincidence signal inspection circuit 16
This shows the terminal that inputs the reset signal coming from.

カウンタ31は、端子33から入力するパルス
で加算し、端子34から入力するパルスで減算す
るアツプダウン・カウンタで、その内容をゼロ判
定回路32へ出力する。またカウンタ31は端子
36を介して一致信号検査回路16から入来する
リセツト信号によりリセツトされる。ゼロ判定回
路32はカウンタ31の出力が0であるときにオ
ンを、0でないときにオフを端子35に出力す
る。
The counter 31 is an up-down counter that adds up with pulses input from a terminal 33 and subtracts with pulses input from a terminal 34, and outputs its contents to the zero determination circuit 32. Further, the counter 31 is reset by a reset signal coming from the coincidence signal checking circuit 16 via a terminal 36. The zero determination circuit 32 outputs ON to the terminal 35 when the output of the counter 31 is 0, and outputs OFF when the output is not 0.

第4図は一致信号検査回路16の一実施例を表
すブロツク図である。第4図において、41は
AND回路、42はNOT回路、43はアドレス比
較回路13から入来する信号を入力する端子、4
4はカウンタ回路12から入来するアドレス一致
信号を入力する端子、45はAND回路41の出
力をリセツト信号としてアドレス比較回路13、
パケツト書込み装置14、パケツト読出し装置1
5に帰還する端子を示す。
FIG. 4 is a block diagram showing one embodiment of the coincidence signal checking circuit 16. In Figure 4, 41 is
AND circuit, 42 is a NOT circuit, 43 is a terminal for inputting the signal coming from the address comparison circuit 13, 4
4 is a terminal for inputting the address match signal coming from the counter circuit 12; 45 is an address comparison circuit 13 using the output of the AND circuit 41 as a reset signal;
Packet writing device 14, packet reading device 1
5 shows the feedback terminal.

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

本発明によれば、バツフアメモリ内に蓄積され
たパケツト数を計数するカウンタと、バツフアに
対する書込みアドレスポインタと読出しアドレス
ポインタとを比較する回路とを具備し、カウンタ
から出力されるゼロ信号とアドレス比較回路から
出力されるアドレス一致信号とを比較することに
より、偶然に生じる誤りを確実に検査することが
でき信頼性の高いバツフア装置を提供できる効果
がある。
According to the present invention, the buffer memory includes a counter that counts the number of packets accumulated in the buffer memory, and a circuit that compares a write address pointer and a read address pointer for the buffer, and a zero signal output from the counter and an address comparison circuit. By comparing the address matching signal outputted from the address matching signal, it is possible to reliably check for errors that occur by chance, and it is possible to provide a highly reliable buffer device.

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

第1図は本発明によるパケツトバツフア装置の
構成を示したブロツク図、第2図は第1図のアド
レス比較回路の一実施例のブロツク図、第3図は
第1図のカウンタ回路の一実施例のブロツク図、
第4図は第1図の一致信号検査回路の一実施例の
ブロツク図である。 11…バツフアメモリ、12…カウンタ回路、
13…アドレス比較回路、14…パケツト書込み
回路、15…パケツト読出し回路、16…一致信
号検査回路、21…モジユロ引算回路、22…引
算回路、23,23…ゼロ判定回路、24…固定
レジスタ、31…カウンタ。
FIG. 1 is a block diagram showing the configuration of a packet buffer device according to the present invention, FIG. 2 is a block diagram of an embodiment of the address comparison circuit of FIG. 1, and FIG. 3 is an embodiment of the counter circuit of FIG. 1. block diagram,
FIG. 4 is a block diagram of one embodiment of the coincidence signal checking circuit of FIG. 1. 11...Buffer memory, 12...Counter circuit,
13... Address comparison circuit, 14... Packet write circuit, 15... Packet read circuit, 16... Match signal inspection circuit, 21... Modulo subtraction circuit, 22... Subtraction circuit, 23, 23... Zero judgment circuit, 24... Fixed register , 31...Counter.

Claims (1)

【特許請求の範囲】[Claims] 1 パケツトを一時的に蓄積するリング構成のバ
ツフアメモリと、外部から到着したパケツトを前
記バツフアメモリに書込み、一つのパケツトの書
込みが終了したときに書き込み終了パルスを出力
し、最後にパケツトの書込みが終了したときの最
終アドレスを保持して出力するパケツト書込み回
路と、前記バツフアメモリからパケツトを読出し
て外部に送出し、一つのパケツトの読出しが終了
したときに読出し終了パルスを出力し、最終にパ
ケツトの読出しが終了したときの最終アドレスを
保持して出力するパケツト読出し回路と、前記書
込み終了パルスにより加算され、前記読出し終了
パルスにより減算されるアツプダウンカウンタを
有し、このカウンタの内容が0であることを示す
ゼロ信号を前記パケツト読出し回路に出力するカ
ウンタ回路と、前記最後にパケツトの書込みが終
了したときの最終アドレスから前記最後にパケツ
ト読出しが終了したときの最終アドレスを減算
し、その演算結果が0であることを示すアドレス
一致信号を出力し、この演算結果が予め設定され
た閾値を下回つたとき閉塞信号を前記パケツト書
込み回路に出力するアドレス比較回路と、前記ゼ
ロ信号が出力されたときに前記アドレス一致信号
を検査し、この検査結果に不一致をみたとき前記
パケツト書込み回路と前記パケツト読出し回路と
前記カウンタ回路とにリセツト信号を送出する一
致信号検査回路とを有することを特徴とするパケ
ツトバツフア装置。
1 A ring-configured buffer memory that temporarily stores packets, writes packets arriving from the outside into the buffer memory, outputs a write end pulse when writing of one packet is completed, and finally writes a write end pulse when writing of one packet is completed. A packet write circuit holds and outputs the final address at the time, reads the packet from the buffer memory and sends it to the outside, outputs a read end pulse when reading of one packet is completed, and finally reads the packet. It has a packet readout circuit that holds and outputs the final address at the time of completion, and an up-down counter that is incremented by the write end pulse and subtracted by the read end pulse, and it is determined that the content of this counter is 0. A counter circuit outputs a zero signal indicating to the packet reading circuit, and subtracts the final address at the time when the packet reading was completed last from the final address at the time when the writing of the packet was completed last, and the calculation result is 0. an address comparison circuit that outputs an address match signal indicating that the packet is a packet, and outputs a blockage signal to the packet write circuit when the calculation result falls below a preset threshold; A packet buffer device characterized in that it has a coincidence signal inspection circuit that inspects the address coincidence signal and sends a reset signal to the packet write circuit, the packet read circuit, and the counter circuit when a mismatch is found in the inspection result. .
JP62310208A 1987-12-07 1987-12-07 Packet buffer device Granted JPH01149643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62310208A JPH01149643A (en) 1987-12-07 1987-12-07 Packet buffer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62310208A JPH01149643A (en) 1987-12-07 1987-12-07 Packet buffer device

Publications (2)

Publication Number Publication Date
JPH01149643A JPH01149643A (en) 1989-06-12
JPH0516215B2 true JPH0516215B2 (en) 1993-03-03

Family

ID=18002492

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62310208A Granted JPH01149643A (en) 1987-12-07 1987-12-07 Packet buffer device

Country Status (1)

Country Link
JP (1) JPH01149643A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060168287A1 (en) * 2004-12-07 2006-07-27 Glauert Timothy H Rotating event buffer

Also Published As

Publication number Publication date
JPH01149643A (en) 1989-06-12

Similar Documents

Publication Publication Date Title
EP1224548B1 (en) System and method improving fault isolation and diagnosis in computers
KR950015189B1 (en) Error detecting apparatus of wide-width fifo buffer
US8301969B2 (en) Control method of information processing device and information processing device
JPH0516215B2 (en)
US5602537A (en) Technique for eliminating data transmit memory underruns
JPH096725A (en) Asynchronous data transfer receiver
JPH0434180B2 (en)
JPH03123945A (en) Information processor
JP2020092324A (en) Information processing device and information acquisition method
KR970001624B1 (en) Tag generation and its processing method in the packet switching system
JP2715740B2 (en) Bus monitoring circuit for information processing equipment
KR950007436B1 (en) First input first output memory test method
JPS6318776B2 (en)
JPH086870A (en) Data transfer device
JPH0540583A (en) Information processing system
JPH033186A (en) First-in first-out memory
JPH029251A (en) Framing error status circuit
JPS5856139B2 (en) Error detection method
JPS58221424A (en) Testing method of data
JPH01116747A (en) Cache lsi
JPH04220745A (en) Bus error detecting circuit
JPH0522360A (en) Fifo test diagnostic circuit
JPH06119193A (en) Data processing system
JPH05298201A (en) System bus error processing system for information processing system
JPS63208964A (en) Bus competition detecting system