JPH03203445A - Line control system based upon switching of receiving buffer - Google Patents

Line control system based upon switching of receiving buffer

Info

Publication number
JPH03203445A
JPH03203445A JP1340431A JP34043189A JPH03203445A JP H03203445 A JPH03203445 A JP H03203445A JP 1340431 A JP1340431 A JP 1340431A JP 34043189 A JP34043189 A JP 34043189A JP H03203445 A JPH03203445 A JP H03203445A
Authority
JP
Japan
Prior art keywords
memory
data
cpu
line control
frame
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
JP1340431A
Other languages
Japanese (ja)
Inventor
Akira Baba
暁 馬場
Katsutoshi Tajiri
田尻 勝利
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 JP1340431A priority Critical patent/JPH03203445A/en
Publication of JPH03203445A publication Critical patent/JPH03203445A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To increase a data communication speed by writing received data in an individual memory in each frame and reading out the data from the memory even in its writing to execute receiving processing by a CPU. CONSTITUTION:At the time of receiving an interruption signal, the CPU 10 reads out a DMAC transfer frequency counting number from a DMAC transfer frequency counter 70 and sets up a DMAC 30 so that the succeeding frame data are transferred to a memory 40-2 for instance. Simultaneously, the CPU 1 reads out the received data for the number of bytes corresponding to the count value from a memory 40-1 until the reception of the succeeding frame is completed to execute the receiving processing. Since the received data are written in individual memories in each frame by increasing the number of memories up to the memory 40-n and the stored data can be read out even in the writing operation to execute the receiving processing by the CPU, the data communication speed can be increased.

Description

【発明の詳細な説明】 〔概 要〕 チェイン機能のないHDLC手順を使用した回線制御ユ
ニットの受信バッファ切り替えによる回線制御方式に関
し、 データの通信速度の高速化を実現できる受信バッファ切
り替えによる回線制御方式を提供することを目的とし、 CPU と、開^Cと、チェイン機能がないHD L 
C手順を使用してD?iACの出力制御信号によりフレ
ーム構成の受信データをメモリに転送する回線制御部と
、回線制御部から入力したデータを書き込みcpuに読
み出すメモリとがバスによって互いに接続されると共に
、受信データからフレームの最後を示すフラグを検出し
制御信号をCPUに出力するフラグ検出回路を有する回
線制御ユニットの回線制御方式において、バスに接続さ
れ、回線制御部からメモリへデータを転送した回数をカ
ウントする転送回数カウント部を設け、かつ、メモリを
、フレーム毎にデータを別個に書き込む複数個からなる
第2のメモリとし、フラグ検出回路の出力により第2の
メモリを切り替え、受信データを1フレーム毎に別個に
書き込み、書き込み中にも転送回数カウント部の出力に
より第2のメモリに書き込んだデータを順次cpuに読
み出すように構成する。
[Detailed Description of the Invention] [Summary] Regarding a line control method by switching reception buffers of a line control unit using an HDLC procedure without a chain function, a line control method by switching reception buffers that can realize high-speed data communication speed. The purpose is to provide CPU, open^C, and HD L without chain function.
D using C procedure? A line control unit that transfers received data in a frame configuration to memory using an output control signal from the iAC, and a memory that writes data input from the line control unit and reads it out to the CPU are connected to each other by a bus, and the end of the frame is transferred from the received data to the memory. In a line control method for a line control unit that has a flag detection circuit that detects a flag indicating a flag and outputs a control signal to the CPU, a transfer count unit that is connected to a bus and counts the number of times data is transferred from the line control unit to the memory. and the memory is a second memory consisting of a plurality of memory pieces in which data is written separately for each frame, the second memory is switched by the output of the flag detection circuit, and the received data is written separately for each frame, Even during writing, the data written in the second memory is sequentially read out to the CPU by the output of the transfer count section.

〔産業上の利用分野) 本発明は、データをまとめて転送する、いわゆるチェイ
ン機能のないHDLC手順(lligh Level 
Data Link Control Procedu
re、ハイレベルデータリンク手順)を使用した、回線
制御ユニットの受信バッファ切り替えによる回線制御方
式に関するものである。
[Industrial Application Field] The present invention is applicable to HDLC procedures (lligh level
Data Link Control Procedure
The present invention relates to a line control method using reception buffer switching of a line control unit using a high-level data link procedure (re, high-level data link procedure).

回線制御Ls1回路(以下回線制御1LsIと称する)
を使用する場合、外部にDMAC(Direct Me
s+ory Access Controller)を
必要とし、回線よりデータを受信した際回線制御l1L
sI内の受信バッファメモリのすべてにデータが受信し
終わるまでに、CPUは回線制御1LsIからメモリに
書き込みメモリから読み出した受信データに関する処理
を完了しなければならない。
Line control Ls1 circuit (hereinafter referred to as line control 1LsI)
When using an external DMAC (Direct Me
When data is received from the line, line control l1L is required.
By the time all of the data has been received in the reception buffer memory in sI, the CPU must complete the processing related to the reception data written to the memory from the line control 1LsI and read from the memory.

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

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

〔従来の技術〕[Conventional technology]

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

第3図において、回線制御LsI 2において数バイト
でlフレームを構成するシリアルデータを受信する。そ
して1バイト受信する毎にDMAC3により、回線制’
lllLSI 2からメモリ4ヘバス5を介して転送さ
れ書き込まれる。この動作を1バイト毎に行いlフレー
ムのデータが終了すると、フラグ検出回路(図示しない
)において回線制御LsI 2の受信データを分岐して
入力し、受信データの終了を示すフラグを検出しCPU
 1に割り込み信号として出力する。
In FIG. 3, the line control LsI 2 receives serial data constituting one frame of several bytes. Then, each time one byte is received, the line control is executed by DMAC3.
The data is transferred from the LSI 2 to the memory 4 via the bus 5 and written therein. This operation is performed for each byte, and when one frame of data is completed, the received data of the line control LsI 2 is branched and inputted to a flag detection circuit (not shown), and a flag indicating the end of the received data is detected and the CPU
1 as an interrupt signal.

CPU  1ではこの割り込み信号を受信すると、メモ
リ4に記憶したデータを読み出しデータの受信処理を開
始する。
When the CPU 1 receives this interrupt signal, it reads out the data stored in the memory 4 and starts data reception processing.

〔発明が解決しようとする課題] しかしながら上述の回線制御ユニットにおいては、cp
uが受信処理を開始してから終了するまでの間DMAC
は回線制御ILsI内の受信データをメモリへ転送する
作業を休止しているため、cpuは受信処理を回線間?
IILsI内の受信バッファメモリのすべてにデータが
受信し終わるまでに完了させなくてはならない。このた
め、データの通信速度が高速化してくると、CPUの受
信処理が間に合わなくなり受信データを破壊してしまう
という問題点があった。
[Problem to be solved by the invention] However, in the above-mentioned line control unit, cp
DMAC from the time when u starts the reception process until it ends.
Since the CPU is suspending the work of transferring the received data in the line control ILsI to the memory, the CPU transfers the reception processing between lines?
It must be completed by the time all of the data in the receive buffer memory in IILsI has been received. For this reason, as the data communication speed increases, there is a problem in that the CPU cannot perform reception processing in time and the received data is destroyed.

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

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

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

即ち第1図において、CPU100と、DMAC300
と、チェイン機能がないHDLC手順を使用してDMA
Cの出力制御信号によりフレーム構成の受信データをメ
モリ400に転送する回線制御部200と、回線制御部
から入力したデータを書き込みCPUに読み出すメモリ
400とがバスによって互いに接続されると共に、受信
データからフレームの最後を示すフラグを検出し制御信
号をcpuに出力するフラグ検出回路600を有する回
線制御ユニットの回線制御方式において、 700はバスに接続され、回線制御部からメモリへデー
タを転送した回数をカウントするために設けられた転送
回数カウント部である。
That is, in FIG. 1, the CPU 100 and the DMAC 300
and DMA using HDLC procedure without chaining function.
A line control unit 200 that transfers received data in a frame configuration to a memory 400 using an output control signal of C and a memory 400 that writes data input from the line control unit and reads it out to the CPU are connected to each other by a bus, and are connected to each other by a bus. In a line control system for a line control unit having a flag detection circuit 600 that detects a flag indicating the end of a frame and outputs a control signal to the CPU, 700 is connected to a bus and measures the number of times data is transferred from the line control unit to the memory. This is a transfer count unit provided for counting.

かつ、メモリを、フレーム毎にデータを別個に書き込む
複数個からなる第2のメモリ800−1〜800−n 
とする。
and a plurality of second memories 800-1 to 800-n in which data is written separately for each frame.
shall be.

そして、フラグ検出回路の出力により第2のメモリを切
り替え、受信データを1フレーム毎に別個に書き込み、
書き込み中にも転送回数カウント部の出力により第2の
メモリに書き込んだデータを順次CPUに読み出すよう
に構成する。
Then, the second memory is switched by the output of the flag detection circuit, and the received data is written separately for each frame.
Even during writing, the data written in the second memory is sequentially read out to the CPU by the output of the transfer count section.

(作 用) 第1図において、回線制御部200で受信したデータを
、フラグ検出回路600の出力によりlフレーム毎に切
り替えた第2のメモリに書き込む。同時に、1つの第2
のメモリに書き込んだデータのバイト数を転送回数カウ
ント部700でカウントする。そして、書き込み中にも
転送回数カウント部700の出力の転送回数カウント数
に対応するバイト数だけ、第2のメモリ800−1〜8
00− nに書き込んだデータを順次CPuに読み出す
ようにする。
(Function) In FIG. 1, the data received by the line control unit 200 is written into the second memory which is switched every l frame by the output of the flag detection circuit 600. At the same time, one second
A transfer count unit 700 counts the number of bytes of data written into the memory. During writing, the second memory 800-1 to 800-1 to
The data written to 00-n is sequentially read out to the CPU.

この結果、CPU iooは受信処理を1フレーム長内
で完了させればよく、データ通信速度の高速化を実現す
ることができる。
As a result, the CPU ioo only has to complete the reception process within one frame length, making it possible to achieve a higher data communication speed.

〔実施例〕〔Example〕

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

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

第2図において、回線制御LSI 20においてシリア
ルデータを1バイト分受信すると、口MAC30にDM
^REQUEST信号(DREQ信号)を出力する。D
MAC50ではDREQ信号を受信すると、CPII 
10ニll0LII REQtlEST信号(HLD 
REQ信号)を出力する。CPII 10はバス50を
開放できる状態になると、1(OL口^CKNOWLE
DGB信号(tlLD A(J信号)をDMAC50に
出力する。DMAC50はHLD ACK信号を受信す
ると、バス50が取れたことを認識しこのことをDMA
 ACKNO賀LEDGII’信号(DAC×信号)に
より、回線料(IILsI 20に通知する。
In FIG. 2, when the line control LSI 20 receives 1 byte of serial data, the DM is sent to the MAC 30.
^Outputs the REQUEST signal (DREQ signal). D
When the MAC50 receives the DREQ signal, the CPII
10NIll0LII REQtlEST signal (HLD
REQ signal). When the CPII 10 is ready to release the bus 50, it turns 1 (OL port ^CKNOWLE).
It outputs the DGB signal (tlLD A (J signal)) to the DMAC 50. When the DMAC 50 receives the HLD ACK signal, it recognizes that the bus 50 has been taken, and notifies the DMA of this.
The line charge (IILsI 20) is notified by the ACKNO LED GII' signal (DACx signal).

次にDMAC30は、回線料4i1LSI 20内の1
バイト分の受信データを例えばメモリ40−1へ転送す
る。転送が終了すると回線料4IILSl 20はDR
EQ信号の出力を停止し、DMAC50はDACに信号
の出力を停止する。
Next, DMAC30 is 1 in line charge 4i1LSI 20.
The received data corresponding to bytes is transferred to the memory 40-1, for example. When the transfer is completed, the line charge is 4IILSl 20 is DR
The output of the EQ signal is stopped, and the DMAC 50 stops outputting the signal to the DAC.

上述の動作を繰り返し、最終的にフラグ検出回路60に
おいて受信データを分岐したデータをシフトレジスタ6
1に入力して並列データに変換したデータと、フラグパ
ターン発生回路(図示しない)の出力のフラグパターン
(例えば8ビツトからなる“01111110”)62
とを排他的論理和回路63で比較することにより、フレ
ームの最後を示すフラグを検出し、割り込み信号をCP
t110に出力する。
The above operation is repeated, and finally the flag detection circuit 60 branches the received data and transfers it to the shift register 6.
1 and converted into parallel data, and a flag pattern (for example, "01111110" consisting of 8 bits) 62 output from a flag pattern generation circuit (not shown).
The exclusive OR circuit 63 detects the flag indicating the end of the frame and sends the interrupt signal to CP
Output at t110.

cpu ioでは割り込み信号を受信すると、DM^C
転送回転送回数タウンタフ0MAC転送回数カウント数
を読み取り、DMAC50に対して次のフレームデータ
を例えばメモリ40−2に転送するように設定する。同
時に、CPU 10は次のフレームを受信し終わるまで
にメモリ40−1から前記カウント数に対応するバイト
数の受信データを読み出し受信処理を行う。
When CPU IO receives an interrupt signal, DM^C
Transfer count The count of transfer times of Tauntau 0 MAC is read and the DMAC 50 is set to transfer the next frame data to, for example, the memory 40-2. At the same time, the CPU 10 reads the received data of the number of bytes corresponding to the count number from the memory 40-1 and performs the reception process until the next frame is finished receiving.

この結果、フレーム毎のメモリをメモリ40−3、・・
・、40−nというように増やすことにより、受信デー
タをフレーム毎に別個のメモリに書き込み、書き込み中
もメモリから読み出してCPUで受信処理を行うことが
できるため、データ通信速度の高速化を実現することが
できる。
As a result, the memory for each frame is memory 40-3,...
・By increasing the number of frames, such as 40-n, the received data can be written to a separate memory for each frame, and even during writing, it can be read from the memory and received processing can be performed by the CPU, resulting in faster data communication speeds. can do.

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

以上説明したように本発明によれば、受信データをフレ
ーム毎に別個のメモリに書き込み、書き込み中もメモリ
から読み出してcpuで受信処理を行うことができるた
め、データ通信速度の高速化を実現することができる。
As explained above, according to the present invention, received data can be written to a separate memory for each frame, and even during writing, it can be read from the memory and received processing can be performed by the CPU, thereby realizing an increase in data communication speed. be able to.

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

第1図は本発明の原理図、 第2図は本発明の実施例の回線制御ユニットの構成を示
すブロック図、 第3図は従来例の回線制御ユニ すブロック図である。 図において 700は転送回数カウント部、 800−1〜800−nは第2のメモリを示す。 ットの構成を示 本発明の片理図 第1反
FIG. 1 is a diagram showing the principle 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, and FIG. 3 is a block diagram of a conventional line control unit. In the figure, 700 is a transfer count unit, and 800-1 to 800-n are second memories. Fig. 1 shows the structure of the cut sheet of the present invention.

Claims (1)

【特許請求の範囲】 CPU(100)と、DMAC(300)と、チェイン
機能がないHDLC手順を使用して該DMACの出力制
御信号によりフレーム構成の受信データをメモリ(40
0)に転送する回線制御部(200)と、該回線制御部
から入力したデータを書き込みCPUに読み出すメモリ
(400)とがバスによって互いに接続されると共に、
該受信データからフレームの最後を示すフラグを検出し
制御信号を該CPUに出力するフラグ検出回路(600
)を有する回線制御ユニットの回線制御方式において、 該バスに接続され、該回線制御部からメモリへデータを
転送した回数をカウントする転送回数カウント部(70
0)を設け、かつ、該メモリを、フレーム毎にデータを
別個に書き込む複数個からなる第2のメモリ(800−
1〜800−n)とし、該フラグ検出回路の出力により
第2のメモリを切り替え、受信データを1フレーム毎に
別個に書き込み、書き込み中にも該転送回数カウント部
の出力により該第2のメモリに書き込んだデータを順次
該CPUに読み出すようにしたことを特徴とする受信バ
ッファ切り替えによる回線制御方式。
[Claims] A CPU (100), a DMAC (300), and an HDLC procedure without a chain function are used to store received data in a frame structure in a memory (40) according to an output control signal of the DMAC.
A line control unit (200) that transfers data to 0) and a memory (400) that reads data input from the line control unit to the writing CPU are connected to each other by a bus,
A flag detection circuit (600) detects a flag indicating the end of a frame from the received data and outputs a control signal to the CPU.
), a transfer count unit (70) connected to the bus and counting the number of times data is transferred from the line control unit to the memory.
A second memory (800-0) is provided, and the second memory (800-
1 to 800-n), the second memory is switched by the output of the flag detection circuit, the received data is written separately for each frame, and even during writing, the second memory is switched by the output of the transfer count section. 1. A line control system using reception buffer switching, characterized in that data written to a CPU is sequentially read out to the CPU.
JP1340431A 1989-12-29 1989-12-29 Line control system based upon switching of receiving buffer Pending JPH03203445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1340431A JPH03203445A (en) 1989-12-29 1989-12-29 Line control system based upon switching of receiving buffer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1340431A JPH03203445A (en) 1989-12-29 1989-12-29 Line control system based upon switching of receiving buffer

Publications (1)

Publication Number Publication Date
JPH03203445A true JPH03203445A (en) 1991-09-05

Family

ID=18336893

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1340431A Pending JPH03203445A (en) 1989-12-29 1989-12-29 Line control system based upon switching of receiving buffer

Country Status (1)

Country Link
JP (1) JPH03203445A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7817572B2 (en) 2006-03-02 2010-10-19 Nec Corporation Communications apparatus and communication method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7817572B2 (en) 2006-03-02 2010-10-19 Nec Corporation Communications apparatus and communication method

Similar Documents

Publication Publication Date Title
US7733878B2 (en) System and method for packet transmission from fragmented buffer
ES2349488T3 (en) DIRECT MEMORY ACCESS CONTROLLER (DMAC) TO MANAGE TRANSFERS OF UNKNOWN LENGTHS.
US20080195793A1 (en) Microcontroller with memory trace module
GB2377138A (en) Ring Bus Structure For System On Chip Integrated Circuits
JP2527458B2 (en) Data transfer control device
EP1267269A2 (en) Apparatus and method for distribution of signals from a high level data link controller to multiple digital signal processor cores
JPH03203445A (en) Line control system based upon switching of receiving buffer
JP2520905B2 (en) Serial communication controller
JP2528879B2 (en) Communication processing device
JPH03198452A (en) Line control system by housing reception buffer
JPS6361530A (en) Packet switch
JP2849115B2 (en) Semiconductor memory device, communication control LSI and communication control system
JP2944412B2 (en) Data transfer method and data transfer method
JPH02181248A (en) Direct memory access system
JP2674510B2 (en) Packet receiver
JPS62154136A (en) Data arranging device
JPH0417051A (en) Data transferring system
JPH02293957A (en) Data selecting transfer system
JP2633852B2 (en) Data processing device
JPS6120455A (en) Frame signal receiving device
JP3605987B2 (en) Image processing device
JPH01255061A (en) Dma controller
JPS62144267A (en) Dma continuous transfer circuit
JPH01255922A (en) Semiconductor integrated circuit
JPH03273353A (en) Communication control equipment