JPH0439700B2 - - Google Patents

Info

Publication number
JPH0439700B2
JPH0439700B2 JP59172696A JP17269684A JPH0439700B2 JP H0439700 B2 JPH0439700 B2 JP H0439700B2 JP 59172696 A JP59172696 A JP 59172696A JP 17269684 A JP17269684 A JP 17269684A JP H0439700 B2 JPH0439700 B2 JP H0439700B2
Authority
JP
Japan
Prior art keywords
data
buffer
buffer area
information
data buffer
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
JP59172696A
Other languages
Japanese (ja)
Other versions
JPS6151256A (en
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 filed Critical
Priority to JP59172696A priority Critical patent/JPS6151256A/en
Publication of JPS6151256A publication Critical patent/JPS6151256A/en
Publication of JPH0439700B2 publication Critical patent/JPH0439700B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • G06F13/122Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware performs an I/O function other than control of data transfer

Description

【発明の詳細な説明】 (イ) 産業上の利用分野 本発明は情報処理装置あるいは通信制御処理装
置等におけるデータ転送制御方式に係り、特に通
信回線又はデータ通信網等のデータ転送路を経由
して転送される端末装置や他の情報処理装置から
の受信データを、記憶部上のデータバツフア領域
に効率よく転送し、制御プログラムに通知するた
めの受信データ転送制御方式に関する。
[Detailed Description of the Invention] (a) Field of Industrial Application The present invention relates to a data transfer control method in an information processing device or a communication control processing device, etc. The present invention relates to a received data transfer control method for efficiently transferring received data from a terminal device or other information processing device to a data buffer area on a storage unit and notifying a control program.

(ロ) 従来の技術 複数の通信回線を制御する通信制御処理装置で
は、従来は、各回線ごとに最大受信データ長以上
の大きさのデータバツフア領域を割り当ててお
き、いつ回線からの受信データが到着しても、直
ちに受信データをデータバツフア領域に格納でき
るように準備しておく方法をとる場合があつた。
この方式の場合、以下の2点についてデータバツ
フア領域の使用方法に無駄があつた。第1点は、
すべての回線から同時に受信データが到着するこ
とはほとんどありえないにもかかわらず、常にそ
のためのデータバツフア領域を準備していること
である。第2点は、通常の受信データ長は、最大
長に比べてかなり短いにもかかわらず、常に最大
受信データ長以上のデータバツフア領域を準備し
ていることである。
(b) Conventional technology Conventionally, in a communication control processing device that controls multiple communication lines, a data buffer area larger than the maximum received data length is allocated for each line, and it is determined when the received data from the line arrives. However, in some cases, the received data is prepared so that it can be immediately stored in the data buffer area.
In this method, the following two points were wasteful in the way the data buffer area was used. The first point is
Even though it is almost impossible for received data to arrive from all lines at the same time, a data buffer area is always prepared for it. The second point is that although the normal received data length is considerably shorter than the maximum length, a data buffer area that is longer than the maximum received data length is always prepared.

これらの無駄を改善するため、複数のバツフア
情報を保持するバツフア制御部を設け、データバ
ツフア領域は最大受信データ長の数分の一程度の
大きさに細分化してバツフア制御部に登録してお
き、回線からの受信データが到着して、それを格
納するためのデータバツフア領域が必要になつた
時点で、転送制御部はバツフア制御部から登録さ
れているバツフア情報を受け取り、そのバツフア
情報で指定されるデータバツフア領域に受信デー
タを格納する方法が考案された。ここで、バツフ
ア情報とは、例えば、データバツフア領域の先頭
アドレスとデータバツフア領域長から成る。
In order to improve these wastes, a buffer control section that holds a plurality of pieces of buffer information is provided, and the data buffer area is subdivided into a size of about a fraction of the maximum received data length and registered in the buffer control section. When received data from the line arrives and a data buffer area is required to store it, the transfer control unit receives the registered buffer information from the buffer control unit and specifies the data buffer area specified by the buffer information. A method has been devised for storing received data in a data buffer area. Here, the buffer information includes, for example, the start address of the data buffer area and the length of the data buffer area.

(ハ) 発明が解決しようとする問題点 本方式の場合、受信データが到着した回線だけ
がデータバツフア領域を使用し、かつ短い受信デ
ータに対しては少数のデータバツフア領域しか使
用しないため、データバツフア領域の使用効率は
格段に向上する。
(c) Problems to be solved by the invention In this method, only the line on which the received data has arrived uses the data buffer area, and only a small number of data buffer areas are used for short received data, so the data buffer area is Usage efficiency is greatly improved.

ところが、転送制御部が制御プログラムに対し
て受信データ格納先のデータバツフア領域を通知
するために行う割込み回数については、従来は受
信データ1個に対して1回で済んだのが、本方式
ではデータバツフア領域を細分化しているため、
一般に複数回必要となる。このため、制御プログ
ラムの負荷が増大し、これにより処理能力が低下
するという問題が生じた。
However, with regard to the number of interrupts that the transfer control unit makes to notify the control program of the data buffer area where the received data is stored, conventionally it was only required once for each received data, but in this method, the data buffer area is Because the area is subdivided,
Generally required multiple times. As a result, the load on the control program increases, resulting in a problem of reduced processing capacity.

本発明の目的は、上記従来技術の欠点を改善
し、データバツフア領域の使用効率が高く、制御
プログラムに対する割込み回数を削減した受信デ
ータ転送制御方式を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a received data transfer control system that improves the drawbacks of the prior art described above, has high data buffer area usage efficiency, and reduces the number of interrupts to a control program.

(ニ) 問題点を解決するための手段 記憶部と、該記憶部に格納された制御プログラ
ムを実行するプロセツサ部と、複数個のバツフア
情報を保持するバツフア制御部と、配下に接続さ
れた入出力装置からのデータ受信部には、前記バ
ツフア制御部からバツフア情報を受け取り、該バ
ツフア情報で指定される前記記憶部上のデータバ
ツフア領域に受信データを格納し、前記プロセツ
サ部に割込みを要求して制御プログラムに通知す
る転送制御部から成るデータ転送システムにおい
て、前記入出力装置からのデータ受信時に、前記
転送制御部は、受信データをその長さに応じて1
個又は複数個のデータバツフア領域に格納し、該
1個又は複数個のデータバツフア領域を示すバツ
フア情報の連鎖を前記記憶部上に格納し、該バツ
フア情報の連鎖の格納位置を前記制御プログラム
に通知することを特徴とする。
(d) Means for solving the problem A storage section, a processor section that executes a control program stored in the storage section, a buffer control section that holds a plurality of pieces of buffer information, and an input device connected thereunder. The data receiving unit from the output device receives buffer information from the buffer control unit, stores the received data in a data buffer area on the storage unit specified by the buffer information, and requests an interrupt to the processor unit. In a data transfer system consisting of a transfer control unit that notifies a control program, when receiving data from the input/output device, the transfer control unit converts the received data into 1 bits according to the length of the data.
store in one or more data buffer areas, store a chain of buffer information indicating the one or more data buffer areas on the storage unit, and notify the control program of the storage position of the chain of buffer information. It is characterized by

(ホ) 作用 本発明によれば、1回の通知のみでバツフア情
報の連鎖の格納位置を制御プログラムが識別する
ことができ、制御プログラムは全受信データ領域
を連続して処理することが可能となる。
(e) Effects According to the present invention, the control program can identify the storage location of the buffer information chain with only one notification, and the control program can continuously process the entire received data area. Become.

(ヘ) 実施例 本発明の1実施例の通信制御処理装置のブロツ
ク構成を第1図に示す。ここで、記憶部1には制
御プログラム、制御情報及び送受信データ等が格
納される。プロセツサ部4は、記憶部1に格納さ
れている制御プログラムの命令を読み出して実行
し、通信制御処理装置全体を制御する。また、割
込み要求信号線8,9により通知される割込み要
求に対応して、割込み動作を行う。上位インタフ
エース部3は、制御プログラムの制御の下に、上
位装置と本通信制御処理装置の間のデータ転送を
行う。転送制御部5は、制御プログラムの制御の
下に、接続されている複数の回線10〜11と本
通信制御処理装置の間のデータ転送を行う。バツ
フア制御部2は、記憶部1上に割り当てられた複
数のデータバツフア領域のうち、現在使用されて
いない空データバツフア領域に関するバツフア情
報を保持し、他モジユールからのデータバツフア
領域割当て要求に応答して、空データバツフア領
域の割当てを行う。ここで、他モジユールとは、
上位インタフエース制御部3、プロセツサ部4及
び転送制御部5を指す。また、一度割り当てられ
た後、不要となつたデータバツフア領域は、制御
プログラムがバツフア制御部2に返却するものと
する。また、共通バス7は、本通信制御処理装置
内のモジユール間でデータ転送を行うためのバス
である。
(f) Embodiment FIG. 1 shows a block configuration of a communication control processing device according to an embodiment of the present invention. Here, the storage unit 1 stores control programs, control information, transmission/reception data, and the like. The processor section 4 reads and executes commands of the control program stored in the storage section 1, and controls the entire communication control processing device. In addition, an interrupt operation is performed in response to an interrupt request notified via interrupt request signal lines 8 and 9. The higher-level interface unit 3 transfers data between the higher-level device and this communication control processing device under the control of the control program. The transfer control unit 5 transfers data between the plurality of connected lines 10 to 11 and the present communication control processing device under the control of a control program. The buffer control unit 2 retains buffer information regarding empty data buffer areas that are currently not in use among a plurality of data buffer areas allocated on the storage unit 1, and stores buffer information regarding empty data buffer areas in response to data buffer area allocation requests from other modules. Allocates data buffer area. Here, other modules are
This refers to the upper interface control section 3, processor section 4, and transfer control section 5. Furthermore, once allocated, the data buffer area that is no longer needed is returned to the buffer control unit 2 by the control program. Further, the common bus 7 is a bus for transferring data between modules within this communication control processing device.

バツフア制御部2の構成を第2図に示す。バツ
フア制御メモリ12は、複数の空データバツフア
領域に関するバツフア情報を保持する先入れ先出
し方式のキユーであり、そのキユー制御のための
アドレスポインタとして、ライトポインタ13と
リードポインタ14がある。第2図では、バツフ
ア情報0〜nのn+1個の空データバツフア領域
に関するバツフア情報を保持している状態を表わ
す。いま、転送制御部5から共通バス7を経由し
て、データバツフア領域割当て要求が発生した場
合には、バツフア情報0を共通バス7経由で返送
し、リードポインタ14の内容を+1する。転送
制御部5は、返送されたバツフア情報0を受け取
り、当該情報で指定される記憶部1上のデータバ
ツフア領域0を使用してデータ転送を行う。バツ
フア情報の形式は、第2図に示すように、データ
バツフア領域の先頭アドレスBFAIとデータバツ
フア領域長BFLI及び左端の未使用ビツト(常に
“0”とする)を含む。ただし、I=0,…nで
ある。
The configuration of the buffer control section 2 is shown in FIG. The buffer control memory 12 is a first-in, first-out queue that holds buffer information regarding a plurality of empty data buffer areas, and has a write pointer 13 and a read pointer 14 as address pointers for controlling the queue. FIG. 2 shows a state in which buffer information regarding n+1 empty data buffer areas of buffer information 0 to n is held. Now, when a data buffer area allocation request is generated from the transfer control unit 5 via the common bus 7, buffer information 0 is returned via the common bus 7 and the contents of the read pointer 14 are incremented by 1. The transfer control unit 5 receives the returned buffer information 0 and performs data transfer using the data buffer area 0 on the storage unit 1 specified by the information. The format of the buffer information, as shown in FIG. 2, includes the start address BFAI of the data buffer area, the length BFLI of the data buffer area, and an unused bit at the left end (always set to "0"). However, I=0,...n.

いま、転送制御部5が回線から第3図に示すよ
うな受信データを受信した場合の動作は、以下の
ようになり、記憶部1には第4図に示すようにデ
ータが格納される。
Now, when the transfer control section 5 receives received data as shown in FIG. 3 from the line, the operation is as follows, and the data is stored in the storage section 1 as shown in FIG. 4.

受信データを格納した複数のデータバツフア
領域を示すバツフア情報の連鎖を格納するため
に、データバツフア領域0の割当てを受ける。
Data buffer area 0 is allocated to store a chain of buffer information indicating a plurality of data buffer areas storing received data.

受信データを格納するために、データバツフ
ア領域1の割当てを受けて、そこに受信データ
の先頭のRDATA1の部分を格納してゆく。
In order to store the received data, data buffer area 1 is allocated, and the RDATA1 portion at the beginning of the received data is stored there.

データバツフア領域1がフルになるまで受信
データを格納したら、データバツフア領域0の
先頭に、データバツフア領域1を示すバツフア
情報を格納する。ここで、最左端のビツトはバ
ツフア情報の連鎖ビツトとして使用し、連鎖の
途中では“0”,連鎖の最後では“1”とする。
After storing the received data until data buffer area 1 becomes full, buffer information indicating data buffer area 1 is stored at the beginning of data buffer area 0. Here, the leftmost bit is used as a chain bit of buffer information, and is set to "0" in the middle of the chain and "1" at the end of the chain.

データバツフア領域2の割当てを受けて、当
該データバツフア領域への受信データの格納、
当該データバツフア領域を示すバツフア情報の
格納を,と同様に行う。
Upon receiving the allocation of the data buffer area 2, storing the received data in the data buffer area;
Buffer information indicating the relevant data buffer area is stored in the same manner as in .

データバツフア領域3に対してと同様に行
う。
The same process as for data buffer area 3 is performed.

データバツフア領域4の割当てを受けて、そ
こに受信データのRDATA4の部分を格納して
ゆく。
After receiving the allocation of the data buffer area 4, the RDATA4 portion of the received data is stored there.

受信データの終了を検出すると、データバツ
フア領域4を示すバツフア情報をデータバツフ
ア領域0のバツフア情報の連鎖の最後に格納す
る。この場合、最左端のバツフア情報の連鎖ビ
ツトは“1”とし、データバツフア領域長とし
ては、実際のデータバツフア領域長BFL4の代
りに、格納した受信データRDATA4の長さ
DTAL4の値を格納する。
When the end of the received data is detected, buffer information indicating data buffer area 4 is stored at the end of the chain of buffer information in data buffer area 0. In this case, the leftmost buffer information chain bit is set to "1", and the data buffer area length is the length of the stored received data RDATA4 instead of the actual data buffer area length BFL4.
Store the value of DTAL4.

データバツフア領域0のバツフア情報を含む
割込み要因情報を転送制御部5内の割込み要因
レジスタ(図示せず)に保持して、信号線9に
よりプロセツサ部4に割込みを要求する。
Interrupt cause information including buffer information of data buffer area 0 is held in an interrupt cause register (not shown) in transfer control section 5, and an interrupt is requested to processor section 4 via signal line 9.

これにより、制御プログラムの割込み処理ルー
チンが起動され、転送制御部5内の割込み要因レ
ジスタ(図示せず)の内容を共通バス7経由で読
み出して、回線からのデータを受信したこと、当
該受信データはデータバツフア領域0のバツフア
情報の連鎖で指定されるデータバツフア領域に格
納されたことを知る。
As a result, the interrupt processing routine of the control program is activated, reads the contents of the interrupt cause register (not shown) in the transfer control unit 5 via the common bus 7, and confirms that data from the line has been received. is stored in the data buffer area specified by the chain of buffer information in data buffer area 0.

以上説明した実施例では、転送制御部5は割込
み要因情報を割込み要因レジスタに保持してプロ
セツサ部4に割込みを要求するように説明した
が、複数の回線を制御している関係から、複数の
割込み要因が連続して発生する場合もありうるた
め、転送制御部5又はプロセツサ部4の内部に、
複数の割込み要因情報を先着順に保持可能なキユ
ーを設けることが好ましい。
In the embodiment described above, it has been explained that the transfer control unit 5 holds interrupt cause information in the interrupt cause register and requests an interrupt from the processor unit 4, but since it controls multiple lines, Since interrupt factors may occur consecutively, the transfer control unit 5 or processor unit 4 may have
It is preferable to provide a queue capable of holding a plurality of pieces of interrupt factor information on a first-come, first-served basis.

また、バツフア制御部2のバツフア制御メモリ
12については、記憶部1上の特定領域を使用す
る方式とすることも可能であり、この場合には、
バツフア制御部2の金物量を少なくすることがで
きる。
Furthermore, the buffer control memory 12 of the buffer control unit 2 may be configured to use a specific area on the storage unit 1; in this case,
The amount of hardware in the buffer control section 2 can be reduced.

(ト) 発明の効果 本発明によれば、受信データを格納するための
データバツフア領域を細分化することによりデー
タバツフア領域を効率よく使用し、かつ、制御プ
ログラムに対する割込み回数が少なくてすむた
め、情報処理装置又は通信制御処理装置等の処理
能力の向上に効果がある。
(G) Effects of the Invention According to the present invention, by dividing the data buffer area for storing received data into smaller parts, the data buffer area can be used efficiently, and the number of interrupts to the control program can be reduced, thereby improving information processing. This is effective in improving the processing capacity of devices, communication control processing devices, etc.

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

第1図は本発明の1実施例の通信制御処理装置
のブロツク構成を示す図、第2図はバツフア制御
部の構成を示す図、第3図は受信データとそれが
格納されるデータバツフア領域の対応を示す図、
第4図は記憶部上のデータバツフア領域に格納さ
れたバツフア情報の連鎖と受信データを示す図で
ある。 図中、1は記憶部、2はバツフア制御部、4は
プロセツサ部、5は転送制御部、12はバツフア
制御メモリである。
FIG. 1 is a diagram showing the block configuration of a communication control processing device according to an embodiment of the present invention, FIG. 2 is a diagram showing the configuration of a buffer control section, and FIG. 3 is a diagram showing received data and a data buffer area in which it is stored. Diagram showing correspondence,
FIG. 4 is a diagram showing a chain of buffer information stored in a data buffer area on a storage unit and received data. In the figure, 1 is a storage section, 2 is a buffer control section, 4 is a processor section, 5 is a transfer control section, and 12 is a buffer control memory.

Claims (1)

【特許請求の範囲】 1 記憶部と、該記憶部に格納された制御プログ
ラムを実行するプロセツサ部と、複数個のバツフ
ア情報を保持するバツフア制御部と、配下に接続
された入出力装置からのデータ受信時には、前記
バツフア制御部からバツフア情報を受け取り、該
バツフア情報で指定される前記記憶部上のデータ
バツフア領域に受信データを格納し、前記プロセ
ツサ部に割込みを要求して制御プログラムに通知
する転送制御部から成るデータ転送システムにお
いて、前記入出力装置からのデータ受信時に、前
記転送制御部は、受信データをその長さに応じて
1個又は複数個のデータバツフア領域に格納し、
該1個又は複数個のデータバツフア領域を示すバ
ツフア情報の連鎖を前記記憶部上に格納し、該バ
ツフア情報の連鎖の格納位置を前記制御プログラ
ムに通知することを特徴とする受信データ転送制
御方式。 2 前記バツフア情報は、少なくとも、対応する
前記データバツフア領域の先頭アドレス情報と当
該データバツフア領域の長さを示す情報を含むこ
とを特徴とする特許請求の範囲第1項記載の受信
データ転送制御方式。
[Scope of Claims] 1. A storage unit, a processor unit that executes a control program stored in the storage unit, a buffer control unit that holds a plurality of pieces of buffer information, and a buffer control unit that stores data from input/output devices connected thereunder. When receiving data, buffer information is received from the buffer control section, the received data is stored in a data buffer area on the storage section specified by the buffer information, and an interrupt is requested from the processor section to notify the control program. In a data transfer system comprising a control unit, when receiving data from the input/output device, the transfer control unit stores the received data in one or more data buffer areas according to the length of the received data,
A received data transfer control method, characterized in that a chain of buffer information indicating the one or more data buffer areas is stored on the storage unit, and a storage position of the chain of buffer information is notified to the control program. 2. The reception data transfer control system according to claim 1, wherein the buffer information includes at least information indicating the start address of the corresponding data buffer area and the length of the data buffer area.
JP59172696A 1984-08-20 1984-08-20 Receiving data transfer control system Granted JPS6151256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59172696A JPS6151256A (en) 1984-08-20 1984-08-20 Receiving data transfer control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59172696A JPS6151256A (en) 1984-08-20 1984-08-20 Receiving data transfer control system

Publications (2)

Publication Number Publication Date
JPS6151256A JPS6151256A (en) 1986-03-13
JPH0439700B2 true JPH0439700B2 (en) 1992-06-30

Family

ID=15946655

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59172696A Granted JPS6151256A (en) 1984-08-20 1984-08-20 Receiving data transfer control system

Country Status (1)

Country Link
JP (1) JPS6151256A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4878197A (en) * 1987-08-17 1989-10-31 Control Data Corporation Data communication apparatus
JPH01276257A (en) * 1988-04-27 1989-11-06 Yamatake Honeywell Co Ltd Communication control device

Also Published As

Publication number Publication date
JPS6151256A (en) 1986-03-13

Similar Documents

Publication Publication Date Title
US5325492A (en) System for asynchronously delivering self-describing control elements with a pipe interface having distributed, shared memory
US5251303A (en) System for DMA block data transfer based on linked control blocks
KR100766732B1 (en) Device and method for performing high-speed low overhead context switch
GB2101374A (en) Interface circuit
EP0208430B1 (en) A method and apparatus for performing variable length data read transactions
SK31194A3 (en) Multi-media signal processor computer system
US5161215A (en) Method for controlling data transfer buffer
US5155830A (en) Data processing system capable of performing a direct memory access transfer of data stored in a physical area in a memory
US5923852A (en) Method and system for fast data transmissions in a processing system utilizing interrupts
JPS5897944A (en) Data transfer system among microprocessors
JPH0439700B2 (en)
JPH02310649A (en) Reception frame transfer system and communication controller
US6633928B2 (en) Fast process context switching buffer
JPS62182957A (en) Communication tracing system
JPS61250758A (en) Communication controller
JPS62192844A (en) Dma control circuit
JP2789654B2 (en) Buffer control method
JPS5958552A (en) Slowdown control system
JPS5921051B2 (en) Communication control device
JPH02253457A (en) Host computer
JPS61290548A (en) Area managing system for memory device
JPH0644258B2 (en) DMA transfer destination buffer setting method
JPH03212752A (en) Data communication system
JPH0423979B2 (en)
JPH0298764A (en) File data transfer control system