JPH03198452A - Line control system by housing reception buffer - Google Patents

Line control system by housing reception buffer

Info

Publication number
JPH03198452A
JPH03198452A JP1340981A JP34098189A JPH03198452A JP H03198452 A JPH03198452 A JP H03198452A JP 1340981 A JP1340981 A JP 1340981A JP 34098189 A JP34098189 A JP 34098189A JP H03198452 A JPH03198452 A JP H03198452A
Authority
JP
Japan
Prior art keywords
data
line control
memory
cpu
control unit
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
JP1340981A
Other languages
Japanese (ja)
Inventor
Katsutoshi Tajiri
田尻 勝利
Akira Baba
暁 馬場
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1340981A priority Critical patent/JPH03198452A/en
Publication of JPH03198452A publication Critical patent/JPH03198452A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To accelerate the communication velocity of data and to improve the reliability of the data by storing the received data into a memory for each frame and executing a reception processing by a CPU while reading out the data from the memory even during the storage as well. CONSTITUTION:A transfer time number count part 700 is provided to count the number of times for transferring the data from a line control part 200 to a memory 400 while being connected to a bus, and tables 410-1-410-n are provided to store the data into the memory 400 for the unit of the frame. The received data are stored into the tables in the memory 400 for each frame and the reception processing is executed by a CPU 100 while reading out the data from the tables even during the storage as well. Thus, the received data can be preserved without being damaged, the communication velocity of the data can be accelerated and the reliability of the data can be improved.

Description

【発明の詳細な説明】 〔概 要〕 チェイン機能のないHDLC手順を使用した回線制御ユ
ニットの受信バッファ格納による回線制御方式に関し、 データの通信速度の高速化、及びデータの高信頼化を実
現できる受信バッファ格納による回線制御方式を提供す
ることを目的とし、 CPUと、DMACと、チェイン機能がなく HDLC
手順によりDMACの出力制御信号によりフレーム構成
の受信データをメモリに転送する回線制御部と、回線制
御部から入力したデータを書き込みCPUに読み出すメ
モリとがバスによって互いに接続される回線制御ユニッ
トの回線制御方式において、バスに接続され、回線制御
部からメモリへデータを転送した回数をカウントする転
送回数カウント部を設け、かつ、メモリ内にフレーム単
位でデータを格納できるテーブルを設け、回線制御部で
受信したデータを1フレーム毎にテーブルに別個に格納
し、格納中にも転送回数カウント部の出力によりテーブ
ルに格納したデータを順次CPUに読み出すように構成
する。
[Detailed Description of the Invention] [Summary] Regarding a line control method by storing a reception buffer in a line control unit using an HDLC procedure without a chain function, it is possible to realize high-speed data communication speed and high data reliability. The purpose is to provide a line control method using reception buffer storage, and there is no CPU, DMAC, or chain function.
Line control of a line control unit in which a line control unit that transfers received data in a frame structure to memory using a DMAC output control signal according to a procedure, and a memory that reads data input from the line control unit to a writing CPU are connected to each other by a bus. In this method, a transfer count unit is provided that is connected to the bus and counts the number of times data is transferred from the line control unit to the memory, and a table that can store data in units of frames is provided in the memory, and the data is received by the line control unit. The data stored in the table is stored separately in a table for each frame, and even during storage, the data stored in the table is sequentially read out to the CPU by the output of the transfer count section.

〔産業上の利用分野〕[Industrial application field]

本発明は、データをまとめて転送する、いわゆるチェイ
ン機能のないHDLC手順(High Level D
ataLink Control Procedure
 、 ハイレベルデータリンク制御手順)を使用した、
回線制御ユニットの受信バッファ格納による回線制御方
式の改良に関するものである。
The present invention uses a so-called HDLC procedure (High Level D) without a chain function that transfers data in batches.
ataLink Control Procedure
, using high-level data link control procedures).
This invention relates to an improvement in a line control system by storing a reception buffer in a line control unit.

回線制御LSI回路(以下回線制御LSIと称する)を
使用する場合、外部にDMAC(Direct Mem
ory Access Controller)を必要
とし、回線よりデータを受信した際回線制御LSI内の
受信バッファメモリのすべてにデータが受信し終わるま
でに、CPUは回線制御LSIからメモリに格納しメモ
リがら読み出した受信データに関する処理を完了しなけ
ればならない。
When using a line control LSI circuit (hereinafter referred to as line control LSI), an external DMAC (Direct Mem
When data is received from the line, the CPU stores the received data from the line control LSI in the memory and reads it from the memory until all the data has been received in the receive buffer memory in the line control LSI. The related process must be completed.

データの通信速度が高速化するにつれ、cPUの処理が
回線制御LSI内の受信バッファメモリのすべてにデー
タが受信し終わるまでに完了できなくなる。その結果、
受信バッファメモリが受信データで一杯となり受信デー
タを破壊してしまうため、回線制御処理を高速にする必
要がある。
As data communication speeds increase, processing by the cPU cannot be completed until all of the data has been received in the receive buffer memory in the line control LSI. the result,
Since the receive buffer memory becomes full with received data and the received data is destroyed, it is necessary to speed up the line control processing.

このため、データの通信速度の高速化、及びデータの高
信頼化を実現できる回線制御方式が要望されている。
Therefore, there is a need for a line control system that can achieve higher data communication speeds and higher data reliability.

〔従来の技術〕[Conventional technology]

第4図は従来例の回線制御ユニットの構成を示すブロッ
ク図である。
FIG. 4 is a block diagram showing the configuration of a conventional line control unit.

第4図において、回線制御LSI 2において数バイト
で1フレームを構成するシリアルデータを受信する。そ
して1バイト受信する毎にDMAC3により、回線制御
LSI 2からメモリ4ヘバス5を介して転送され書き
込まれる。この動作を1バイト毎に行い1フレームのデ
ータが終了すると、回線制御LSI 2の受信データを
分岐して入力したフラグ検出回路(図示しない)におい
て、受信データの終了を示すフラグを検出しCPU l
に割り込み信号として出力する。CPU lではこの割
り込み信号を受信するとメモリ4に記憶したデータを読
み出し、データの受信処理を開始する。
In FIG. 4, the line control LSI 2 receives serial data that constitutes one frame of several bytes. Each time one byte is received, the DMAC 3 transfers it from the line control LSI 2 to the memory 4 via the bus 5 and writes it. This operation is performed for each byte, and when one frame of data is completed, a flag detecting circuit (not shown) to which the received data of the line control LSI 2 is branched and inputted, detects a flag indicating the end of the received data, and the CPU l
output as an interrupt signal. When the CPU 1 receives this interrupt signal, it reads out the data stored in the memory 4 and starts data reception processing.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら従来の回線制御ユニットの構成においては
、CPUが受信処理を開始してから終了するまでの間D
MACは回線制御LSI内の受信データをメモリへ転送
する作業を休止しているため、CPUは受信処理を回線
制御LSI内の受信バッファメモリのすべてにデータが
受信し終わるまでに完了させな(ではならない。このた
め、データの通信速度が高速化してくると、CPUの受
信処理が間に合わな(なり受信データを破壊してしまう
という問題点があった。
However, in the configuration of a conventional line control unit, D
Since the MAC suspends the work of transferring the received data in the line control LSI to the memory, the CPU should not complete the reception process until all the data has been received in the receive buffer memory in the line control LSI. For this reason, as the data communication speed increases, there is a problem that the reception processing by the CPU cannot be done in time (and the received data may be destroyed).

したがって本発明の目的は、データの通信速度の高速化
、及びデータの高信頼化を実現できる受信バッファ格納
による回線制御方式を提供することにある。
Therefore, it is an object of the present invention to provide a line control system using reception buffer storage that can realize higher data communication speeds and higher data reliability.

〔課題を解決するための手段〕[Means to solve the problem]

上記問題点は第1図に示す装置の構成によって解決され
る。
The above problem is solved by the configuration of the device shown in FIG.

即ち第1図において、CPU100と、DMAC300
と、チェイン機能がなく HDLC手順によりDMAC
の出力制御信号によりフレーム構成の受信データをメモ
リ400に転送する回線制御部200と、回線制御部か
ら入力したデータを書き込みCPUに読み出すメモリ4
00とがバスによって互いに接続される回線制御ユニッ
トの回線制御方式において、700はバスに接続され、
回線制御部からメモリへデータを転送した回数をカウン
トする転送回数カウント部である。
That is, in FIG. 1, the CPU 100 and the DMAC 300
, there is no chain function, and DMAC is performed using the HDLC procedure.
A line control unit 200 that transfers received data in a frame configuration to a memory 400 using an output control signal from the line control unit 200, and a memory 4 that reads data input from the line control unit to the writing CPU.
In a line control system of a line control unit in which 00 and 700 are connected to each other by a bus, 700 is connected to the bus,
This is a transfer count unit that counts the number of times data has been transferred from the line control unit to the memory.

又、410−1〜410−nはメモリ内に設けられ、フ
レーム単位でデータを格納できるテーブルである。
Further, 410-1 to 410-n are tables provided in the memory and capable of storing data in units of frames.

そして、回線制御部で受信したデータを1フレーム毎に
テーブルに別個に格納し、格納中にも転送回数カウント
部の出力によりテーブルに格納したデータを順次CPU
に読み出すように構成する。
The data received by the line control unit is stored separately in a table for each frame, and even during storage, the data stored in the table is sequentially transferred to the CPU using the output of the transfer count unit.
Configure it to read out.

〔作 用〕[For production]

第1図において、回線制御部200で受信したデータを
1フレーム毎にメモ1月00内に設けたテーブル410
−1〜410−nに別個に格納する。同時に1つのテー
ブルに格納したデータのバイト数を、転送回数カウント
部700でカウントする。そして、格納中にも転送回数
カウント部700の出力の転送回数カウント数に対応す
るバイト数だけ、テーブル410−1〜410−nに格
納したデータを順次CPU 100に読み出すようにす
る。
In FIG. 1, a table 410 is provided in a memo 00 for each frame of data received by the line control unit 200.
-1 to 410-n. A transfer count unit 700 counts the number of bytes of data stored in one table at the same time. Then, even during storage, the data stored in the tables 410-1 to 410-n is sequentially read out to the CPU 100 by the number of bytes corresponding to the transfer count output from the transfer count section 700.

この結果、受信データをフレーム毎にメモ1月00内の
テーブルに格納し、格納中にもテーブルから読み出して
CPU 100で受信処理を行うことができるため、受
信データが欠損することなく保存でき、データの通信速
度の高速化及びデータの高信頼化を実現することができ
る。
As a result, the received data can be stored frame by frame in the table in Memo January 00, and even while being stored, it can be read from the table and the reception process can be performed by the CPU 100, so that the received data can be saved without being lost. It is possible to achieve higher data communication speed and higher data reliability.

〔実施例〕〔Example〕

第2図は本発明の実施例の回線制御ユニットの構成を示
すブロック図である。
FIG. 2 is a block diagram showing the configuration of a line control unit according to an embodiment of the present invention.

第3図は実施例の動作を説明するためのフローチャート
である。
FIG. 3 is a flowchart for explaining the operation of the embodiment.

全図を通じて同一符号は同一対象物を示す。The same reference numerals indicate the same objects throughout the figures.

第2図において、回線制御LSI 20においてシリア
ルデータを1バイト分受信すると、DMAC50にDM
A REQUEST信号(DREQ信号)を出力する。
In FIG. 2, when the line control LSI 20 receives 1 byte of serial data, the DMAC 50 sends the DM
A REQUEST signal (DREQ signal) is output.

DMAC50ではDREQ信号を受信すると、CPU 
10にHOLD REQUEST信号(HLD REQ
信号)を出力する。CPU 10はバス50を開放でき
る状態になると、HOLD ACKNOWLEDGE信
号(HLD ACK信号)をDMAC50に出力する。
When the DMAC 50 receives the DREQ signal, the CPU
10 is the HOLD REQUEST signal (HLD REQ
signal). When the CPU 10 becomes ready to release the bus 50, it outputs a HOLD ACKNOWLEDGE signal (HLD ACK signal) to the DMAC 50.

DMAC50はHLD ACK信号を受信すると、バス
50が取れたことを認識しこのことをDMA ACKN
OWLEDGE信号(DACK信号)により、回線制御
LSI 20に通知する。
When the DMAC 50 receives the HLD ACK signal, it recognizes that the bus 50 has been taken and sends a DMA ACKN signal.
The line control LSI 20 is notified by the OWLEDGE signal (DACK signal).

次にDMAC50は、回線制御LSI 20内の1バイ
ト分の受信データをメモ1月0内の格納ポインタ46の
示すアドレス(例えばエリア■)へ転送し、メモリ40
では例えばエリア■に書き込む。転送が終了すると回線
制御LSI 20はDREQ信号の出力を停止し、DM
AC50はDACK信号の出力を停止する。上述の動作
を繰り返し、最終的にフラグ検出回路60において受信
データを分岐したデータをシフトレジスタ61に入力し
て並列データに変換したデータと、フラグパターン発生
回路(図示しない)の出力のフラグパターン(例えば8
ビツトからなる“01111110”)62とを排他的
論理和回路63で比較することにより、フレームの最後
を示すフラグを検出し、割り込み信号をCPU 10に
出力する。
Next, the DMAC 50 transfers 1 byte of received data in the line control LSI 20 to the address (for example, area ■) indicated by the storage pointer 46 in the memo 1 month 0, and
For example, write in area ■. When the transfer is completed, the line control LSI 20 stops outputting the DREQ signal, and the DM
AC50 stops outputting the DACK signal. The above operation is repeated, and finally, the data obtained by branching the received data in the flag detection circuit 60 is inputted to the shift register 61 to convert the data into parallel data and the flag pattern (not shown) output from the flag pattern generation circuit (not shown). For example 8
An exclusive OR circuit 63 detects a flag indicating the end of the frame, and outputs an interrupt signal to the CPU 10.

CPU 10では割り込み信号を受信すると、格納ポイ
ンタ46を第3図(a)に示すように処理する。即ち、
格納ポインタ46の示すアドレスがENDポインタ45
のアドレスに等しいか否かの判定を行い、等しい時には
格納ポインタ46を先頭アドレスに戻す。そして、DM
AC50に次のフレームデータを次の格納エリア(例え
ばエリア■)へ転送するように設定する。同時に、CP
U 10はDMAC転送回数カウンタ70からDMAC
転送回数カウント数を読み取り、メモ1月0内の読み出
しポインタ47の示すアドレスからカウント数に対応す
るバイト数のデータを読み出し、所定の処理を行う。
When the CPU 10 receives the interrupt signal, it processes the storage pointer 46 as shown in FIG. 3(a). That is,
The address indicated by the storage pointer 46 is the END pointer 45
It is determined whether the addresses are equal to each other, and if they are equal, the storage pointer 46 is returned to the first address. And DM
Set the AC 50 to transfer the next frame data to the next storage area (for example, area ■). At the same time, C.P.
U10 is the DMAC transfer count from the DMAC transfer counter 70.
The transfer count is read, data of the number of bytes corresponding to the count is read from the address indicated by the read pointer 47 in the memo January 0, and predetermined processing is performed.

尚、読み出しポインタの動作について第3図(b)に示
す。即ち、読み出しポインタ47の示すアドレスがEN
Dポインタ45のアドレスに等しいか否かの判定を行い
、等しい時には読み出しポインタ47を書き込みエリア
の先頭アドレスに戻す。次に格納ポインタ46の示すア
ドレスが読み出しポインタ47の示すアドレスに等しい
か否かの判定を行い、等しくない時には(そのアドレス
に格納されたデータはまだ読み出されていないため)読
み出しポインタ47の示すエリアよりデータを読み出す
。そして読み出しポインタ47のアドレスの更新を行う
The operation of the read pointer is shown in FIG. 3(b). That is, the address indicated by the read pointer 47 is EN.
It is determined whether or not the address is equal to the address of the D pointer 45, and if they are equal, the read pointer 47 is returned to the start address of the write area. Next, it is determined whether the address indicated by the storage pointer 46 is equal to the address indicated by the read pointer 47, and if they are not equal (because the data stored at that address has not been read yet), the address indicated by the read pointer 47 is determined. Read data from the area. Then, the address of the read pointer 47 is updated.

尚、メモ1月θ内の各エリア■、■、・・・、nの記憶
容量は、予め予想される受信データの1フレームの最大
値を超える値(例えば256バイト)に設定する。
It should be noted that the storage capacity of each area ■, ■, .

この結果、メモ1月0内の1つの格納エリアを格納時と
取り出し時で非同期で実施できるため、デ−夕の通信速
度のより高速化及びデータの高信頼化を実現することが
できる。
As a result, storage and retrieval of one storage area in the memo January 0 can be carried out asynchronously, making it possible to achieve higher data communication speeds and higher data reliability.

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

以上説明したように本発明によれば、受信データをフレ
ーム毎にメモリに格納し、格納中にもメモリから読み出
してCPUで受信処理を行うことができるため、受信デ
ータが欠損することな(保存でき、データの通信速度の
高速化及びデータの高信頼化を実現することができる。
As explained above, according to the present invention, received data can be stored frame by frame in the memory, and even while being stored, it can be read out from the memory and the reception process can be performed by the CPU, so that the received data will not be lost (save data). This makes it possible to achieve higher data communication speeds and higher data reliability.

410−1〜410−nはテーブル、 700は転送回数カウント部 を示す。410-1 to 410-n are tables, 700 is the transfer count section shows.

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

第1図は本発明の原理図、 第2図は本発明の実施例の回線制御ユニットの構成を示
すブロック図、 第3図は実施例の動作を説明するためのフローチャート
、 第4図は従来例の回線制御ユニットの構成を示すブロッ
ク図である。 図において 精細ポインタの処理 (Q) 震施イ列の動イ乍を説明Tゐtこめのフローティート第
3図
Fig. 1 is a principle diagram of the present invention, Fig. 2 is a block diagram showing the configuration of a line control unit according to an embodiment of the present invention, Fig. 3 is a flowchart for explaining the operation of the embodiment, and Fig. 4 is a conventional FIG. 2 is a block diagram showing the configuration of an example line control unit. Detailed pointer processing in the figure (Q) Explaining the movement of the correction A column Figure 3

Claims (1)

【特許請求の範囲】 CPU(100)と、DMAC(300)と、チェイン
機能がなくHDLC手順により該DMACの出力制御信
号によりフレーム構成の受信データをメモリ(400)
に転送する回線制御部(200)と、該回線制御部から
入力したデータを書き込みCPUに読み出すメモリ(4
00)とがバスによって互いに接続される回線制御ユニ
ットの回線制御方式において、 該バスに接続され、該回線制御部からメモリへデータを
転送した回数をカウントする転送回数カウント部(70
0)を設け、かつ、 該メモリ内にフレーム単位でデータを格納できるテーブ
ル(410−1〜410−n)を設け、該回線制御部で
受信したデータを1フレーム毎に該テーブルに別個に格
納し、格納中にも該転送回数カウント部の出力により該
テーブルに格納したデータを順次該CPUに読み出すよ
うにしたことを特徴とする受信バッファ格納による回線
制御方式。
[Claims] A CPU (100), a DMAC (300), and a memory (400) which does not have a chain function and stores received data in a frame structure according to an output control signal of the DMAC according to an HDLC procedure.
A line control unit (200) that transfers data to the line control unit, and a memory (4) that writes data input from the line control unit and reads it to the CPU.
00) are connected to each other by a bus, a transfer count unit (70) is connected to the bus and counts the number of times data has been transferred from the line control unit to the memory.
0), and tables (410-1 to 410-n) capable of storing data frame by frame are provided in the memory, and the data received by the line control unit is stored separately in the table for each frame. A line control system using reception buffer storage, characterized in that even during storage, the data stored in the table is sequentially read out to the CPU by the output of the transfer count section.
JP1340981A 1989-12-26 1989-12-26 Line control system by housing reception buffer Pending JPH03198452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1340981A JPH03198452A (en) 1989-12-26 1989-12-26 Line control system by housing reception buffer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1340981A JPH03198452A (en) 1989-12-26 1989-12-26 Line control system by housing reception buffer

Publications (1)

Publication Number Publication Date
JPH03198452A true JPH03198452A (en) 1991-08-29

Family

ID=18342098

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1340981A Pending JPH03198452A (en) 1989-12-26 1989-12-26 Line control system by housing reception buffer

Country Status (1)

Country Link
JP (1) JPH03198452A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09134322A (en) * 1995-11-10 1997-05-20 Nec Corp Method for receiving data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09134322A (en) * 1995-11-10 1997-05-20 Nec Corp Method for receiving data

Similar Documents

Publication Publication Date Title
US5438665A (en) Direct memory access controller for handling cyclic execution of data transfer in accordance with stored transfer control information
US5287471A (en) Data transfer controller using direct memory access method
JPH03198452A (en) Line control system by housing reception buffer
EP0690382A2 (en) Computer system with a multiplexed address bus and pipelined write operations
JPH0479422A (en) Transmission control circuit
JPH06309169A (en) Information processor
JPH02181248A (en) Direct memory access system
JP2594611B2 (en) DMA transfer control device
JP2823625B2 (en) Data processing device
JPH03203445A (en) Line control system based upon switching of receiving buffer
JPH03152651A (en) Information transmission system
JPH0713881A (en) Communication processor
JPS63187349A (en) Memory device
JPH01142851A (en) Data transfer device
JPH01255922A (en) Semiconductor integrated circuit
JPH01158554A (en) Data processing system providing dma device
JPS6220041A (en) Asynchronous data transfer circuit for data processor
JPS62144263A (en) Data input and output device
JPH0432922A (en) Interface control circuit
JPS61153770A (en) Image processor
JPS63187943A (en) Communication control equipment
JPH0199141A (en) Sharing extending memory control method
JPS58184188A (en) Reading and writting system of display data
JPH01240960A (en) Dma transfer control circuit
JPH0769885B2 (en) Data transfer device