JPH05122253A - Line controller - Google Patents

Line controller

Info

Publication number
JPH05122253A
JPH05122253A JP3275346A JP27534691A JPH05122253A JP H05122253 A JPH05122253 A JP H05122253A JP 3275346 A JP3275346 A JP 3275346A JP 27534691 A JP27534691 A JP 27534691A JP H05122253 A JPH05122253 A JP H05122253A
Authority
JP
Japan
Prior art keywords
data
register
buffer
read
stored
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
JP3275346A
Other languages
Japanese (ja)
Inventor
Kazuho Sakamoto
和穂 坂本
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP3275346A priority Critical patent/JPH05122253A/en
Publication of JPH05122253A publication Critical patent/JPH05122253A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To provide the line controller with high reliability especially in the case of high speed transmission by implementing smoothly hand-shake between the line controller and a processor. CONSTITUTION:The line controller provided with a read/write means storing communication data sent/received synchronously with a transfer speed of the communication data sent through a communication line tentatively in a buffer 3 and implementing read/write of the data stored in the buffer 3 and with a counter 2 counting data quantity stored in the buffer 3 is featured to be devised in such a way that a count of the counter 2 is stored to any of plural registers 15 storing the count of the counter 2 upon the receipt of frame end data included in the communication data and the count stored in the register 15 is sent when a read signal sent from the read/write means is applied to the line controller.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、データ通信機器であっ
てデータ送受信にFIFOバッファを用いる回線制御装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a line control device which is a data communication device and uses a FIFO buffer for data transmission and reception.

【0002】[0002]

【従来の技術】通信回線を介して伝送される通信データ
の転送速度に同期して、送受信する通信データを一時的
にバッファに蓄積し、当該バッファへのデータ蓄積速度
と異なる速度にて上記通信データの読出し及び書込みを
行う読出/書込手段を備えた回線制御装置において、回
線制御装置とプロセッサ間のハンドシェイクは一般的に
回線制御側からのアクションに対してプロセッサ側がリ
アクションを起こす形をとる。例えば特開昭62−22
5050号公報には図5に示す構成からなる回線制御装
置が開示されている。即ち図5において、電気通信回線
から供給される直列信号をnビット毎に並列信号に変換
する直列/並列変換器4は、上記nビットの並列データ
を1ワードとして記憶する先入れ先出し(以下FIFO
と記す)メモリ3に接続される。又、直列/並列変換器
4が送出する書込み要求ストローブパルス信号は、アッ
プダウンカウンタ2のアップカウント端子に接続される
AND回路6に送出される。尚、AND回路6の出力側
はFIFOメモリ3にも接続されている。
2. Description of the Related Art In synchronism with the transfer rate of communication data transmitted via a communication line, the communication data to be transmitted and received is temporarily stored in a buffer, and the communication is performed at a speed different from the data storage speed in the buffer. In a line controller equipped with a read / write means for reading and writing data, the handshake between the line controller and the processor generally takes a form in which the processor side reacts to the action from the line controller. .. For example, JP-A-62-22
Japanese Patent No. 5050 discloses a line control device having the configuration shown in FIG. That is, in FIG. 5, a serial / parallel converter 4 for converting a serial signal supplied from a telecommunication line into a parallel signal for every n bits is a first-in first-out (hereinafter FIFO) storing the n-bit parallel data as one word.
Connected to the memory 3. The write request strobe pulse signal sent from the serial / parallel converter 4 is sent to the AND circuit 6 connected to the up-count terminal of the up-down counter 2. The output side of the AND circuit 6 is also connected to the FIFO memory 3.

【0003】一方、AND回路6の他の入力端子には、
アップダウンカウンタ2の出力データをインバータ8に
より反転したデータが供給される。アップダウンカウン
タ2の出力値が7以下の場合には、アップダウンカウン
タ2の出力データはAND回路6を通過し、アップダウ
ンカウンタ2のカウント値をカウントアップさせ、又F
IFOメモリ3にも送出される。よってFIFOメモリ
3は、直列/並列変換器4が送出するワードデータを格
納する。このようにしてFIFOメモリ3には複数のワ
ードデータが格納される。
On the other hand, the other input terminal of the AND circuit 6 is
Data obtained by inverting the output data of the up / down counter 2 by the inverter 8 is supplied. When the output value of the up / down counter 2 is 7 or less, the output data of the up / down counter 2 passes through the AND circuit 6, and the count value of the up / down counter 2 is counted up.
It is also sent to the IFO memory 3. Therefore, the FIFO memory 3 stores the word data sent by the serial / parallel converter 4. In this way, the FIFO memory 3 stores a plurality of word data.

【0004】プロセッサ1はバス5を介して入力部7に
接続され、又、アップダウンカウンタ2の出力側は入力
部7に接続される。よってプロセッサ1は入力部7とア
クセスすることでアップダウンカウンタ2のカウント値
を読み出すことができる。上記カウント値が1ないし7
であればFIFOメモリ3には読み出すワードデータが
あるとプロセッサ1は判断し、アップダウンカウンタ2
のダウンカウント端子に接続されるAND回路9へ読出
し要求ストローブパルス信号を送出する。AND回路9
の他の入力端子には、アップダウンカウンタ2の出力デ
ータがインバータ10にて反転され供給される3入力N
AND回路11の出力側が接続されており、AND回路
9は、アップダウンカウンタ2の出力データが1以上の
ときには当該出力データを通過させる。又、AND回路
9の出力側はFIFOメモリ3にも接続されており、A
ND回路9よりデータが送出されるときにはアップダウ
ンカウンタ2のカウント値はカウントダウンし、FIF
Oメモリ3へ読み出しストローブパルス信号として供給
され、プロセッサ1はFIFOメモリ3からワードデー
タを読み出すことができる。このように従来の回路制御
装置では、FIFOメモリ3の使用段数をアップダウン
カウンタ2によってプロセッサ1は認識することができ
る。
The processor 1 is connected to the input unit 7 via the bus 5, and the output side of the up / down counter 2 is connected to the input unit 7. Therefore, the processor 1 can read the count value of the up / down counter 2 by accessing the input unit 7. The count value is 1 to 7
If so, the processor 1 determines that there is word data to be read in the FIFO memory 3, and the up / down counter 2
The read request strobe pulse signal is sent to the AND circuit 9 connected to the down count terminal of the. AND circuit 9
3 input N to which the output data of the up / down counter 2 is inverted and supplied by the inverter 10 to the other input terminal of
The output side of the AND circuit 11 is connected, and the AND circuit 9 allows the output data of the up / down counter 2 to pass when the output data is 1 or more. The output side of the AND circuit 9 is also connected to the FIFO memory 3,
When data is sent from the ND circuit 9, the count value of the up / down counter 2 counts down, and
The read strobe pulse signal is supplied to the O memory 3, and the processor 1 can read the word data from the FIFO memory 3. As described above, in the conventional circuit control device, the processor 1 can recognize the number of used stages of the FIFO memory 3 by the up / down counter 2.

【0005】[0005]

【発明が解決しようとする課題】今、図6に示すような
連続フレームのデータを受信する場合を考える。この場
合、フラグを受け取った後に回線制御側からインタラプ
トが発呼されるが、プロセッサ1が直ちにリアクション
を起こせない状態にあるとき、例えばプロセッサ1がシ
ステム内部の制御をも担っていて、そちらの優先順位の
方が高いような場合、図7に示すように、既に第2フレ
ームの最初のnバイトを受信した後にアップダウンカウ
ンタ2のカウント値をリードするような事態が十分起こ
り得る。
Now, consider the case where data of consecutive frames as shown in FIG. 6 is received. In this case, an interrupt is called from the line control side after receiving the flag, but when the processor 1 is in a state where it is not possible to immediately make a reaction, for example, the processor 1 is also in charge of the control inside the system and its priority is given. If the rank is higher, as shown in FIG. 7, a situation may occur in which the count value of the up / down counter 2 is read after the first n bytes of the second frame have already been received.

【0006】こうした場合、プロセッサ1がFIFOメ
モリ3から読み出せずに残っている上記第1フレームに
関するデータのデータ量が実際には例えばaバイトであ
るのに、プロセッサ1は第1フレームから読み出し得る
バイト量がa+nバイトであると誤認識してしまい、第
1、第2フレームのデータ解読後に無効データ受信とし
て処理してしまうという問題点がある。
In such a case, the processor 1 can read from the first frame although the data amount of the data relating to the first frame which remains without being read from the FIFO memory 3 is actually a byte, for example. There is a problem in that the byte amount is erroneously recognized as a + n bytes, and the data is processed as invalid data reception after decoding the data of the first and second frames.

【0007】又、図5に示すような従来の回線制御装置
の使用方法としては、(i)図5の回路とは別に1フレー
ム分のバイト数をカウントする巨大なカウンタとレジス
タを設け、プロセッサ1がフレームエンドを受けたと
き、そのレジスタをリード後、内部演算により第1フレ
ームのデータの終わりを判断する方法、(ii)フレーム毎
にフレーム内のデータバイト数が情報として与えられる
プロトコル、例えばHDLC等を利用して1フレーム受
信中はその値を保持して内部演算により第1フレームの
データの終わりを判断する方法、等が考えられる。
Further, as a method of using the conventional line control device as shown in FIG. 5, (i) a huge counter and a register for counting the number of bytes of one frame are provided separately from the circuit of FIG. When 1 receives a frame end, a method of determining the end of the data of the first frame by an internal operation after reading the register, (ii) a protocol in which the number of data bytes in the frame is given as information, for example, A method of using HDLC or the like to hold the value during the reception of one frame and determining the end of the data of the first frame by an internal calculation is considered.

【0008】上記(i)の方法は図8に示すような動作を
行う。主な動作を説明するとステップ(図内ではSにて
示す)1にてソフトウエアカウンタを0とし、FIFO
メモリ3の格納データを読み出す毎にステップ5にて上
記ソフトウエアカウンタの計数値に1を加えソフトウエ
アカウンタの計数値をカウントアップしていく。そし
て、FIFOメモリ3の格納データがなくなり、受信デ
ータにおけるフレームエンド信号を受信するとステップ
9にてフレームカウンタの計数値からソフトウエアカウ
ンタの計数値を減算して計数値Cnt'を得、当該計数値
Cnt'が0になった時点で1フレームの受信を完了す
る。
The above method (i) operates as shown in FIG. The main operation will be explained. In step (indicated by S in the figure), the software counter is set to 0 and the FIFO
Each time the data stored in the memory 3 is read, at step 5, the count value of the software counter is incremented by 1 and the count value of the software counter is incremented. When the data stored in the FIFO memory 3 is exhausted and the frame end signal in the received data is received, the count value of the software counter is subtracted from the count value of the frame counter in step 9 to obtain the count value Cnt ', and the count value concerned. When Cnt 'becomes 0, reception of one frame is completed.

【0009】又、上記(ii)の方法は図9に示すような動
作を行い、ステップ6及び7にて上述したように、プロ
トコルを利用して1フレーム受信中はデータバイト数値
を保持し、ステップ9にて上記データバイト数値からソ
フトウエアカウンタ値を減算し計数値Cnt'を得、当該
計数値Cnt'が0になった時点で1フレームの受信を完
了する。
Further, the method (ii) performs the operation as shown in FIG. 9, and as described in steps 6 and 7, holds the data byte numerical value during one frame reception using the protocol, In step 9, the software counter value is subtracted from the data byte value to obtain the count value Cnt ', and when the count value Cnt' becomes 0, the reception of one frame is completed.

【0010】しかし上記(i)の方法は、ハードウエア+
ソフトウエアによる解決方法だが、ハードウエア量が増
大し、又、内部演算のために時間を要し、その分プロセ
ッサ1にも負担がかかるという問題点がある。一方上記
(ii)の方法は、ソフトウエアによる解決方法であるが、
プロトコルに依存しており、伝送誤りによるデータバイ
ト数の誤認識という新たな要因が加味される。又、上述
したように内部演算のための問題点もある。本発明は上
述したような問題点を解決するためになされたもので、
回線制御装置とプロセッサ間のハンドシェイクを円滑に
行い、特に高速伝送を行う場合に信頼性の高い回線制御
装置を提供することを目的とする。
However, the above method (i) requires hardware +
Although it is a solution by software, there are problems that the amount of hardware increases and that internal calculation requires time, and the processor 1 is burdened accordingly. While above
Method (ii) is a software solution,
It depends on the protocol, and a new factor of erroneous recognition of the number of data bytes due to transmission error is added. Further, as described above, there is a problem due to the internal calculation. The present invention has been made to solve the above problems,
It is an object of the present invention to provide a highly reliable line control device that smoothly performs a handshake between the line control device and a processor and particularly when performing high-speed transmission.

【0011】[0011]

【課題を解決するための手段】本発明は、通信回線を伝
送される通信データの転送速度に同期して送受信する通
信データをバッファに一時蓄積し、上記バッファへの蓄
積速度と異なる速度にて上記バッファから上記蓄積した
データの読出し及び書込み動作を行う読出/書込手段
と、上記バッファに蓄積されているデータ量を計数する
カウンタとを備えた回線制御装置において、上記カウン
タの計数値を保持する複数のレジスタと、上記通信デー
タに含まれるフレームエンドデータが供給されたとき、
上記カウンタの計数値を格納させる上記レジスタを選択
するレジスタ選択手段と、上記読出/書込手段が送出す
る読出信号が供給されたとき、上記レジスタ選択手段に
て選択されたレジスタから当該レジスタに格納されてい
る計数値を送出させる計数値送出手段と、を備えたこと
を特徴とし、さらに上記の構成要件に加え、本発明は、
上記通信データに含まれるフレームエンドデータが供給
されたときインタラプト信号を発生するインタラプト制
御部と、上記バッファの記憶容量の残量を格納する残量
レジスタとを備え、上記読出/書込手段は上記残量レジ
スタに格納される残量を読み込み、当該残量に相当する
量の上記通信データを上記バッファに記憶させることを
特徴とする。
According to the present invention, communication data transmitted and received in synchronization with the transfer rate of communication data transmitted through a communication line is temporarily stored in a buffer, and at a speed different from the storage speed in the buffer. In a line control device having a read / write means for reading and writing the stored data from the buffer and a counter for counting the amount of data stored in the buffer, the count value of the counter is held. When multiple frame registers and frame end data included in the communication data are supplied,
When a register selection means for selecting the register for storing the count value of the counter and a read signal sent by the read / write means are supplied, the register selected by the register selection means is stored in the register. And a count value sending means for sending the count value stored therein, and in addition to the above-mentioned constituent features, the present invention provides
The read / write means includes: an interrupt control unit that generates an interrupt signal when frame end data included in the communication data is supplied; and a remaining amount register that stores the remaining amount of the storage capacity of the buffer. The remaining amount stored in the remaining amount register is read, and the amount of the communication data corresponding to the remaining amount is stored in the buffer.

【0012】このような構成を採ることで、レジスタ選
択手段にて選択されたレジスタは、通信回線を伝送され
る通信データの転送速度に同期して送受信する通信デー
タの量を計数するカウンタの計数値を格納する。計数値
送出手段は、読出/書込手段が送出する読出信号が供給
されたとき、上記レジスタに格納されている上記計数値
を当該レジスタから送出させる。よって、当該高速回線
制御装置は、連続フレーム受信においてフレーム区切り
を容易に認識することができ高速伝送制御の信頼性を高
めるように作用する。
By adopting such a configuration, the register selected by the register selecting means is a counter for counting the amount of communication data transmitted / received in synchronization with the transfer rate of the communication data transmitted through the communication line. Stores a numerical value. The count value sending means sends the count value stored in the register from the register when the read signal sent by the read / write means is supplied. Therefore, the high-speed line control device can easily recognize the frame delimiters in continuous frame reception, and acts to enhance the reliability of high-speed transmission control.

【0013】又、インタラプト制御部は、フレームエン
ドデータが供給されたときインタラプト信号を上記読出
/書込手段に送出し、該読出/書込手段は残量レジスタに
格納されるバッファ記憶容量の残量データを読み込む。
よって、これらの構成部分と備えることは、フレーム区
切りを容易に認識できるので、当該回線制御装置内の演
算等のソフト負荷を軽減するように作用する。
Further, the interrupt control section reads the interrupt signal when the frame end data is supplied.
The read / write means reads out the remaining amount data of the buffer storage capacity stored in the remaining amount register.
Therefore, the provision of these components makes it possible to easily recognize the frame delimiters, and thus acts to reduce the software load such as calculation in the line control device.

【0014】[0014]

【実施例】本発明の回線制御装置の一実施例を示す図1
において、図5と同じ構成部分については同じ符号を付
しその説明を省略する。フレームの終わりを示す信号で
あって受信データに含まれるフレームエンドパルス信号
が供給されることでフレームエンド時におけるアップダ
ウンカウンタ2の値を保持するレジスタ群及びセレクト
制御回路15にアップダウンカウンタ2の出力側は接続
され、レジスタ群及びセレクト制御回路15の出力側
は、バス5に接続される。又、上記フレームエンドパル
ス信号はインタラプト制御回路16にも供給され、イン
タラプト制御回路16はフレームエンドパルス信号が装
置に供給された旨の信号をプロセッサ1送出する。又、
プロセッサ1の出力側は、リードセレクタ30を介して
AND回路9、インタラプト制御回路16、レジスタ群
及びセレクト制御回路15に接続される。リードセレク
タ30は、例えば図3に示すような回路構成からなり、
FIFOメモリ3あるいはレジスタ群及びセレクト制御
回路15のいずれからデータを読み出すかを選択するセ
レクト信号及び読出ストローブ信号がプロセッサ1から
供給され、上記セレクト信号によりFIFOメモリ3あ
るいはレジスタ群及びセレクト制御回路15のどちらか
に上記リードストローブ信号を送出する。尚、リードセ
レクタ30からレジスタ群及びセレクト制御回路15へ
送出される読出ストローブパルス信号はインタラプト制
御回路16にも送出される。
FIG. 1 shows an embodiment of the line control device of the present invention.
5, the same components as those in FIG. 5 are designated by the same reference numerals and the description thereof will be omitted. When the frame end pulse signal included in the received data, which is a signal indicating the end of the frame, is supplied, the register group that holds the value of the up / down counter 2 at the frame end and the select control circuit 15 are connected to the up / down counter 2. The output side is connected, and the output side of the register group and the select control circuit 15 is connected to the bus 5. The frame end pulse signal is also supplied to the interrupt control circuit 16, and the interrupt control circuit 16 sends out a signal indicating that the frame end pulse signal has been supplied to the processor 1. or,
The output side of the processor 1 is connected to the AND circuit 9, the interrupt control circuit 16, the register group and the select control circuit 15 via the read selector 30. The read selector 30 has, for example, a circuit configuration as shown in FIG.
A select signal and a read strobe signal for selecting which of the FIFO memory 3 or the register group and the select control circuit 15 should read the data are supplied from the processor 1, and the select signal causes the FIFO memory 3 or the register group and the select control circuit 15 to read. The read strobe signal is sent to either one. The read strobe pulse signal sent from the read selector 30 to the register group and the select control circuit 15 is also sent to the interrupt control circuit 16.

【0015】レジスタ群及びセレクト制御回路15は、
例えば図2に示すように、フリップフロップ17及び1
8、4ビットレジスタ19及び20、バッファ群26及
び27にて構成される。尚、本実施例では、アップダウ
ンカウンタ2のカウントビット幅は4ビット、即ちFI
FOメモリ3の最大許容データ量が16バイト、FIF
Oメモリ3内に何フレーム分のデータを記憶可能かを示
す許容最大連続フレーム数が3の場合を示している。ア
ップダウンカウンタ2のカウント値出力端子は、レジス
タ19及び20のデータ入力端子にそれぞれパラレルに
接続され、レジスタ19のデータ出力端子は、OR回路
25が送出する制御信号にて動作が制御される4ビット
分のバッファから構成されるバッファ群26にパラレル
に接続され、同様に、レジスタ20のデータ出力端子
は、OR回路24が送出する制御信号にて動作が制御さ
れる4ビット分のバッファ群27にパラレルに接続され
る。これらバッファ群26及び27のそれぞれの出力側
は、バス5に接続される。
The register group and select control circuit 15 are
For example, as shown in FIG. 2, flip-flops 17 and 1
It is composed of 8- and 4-bit registers 19 and 20, and buffer groups 26 and 27. In this embodiment, the count bit width of the up / down counter 2 is 4 bits, that is, FI.
Maximum allowable data amount of FO memory 3 is 16 bytes, FIF
This shows a case where the maximum allowable number of consecutive frames, which indicates how many frames of data can be stored in the O memory 3, is 3. The count value output terminal of the up / down counter 2 is connected in parallel to the data input terminals of the registers 19 and 20, respectively, and the operation of the data output terminal of the register 19 is controlled by the control signal sent from the OR circuit 25. The data output terminal of the register 20 is connected in parallel to a buffer group 26 composed of buffers for bits, and similarly, the data output terminal of the register 20 has a buffer group 27 for 4 bits whose operation is controlled by a control signal sent from the OR circuit 24. Are connected in parallel. The output side of each of the buffer groups 26 and 27 is connected to the bus 5.

【0016】クロックパルス信号として上記フレームエ
ンドパルス信号がインバータ21を介して供給されるフ
リップフロップ17の出力データ端子は、出力側がレジ
スタ19のクロック入力端子に接続されるAND回路2
2に接続される。AND回路22の他の入力端子には上
記フレームエンドパルス信号が供給される。又、フリッ
プフロップ17の反転出力データ端子は、フリップフロ
ップ17の入力端子とともに、出力側がレジスタ20の
クロック入力端子に接続されるAND回路23に接続さ
れる。よって、フレームエンドパルス信号が供給されフ
リップフロップ17の出力信号によって信号レベルが変
化するAND回路22及び23の出力信号により、レジ
スタ19あるいは20のいずれかのレジスタにアップダ
ウンカウンタ2のカウント値が格納される。
The output data terminal of the flip-flop 17 to which the frame end pulse signal is supplied as a clock pulse signal through the inverter 21 has an AND circuit 2 whose output side is connected to the clock input terminal of the register 19.
Connected to 2. The frame end pulse signal is supplied to the other input terminal of the AND circuit 22. The inverted output data terminal of the flip-flop 17 is connected to the AND circuit 23 whose output side is connected to the clock input terminal of the register 20 together with the input terminal of the flip-flop 17. Therefore, the count value of the up / down counter 2 is stored in one of the registers 19 or 20 by the output signals of the AND circuits 22 and 23 whose frame end pulse signal is supplied and whose signal level is changed by the output signal of the flip-flop 17. To be done.

【0017】一方、プロセッサ1が送出する読出しスト
ローブパルス信号の反転信号(以下反転読出しストロー
ブパルス信号と記す)がクロックパルス信号入力端子に
供給されるフリップフロップ18の出力データ端子はO
R回路24に接続される。OR回路24の他の入力端子
には上記反転読出しストローブパルス信号が供給され、
OR回路24の出力側は、上述したように、バッファ群
27を構成する各バッファの制御端子に接続される。
又、フリップフロップ18の反転出力データ端子は、フ
リップフロップ18の入力端子とともにOR回路25に
接続される。OR回路25の他の入力端子には上記読出
しストローブパルス信号の反転信号が供給され、OR回
路25の出力側は、上述したように、バッファ群26を
構成する各バッファの制御端子に接続される。よって、
プロセッサ1が送出する反転読出しストローブパルス信
号によりフリップフロップ18の出力データが変化し、
それによるOR回路24及び25の出力信号の変化にて
レジスタ19あるいは20のどちらかの格納値のバス5
への送出が制御される。
On the other hand, the output data terminal of the flip-flop 18 to which the inverted signal of the read strobe pulse signal (hereinafter referred to as the inverted read strobe pulse signal) sent from the processor 1 is supplied to the clock pulse signal input terminal is O.
It is connected to the R circuit 24. The inverted read strobe pulse signal is supplied to the other input terminal of the OR circuit 24,
As described above, the output side of the OR circuit 24 is connected to the control terminal of each buffer forming the buffer group 27.
The inverted output data terminal of the flip-flop 18 is connected to the OR circuit 25 together with the input terminal of the flip-flop 18. An inverted signal of the read strobe pulse signal is supplied to the other input terminal of the OR circuit 25, and the output side of the OR circuit 25 is connected to the control terminal of each buffer forming the buffer group 26 as described above. .. Therefore,
The output data of the flip-flop 18 is changed by the inverted read strobe pulse signal sent from the processor 1,
When the output signals of the OR circuits 24 and 25 change accordingly, the bus 5 of the stored value of either the register 19 or 20
Is controlled.

【0018】このように構成される本発明の高速回線制
御装置の動作を図4を参照し以下に説明する。尚、通信
データのFIFOメモリ3への格納読出動作及び格納読
出動作時におけるアップダウンカウンタ2のカウント動
作は上述した場合と同様であるので説明は省略する。装
置に通信データが供給され、ステップ2にて当該通信デ
ータ内のフレームエンドパルス信号がフリップフロップ
17に供給されたとき、フリップフロップ17の出力信
号によりAND回路22あるいは23のどちらかから信
号が送出され、AND回路22,23に対応するレジス
タ19あるいは20のどちらかにアップダウンカウンタ
2のカウント値が格納される。尚、いづれのレジスタに
上記カウント値が格納されるかは、フリップフロップ1
7が初期状態でセット状態のものか、あるいはリセット
状態のものかにより定まるものであり、装置の回路設計
による。尚、フレームエンドパルス信号はインタラプト
制御回路16にも供給され、インタラプト制御回路16
より供給される信号によりプロセッサ1はフレームエン
ドパルス信号が何回供給されたか認識することができ
る。
The operation of the high-speed line control device of the present invention constructed as above will be described below with reference to FIG. The operation of storing / reading the communication data into / from the FIFO memory 3 and the counting operation of the up / down counter 2 during the storage / reading operation are the same as those described above, and therefore the description thereof will be omitted. When the communication data is supplied to the device and the frame end pulse signal in the communication data is supplied to the flip-flop 17 in step 2, a signal is sent from either the AND circuit 22 or 23 by the output signal of the flip-flop 17. Then, the count value of the up / down counter 2 is stored in either the register 19 or 20 corresponding to the AND circuits 22 and 23. It is to be noted that which of the registers stores the count value is determined by the flip-flop 1
7 depends on whether it is in the set state or the reset state in the initial state, and depends on the circuit design of the device. The frame end pulse signal is also supplied to the interrupt control circuit 16,
The signal supplied by the processor 1 allows the processor 1 to recognize how many times the frame end pulse signal has been supplied.

【0019】ステップ5にて、レジスタ19あるいは2
0に格納されたカウント値をプロセッサ1が読み出す場
合、プロセッサ1は、インタラプト制御回路16から最
初のフレームエンドのインタラプト信号を受けたとき、
リードセレクタ30を介して読出しストローブパルス信
号をレジスタ群及びセレクト制御回路15内のフリップ
フロップ18に送出する。よって、このときはバッファ
27のみが開き、レジスタ20の格納データがバス5へ
送出される。そして読出しストローブパルス信号の立ち
上がり、即ち読み出し動作終了と同時、にフリップフロ
ップ18の出力信号のレベルが反転する。次に、フレー
ムエンドパルス信号が発呼されたとき、プロセッサ1の
読出しストローブパルス信号によりバッファ26のみ開
き、レジスタ19の格納データがバス5へ送出される。
このように、プロセッサ1は読出しストローブパルス信
号を送出するだけで読み出されるレジスタがレジスタ2
0、レジスタ19、レジスタ20の順に変化するので、
プロセッサ1はどのレジスタにアクセスすべきかを意識
する必要がなくなる。
In step 5, register 19 or 2
When the processor 1 reads the count value stored in 0, when the processor 1 receives the first frame end interrupt signal from the interrupt control circuit 16,
The read strobe pulse signal is sent to the register group and the flip-flop 18 in the select control circuit 15 via the read selector 30. Therefore, at this time, only the buffer 27 is opened and the data stored in the register 20 is sent to the bus 5. The level of the output signal of the flip-flop 18 is inverted at the rising edge of the read strobe pulse signal, that is, at the same time when the read operation is completed. Next, when the frame end pulse signal is issued, only the buffer 26 is opened by the read strobe pulse signal of the processor 1, and the data stored in the register 19 is sent to the bus 5.
In this way, the processor 1 can read out the register by simply sending the read strobe pulse signal.
Since 0, register 19 and register 20 change in this order,
The processor 1 does not need to be aware of which register should be accessed.

【0020】尚、フリップフロップ18はフリップフロ
ップ17と初期状態が同じものが選択される。例えばフ
リップフロップ17がリセット状態のものであればフリ
ップフロップ18もリセット状態のものを選択する。よ
って、最後にフレームエンドパルス信号が装置に供給さ
れたときのアップダウンカウンタ2のカウント値を格納
しているレジスタから当該カウント値が読み出されバス
5を介してプロセッサ1に供給される。
As the flip-flop 18, one having the same initial state as that of the flip-flop 17 is selected. For example, if the flip-flop 17 is in the reset state, the flip-flop 18 is also selected in the reset state. Therefore, the count value is read from the register which stores the count value of the up / down counter 2 when the frame end pulse signal is finally supplied to the device, and is supplied to the processor 1 via the bus 5.

【0021】このように本高速回線制御装置では、フレ
ームエンド時におけるアップダウンカウンタ2の現在の
カウント値、即ちFIFOメモリ3の残りバイト数は、
レジスタ群及びセレクト制御装置15内のレジスタに保
持しているので、連続フレーム受信において容易にフレ
ーム区切りをプロセッサ1が認識でき、高速伝達制御の
信頼性を向上させることができる。又、フレームエンド
時にフレーム残りバイトレジスタの格納値を読み出すこ
とで容易にプロセッサ1がフレーム区切りを認識するこ
とができるので、図8及び図9に示すステップ5にて行
う、内部演算などのソフト負荷を軽減でき、円滑なバッ
ファ、FIFOメモリ間のハンドシェイクを行うことが
できる。
As described above, in the present high-speed line control device, the current count value of the up / down counter 2 at the frame end, that is, the number of remaining bytes of the FIFO memory 3 is
Since the registers are held in the register group and the register in the select control device 15, the processor 1 can easily recognize the frame delimiters in continuous frame reception, and the reliability of high-speed transmission control can be improved. Further, since the processor 1 can easily recognize the frame delimiter by reading the value stored in the remaining frame byte register at the end of the frame, the software load such as internal calculation performed in step 5 shown in FIG. 8 and FIG. And a smooth handshake between the buffer and the FIFO memory can be performed.

【0022】尚、上記実施例では、レジスタ群及びセレ
クト制御回路15には4ビットのレジスタを2つ設けた
が、勿論これに限るものではなく、レジスタのビット数
を変更することでFIFOメモリのデータ容量の変化に
対応することができ、又、レジスタの個数を増やすこと
により許容最大連続フレーム数を増やすことができる。
In the above embodiment, the register group and the select control circuit 15 are provided with two 4-bit registers. However, the number of bits of the registers is not limited to this, and the FIFO memory of the FIFO memory can be changed. It is possible to cope with a change in data capacity, and it is possible to increase the maximum allowable number of consecutive frames by increasing the number of registers.

【0023】[0023]

【発明の効果】以上詳述したように本発明によれば、フ
レームエンドデータが供給されたとき、通信データ量の
計数値はレジスタに保持していることより、連続フレー
ム受信において容易にフレーム区切りが認識でき、高速
伝達制御の信頼性を向上させることができ、又、上記フ
レーム区切りを容易に認識することができるので、当該
回線制御装置内における演算などのソフト負荷を軽減で
き、バッファと読出/書込手段との間のハンドシェイク
を円滑に行うことができる。
As described above in detail, according to the present invention, when the frame end data is supplied, the count value of the communication data amount is held in the register, so that the frame delimiter can be easily received in the continuous frame reception. Can be recognized, the reliability of high-speed transmission control can be improved, and the frame delimiter can be easily recognized, so that the software load such as calculation in the line control device can be reduced, and the buffer and read / A handshake with the writing means can be performed smoothly.

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

【図1】 本発明の高速回線制御装置の一実施例におけ
る構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of a high-speed line control device of the present invention.

【図2】 図1に示すレジスタ群及びセレクト制御回路
の構成の一例を示す回路図である。
FIG. 2 is a circuit diagram showing an example of a configuration of a register group and a select control circuit shown in FIG.

【図3】 図1に示すリードセレクタの構成を示す論理
回路図である。
FIG. 3 is a logic circuit diagram showing a configuration of a read selector shown in FIG.

【図4】 図1に示す高速回線制御装置の動作を示すフ
ローチャートである。
4 is a flowchart showing an operation of the high-speed line control device shown in FIG.

【図5】 従来の回線制御装置の構成を示すブロック図
である。
FIG. 5 is a block diagram showing a configuration of a conventional line control device.

【図6】 回線制御装置に供給される、フレームが連続
した受信データを示す図である。
FIG. 6 is a diagram showing reception data in which frames are consecutively supplied to the line control device.

【図7】 連続フレームのデータを受信した場合におけ
るFIFOメモリの使用容量及びプロセッサ1とFIF
Oメモリとのアクセス状態を説明するための図である。
FIG. 7 shows the used capacity of the FIFO memory and the processor 1 and the FIF when the data of consecutive frames is received.
It is a figure for demonstrating the access state with O memory.

【図8】 従来の回線制御装置の動作を示すフローチャ
ートである。
FIG. 8 is a flowchart showing an operation of a conventional line control device.

【図9】 従来の回線制御装置の動作を示すフローチャ
ートである。
FIG. 9 is a flowchart showing an operation of a conventional line control device.

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

1…プロセッサ、2…アップダウンカウンタ、3…FI
FOメモリ、15…レジスタ群及びセレクト制御回路、
16…インタラプト制御回路。
1 ... Processor, 2 ... Up-down counter, 3 ... FI
FO memory, 15 ... Register group and select control circuit,
16 ... Interrupt control circuit.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 通信回線を伝送される通信データの転送
速度に同期して送受信する通信データをバッファに一時
蓄積し、上記バッファへの蓄積速度と異なる速度にて上
記バッファから上記蓄積したデータの読出し及び書込み
動作を行う読出/書込手段と、上記バッファに蓄積され
ているデータ量を計数するカウンタとを備えた回線制御
装置において、 上記カウンタの計数値を保持する複数のレジスタと、 上記通信データに含まれるフレームエンドデータが供給
されたとき、上記カウンタの計数値を格納させる上記レ
ジスタを選択するレジスタ選択手段と、 上記読出/書込手段が送出する読出信号が供給されたと
き、上記レジスタ選択手段にて選択されたレジスタから
当該レジスタに格納されている計数値を送出させる計数
値送出手段と、 を備えたことを特徴とする回線制御装置。
1. A buffer for temporarily storing communication data to be transmitted and received in synchronization with a transfer rate of communication data transmitted through a communication line, and to store the stored data from the buffer at a speed different from the storage speed in the buffer. In a line control device comprising a read / write means for performing a read / write operation and a counter for counting the amount of data accumulated in the buffer, a plurality of registers for holding the count value of the counter, the communication When the frame end data contained in the data is supplied, the register selecting means for selecting the register for storing the count value of the counter, and the register when the read signal sent by the read / write means is supplied. Count value transmitting means for transmitting the count value stored in the register from the register selected by the selecting means, A line control device characterized in that
【請求項2】 上記通信データに含まれるフレームエン
ドデータが供給されたときインタラプト信号を発生する
インタラプト制御部と、上記バッファの記憶容量の残量
を格納する残量レジスタとを備え、上記読出/書込手段
は上記残量レジスタに格納される残量を読み込み、当該
残量に相当する量の上記通信データを上記バッファに記
憶させる、請求項1記載の回線制御装置。
2. The read / write operation comprises: an interrupt control unit that generates an interrupt signal when frame end data included in the communication data is supplied; and a remaining amount register that stores the remaining amount of storage capacity of the buffer. The line control device according to claim 1, wherein the writing means reads the remaining amount stored in the remaining amount register and stores the communication data in an amount corresponding to the remaining amount in the buffer.
【請求項3】 通信回線の速度に同期して送受信するデ
ータをバッファに一時蓄積し、上記バッファへの蓄積速
度と異なる速度にて上記バッファから上記蓄積したデー
タの読出し及び書込み動作を行う読出/書込手段と、上
記バッファに蓄積されているデータ量を計数するカウン
タとを備えた回線制御装置において、 上記カウンタの計数値を保持する複数のレジスタと、 上記データに含まれるフレームエンドデータが供給され
たとき、上記カウンタの計数値を格納させる上記レジス
タを選択するレジスタ選択手段と、 上記読出/書込手段が送出する読出信号が供給されたと
き、上記レジスタ選択手段にて選択されたレジスタから
格納されている計数値を送出させる計数値送出手段と、 上記通信データに含まれるフレームエンドデータが供給
されたときインタラプト信号を発生するインタラプト制
御部と、 上記バッファの記憶容量の残量を格納する残量レジスタ
とを備え、 上記読出/書込手段は上記残量レジスタに格納される残
量を読み込み、当該残量に相当する量の上記通信データ
を上記バッファに記憶させることを特徴とする回線制御
装置。
3. A read / write operation for temporarily storing data to be transmitted / received in synchronism with the speed of a communication line in a buffer, and reading and writing the stored data from the buffer at a speed different from the speed at which the buffer is stored. In a line controller provided with a writing means and a counter for counting the amount of data accumulated in the buffer, a plurality of registers for holding the count value of the counter and frame end data included in the data are supplied. The register selection means for selecting the register for storing the count value of the counter, and the register selected by the register selection means when the read signal sent by the read / write means is supplied. The count value sending means for sending the stored count value and the frame end data included in the communication data are supplied. An interrupt control unit that generates an interrupt signal when the input signal and a remaining amount register that stores the remaining amount of the storage capacity of the buffer are provided, and the read / write means reads the remaining amount stored in the remaining amount register, A line control device, characterized in that an amount of the communication data corresponding to the remaining amount is stored in the buffer.
JP3275346A 1991-10-23 1991-10-23 Line controller Pending JPH05122253A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3275346A JPH05122253A (en) 1991-10-23 1991-10-23 Line controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3275346A JPH05122253A (en) 1991-10-23 1991-10-23 Line controller

Publications (1)

Publication Number Publication Date
JPH05122253A true JPH05122253A (en) 1993-05-18

Family

ID=17554195

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3275346A Pending JPH05122253A (en) 1991-10-23 1991-10-23 Line controller

Country Status (1)

Country Link
JP (1) JPH05122253A (en)

Similar Documents

Publication Publication Date Title
JP3452590B2 (en) Network adapter for controlling flow of data arranged in packets from system memory to network and method of controlling data flow
EP0797335B1 (en) Network adapter
US4507760A (en) First-in, first-out (FIFO) memory configuration for queue storage
JP3156813B2 (en) Buffer control circuit
EP0453863A2 (en) Methods and apparatus for implementing a media access control/host system interface
JPH06259225A (en) Synchronizer of data transfer
US7370117B2 (en) Communication system and method for communicating frames of management information in a multi-station network
EP0484652B1 (en) First-in-first-out buffer
AU661378B2 (en) An access control arrangement for communication channel
US6622183B1 (en) Data transmission buffer having frame counter feedback for re-transmitting aborted data frames
US5179664A (en) Symbol-wide elasticity buffer with a read-only section and a read-write section
JPH0744567B2 (en) Communication interface device
JPH05122253A (en) Line controller
JP2762506B2 (en) Line controller
JP2625396B2 (en) Receive data processing device
JP3592169B2 (en) Asynchronous data transfer control device and asynchronous data transfer control method
JP2751811B2 (en) Data transmission / reception method and device
CN117311662A (en) Data clearing system and method
KR900007548Y1 (en) Apparatus for compensating clock pulse rate in hdlc
JPS62225050A (en) Comunication control unit
JP2845768B2 (en) Time information synchronization device
SU1443001A1 (en) Device for interfacing electronic computers
JP2957821B2 (en) Transmission memory control circuit
JPH0458355A (en) Interface control circuit
JPH0273747A (en) Circuit controlling exchange processing waiting queue with priority