Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6259336B2 - - Google Patents
[go: Go Back, main page]

JPS6259336B2 - - Google Patents

Info

Publication number
JPS6259336B2
JPS6259336B2 JP58142459A JP14245983A JPS6259336B2 JP S6259336 B2 JPS6259336 B2 JP S6259336B2 JP 58142459 A JP58142459 A JP 58142459A JP 14245983 A JP14245983 A JP 14245983A JP S6259336 B2 JPS6259336 B2 JP S6259336B2
Authority
JP
Japan
Prior art keywords
buffer
data
length
reception
received
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP58142459A
Other languages
Japanese (ja)
Other versions
JPS6033627A (en
Inventor
Takeshi Oonuki
Seiichi Yasumoto
Hitoshi Fushimi
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP58142459A priority Critical patent/JPS6033627A/en
Publication of JPS6033627A publication Critical patent/JPS6033627A/en
Publication of JPS6259336B2 publication Critical patent/JPS6259336B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F5/00Methods or arrangements for data conversion without changing the order or content of the data handled
    • G06F5/06Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor
    • G06F5/065Partitioned buffers, e.g. allowing multiple independent queues, bidirectional FIFO's

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Memory System (AREA)
  • Communication Control (AREA)

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明はデータ伝送路と主処理装置内の主記憶
との間のデータ転送処理を行うためのデータ処理
装置に於るバツフア制御方法に係り、特に伝送路
から受信するデータブロツクの長さが可変の場合
に効率より転送処理を行えるようにしたバツフア
制御方法に関する。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to a buffer control method in a data processing device for performing data transfer processing between a data transmission line and a main memory in a main processing device. In particular, the present invention relates to a buffer control method that allows more efficient transfer processing when the length of data blocks received from a transmission path is variable.

〔発明の背景〕[Background of the invention]

計算機と接続された伝送路では、例えばHDLC
方式にもとづいたデータブロツクの転送が行わ
れ、この伝送路と計算機の主記憶との間はデータ
処理装置(チヤネルとも呼ばれる)によつて接続
されている。このデータ処理装置には通常マイク
ロコンピユータが用いられているが、計算機入出
力パスとデータ処理装置内のマイコンバスとはイ
ンターフエイスが異るため、受信データはデータ
処理装置内部のバツフアメモリに一たん格納した
後、主記憶に転送される。この場合データ処理装
置は伝送路から送られてくるデータブロツクを粉
失することなく受信する必要があるため、受信バ
ツフアと主記憶との転送速度はデータ伝送路の伝
送速度より速くなければならない。しかしこの条
件が満されていても次のような問題がある。即ち
受信する伝送データ長が可変長であり、そのデー
タの最大長と最小長の差が極端に大きな場合、こ
れらの伝送データを粉失せずに連続して受信する
ためには、2本の受信バツフアを交互に使用しか
つ最長の受信データを主記憶へ転送する時間を最
小長の伝送路データの伝送時間以下にするように
高速のDMA制御回路を使用する必要があり、ハ
ードウエア量が大幅に増大してしまうという欠点
である。一方、主記憶との転送をマイクロプログ
ラムを介入させて行う方法を用いれば、前記
DMA方式に比べてハードウエア量を少くするこ
とができるが、最大長のデータを受信後それを主
記憶へ転送中に、データ伝送路から続いて送られ
てくる複数の可変長ブロツクデータを受信するた
めのバツフアが必要になつてくる。このためのバ
ツフア数は、最大長データの主記憶への転送時間
と、最小長のデータの伝送時間の関係から決定で
きるが、各受信バツフアのサイズは可変長データ
の受信以前には予測できないので、最大サイズで
構成しなければならず、従つて多数の最大長バツ
フアが必要となり、データ処理装置内に使用効率
の悪い大容量バツフアを設けねばならないという
欠点がある。
In the transmission line connected to the computer, for example, HDLC
Data blocks are transferred based on the system, and this transmission path and the main memory of the computer are connected by a data processing device (also called a channel). This data processing device usually uses a microcomputer, but since the computer input/output path and the microcomputer bus inside the data processing device have different interfaces, the received data is temporarily stored in the buffer memory inside the data processing device. After that, it is transferred to main memory. In this case, the data processing device must receive the data block sent from the transmission path without losing it, so the transfer speed between the reception buffer and the main memory must be faster than the transmission speed of the data transmission path. However, even if this condition is met, the following problems still occur. In other words, if the length of the transmitted data to be received is variable and the difference between the maximum length and the minimum length of the data is extremely large, two reception It is necessary to use a high-speed DMA control circuit to alternately use buffers and keep the time to transfer the longest received data to main memory less than the transmission time of the minimum length transmission path data, which requires a large amount of hardware. The disadvantage is that it increases. On the other hand, if a method is used in which the transfer with the main memory is performed by intervening a microprogram, the
The amount of hardware can be reduced compared to the DMA method, but after receiving the maximum length data, while transferring it to the main memory, multiple variable length blocks of data successively sent from the data transmission path are received. You will need a buffer to do this. The number of buffers for this purpose can be determined from the relationship between the transfer time of maximum length data to main memory and the transmission time of minimum length data, but the size of each reception buffer cannot be predicted before receiving variable length data. , has to be configured with the maximum size, therefore, a large number of maximum length buffers are required, and there is a disadvantage that large capacity buffers with poor usage efficiency must be provided in the data processing device.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、データ伝送路に接続され、相
手装置からデータ伝送路上に送られてくるブロツ
ク単位のデータを受信しそのブロツク単位に計算
機の主記憶に転送する機能を有するデータ処理装
置に於て、少量のバツフアメモリを用いて可変長
ブロツク単位のデータを失うことなく主記憶へ転
送することのできるマイクロプログラム制御のバ
ツフア制御方法を提供するにある。
An object of the present invention is to provide a data processing device that is connected to a data transmission path and has a function of receiving data in blocks sent from a partner device onto the data transmission path and transferring the data in blocks to the main memory of a computer. Therefore, the present invention provides a microprogram-controlled buffer control method that can transfer variable-length block unit data to main memory without losing it using a small amount of buffer memory.

〔発明の概要〕[Summary of the invention]

本発明の特徴は、データ処理装置内部の受信バ
ツフア群に2種類のバツフア長を割付け、各受信
バツフアの使用方法を規定することによつて限ら
れた容量のバツフアメモリを用いて極めて使用効
率の高いバツフア制御を行うようにしたことであ
る。即ち第1のバツフア群として最大受信データ
長のデータブロツクを格納できるバツフアを最低
2個以上準備し、第2のバツフア群として短いデ
ータのみを格納できる専用のバツフア群を複数個
準備する。
A feature of the present invention is that by allocating two types of buffer lengths to a group of receive buffers within a data processing device and defining how each receive buffer is used, it is possible to achieve extremely high usage efficiency using a limited buffer memory capacity. This is because buffer control is performed. That is, at least two or more buffers capable of storing data blocks of the maximum received data length are prepared as a first buffer group, and a plurality of dedicated buffer groups capable of storing only short data are prepared as a second buffer group.

そしてデータ伝送路からの受信データ長は前も
つて予測できないために、常に最大データ長を受
信できる第1のバツフア群の一つを受信バツフア
として割当てておき、データ受信完了後そのデー
タ長を検出し、第2のバツフア群のバツフア長よ
りも小さければ、第1の受信バツフア群から短い
データのみを格納できる第2の専用バツフア群に
受信データをコピーし、これらの短かい受信ブロ
ツクデータの主記憶への転送は、第2の専用バツ
フア群を使用する。受信データが第2のバツフア
長より大きければ第2の専用バツフア群にはコピ
ーせずに、そのまま第1のバツフア群を主記憶と
の転送に使用するようにしたものである。
Since the length of the received data from the data transmission path cannot be predicted in advance, one of the first buffer groups that can always receive the maximum data length is assigned as the reception buffer, and the data length is detected after data reception is completed. However, if the buffer length is smaller than the buffer length of the second buffer group, the received data is copied from the first receive buffer group to a second dedicated buffer group that can store only short data, and the main buffer of these short receive block data is Transfer to storage uses a second dedicated buffer group. If the received data is larger than the second buffer length, it is not copied to the second dedicated buffer group, and the first buffer group is directly used for transfer with the main memory.

〔発明の実施例〕[Embodiments of the invention]

以下本発明の一実施例を示す。第1図は本発明
の一実施例のデータ処理装置1を介してデータ伝
送路2と主処理装置3、主記憶4を結合した
CPU入出力バス5とを接続したシステムの構成
図である。第2図はデータ処理装置1の実施例を
示すブロツク図で、EDLC制御回路17はデータ
伝送路2からビツトシリアルに入力される受信デ
ータをバイト単位に組立て、マイコンバス16へ
出力する。このバイト単位の受信データは、アド
レス及び格納バイト数を制御するDMAC回路1
5の制御によつて受信バータバツフアメモリ18
へ高速度で格納される。マイクロコンピユータ1
2はROM13に格納されたマイクロプログラム
によつて本データ処理装置の機能を実現するため
の種種の制御を行う。バスインターフエイス制御
回路11はHDLC制御回路17からの受信データ
を一旦格納している受信データバツフアメモリ1
8のデータをCPU入出力バス5を介して主処理
装置の主記憶へ転送する。受信データバツフアメ
モリ18には、受信データの最大長に等しいバツ
フア長を有する第1の受信バツフア群181,1
82とこれらの受信完了と空きを管理する管理テ
ーブル183、及び受信データの最小長に等しい
バツフア長を有する第2の受信バツフア群184
〜186とこれらの受信完了と空きを管理する管
理テーブル187が設けられている。又ROM1
3には、DMAC15の制御のもとでHDLC制御回
路17から受信バツフアメモリ18に格納される
受信データをブロツク単位に処理するためのブロ
ツク受信完了処理マイクロプログラム131と、
受信データバツフアメモリ18内に格納された受
信データを主処理装置の主記憶へブロツク単位に
転送するための受信済バツフア主記憶転送処理マ
イクロプログラム132がある。制御信号12
0,121,122はHDLC制御回路17からの
1バイト単位の受信データを受信データバツフア
メモリ18に高速に格納するときに内部マイコン
データバス16をマイクロプログラム動作から解
放させてDMAC15の制御に委ねるために必要
な制御信号であり、クロツク受信完了割込み14
はHDLC制御回路17がHDLC方式に於る受信デ
ータブロツクの最後を示すフラグパターンを検出
した時にこれをマイクロコンピユータ12へ連絡
するものである。
An embodiment of the present invention will be shown below. FIG. 1 shows a data transmission path 2, a main processing device 3, and a main memory 4 connected via a data processing device 1 according to an embodiment of the present invention.
FIG. 2 is a configuration diagram of a system in which a CPU input/output bus 5 is connected. FIG. 2 is a block diagram showing an embodiment of the data processing device 1. The EDLC control circuit 17 assembles the received data bit-serially input from the data transmission path 2 into byte units and outputs them to the microcomputer bus 16. This received data in bytes is sent to the DMAC circuit 1 which controls the address and number of stored bytes.
5, the reception buffer memory 18
stored at high speed. Microcomputer 1
2 performs various controls to realize the functions of this data processing device by means of microprograms stored in the ROM 13. The bus interface control circuit 11 is a reception data buffer memory 1 that temporarily stores the reception data from the HDLC control circuit 17.
8 is transferred to the main memory of the main processing unit via the CPU input/output bus 5. The reception data buffer memory 18 includes a first reception buffer group 181,1 having a buffer length equal to the maximum length of reception data.
82, a management table 183 for managing reception completion and free space, and a second reception buffer group 184 having a buffer length equal to the minimum length of reception data.
- 186 and a management table 187 for managing their reception completion and availability. Also ROM1
3 includes a block reception completion processing microprogram 131 for processing received data stored in the reception buffer memory 18 from the HDLC control circuit 17 in block units under the control of the DMAC 15;
There is a received buffer main memory transfer processing microprogram 132 for transferring the received data stored in the received data buffer memory 18 to the main memory of the main processing unit in block units. control signal 12
0, 121, and 122 release the internal microcomputer data bus 16 from the microprogram operation and leave it to the control of the DMAC 15 when storing the received data in units of bytes from the HDLC control circuit 17 in the reception data buffer memory 18 at high speed. This is a control signal necessary for the clock reception completion interrupt 14.
is for communicating this to the microcomputer 12 when the HDLC control circuit 17 detects a flag pattern indicating the end of the received data block in the HDLC system.

以上のデータ処理装置の詳細な動作に先立つて
まずこの装置のクローバルな動作を、第3図のタ
イムチヤートによつて説明する。まずデータ伝送
路2から受信されるデータブロツクはB1(長)、
B2(短)、B3(短)、B4(短)、B5(長)の順序と
なる。これらのデータブロツクは順次DMAC1
5を介して受信データバツフアメモリ18内の長
いデータ長のいずれかのバツフアへ受信され、第
4図及び第6図で後に説明するブロツク受信完了
処理マイクロプログラム131及び受信済バツフ
ア主記憶転送処理マイクロプログラム132によ
つて処理される。即ちブロツクB1は長いデータ
ブロツクであるからデータ伝送路から受信格納し
た第1の受信バツフア群のバツフア181にその
まゝ格納され、このデータブロツクB1の受信完
了時の割込み14によりバツフア181から転送
時間T1にて主記憶4へ転送される。その後引き
続き短いデータブロツクB2〜B4がデータ伝送路
2より受信されるが、データ処理装置は事前にデ
ータブロツク長が短いことを知ることができない
ので、いずれも第1の長い受信バツフア群の空き
バツフア182へこれらを一旦格納し、ブロツク
B2,B3,B4の各々の受信完了時のブロツク受信
完了信号14の割込みによりデータ処理装置は現
在受信したデータブロツクが短いものであること
を知り、これらのブロツクをバツフア182から
第2の受信バツフア群184〜186へ次々とコ
ピーする。そしてこれらのコピーされたデータブ
ロツクが転送時間T2〜T4で主記憶4へ転送され
る。以下の動作も同様であるが、ここでもしブロ
ツクB2〜B4の短いデータブロツクに対して第2
の短い受信バツフア群へコピーしないことにする
と、短いデータブロツク群が連続して送られてき
ているにも拘らず第1の長いバツフア群を多量に
確保しておかねばならず、大容量のバツフアメモ
リを無駄に使うことになる。
Prior to the detailed operation of the data processing apparatus described above, the global operation of this apparatus will be explained with reference to the time chart shown in FIG. First, the data block received from data transmission path 2 is B 1 (long),
The order is B 2 (short), B 3 (short), B 4 (short), B 5 (long). These data blocks are sequentially transferred to DMAC1.
5 to any long data buffer in the reception data buffer memory 18, and the block reception completion processing microprogram 131 and received buffer main memory transfer processing, which will be explained later with reference to FIGS. 4 and 6, are performed. Processed by microprogram 132. That is, since block B 1 is a long data block, it is stored as is in the buffer 181 of the first receiving buffer group that received it from the data transmission path, and is transferred from the buffer 181 by interrupt 14 when the reception of this data block B 1 is completed. It is transferred to the main memory 4 at transfer time T1 . Thereafter, short data blocks B2 to B4 are successively received from the data transmission path 2, but since the data processing device cannot know in advance that the data block length is short, they are all received from the first long receiving buffer group. These are temporarily stored in the free buffer 182, and then
Upon completion of reception of each of B 2 , B 3 , and B 4 , the data processing device learns that the currently received data block is short by the interruption of the block reception completion signal 14 , and transfers these blocks from the buffer 182 to the second block. The received buffers 184 to 186 are successively copied. These copied data blocks are then transferred to the main memory 4 during transfer times T2 to T4 . The following operations are similar, but here, if the second data block is
If it is decided not to copy data to the short receiving buffer group, a large amount of the first long buffer group must be reserved even though short data block groups are being sent continuously, and a large capacity buffer memory is required. will be wasted.

第4図はブロツク受信完了処理マイクロプログ
ラム131によるバツフア制御のフローチヤート
であり、これは前述のように伝送路2からのデー
タブロツクの受信完了毎にHDLC制御回路17か
ら送られる割込信号14により起動される。この
プログラムではまず受信したデータブロツク長
DCをステツプ200、201で算出する。DMAC15
では最初長いバツフアの1つBLへ受信データを
入力する時、長いバツフアのデータ長n0を初期値
とし、受信したデータ長を差引いて残りデータ長
nをカウントしているので、ステツプ200ではこ
のnをとり込み、ステツプ201でDC=n0−nから
受信データ長DCを算出する。続いて第2の受信
バツフア長m0と受信データ長DCをステツプ202
で比較しDC≦m0ならば第2のバツフア群の空管
理テーブル187を参照して空バツフアの1つ
BSをステツプ203で取り出し、ステツプ204でバ
ツフアBL内のデータをここへコピーし、バツフ
アBSを受信済とするためにステツプ205で受
信済管理テーブル187に登録する。さらにデー
タ伝送路2に対して再び受信可とするために今迄
用いた第1バツフアBLの先頭アドレスおよび格
納バイト数をステツプ206でDMAC15に設定す
る。もしステツプ202で受信データ長DCが第2の
受信バツフア長m0以上ならば、受信データをコ
ピーせず該第1の受信バツフアBLを受信済管理
テーブル183にステツプ207で登録し、別の第
1データバツフアの先頭アドレス及び格納バイト
数をステツプ208でDMAC15に設定して割込動
作を完了する。第5図は、第1のデータバツフア
群と第2のデータバツフア群における受信データ
バツフアの空状態と受信済状態を示す管理テーブ
ル183,187および受信バツフアの構成例を
示したものである。
FIG. 4 is a flowchart of buffer control by the block reception completion processing microprogram 131, which is controlled by the interrupt signal 14 sent from the HDLC control circuit 17 every time the reception of a data block from the transmission path 2 is completed, as described above. will be activated. In this program, first the received data block length is
Calculate DC in steps 200 and 201. DMAC15
First, when inputting the received data to one of the long buffers BL, the data length n 0 of the long buffer is set as the initial value, and the received data length is subtracted to count the remaining data length n. In step 201, the received data length DC is calculated from DC=n 0 -n. Next, step 202 calculates the second reception buffer length m0 and reception data length DC.
If DC≦m 0 , refer to the empty management table 187 of the second buffer group and select one of the empty buffers.
The BS is extracted in step 203, the data in the buffer BL is copied therein in step 204, and the buffer BS is registered in the received management table 187 in step 205 to mark it as received. Furthermore, in order to make the data transmission path 2 receivable, the starting address and number of stored bytes of the first buffer BL used up to now are set in the DMAC 15 in step 206. If the received data length DC is greater than or equal to the second received buffer length m0 in step 202, the first received buffer BL is registered in the received management table 183 in step 207 without copying the received data, and another The start address and number of stored bytes of one data buffer are set in the DMAC 15 in step 208, and the interrupt operation is completed. FIG. 5 shows a configuration example of the management tables 183 and 187 indicating the empty status and received status of the reception data buffers in the first data buffer group and the second data buffer group, and the reception buffers.

第6図は、第4図のプログラム処理によつて受
信済とされたバツフアから主記憶へデータを転送
するためのマイクロプログラム132のフローチ
ヤートを示したものである。このマイクロプログ
ラムは、ブロツク受信完了処理マイクロプログラ
ム131と同時動作させるため常時割込解除で動
作し、第1又は第2の受信バツフア群から、受信
済のデータバツフアのデータをバスインターフエ
ース制御回路11を介して主処理装置の主記憶4
へ転送する。即ちステツプ300、301では管理テー
ブル183,187を参照して受信済データバツ
フアがあるかどうか、又それがどのバツフアであ
るかをしらべ、いずれの場合もステツプ302又は
303でそのバツフアの内容を主記憶へ転送し、そ
の後ステツプ304又は305で当該受信バツフアを管
理テーブル183又は187の空管理テーブルへ
返却して、又次の受信済データバツフアの状態を
監視しつづけ、連続的にデータ転送が行われる。
FIG. 6 shows a flowchart of the microprogram 132 for transferring data from the buffer to the main memory that is determined to have been received by the program processing of FIG. This microprogram operates with interrupts canceled at all times in order to operate simultaneously with the block reception completion processing microprogram 131, and transfers the received data buffer data from the first or second receive buffer group to the bus interface control circuit 11. Main memory 4 of the main processing unit via
Transfer to. That is, in steps 300 and 301, the management tables 183 and 187 are referred to to find out whether there is a received data buffer and which buffer it is, and in either case, step 302 or
In step 303, the contents of the buffer are transferred to the main memory, and then in step 304 or 305, the received buffer is returned to the empty management table of management table 183 or 187, and the status of the next received data buffer is continued to be monitored. Data transfer is performed continuously.

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

本発明によればHDLC通信装置の様にブロツク
単位に送受信する機能を有するデータ処理装置に
おいて、主処理装置内の主記憶との転送能力を特
に高速化しなくとも、少量のバツフアを用いて受
信データを失うことなく効率のよいバツフア制御
を行え、装置のハードウエア量を減少させること
ができるという効果がある。
According to the present invention, in a data processing device such as an HDLC communication device that has the function of transmitting and receiving data in blocks, the received data can be transferred using a small amount of buffer without the need to particularly speed up the transfer capability with the main memory in the main processing device. This has the advantage that efficient buffer control can be performed without loss of performance, and the amount of hardware in the device can be reduced.

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

第1図は本発明のデータ処理装置が接続される
システム構成図、第2図は本発明のデータ処理装
置の一実施例を示すブロツク図、第3図は本装置
によるデータ伝送路からの受信データの主記憶へ
の転送方法を示すタイムチヤート、第4図は受信
データを各バツフアへ格納するためのマイクロプ
ログラムのフローチヤート、第5図は受信バツフ
ア管理テーブルの説明図、第6図は主記憶との転
送を行うためのマイクロプログラムのフローチヤ
ートである。 1……データ処理装置、4……主記憶、12…
…マイクロプロセツサ、13……ROM、18…
…受信バツフア、181,182,184,18
5,186……バツフア、183,187……管
理テーブル、131……ブロツク受信完了処理マ
イクロプログラム、132……受信済バツフア主
記憶転送処理マイクロプログラム。
FIG. 1 is a system configuration diagram to which the data processing device of the present invention is connected, FIG. 2 is a block diagram showing an embodiment of the data processing device of the present invention, and FIG. 3 is a diagram showing reception from the data transmission path by the device. A time chart showing the method of transferring data to the main memory, Figure 4 is a flowchart of the microprogram for storing received data in each buffer, Figure 5 is an explanatory diagram of the reception buffer management table, and Figure 6 is the main This is a flowchart of a microprogram for data transfer to and from memory. 1...Data processing device, 4...Main memory, 12...
...Microprocessor, 13...ROM, 18...
...Reception buffer, 181, 182, 184, 18
5,186...Buffer, 183,187...Management table, 131...Block reception completion processing microprogram, 132...Received buffer main memory transfer processing microprogram.

Claims (1)

【特許請求の範囲】[Claims] 1 外部より可変長のブロツク単位で送られてき
たデータを一たんその内部バツフアメモリへ受信
した後主記憶装置へ転送するように構成されたデ
ータ処理装置内のバツフア制御方法に於て、その
各々のバツフアが最大長のデータブロツクを格納
できる長さを有した第1のバツフア群と、その各
各のバツフアが上記第1のバツフア群のバツフア
長より短いバツフア長を有した第2のバツフア群
と、受信完了処理手段と、転送処理手段とを設け
るとともに、入力されたデータブロツクは上記第
1のバツフア群の空きバツフアの1つに一たん受
信した後、該受信したデータブロツクの長さが上
記第2のバツフア群のバツフア長をこえない時に
は上記第2のバツフア群の空きバツフアの1つへ
上記受信した受信データブロツクを転送して受信
完了とし、上記受信したデータブロツクの長さが
上記第2のバツフア群のバツフア長をこえた時に
は上記転送は行わずに受信完了とするように上記
受信完了処理手段に制御せしめ、更に上記受信完
了となつたバツフアがある時には該バツフアに格
納されたデータブロツクを主記憶装置へ転送して
当該バツフアを空きバツフアとするように上記転
送処理手段に制御せしめるようにしたことを特徴
とするバツフア制御方法。
1. In a buffer control method within a data processing device configured to receive data sent from the outside in variable-length blocks once into its internal buffer memory and then transfer it to the main storage device, each a first buffer group in which the buffers have a length capable of storing a maximum length data block; and a second buffer group in which each buffer has a buffer length shorter than the buffer length of the first buffer group. , a reception completion processing means, and a transfer processing means are provided, and once the input data block is received in one of the empty buffers of the first buffer group, the length of the received data block is set as above. When the buffer length of the second buffer group is not exceeded, the received data block is transferred to one of the empty buffers of the second buffer group and the reception is completed, and the length of the received data block is equal to the length of the buffer of the second buffer group. When the buffer length of the second buffer group is exceeded, the reception completion processing means is controlled to complete the reception without performing the above transfer, and furthermore, when there is a buffer whose reception has been completed, the data stored in the buffer is 1. A buffer control method, characterized in that the transfer processing means is controlled to transfer a block to a main storage device and make the buffer an empty buffer.
JP58142459A 1983-08-05 1983-08-05 Buffer control method Granted JPS6033627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58142459A JPS6033627A (en) 1983-08-05 1983-08-05 Buffer control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58142459A JPS6033627A (en) 1983-08-05 1983-08-05 Buffer control method

Publications (2)

Publication Number Publication Date
JPS6033627A JPS6033627A (en) 1985-02-21
JPS6259336B2 true JPS6259336B2 (en) 1987-12-10

Family

ID=15315806

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58142459A Granted JPS6033627A (en) 1983-08-05 1983-08-05 Buffer control method

Country Status (1)

Country Link
JP (1) JPS6033627A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2773198B2 (en) * 1989-03-22 1998-07-09 日本電気株式会社 Data transfer device

Also Published As

Publication number Publication date
JPS6033627A (en) 1985-02-21

Similar Documents

Publication Publication Date Title
JP3863912B2 (en) Automatic start device for data transmission
US6925512B2 (en) Communication between two embedded processors
KR100326864B1 (en) Network communication method and network system
EP0674276B1 (en) A computer system
US5640602A (en) Transferring digital data in units of 2 bytes to increase utilization of a 2-byte-wide bus
JP3127523B2 (en) Communication control device and data transmission method
US5179709A (en) Look ahead bus transfer request
CN118550857B (en) Data transmission method, device, electronic device and storage medium
US5930483A (en) Method and apparatus for communications control on a small computer system interface
JPH10334037A (en) Communication dma device
JPS6259336B2 (en)
EP0378422B1 (en) Look ahead bus transfer request
JP3058010B2 (en) Method and apparatus for communication between processors
JPS6057453A (en) Data processing system
JP2723245B2 (en) Facsimile storage and switching equipment
JP2002176464A (en) Network interface device
US6763405B2 (en) Process for interfacing a microprocessor with a packet based device and respective system
JP2953362B2 (en) LAN switching device
JPH02189049A (en) Line controller
JPH0353736A (en) Reception buffer control system
JPS59721A (en) Control system of information transfer
JPH0713881A (en) Communication processing device
JPS59230346A (en) Buffering system of transmission/reception data of transmitter
JPH01291350A (en) Channel device
JPH11146019A (en) Data transfer device