JPH01129635A - Received fifo control circuit - Google Patents

Received fifo control circuit

Info

Publication number
JPH01129635A
JPH01129635A JP62289907A JP28990787A JPH01129635A JP H01129635 A JPH01129635 A JP H01129635A JP 62289907 A JP62289907 A JP 62289907A JP 28990787 A JP28990787 A JP 28990787A JP H01129635 A JPH01129635 A JP H01129635A
Authority
JP
Japan
Prior art keywords
data
overrun
bit
register
reception
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
JP62289907A
Other languages
Japanese (ja)
Inventor
Yuhei Kozu
神津 雄平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP62289907A priority Critical patent/JPH01129635A/en
Publication of JPH01129635A publication Critical patent/JPH01129635A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate the reception frame causing overrun among plural reception frames and to receive other effective reception frames if a reception overrun takes place by providing an end bit detection circuit or the like. CONSTITUTION:A flag is detected from a signal X sent from a signal line 108 by a flag detector 101 and a frame synchronization is established, then the assembling of the received data is started via a serial/parallel conversion circuit 102. If a reception overrun takes place and it is detected by an overrun detection circuit 107 by using a use bit signal 115 and a write signal 112, the end bit detection circuit 106 detects the end bit of the closest end bit, that is, a 2nd frame end bit. Thus, the corresponding use bit from the write end till the end bit is all reset and only the ineffective frame due to overrun is eliminated and the remaining reception frame is receptible and it is read by the host system.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はシリアル・データの受信回路に関し、特にオー
バーラン発生時の受信FIFOの制御回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a serial data receiving circuit, and particularly to a receiving FIFO control circuit when an overrun occurs.

〔従来の技術〕[Conventional technology]

従来、ある定まったデータ通信プロトコル、例えばHD
LC(High Level Data Link C
ontrolProcedure)フレーム・フォーマ
ットで送られてくるシリアル・データを受信しこれをパ
ラレル・デ゛−夕に変換してホスト・システムに転送す
る方法としては、図5に示すようにシリアル・パラレル
変換回路と受信FIFOによって構成される受倍回路を
用いる手法がとられている。これはHDLCフレーム・
フォーマットで信号線507により送られてくる信号X
を、つぎの手順で受信FIFOに格納する。まず受信回
路が受信可能状態となると受信回路は同期検出モードに
なり、8ビツト長のフラグ検出回路501により受信さ
れる信号Xの中のフラグの検出が開始される。この状態
は最初のフラグが検出されるまで継続される。フラグが
検出されて、信号Xに関するフレーム同期が確立すると
フラグ検出回路501はフラグ検出信号508をアクテ
ィブとしてデータ受信状態に遷移し、受信データの7セ
ンブルを開始する。
Traditionally, certain data communication protocols, such as HD
LC (High Level Data Link C)
As shown in Figure 5, a method for receiving serial data sent in frame format (ontrolProcedure), converting it into parallel data, and transmitting it to the host system uses a serial-to-parallel converter circuit as shown in Figure 5. A technique has been adopted that uses a multiplier circuit configured with a reception FIFO. This is an HDLC frame.
The signal X sent by signal line 507 in the format
is stored in the reception FIFO using the following procedure. First, when the receiving circuit becomes ready for reception, the receiving circuit enters a synchronous detection mode, and the 8-bit flag detection circuit 501 starts detecting the flag in the signal X received. This state continues until the first flag is detected. When the flag is detected and frame synchronization regarding the signal X is established, the flag detection circuit 501 activates the flag detection signal 508, transitions to a data reception state, and starts seven assembling of received data.

データ受信状態では、フラグ検出回路501から出力さ
れた受信データ509を、あらかじめ定められたビット
長nごとに、シリアル・パラレル変換回路502でnビ
ットのパラレルな受信データYにアセンブルする。受信
データYはアセンブルされる毎に、信号線510を通し
て受信FIFOに転送される。通常受信FIFOは数十
段のFIFO構成をとる。受信FIF○の各段は受信デ
ータYを格納するためのnビット幅のデータ・レジスタ
503と、1ビツトのユース・ビット・レジスタ504
および1ビツトのエンド・ビット・レジスタ505から
成る。ユース・ビット・レジスタは受信FIFOの各段
に有効な受信データがデータ・レジスタ503各段に存
在することを示し、エンド・ビット・レジスタは受信フ
レームの最後の受信データYがデータ・レジスタ503
に存在することを示す。受信回路はデータ受信中でもフ
ラグ検出機能は有効であり、−度データ受信状態に移っ
てから再びフラグを検出すると、1つのフレームの終了
とみなし、フレームの最後の受信データYをデータ・レ
ジスタ503に書き込むとともに、フレーム終了信号5
13によってエンド・ビット・レジスタ505をセット
する。受信回路は受信FIFOの読み出し端のユース・
ビット・レジスタ504によって、ホスト・システムに
受信データYの引取りを要求する。ホスト・システムは
ユース・ビットがアクティブである限り順次受信FIF
Oから受信データYを読み出し続け、エンド・ビットが
アクティブである受信データYを読み出すことにより1
つの受信フレームの最終データを認識する。
In the data reception state, the reception data 509 output from the flag detection circuit 501 is assembled into n-bit parallel reception data Y by the serial-to-parallel conversion circuit 502 for each predetermined bit length n. Each time the received data Y is assembled, it is transferred to the receive FIFO through the signal line 510. Normally, the reception FIFO has a FIFO configuration of several tens of stages. Each stage of the receive FIF○ has an n-bit wide data register 503 for storing received data Y, and a 1-bit use bit register 504.
and a 1-bit end bit register 505. The use bit register indicates that valid received data exists in each stage of the data register 503 in each stage of the receive FIFO, and the end bit register indicates that the last received data Y of the receive frame is present in the data register 503.
indicates that it exists. The flag detection function of the receiving circuit is valid even while receiving data, and when the flag is detected again after moving to the data receiving state, it is regarded as the end of one frame, and the last received data Y of the frame is stored in the data register 503. At the same time as writing, frame end signal 5
13 sets the end bit register 505. The receiving circuit uses the read end of the receiving FIFO.
Bit register 504 requests the host system to receive received data Y. The host system sequentially receives FIFs as long as the use bit is active.
1 by continuing to read received data Y from O and reading received data Y whose end bit is active.
Recognize the final data of each received frame.

ここでホスト・システムによる受信データYの読み出し
が遅れると、受信FIFO内に次々に受信データYがバ
ッファリングされ最後には受信FIFOがオーバーフロ
ーし受信オーバーランが発生する。受信オーバーランの
発生は、受信FIF○の書き込み端のユース・ビット・
レジスタ504に格納されているユース・ビット信号5
14と受信FIFOへの受信データYの書き込み信号5
11によりオーバーラン検出回路506が検出し、これ
をホスト・システムへ伝える。
If there is a delay in reading the received data Y by the host system, the received data Y will be buffered one after another in the receive FIFO, and eventually the receive FIFO will overflow, causing a receive overrun. The reception overrun occurs due to the write end use bit of the reception FIF○.
Use bit signal 5 stored in register 504
14 and write signal 5 of receive data Y to receive FIFO
11, the overrun detection circuit 506 detects this and transmits this to the host system.

オーバーラン検出信号511がアクティブになることに
より、ホスト・システムは受信FIFO内のデータがす
べて無効であると判断する。
When overrun detection signal 511 becomes active, the host system determines that all data in the receive FIFO is invalid.

上記の手法により、ホスト・システムはHDLCフレー
ム・フォーマットで送られてきた受信データが受信FI
FOいおいて受信オーバーランを発生したことを知るこ
とができる。
By using the above method, the host system can transfer the received data sent in HDLC frame format to the receiving FI.
It is possible to know that a reception overrun has occurred in the FO.

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

上述した従来の方法によると、受信オーバーランの発生
により、受信FIFO内に格納されていた有効なデータ
がすべて無効となる。このため、受信FIFO内に複数
個の受信フレームが存在した場合、オーバーランを発生
した受信フレームだけではなく、受信FIFO内にある
他のすべての有効な受信フレームも無効となるという欠
点がある。
According to the conventional method described above, all valid data stored in the receive FIFO becomes invalid due to the occurrence of a receive overrun. Therefore, when a plurality of receive frames exist in the receive FIFO, not only the receive frame in which the overrun occurred, but also all other valid receive frames in the receive FIFO are invalidated.

〔発明の従来技術に対する相違点【独創性]の内容〕[Contents of the difference [originality] of the invention with respect to the prior art]

上述した従来の受信回路では受信オーバーランにより受
信FIFO内のデータを一括して無効化するのに対し、
本発明は受信FIFOにおいて受信データの有効性をそ
れぞれのフレームごとに取り扱うところに独創的内容を
有する。
In the conventional receiving circuit described above, data in the receiving FIFO is invalidated all at once due to receiving overrun.
The present invention is unique in that the validity of received data is handled for each frame in the receive FIFO.

〔問題点を解決するための手段〕 本発明による受信FIFO制御回路は、シリアル・デー
タ通信において、定まったデータ通信プロトコルに従い
まとまったデータ・ブロック毎に送信されてくるシリア
ルな信号Xを受信する受信回路において、前記信号Xを
nビット単位のパラレル・データYに変換するシリアル
・パラレル変換回路と、前記データY格納するFIFO
構成のデータ・レジスタ、前記データ・レジスタに有効
なデータYが存在することを示すユース・ビット・レジ
スタ、前記データ・レジスタに格納されている前記デー
タYが前記データ・ブロックの最後のデータであること
を示すエンド・ビット・レジスタ、前記データ・レジス
タの中から最後に書き込まれたエンド・ビットを検出す
るエンド・ビット検出回路、及び前記データ・レジスタ
がオーバーフローしたことを検出するオーバーラン検出
回路を有し、前記データ・レジスタにおいてオーバーラ
ンが発生したとき、前記データ・レジスタの中から前記
オーバーランを発生した前記データ・ブロックのみを削
除することを特徴とする受信FIFO制御回路である。
[Means for Solving the Problems] The reception FIFO control circuit according to the present invention is a reception FIFO control circuit that receives a serial signal X transmitted for each data block according to a predetermined data communication protocol in serial data communication. The circuit includes a serial-to-parallel conversion circuit that converts the signal X into n-bit parallel data Y, and a FIFO that stores the data Y.
a configuration data register; a use bit register indicating that valid data Y is present in the data register; the data Y stored in the data register is the last data of the data block; an end bit register that indicates that the data register has been written, an end bit detection circuit that detects the last end bit written in the data register, and an overrun detection circuit that detects that the data register has overflowed. The receiving FIFO control circuit is characterized in that, when an overrun occurs in the data register, only the data block in which the overrun has occurred is deleted from the data register.

〔実施例1〕 次に、本発明について図面を参照して説明する。[Example 1] Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例のシステム構成を示すブロッ
ク図である。図中101は8ビツト長のフラグ検出器で
ありHDLCフレーム・フォーマットで信号線108に
より送られてくる信号Xの中からフラグを検出しHDL
Cフレームとの周期を確立する。フラグの検出は信号線
109によりシリアル・パラレル変換回路102に伝え
られる。フラグが検出されて、信号Xに関するフレーム
同期が確立するとデータ受信状態に遷移し、受信データ
のアセンブルを開始する。データ受信状態では、あらか
じめ定められたビット長nごとに、シリアル・パラレル
変換回路102によりシフト・レジスタ101から出力
された受信信号110をnビット長のパラレル受信デー
タYにアセンブルされ信号線111に出力される。受信
データYはアセンブルされる毎に、書き込み信号112
によって受信FIFOのデータ・レジスタ103に転送
される。通常受信FIFOは数十段のFIFO構成をと
る。受信FUFOの各段は受信データYを格納するため
のnビット幅のデータ・レジスタ103と、受信データ
Yの存在をしめず1ビツトのユース・ビットレジスタ1
04と、受信フレームの最後のデータであることを表す
1ビツトのエンド・ビット・レジスタ105、および受
信FIF○の書き込み端に一番近いエンド・ビットを捜
し出す機能を持つエンド・ビット検出回路106から成
る。受信回路はデータ受信中でもフラグ検出機能は有効
であり、−度データ受信状態に移ってから再びフラグを
検出すると、一つのフレームの終了とみなし、フレーム
の最後の受信データYをデータ・レジスタ103に書き
込むとともに、フレームの最後を示すフレーム終了検出
信号113によってエンド・ビット・レジスタ105を
セットする。この後、再び次のフレーム受信のためにフ
レーム同期検出状態に移る。受信回路は受信FIFOの
先頭段のユース・ビット・レジスタ104によって、ホ
スト・システムに受信データYの引き取りを要求する。
FIG. 1 is a block diagram showing the system configuration of an embodiment of the present invention. In the figure, 101 is an 8-bit flag detector that detects a flag from the signal X sent through the signal line 108 in HDLC frame format.
Establish a cycle with the C frame. Detection of the flag is transmitted to the serial/parallel conversion circuit 102 via a signal line 109. When the flag is detected and frame synchronization with respect to signal X is established, a transition is made to the data reception state and the assembling of the received data is started. In the data reception state, the serial-to-parallel conversion circuit 102 assembles the reception signal 110 output from the shift register 101 into n-bit parallel reception data Y for each predetermined bit length n, and outputs it to the signal line 111. be done. Each time the received data Y is assembled, a write signal 112 is generated.
is transferred to the data register 103 of the receive FIFO. Normally, the reception FIFO has a FIFO configuration of several tens of stages. Each stage of the receive FUFO includes an n-bit wide data register 103 for storing received data Y, and a 1-bit use bit register 1 that does not indicate the existence of received data Y.
04, a 1-bit end bit register 105 indicating that it is the last data of the received frame, and an end bit detection circuit 106 that has the function of finding the end bit closest to the write end of the receiving FIF○. Become. The flag detection function of the receiving circuit is valid even while receiving data, and when the flag is detected again after moving to the data receiving state, it is regarded as the end of one frame, and the last received data Y of the frame is stored in the data register 103. At the same time as writing, the end bit register 105 is set by the frame end detection signal 113 indicating the end of the frame. After this, the state shifts to the frame synchronization detection state again to receive the next frame. The receiving circuit requests the host system to receive the received data Y using the use bit register 104 at the top stage of the receiving FIFO.

ホスト・システムは受信FIFOの読み出し端のユース
・ビットがアクティブである限り順次受信FIFOから
受信データYを読み出し続け、エンド・ビットがアクテ
ィブである受信データYを読み出すことにより1つの受
信フレームの最終データを認識する。
The host system continues to sequentially read received data Y from the receive FIFO as long as the use bit at the read end of the receive FIFO is active, and by reading the receive data Y whose end bit is active, the host system reads the final data of one receive frame. Recognize.

ここでホスト・システムによる受信データYの読み出し
が遅れると、受信FIFO内に次々に受信データYがバ
ッファリングされ最後には受信FIFOがオーバーフロ
ーし、受信オーバーランが発生する。受信オーバーラン
の発生は、受信FIFOの書き込み端のユース・ビット
・レジスタ104に格納されているユース・ビット信号
115と書き込み信号112によりオーバーラン検出回
路107が検出し、これをホスト・システムへ受信オー
バーラン検出信号114で伝える。
If there is a delay in reading the received data Y by the host system, the received data Y will be buffered one after another in the receive FIFO, and eventually the receive FIFO will overflow, resulting in a receive overrun. The occurrence of a receive overrun is detected by the overrun detection circuit 107 based on the use bit signal 115 and write signal 112 stored in the use bit register 104 at the write end of the receive FIFO, and this is detected by the overrun detection circuit 107. The overrun detection signal 114 is used to convey the information.

受信オーバーランによって、このときシリアル・パラレ
ル変換回路102から受信FIFOのデータ・レジスタ
103に転送された受信データYを含む受信フレームは
無効となる。受信オーバーラン検出信号114がアクテ
ィブになるとエンド・ビット検出回路106は受信FI
FOの書き込み端に一番近くにあるエンド・ビットをエ
ンド・ビットレジスタ105の中から捜し、そのエンド
・ビットより書き込み端側にあるすべてのユース・ビッ
ト・レジスタ104をリセットする。すなわち、オーバ
ーランを起こしたフレームに含まれるすべての受信デー
タYに対応するユース・ビットをリセットすることにな
る。このときの、各レジスタの動作を図2に示す。図2
では一例として12段の受信FIFOを想定している。
Due to the reception overrun, the reception frame containing the reception data Y transferred from the serial-to-parallel conversion circuit 102 to the data register 103 of the reception FIFO becomes invalid. When the reception overrun detection signal 114 becomes active, the end bit detection circuit 106 detects the reception FI.
The end bit closest to the write end of the FO is searched from among the end bit registers 105, and all the use bit registers 104 on the write end side of the end bit are reset. That is, the use bits corresponding to all received data Y included in the frame in which the overrun occurred are reset. FIG. 2 shows the operation of each register at this time. Figure 2
As an example, a 12-stage reception FIFO is assumed.

図2に示すようにオーバーランが発生した直後には受信
FIFOのデータ・レジスタ103は受信データでフル
であるからユース・ビット・レジスタ104の各ビット
はオール“1 ++である。また、オーバーランを発生
したフレームが3フレーム目であるとすれば、エンド・
ピットレジスタ105には直前に受信した2つのフレー
ムのエンド・ビットが“1°′となっているはずである
。オーバーランの検出によりエンド・ビット検出回路1
06は書き込み端に一番近いエンド・ビット、すなわち
2フレーム目のエンド・ビットを検出する。エンド・ビ
ットの検出により書き込み端からこのエンド・ビットま
での対応するユース・ビットはすべてリセットされる。
As shown in FIG. 2, immediately after an overrun occurs, the data register 103 of the receive FIFO is full with received data, so each bit of the use bit register 104 is all "1 ++." If the frame in which this occurs is the third frame, then the end
The end bits of the two frames received immediately before should be "1°" in the pit register 105. Upon detection of an overrun, the end bit detection circuit 1
06 detects the end bit closest to the write end, that is, the end bit of the second frame. Upon detection of an end bit, all corresponding use bits from the write end to this end bit are reset.

以上の操作により、受信FIFOの中から、オーバーラ
ンによって無効になったフレームのみを削除し、残りの
フレームは有効なまま受信FIFO内に残されホスト・
システムよって読み出すことが可能となる。
By the above operation, only the frames that have become invalid due to overrun are deleted from the receive FIFO, and the remaining frames remain valid in the receive FIFO and the host
It can be read by the system.

上記の手法により、ホスト・システムはHDLCフレー
ム・フォーマットで送られてきた受信データが受信FI
FOにおいて受信オーバーランを発生しても、オーバー
ランを発生した受信フレームだけが無効となり、受信F
IFO内にある他のすべての有効な受信フレームはホス
ト・システムによって読み出すことが可能となる。
By using the above method, the host system can transfer the received data sent in HDLC frame format to the receiving FI.
Even if a reception overrun occurs in the FO, only the reception frame in which the overrun occurred will be invalidated, and the reception frame
All other valid received frames in the IFO are available for reading by the host system.

〔実施例2〕 第2図は本発明の実施例2のシステム構成を示すブロッ
ク図である。本図は図1におけるエンド・ビット検出回
路に対し、プログラマブルなエンド・ビット検出回路を
配置した構成例であり、他は実施例1と同様の構成であ
る。
[Embodiment 2] FIG. 2 is a block diagram showing the system configuration of Embodiment 2 of the present invention. This figure shows a configuration example in which a programmable end bit detection circuit is arranged in place of the end bit detection circuit in FIG. 1, and the other configurations are the same as in the first embodiment.

図中301は8ビツト長のフラグ検出器であり、302
はシリアル・パラレル変換回路である。受信FIFOは
データ・レジスタ303、ユース・ビット・レジスタ3
04、エンド・ビット・レジスタ305、および受信F
IFOの書き込み端に一番近いエンド・ビットを捜し出
す機能を持つプログラマブルなエンド・ビット検出回路
306から成る。また307はオーバーラン検出回路で
ある。
In the figure, 301 is an 8-bit flag detector, and 302
is a serial-to-parallel conversion circuit. Receive FIFO is data register 303, use bit register 3
04, end bit register 305, and receive F
It consists of a programmable end bit detection circuit 306 that has the function of finding the end bit closest to the write end of the IFO. Further, 307 is an overrun detection circuit.

実施例1と同様に、シリアルなデータを受信中に、ホス
ト・システムによる受信データYの読み出しが遅れると
、受信FIFO内に次々に受信データYがバッファリン
グされた最後には受信FIFOがオーバーフローシ、受
信オーバーランが発生する。受信オーバーランの発生は
、受信FIFOの書き込み端のユース・ビット・レジス
タ304に格納されているユース・ビット信号315と
書き込み信号312によりオーバーラン検出回路307
が検出し、これをホスト・システムへ受信オーバーラン
検出信号314で伝える。
Similarly to Embodiment 1, if the reading of received data Y by the host system is delayed while receiving serial data, the received data Y is buffered one after another in the receive FIFO, and eventually the receive FIFO overflows. , a reception overrun occurs. The occurrence of a reception overrun is detected by the overrun detection circuit 307 based on the use bit signal 315 stored in the use bit register 304 at the write end of the reception FIFO and the write signal 312.
detects and communicates this to the host system in a receive overrun detection signal 314.

受信しオーバーランによって、このときシリアル・パラ
レル変換回路302から受信FIFOのデータ・レジス
タ303に転送された受信データYを含む受信フレーム
は無効となる。受信オーバーラン検出信号314がアク
ティブになると、エンド・ビット検出回路306は受信
FIFOの書き込み端に一番近くにあるエンド・ビット
をエンド・ビット・レジスタ305の中から捜し出す。
Due to the reception overrun, the reception frame containing the reception data Y transferred from the serial-to-parallel conversion circuit 302 to the data register 303 of the reception FIFO at this time becomes invalid. When receive overrun detection signal 314 becomes active, end bit detection circuit 306 searches end bit register 305 for the end bit closest to the write end of the receive FIFO.

ホスト・システムがオーバーランを発生したフレームで
あっても、アドレス・フィールドやコントロール・フィ
ールド等を含む先頭から数バイトの情報を必要とする場
合、オーバーランを起こしたフレームすべてを削除せず
、先頭の数バイトを受信FIFOに残しておく必要があ
る。このためエンド・ビット検出回路306は、オーバ
ーランを起したフレームの中からあらかじめプログラム
された先頭データ数バイトを除き、残りの書き込み端側
にあるすべてのユース・ビット・レジスタ304をリセ
ットする。すなわち、オーバーランを起こしたフレーム
の先頭の数バイトを除くすべての受信データYに対応す
るユース・ビットをリセットすることになる。このとき
の、各レジスタの動作を図4に示す。図4では一例とし
て12段の受信FIF○を想定している。図2に示すよ
うにオーバーランが発生した直後には受信FIFOのデ
ータレジスタ303は受信データでフルであるからユー
ス・ビット・レジスタ304の各ビットはオールパ1″
′である。また、オーバーランを発生したフレームが3
フレーム目であるとすれば、エンド・ビット・レジスタ
305には直前に受信した2つのフレームのエンド・ビ
ットが“1″となっているはずである。オーバーランの
検出によりエンド・ビット検出回路306は書き込み端
に一番近いエンド・ビット、すなわち2フレーム目のエ
ンド・ビットを検出する。あらかじめ先頭の2バイトを
残すようにプログラムすると、エンド・ビットの検出に
より書き込み端からこのエンド・ビットの前2バイトま
での対応するユース・ビットはすべてリセットされる。
If the host system needs several bytes of information from the beginning of the frame, including the address field and control field, even if the host system has caused an overrun, it does not delete all the frames that caused the overrun. It is necessary to leave several bytes in the receive FIFO. Therefore, the end bit detection circuit 306 removes the preprogrammed leading data bytes from the frame in which the overrun has occurred, and resets all the remaining use bit registers 304 on the write end side. That is, the use bits corresponding to all received data Y except the first few bytes of the frame in which the overrun occurred are reset. FIG. 4 shows the operation of each register at this time. In FIG. 4, a 12-stage reception FIF is assumed as an example. As shown in FIG. 2, immediately after an overrun occurs, the data register 303 of the receive FIFO is full with received data, so each bit of the use bit register 304 is all par 1''.
′. Also, the frame in which the overrun occurred is 3
If it is the frame, the end bits of the two frames received immediately before should be "1" in the end bit register 305. By detecting the overrun, the end bit detection circuit 306 detects the end bit closest to the write end, that is, the end bit of the second frame. If the program is programmed in advance to leave the first two bytes, upon detection of the end bit, all corresponding use bits from the write end to the two bytes before the end bit are reset.

以上の操作により、受信FIFOの中から、オーバーラ
ンによって無効になったフレームのうち、先頭の必要な
情報だけを除きすべて削除し、残りのフレームは有効な
まま受信FIFO内に残されポスト・システムによって
読み出すことが可能となる。
By the above operation, all but the necessary information at the beginning of the frames invalidated by the overrun are deleted from the receive FIFO, and the remaining frames remain valid in the receive FIFO and the post system can be read by.

上記の手法により、ホスト・システムはHDLCフレー
ム・フォーマットで送られてきた受信データFIFOに
おいて受信オーバーランを発生しても、オーバーランを
発生した受信フレームだけが無効となり、受信FIFO
内にある他のすべての有効な受信フレームはホスト・シ
ステムによって読み出すことが可能となる。
With the above method, even if a receive overrun occurs in the receive data FIFO sent in the HDLC frame format, the host system invalidates only the receive frame that caused the overrun, and the receive FIFO
All other valid received frames within the host system can be read by the host system.

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

以上説明したように本発明によれば、受信オーバーラン
が発生したときに受信FIFO内に複数個の受信フレー
ムが存在した場合、オーバーランを発生した受信フレー
ムを除き、受信FIFO内にある他のすべての有効な受
信フレームの受信が可能である。
As explained above, according to the present invention, if a plurality of receive frames exist in the receive FIFO when a receive overrun occurs, other receive frames in the receive FIFO, excluding the receive frame that caused the overrun, Reception of all valid received frames is possible.

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

第1図は本発明を用いた一実施例のシステムの構成を示
すブロック図である。図中、番号で示しであるものは以
下のとおりである。 101・・・・・・フラグ検出回路、102・・・・・
・シリアル・パラレル変換回路、103・・・・・・デ
ータ・レジスタ、104・・・・・・ユース・ビット・
レジスタ、105・・・・・・エンド・ビット・レジス
タ、106・・・・・・エンド・ビット検出回路、10
7・・・・・・オーバーラン検出回路、108・・・・
・・受信信号X1109・・・・・・オーバーラン検出
信号、110・・・・・・受信信号、111・・・・・
・受信データY、112・・・・・・書き込み信号、1
13・・・・・・フレーム終了検出信号、114・・・
・・・オーバーラン検出信号、115・・・・・・ユー
ス・ビット信号、 第2図はオーバーラン発生時の各レジスタの状態を表し
たものである。 第3図は本発明を用いた実施例2のシステムの構成を示
すブロック図である。図中、番号で示しであるものは以
下のとおりである。 301・・・・・・フラグ検出回路、302・・・・・
・シリアル・パラレル変換回路、303・・・・・・デ
ータ・レジスタ、304・・・・・・ユース・ビット・
レジスタ、305・・・・・・エンド・ビット・レジス
タ、306・・・・・・エンド・ビット検出回路、30
7・・・・・・オーバーラン検出回路、308・・・・
・・受信信号X、309・・・・・・オーバーラン検出
信号、310・・・・・・受信信号、311・・・・・
・受信データY、312・・・・・・書き込み信号、3
13・・・・・・フレーム終了検出信号、314・・・
・・・オーバーラン検出信号、315・・・・・・ユー
ス・ビット信号。 第4図はオーバーラン発生時の各レジスタの状態を表し
たものである。 第5図は従来例のシステムの構成を示すブロック図であ
る。 501・・・・・・フラグ検出回路、502・・・・・
・シリアル・パラレル変換回路、503・・・・・・デ
ータ・レジスタ、504・・・・・・ユース・ビット・
レジスタ、505・・・・・・エンド・ビット・レジス
タ、506・・・・・・オーバーラン検出回路、507
・・・・・・受信信号X、508・・・・・・フラグ検
出信号、509・・・・・・受信信号、510・・・・
・・受信データY、511・・・・・・書き込み信号、
512・・・・・・フレーム終了検出信号、513・・
・・・・オーバーラン検出信号、514・・・・・・ユ
ース・ビット信号。 代理人 弁理士  内 原   晋
FIG. 1 is a block diagram showing the configuration of an embodiment of a system using the present invention. In the figure, the numbers indicated are as follows. 101... Flag detection circuit, 102...
・Serial/parallel conversion circuit, 103... Data register, 104... Use bit...
Register, 105... End bit register, 106... End bit detection circuit, 10
7... Overrun detection circuit, 108...
...Received signal X1109...Overrun detection signal, 110...Received signal, 111...
・Received data Y, 112...Write signal, 1
13... Frame end detection signal, 114...
. . . Overrun detection signal, 115 . . . Use bit signal, FIG. 2 shows the state of each register when an overrun occurs. FIG. 3 is a block diagram showing the configuration of a system according to a second embodiment of the present invention. In the figure, the numbers indicated are as follows. 301...Flag detection circuit, 302...
・Serial/parallel conversion circuit, 303... Data register, 304... Use bit...
Register, 305... End bit register, 306... End bit detection circuit, 30
7... Overrun detection circuit, 308...
... Received signal X, 309 ... Overrun detection signal, 310 ... Received signal, 311 ...
・Received data Y, 312...Write signal, 3
13... Frame end detection signal, 314...
... Overrun detection signal, 315 ... Use bit signal. FIG. 4 shows the state of each register when an overrun occurs. FIG. 5 is a block diagram showing the configuration of a conventional system. 501... Flag detection circuit, 502...
・Serial/parallel conversion circuit, 503... Data register, 504... Use bit...
Register, 505... End bit register, 506... Overrun detection circuit, 507
......Received signal X, 508...Flag detection signal, 509...Received signal, 510...
...Received data Y, 511...Write signal,
512... Frame end detection signal, 513...
...Overrun detection signal, 514...Use bit signal. Agent Patent Attorney Susumu Uchihara

Claims (1)

【特許請求の範囲】[Claims] シリアル・データ通信において、定まったデータ通信プ
ロトコルに従いまとまったデータ・ブロック毎に送信さ
れてくるシリアルな信号Xを受信する受信回路において
、前記信号Xをnビット単位のパラレル・データYに変
換するシリアル・パラレル変換回路と、前記データY格
納するFIFO構成のデータ・レジスタ、前記データ・
レジスタに有効なデータYが存在することを示すユース
・ビット・レジスタ、前記データ・レジスタに格納され
ている前記データYが前記データ・ブロックの最後のデ
ータであることを示すエンド・ビット・レジスタ、前記
データ・レジスタの中から最後に書き込まれたエンド・
ビットを検出するエンド・ビット検出回路、及び前記デ
ータ・レジスタがオーバーフローしたことを検出するオ
ーバーラン検出回路を有し、前記データ・レジスタにお
いてオーバーランが発生したとき、前記データ・レジス
タの中から前記オーバーランを発生した前記データ・ブ
ロックのみを削除することを特徴とする受信FIFO制
御回路。
In serial data communication, in a receiving circuit that receives a serial signal X transmitted in units of data blocks according to a fixed data communication protocol, a serial signal converts the signal・A parallel conversion circuit, a FIFO-configured data register that stores the data Y, and a data register that stores the data Y.
a use bit register indicating that valid data Y exists in the register; an end bit register indicating that the data Y stored in the data register is the last data of the data block; The last written end value from the data register.
It has an end bit detection circuit that detects a bit, and an overrun detection circuit that detects that the data register has overflowed, and when an overrun occurs in the data register, the A reception FIFO control circuit, characterized in that it deletes only the data block in which an overrun has occurred.
JP62289907A 1987-11-16 1987-11-16 Received fifo control circuit Pending JPH01129635A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62289907A JPH01129635A (en) 1987-11-16 1987-11-16 Received fifo control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62289907A JPH01129635A (en) 1987-11-16 1987-11-16 Received fifo control circuit

Publications (1)

Publication Number Publication Date
JPH01129635A true JPH01129635A (en) 1989-05-22

Family

ID=17749313

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62289907A Pending JPH01129635A (en) 1987-11-16 1987-11-16 Received fifo control circuit

Country Status (1)

Country Link
JP (1) JPH01129635A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003530735A (en) * 1999-11-15 2003-10-14 サン・マイクロシステムズ・インコーポレイテッド Method and apparatus for detecting ring buffer flow errors

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003530735A (en) * 1999-11-15 2003-10-14 サン・マイクロシステムズ・インコーポレイテッド Method and apparatus for detecting ring buffer flow errors

Similar Documents

Publication Publication Date Title
US5228129A (en) Synchronous communication interface for reducing the effect of data processor latency
JPH01129635A (en) Received fifo control circuit
EP0299265A2 (en) Receiver synchronization in encoder/decoder
JPH0479422A (en) Transmission control circuit
JPH0198348A (en) Serial data receiving circuit
JP2759984B2 (en) Signal transfer device
JPH0369244A (en) Data reception control circuit
JPS59123333A (en) System for converting data transfer speed
JPH04260254A (en) Digital data transfer system in hdlc asynchronous mode
JP3164996B2 (en) Serial data receiving device
JP2630077B2 (en) Clock synchronous serial interface
JPH06268707A (en) Data length conversion circuit
JP2511697B2 (en) Data receiver
KR100198789B1 (en) Receiving connecting network interface structure
JPH0326136A (en) Reception fifo control circuit
JPH0433416A (en) Serial transmission p/s converter
JPH0191543A (en) Serial data transfer system
JPH02278942A (en) Line data reception system
JPH0822380A (en) Printer controller
KR970010157B1 (en) Matching apparatus for transmitting sdlc/hdlc data frame to tokening controlling bus
JPH03150943A (en) Communication equipment
JPH0260373A (en) Encoding circuit for facsimile equipment
JPH02250453A (en) Data receiver
JPH023345B2 (en)
JPH01315849A (en) Information processor