JPH08171523A - Synchronization control method of communication control system - Google Patents

Synchronization control method of communication control system

Info

Publication number
JPH08171523A
JPH08171523A JP6315118A JP31511894A JPH08171523A JP H08171523 A JPH08171523 A JP H08171523A JP 6315118 A JP6315118 A JP 6315118A JP 31511894 A JP31511894 A JP 31511894A JP H08171523 A JPH08171523 A JP H08171523A
Authority
JP
Japan
Prior art keywords
descriptor
command
status
processing
descriptors
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.)
Granted
Application number
JP6315118A
Other languages
Japanese (ja)
Other versions
JP2939707B2 (en
Inventor
Toshiya Matsuoka
俊哉 松岡
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.)
NEC Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP6315118A priority Critical patent/JP2939707B2/en
Publication of JPH08171523A publication Critical patent/JPH08171523A/en
Application granted granted Critical
Publication of JP2939707B2 publication Critical patent/JP2939707B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE: To provide the synchronization control method of the communication control system which shorten a synchronization control time that is not necessary for an original communication control processing and improves the processing speed of a CCU. CONSTITUTION: A CPU 1 when setting command descriptors adds discrimination information on communication processing instruction to the individual command descriptors and previously informs the CPU of the number of set command descriptors or whether or not there is a command descriptor and the CCU 2 when setting status descriptors adds discrimination information on processing result reports to the individual status descriptions and previously informs the CPU 1 of the number of set status descriptors or whether or not there is a status descriptor. Thus, the CCU 2 and CPU 1 need not to recognize whether or not the individual descriptors and their availability by accessing a main memory 3.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、情報処理装置(以下、
CPU)と通信制御装置(以下、CCU)との間で行わ
れる処理指示や処理結果報告を主メモリに設定したディ
スクリプタを用いて行う通信制御システムに関し、特
に、CPUとCCUとの間のシステム同期制御方法に関
する。なお、CCUという場合、内部にプロセッサを有
する通信制御処理装置を含むものとする。
BACKGROUND OF THE INVENTION The present invention relates to an information processing device (hereinafter,
The present invention relates to a communication control system that uses a descriptor that sets a processing instruction and a processing result report performed between a CPU and a communication control unit (hereinafter, CCU) in a main memory, and particularly, system synchronization between the CPU and the CCU. Regarding control method. Note that the CCU includes a communication control processing device having a processor inside.

【0002】[0002]

【従来の技術】共通のバスに多数のCCUが接続された
り、高速度通信に対応するCCUを含む通信制御システ
ムでは、ディスクリプタの付け替えのような処理を極力
低減させて個々のCCUの処理速度の低下を防止するこ
とが重要となる。そこで、特願平02−190062号
公報に開示された「ディスクリプタチェーニング方式」
では、ディスクリプタをリング状に接続して論理的に連
続させることにより、上述のディスクリプタの付け替え
処理に要する時間を無くし、CCUの処理速度の低下を
防いでいる。
2. Description of the Related Art In a communication control system in which a large number of CCUs are connected to a common bus or which includes CCUs capable of high-speed communication, processing such as descriptor replacement is reduced as much as possible to reduce the processing speed of individual CCUs. It is important to prevent the decline. Then, the "descriptor chaining method" disclosed in Japanese Patent Application No. 02-190062.
Then, by connecting the descriptors in a ring shape and making them logically continuous, the time required for the descriptor replacement processing described above is eliminated, and a decrease in the processing speed of the CCU is prevented.

【0003】ところがこの「ディスクリプタチェーニン
グ方式」では、ディスクリプタをリング状に接続して設
定しているので、ディスクリプタの設定エリアに設定さ
れる通信処理指示や処理結果報告の内容が時間の経過と
共に変化する。そのため、CPUとCCUとが非同期に
動作する場合に、本来の通信処理には不要なディスクリ
プタの授受に関する同期制御が不可避となる。
In this "descriptor chaining method", however, since descriptors are connected in a ring shape and set, the contents of the communication processing instruction and the processing result report set in the descriptor setting area change over time. . Therefore, when the CPU and the CCU operate asynchronously, it is inevitable to perform synchronous control regarding the transfer of descriptors that are not necessary for the original communication processing.

【0004】以下、図6〜図8を参照して従来のこの種
の同期制御方法を説明する。図6は通信制御システムの
構成図であり、CPU4とCCU5と主メモリ6とをバ
スで双方向通信可能に接続して成る。CPU4は主制御
部41とインタフェース制御部42とを含み、CCU5
に対して入出力命令を起動し、その際にデータを付帯す
ることが出来るものである。CCU5は主制御部51と
インタフェース制御部52と通信処理部53とを含み、
CPU4に対して、割込起動し、その際にデータを付帯
することが出来るものである。また、主メモリ6には、
コマンドテーブル61とステータステーブル62とが、
それぞれCPU4及びCCU5からアクセス可能に設定
されている。CCU4は、初期設定手段をも有してい
る。この初期設定手段によりコマンドテーブル61のア
ドレスとサイズ、ステータステーブル62のアドレスと
サイズがそれぞれ設定される。
A conventional synchronization control method of this type will be described below with reference to FIGS. FIG. 6 is a block diagram of a communication control system, which is configured by connecting a CPU 4, a CCU 5, and a main memory 6 via a bus so that bidirectional communication is possible. The CPU 4 includes a main controller 41 and an interface controller 42, and has a CCU 5
It is possible to activate an input / output command for and to attach data at that time. The CCU 5 includes a main control unit 51, an interface control unit 52, and a communication processing unit 53,
The CPU 4 can be activated by an interrupt and data can be attached at that time. Also, in the main memory 6,
The command table 61 and the status table 62 are
It is set to be accessible from the CPU 4 and the CCU 5, respectively. The CCU 4 also has initial setting means. The initial setting means sets the address and size of the command table 61 and the address and size of the status table 62, respectively.

【0005】図7(a)はコマンドテーブル61の説明
図、(b)はステータステーブル62の説明図である。
CPU4からCCU5に対する通信処理指示は、個々の
コマンドディスクリプタ611に格納される。コマンド
テーブル61は、主メモリ6に連続して確保される上記
コマンドディスクリプタ611の格納エリアで、ここで
は、回線接続から開始データ送信、主データ送信、終了
データ送信、回線断までの指示(動作コード)612、
必要に応じて確保されるデータバッファ63のアドレス
613、バッファサイズ614、及び有効フラグ615
を含むコマンドディスクリプタ611が8個分確保され
た例を示している。ここで、有効フラグ615は、コマ
ンドディスクリプタ611に設定された動作コード61
2を含む情報が有効であることを示すフラグであり、C
PU4によりセットされ、CCU5によりリセットされ
るものである。このコマンドテーブル61においては、
個々のコマンドディスクリプタ611が循環(ラウンド
ロビン)形式でリング上にチェーニングされ、8番目の
コマンドディスクリプタと先頭のコマンドディスクリプ
タとは連鎖している。
FIG. 7A is an explanatory diagram of the command table 61, and FIG. 7B is an explanatory diagram of the status table 62.
The communication processing instruction from the CPU 4 to the CCU 5 is stored in each command descriptor 611. The command table 61 is a storage area of the command descriptor 611 that is continuously secured in the main memory 6, and here, an instruction from the line connection to the start data transmission, the main data transmission, the end data transmission, and the line disconnection (operation code ) 612,
The address 613 of the data buffer 63, the buffer size 614, and the valid flag 615 that are secured as necessary.
8 shows an example in which eight command descriptors 611 including "" are secured. Here, the valid flag 615 is the operation code 61 set in the command descriptor 611.
A flag indicating that information including 2 is valid, and C
It is set by PU4 and reset by CCU5. In this command table 61,
The individual command descriptors 611 are chained on the ring in a circular (round robin) form, and the eighth command descriptor and the first command descriptor are linked.

【0006】また、CCU5がCPU4の通信処理指示
で処理を行った結果は、ステータスディスクリプタ62
1に格納される。ステータステーブル62は、主メモリ
6上に連続して確保されるステータスディスクリプタ6
21の格納エリアで、ここでは、上記コマンドディスク
リプタ611に対応する処理結果報告(結果コード)6
22、必要に応じて確保されるバッファ63のアドレス
623、サイズ624、及び有効フラグ625を含むス
テータスディスクリプタ621が8個分確保された例を
示している。ここで、有効フラグ625は、ステータス
ディスクリプタ621に設定された結果コード622を
含む情報が有効であることを示すフラグであり、CCU
5がセットし、CPU4がリセットするものである。こ
のステータステーブル62も個々のステータスディスク
リプタ621が循環形式でリング上にチェーニングさ
れ、8番目のステータスディスクリプタと先頭のステー
タスディスクリプタとは連鎖している。
The result of the CCU 5 performing the processing in accordance with the communication processing instruction from the CPU 4 is the status descriptor 62.
It is stored in 1. The status table 62 is a status descriptor 6 that is continuously secured in the main memory 6.
21 in the storage area, here, the processing result report (result code) 6 corresponding to the command descriptor 611.
22 shows an example in which eight status descriptors 621 including the address 623 of the buffer 63, the size 624, and the valid flag 625, which are secured as necessary, are secured. Here, the valid flag 625 is a flag indicating that the information including the result code 622 set in the status descriptor 621 is valid, and the CCU
5 is set and the CPU 4 is reset. Also in this status table 62, individual status descriptors 621 are chained in a ring in a circular form, and the eighth status descriptor and the first status descriptor are linked.

【0007】図8は、CPU4とCCU5が、主メモリ
6を介してコマンドディスクリプタ611とステータス
ディスクリプタ621を授受する場合の同期制御手順を
示すフローチャートである。以下、図8を参照してこの
シーケンスを説明する。
FIG. 8 is a flow chart showing a synchronous control procedure when the CPU 4 and the CCU 5 exchange the command descriptor 611 and the status descriptor 621 via the main memory 6. Hereinafter, this sequence will be described with reference to FIG.

【0008】まず、CPU4が、コマンドディスクリプ
タ611の形式にしたがって、主メモリ6に、動作コー
ド612、バッファアドレス613、バッファサイズ6
14、及び有効フラグ615を設定し(S201)、そ
の設定内容を入出力命令でCCU5に通知する(S20
2)。
First, the CPU 4 stores the operation code 612, the buffer address 613, and the buffer size 6 in the main memory 6 according to the format of the command descriptor 611.
14 and the valid flag 615 are set (S201), and the setting contents are notified to the CCU 5 by an input / output command (S20).
2).

【0009】CCU5は、設定通知を受信したときは
(S203)、主メモリ6からコマンドディスクリプタ
611を読み出し(S204)、それに基づく所定の通
信処理を行う(S205)。処理が終了したときは(S
206)、コマンドディスクリプタ611の有効フラグ
615をリセットする(S207)。CCU5は、ま
た、ステータスディスクリプタ621の上書きが可能で
あることを確認するため、その有効フラグ625読み出
し、リセットされていることを確認する(S208)。
そして処理結果報告をステータスディスクリプタ621
の形式に従って、有効フラグ625、結果コード62
2、バッファアドレス623、及びバッファサイズ62
4を設定する(S209)。更に、コマンドテーブル6
1を読み出し、有効フラグ615により、継続するコマ
ンドディスクリプタ611の有無を確認する(S21
0)。その後、CPU4にステータスディスクリプタ6
21の設定内容を割込で通知する(S211)。
When the CCU 5 receives the setting notification (S203), it reads the command descriptor 611 from the main memory 6 (S204) and performs a predetermined communication process based on it (S205). When processing is completed (S
206), and reset the valid flag 615 of the command descriptor 611 (S207). The CCU 5 also reads out the valid flag 625 to confirm that the status descriptor 621 can be overwritten and confirms that the valid flag 625 has been reset (S208).
Then, the processing result report is sent to the status descriptor 621.
Valid flag 625, result code 62 according to the format of
2, buffer address 623, and buffer size 62
4 is set (S209). Furthermore, the command table 6
1 is read, and it is confirmed by the valid flag 615 whether or not there is a command descriptor 611 that continues (S21).
0). After that, the status descriptor 6 is sent to the CPU 4.
The setting contents of 21 are notified by interruption (S211).

【0010】CPU4は、CCU5からの設定通知を受
信したときは(S212)ステータスディスクリプタ6
21を読み出し(S213)、ステータスディスクリプ
タ621に基づく処理が完了した時点で(S214,S
215)、その有効フラグ625をリセットする(S2
16)。
When the CPU 4 receives the setting notification from the CCU 5 (S212), the status descriptor 6
21 is read (S213), and when the processing based on the status descriptor 621 is completed (S214, S
215), and reset the valid flag 625 (S2).
16).

【0011】[0011]

【発明が解決しようとする課題】上述のシーケンスで
は、CCU5が、読み出したコマンドディスクリプタ6
11の有効フラグ615のリセット(S207)や、先
行するステータスディスクリプタ621の読み出し及び
有効フラグ625の確認(S208)、継続するコマン
ドディスクリプタ611の読み出し及び有効フラグの確
認(S210)をその都度行わなければならないので、
本来の通信制御処理に不必要な上記処理のために多大な
時間を費やし、通信制御速度が低下するという問題があ
った。
In the above sequence, the CCU 5 reads the command descriptor 6 read by the CCU 5.
The valid flag 615 of 11 is reset (S207), the preceding status descriptor 621 is read and the valid flag 625 is checked (S208), and the continuous command descriptor 611 is read and the valid flag is checked (S210) each time. Because it doesn't
There is a problem that a great amount of time is spent for the above-mentioned processing which is unnecessary for the original communication control processing, and the communication control speed is reduced.

【0012】本発明の課題は、上記問題点を解消し、本
来の通信制御処理に不要な同期制御時間を短縮してCC
Uの処理速度を向上させる通信制御システムの同期制御
方法を提供することにある。
An object of the present invention is to solve the above-mentioned problems and shorten the synchronization control time unnecessary for the original communication control processing to reduce CC.
It is to provide a synchronous control method for a communication control system that improves the processing speed of U.

【0013】[0013]

【課題を解決するための手段及び作用】本発明が提供す
る第1の方法は、CPUからCCUへの通信処理指示を
コマンドディスクリプタを介して行い、該コマンドディ
スクリプタを読み出したCCUが個々の通信処理指示に
基づく処理結果報告をステータスディスクリプタを介し
て行う通信制御システムの同期制御方法であって、前記
CPUがコマンドディスクリプタを設定する際に、前記
CPUがコマンドディスクリプタを設定する際に、個々
のコマンドディスクリプタに当該通信処理指示の識別情
報を付加すると共に、設定したコマンドディスクリプタ
数を予めCCUに通知し、前記CCUがステータスディ
スクリプタを設定する際に、個々のステータスディスク
リプタに当該処理結果報告の識別情報を付加すると共
に、設定したステータスディスクリプタ数を予め情報処
理装置に通知することを特徴とする。なお、前記CPU
が前記処理結果報告に基づく処理が完了したステータス
ディスクリプタ数を前記コマンドディスクリプタ数と共
に前記CCUに通知するようにしても良い。
According to a first method provided by the present invention, a communication processing instruction from a CPU to a CCU is issued via a command descriptor, and the CCU which reads out the command descriptor performs individual communication processing. A synchronous control method for a communication control system that reports a processing result based on an instruction via a status descriptor, wherein each command descriptor is set when the CPU sets a command descriptor when the command descriptor is set by the CPU. In addition to the identification information of the communication processing instruction, the number of set command descriptors is notified to the CCU in advance, and when the CCU sets the status descriptor, the identification information of the processing result report is added to each status descriptor. And set the stay And notifying in advance the information processing apparatus the number of scan descriptors. The CPU
May notify the CCU of the number of status descriptors for which the processing based on the processing result report has been completed, together with the number of command descriptors.

【0014】また、本発明が提供する第2の方法は、C
PUがコマンドディスクリプタを設定する際に、設定し
たコマンドディスクリプタの有無を予めCCUに通知す
ると共に、個々のコマンドディスクリプタに当該通信処
理指示の識別情報と継続する通信処理指示の表示とを付
加し、前記CCUがステータスディスクリプタを設定す
る際に個々のステータスディスクリプタに当該処理結果
報告の識別情報と継続する処理結果報告の表示とを付加
することを特徴とする。なお、前記CPUが前記処理結
果報告に基づく処理が完了したステータスディスクリプ
タ数を前記コマンドディスクリプタの有無と共に前記C
CUに通知するようにしても良い。
The second method provided by the present invention is C
When the PU sets the command descriptor, the CCU is notified in advance of the presence or absence of the set command descriptor, and the identification information of the communication processing instruction and the display of the continuous communication processing instruction are added to each command descriptor. When the CCU sets the status descriptor, the identification information of the processing result report and the display of the continuous processing result report are added to each status descriptor. The CPU determines the number of status descriptors for which the processing based on the processing result report has been completed, together with the presence or absence of the command descriptor, and the C
The CU may be notified.

【0015】[0015]

【実施例】次に、図面を参照して本発明の実施例を詳細
に説明する。 (第1実施例)図1は、第1実施例に係る通信制御シス
テムの構成図であり、CPU1とCCU2と主メモリ3
とをバスで接続して成る。
Next, an embodiment of the present invention will be described in detail with reference to the drawings. (First Embodiment) FIG. 1 is a block diagram of a communication control system according to the first embodiment, which includes a CPU 1, a CCU 2, and a main memory 3.
It is composed by connecting and by a bus.

【0016】CPU1は、従来のCPU4の機能のほ
か、コマンドディスクリプタを主メモリ3に設定する際
に個々のコマンドディスクリプタに当該通信処理指示の
識別情報、例えばコマンド番号を付加すると共に、設定
したコマンドディスクリプタ数を管理するディスクリプ
タ管理部12を有し、更に、主制御部11が、この設定
したディスクリプタ数を予めCCU2に入出力命令で通
知する機能、及びCCU2からの処理結果報告に基づく
処理が完了したステータスディスクリプタ数をコマンド
ディスクリプタ数と共にCCU2に通知する機能を持つ
ものである。
In addition to the functions of the conventional CPU 4, the CPU 1 adds the identification information of the communication processing instruction, such as a command number, to each command descriptor when setting the command descriptor in the main memory 3 and sets the command descriptor. A descriptor management unit 12 for managing the number is further provided, and further, the main control unit 11 notifies the CCU2 of the set number of descriptors in advance by an input / output command, and the processing based on the processing result report from the CCU2 is completed. It has a function of notifying the CCU 2 of the number of status descriptors together with the number of command descriptors.

【0017】また、CCU2は、従来のCCU5の機能
のほか、ステータスディスクリプタを主メモリ3に設定
する際に、個々のステータスディスクリプタに当該処理
結果報告の識別情報、例えばコマンドディスクリプタに
付加されたコマンド番号を設定するディスクリプタ管理
部22を有し、更に、主制御部21が、この設定したス
テータスディスクリプタ数を予めCPUに割込で通知す
る機能を持つものである。主メモリ3には従来装置と同
様、コマンドテーブル31とステータステーブル32が
格納されている。
In addition to the function of the conventional CCU 5, the CCU 2 also sets the status descriptor in the main memory 3 when identifying the status descriptor, such as the identification information of the processing result report, for example, the command number added to the command descriptor. Further, the main control unit 21 has a function of interrupting the CPU to notify the CPU of the set number of status descriptors in advance. A command table 31 and a status table 32 are stored in the main memory 3 as in the conventional device.

【0018】図2(a)はこのコマンドテーブル31の
説明図、(b)はステータステーブル32の説明図であ
る。図示の例では、コマンドテーブル31に、上記コマ
ンド番号312、回線接続から開始データ送信、主デー
タ送信、終了データ送信、回線断までの指示(動作コー
ド)313、必要に応じて確保されるデータバッファ3
3のアドレス314、バッファサイズ315を含むコマ
ンドディスクリプタ311が8個分確保された例を示し
ている。
FIG. 2A is an explanatory diagram of the command table 31, and FIG. 2B is an explanatory diagram of the status table 32. In the illustrated example, in the command table 31, the command number 312, an instruction (operation code) 313 from line connection to start data transmission, main data transmission, end data transmission, line disconnection, and a data buffer secured as necessary Three
8 shows an example in which eight command descriptors 311 including an address 314 of 3 and a buffer size 315 are secured.

【0019】個々のコマンドディスクリプタ311は循
環形式でリング上にチェーニングされ、8番目のコマン
ドディスクリプタと先頭のコマンドディスクリプタとは
連鎖している。また、ステータステーブル32には、上
記コマンド番号312に対応するコマンド番号322、
処理結果報告(結果コード)323、必要に応じて確保
されるバッファ33のアドレス324、及びバッファサ
イズ325を含むステータスディスクリプタ321が8
個分確保された例を示している。このステータステーブ
ル32も個々のステータスディスクリプタ321が循環
形式でリング上にチェーニングされ、8番目のステータ
スディスクリプタと先頭のステータスディスクリプタと
は連鎖している。なお、コマンドディスクリプタ及びス
テータスディスクリプタを識別するためのコマンド番号
312,322は、各ディスクリプタ間で排他的であれ
ば、任意の値が設定可能である。例えば、ディスクリプ
タの通し番号や、ディスクリプタのテーブル内格納アド
レスなどが設定可能である。
The individual command descriptors 311 are chained on the ring in a circular form, and the eighth command descriptor and the first command descriptor are linked. In the status table 32, the command number 322 corresponding to the above command number 312,
The status descriptor 321 including the processing result report (result code) 323, the address 324 of the buffer 33 secured as necessary, and the buffer size 325 is 8
An example is shown in which the number is secured. Also in this status table 32, individual status descriptors 321 are chained on the ring in a circular form, and the eighth status descriptor and the first status descriptor are linked. The command numbers 312 and 322 for identifying the command descriptor and the status descriptor can be set to arbitrary values as long as they are exclusive between the descriptors. For example, the serial number of the descriptor and the storage address of the descriptor in the table can be set.

【0020】図3は、CPU1とCCU2が主メモリ3
を介して、コマンドディスクリプタ311及びステータ
スディスクリプタ321を授受する場合の同期制御手順
を示すフローチャートである。以下、図3を参照してこ
のシーケンスを説明する。
In FIG. 3, CPU 1 and CCU 2 are main memories 3
9 is a flowchart showing a synchronous control procedure when a command descriptor 311 and a status descriptor 321 are exchanged via the. Hereinafter, this sequence will be described with reference to FIG.

【0021】まず、CPU1が、コマンドディスクリプ
タ311の形式にしたがって、主メモリ3に、コマンド
番号312、動作コード313、及び必要なバッファア
ドレス314、バッファサイズ315を設定すると共に
(S101)、新たに設定したコマンドディスクリプタ
数(以下、LCWC)を入出力命令でCCU2に通知す
る(S102)。
First, the CPU 1 sets a command number 312, an operation code 313, a necessary buffer address 314 and a buffer size 315 in the main memory 3 according to the format of the command descriptor 311 (S101) and newly sets them. The CCU 2 is notified of the number of command descriptors (hereinafter, LCWC) by the input / output command (S102).

【0022】CCU2は、LCWCを受信したときは
(S103)、ディスクリプタ管理部22で管理するL
CWCを更新し(S104)、更に主メモリ3からコマ
ンドディスクリプタ311を読み出して(S105)、
それに基づく所定の通信処理を行う(S106)。処理
が終了したときは、ステータスディスクリプタ321の
形式に従って、コマンド番号322、結果コード32
3、及び必要なバッファアドレス623、バッファサイ
ズ624を設定する(S107)。このときステータス
テーブル32に空エリアが有るか否かを調べ(S10
8)、空エリアがあるときはディスクリプタ管理部22
内のLCWCが”1”以上か否かを判定し(S10
9)、”1”以上であれば”1”を減算して(S11
0)、S105以降の処理を繰り返すとともに、ステー
タステーブル32に設定したステータスディスクリプタ
321の数を、新しく設定したステータスディスクリプ
タ数(以下、INTC)としてCPU1に割込で通知す
る(S111)。なお、ステータステーブル32に空き
がない場合及びLCWCが”1”未満のときはCPU1
から入出力命令でLCWCが通知されるのを待ち合わせ
る。
When receiving the LCWC (S103), the CCU 2 manages the L managed by the descriptor management unit 22.
The CWC is updated (S104), the command descriptor 311 is read from the main memory 3 (S105),
A predetermined communication process based on it is performed (S106). When the processing is completed, the command number 322 and the result code 32 are output according to the format of the status descriptor 321.
3, and the required buffer address 623 and buffer size 624 are set (S107). At this time, it is checked whether or not there is an empty area in the status table 32 (S10
8) If there is an empty area, the descriptor management unit 22
It is determined whether the LCWC in the table is "1" or more (S10
9) If "1" or more, subtract "1" (S11
0), the processes from S105 onward are repeated, and the number of status descriptors 321 set in the status table 32 is interrupted and notified to the CPU 1 as a newly set number of status descriptors (hereinafter, INTC) (S111). If the status table 32 is full or the LCWC is less than "1", the CPU1
Wait for the LCWC to be notified by the I / O command from.

【0023】CPU1は、INTCを受信したときは
(S112)、ステータステーブル32から新しく設定
されたステータスディスクリプタ321を読み出し(S
113)、該ステータスディスクリプタ321に基づく
処理が完了した時点で(S114,S115)、入出力
命令により、処理が完了したステータスディスクリプタ
数(以下、LSWC)をCCU2に通知する(S11
6)。CCU2は、ディスクリプタ管理部22内のLS
WCを更新する(S117)。
When receiving the INTC (S112), the CPU 1 reads the newly set status descriptor 321 from the status table 32 (S112).
113), when the processing based on the status descriptor 321 is completed (S114, S115), the number of status descriptors (hereinafter, LSWC) for which the processing is completed is notified to the CCU 2 by an input / output command (S11).
6). The CCU 2 is the LS in the descriptor management unit 22.
The WC is updated (S117).

【0024】なお、CPU1は、ステータスディスクリ
プタ321に基づく処理(S114)により、新たなコ
マンドディスクリプタ311の設定が必要となった場合
には、コマンドディスクリプタ311を設定した後(S
101)、LCWCとLSWCを一括してCCU2に通
知することが出来る。この場合、CCU2は、ディスク
リプタ管理部22で管理するLCWCとLSWCとを同
時に更新する。LCWCとLSWCとは互いに独立した
値であり、LCWCがゼロ・非ゼロ、LSWCがゼロ・
非ゼロの全ての組み合わせが可能である。LCWCとL
SWCが共にゼロの場合の入出力命令は、意味を持たな
い。
When it is necessary to set a new command descriptor 311 by the processing based on the status descriptor 321 (S114), the CPU 1 sets the command descriptor 311 (S11).
101), LCWC and LSWC can be notified to CCU2 collectively. In this case, the CCU 2 updates the LCWC and LSWC managed by the descriptor management unit 22 at the same time. LCWC and LSWC are independent values, LCWC is zero / non-zero, LSWC is zero /
All non-zero combinations are possible. LCWC and L
The input / output instruction when both SWC are zero has no meaning.

【0025】(第2実施例)次に図4及び図5を参照し
て本発明の第2実施例を説明する。図4(a)は第2実
施例によるコマンドディスクリプタの説明図、(b)は
ステータスディスクリプタの説明図である。
(Second Embodiment) Next, a second embodiment of the present invention will be described with reference to FIGS. FIG. 4A is an explanatory diagram of a command descriptor according to the second embodiment, and FIG. 4B is an explanatory diagram of a status descriptor.

【0026】この実施例では、第1実施例において授受
されるコマンドディスクリプタ311及びステータスデ
ィスクリプタ321に、各々継続フラグ316,326
を追加設定する。コマンドディスクリプタ311に設定
される継続フラグ316は、継続する次のコマンドディ
スクリプタの有無を示すものであり、ステータスディス
クリプタ321に設定される継続フラグ326は、継続
する次のステータスディスクリプタの有無を示すもので
ある。これに伴い、第1実施例においてCPU1からC
CU2に入出力命令で通知したLCWC及びLSWCに
代えて、コマンドディスクリプタ設定の有無(以下:L
CWE)及びLSWCを用いる。LCWEとLSWCと
は互いに独立した値であり、LCWEがゼロ・非ゼロ、
LSWCがゼロ・非ゼロ全ての組み合わせが可能であ
る。LCWEとLSWCが共にゼロの場合の入出力命令
は、意味を持たない。
In this embodiment, the continuation flags 316 and 326 are respectively added to the command descriptor 311 and status descriptor 321 that are exchanged in the first embodiment.
Is additionally set. The continuation flag 316 set in the command descriptor 311 indicates the presence / absence of the next command descriptor that continues, and the continuation flag 326 set in the status descriptor 321 indicates the presence / absence of the next status descriptor that continues. is there. Accordingly, in the first embodiment, the CPU 1 to C
In place of the LCWC and LSWC notified to the CU2 by the input / output command, the presence or absence of the command descriptor setting (hereinafter: L
CWE) and LSWC are used. LCWE and LSWC are independent values, and LCWE is zero / non-zero,
All combinations of zero and non-zero LSWC are possible. The input / output instruction when LCWE and LSWC are both zero has no meaning.

【0027】また、第1実施例においては、CCU2
は、割込でステータステーブル32に設定したステータ
スディスクリプタの数をCPU1に通知したが、この実
施例では、ステータスディスクリプタ321に継続する
次のステータスディスクリプタの有無を示す継続フラグ
326で通知している。このため第1実施例のようにI
NTCを割込で通知する必要がなくなる。
In the first embodiment, CCU2
Notifies the CPU 1 of the number of status descriptors set in the status table 32 by an interrupt, but in this embodiment, the status descriptor 321 is notified by a continuation flag 326 indicating the presence or absence of the next status descriptor. Therefore, as in the first embodiment, I
There is no need to notify the NTC by interruption.

【0028】図5は、この第2実施例に係る通信制御シ
ステムの構成図であり、主メモリ3には、図4(a)の
内容のコマンドディスクリプタを確保したコマンドテー
ブル34と、図4(b)の内容のステータスディスクリ
プタを確保したステータステーブル35とが設定されて
いる。このような構成の通信制御システムにおける同期
制御手順は、図3の処理手順におけるLCWCやINT
Cに関する処理を省略することができ、ディスクリプタ
の授受のための時間がより短縮化される。
FIG. 5 is a block diagram of the communication control system according to the second embodiment. In the main memory 3, a command table 34 in which a command descriptor having the contents shown in FIG. The status table 35 in which the status descriptor having the contents of b) is secured is set. The synchronization control procedure in the communication control system having such a configuration is the same as the LCWC or INT in the processing procedure of FIG.
The process related to C can be omitted, and the time for transmitting / receiving the descriptor can be further shortened.

【0029】このように、図8の従来の同期制御手順と
比較すると、第1実施例及び第2実施例によれば、CP
U1及びCCU2における下記の処理が不要になる。 (1)コマンドディスクリプタの有効フラグのリセット
処理(S207)。上記各実施例によれば、ディスクリ
プタを識別するためのコマンド番号312/322によ
ってコマンドディスクリプタ311の実行管理が可能と
なるので、従来のように個々のコマンドディスクリプタ
に基づく通信処理実行毎に有効フラグをリセットする必
要がなくなる。これはディスクリプタ数が多い場合はか
なりの時間短縮が図れ、より効果的な手法となり得る。 (2)先行するステータスディスクリプタの有効フラグ
の読出・確認処理(S208)、及び継続するコマンド
ディスクリプタの設定エリアの読出・確認処理(S21
0)。CCU2は、CPU1から入出力命令によって通
知されるLCWC又はLSWCによってステータステー
ブル32の空きエリアの有無を直ちに把握することがで
き、継続フラグ316によって次のコマンドディスクリ
プタの存在も把握できるので、次の処理に移行すること
ができる。 (3)ステータスディスクリプタの有効フラグのリセッ
ト処理(S216)。CPU1は、CCUから割込で通
知されるINTC又はステータスディスクリプタ321
に設定される継続フラグ326によって所定の通信処理
の結果を把握することができるので、次の処理に移行す
ることができる。
Thus, comparing with the conventional synchronous control procedure of FIG. 8, according to the first and second embodiments, the CP
The following processing in U1 and CCU2 becomes unnecessary. (1) Reset processing of the valid flag of the command descriptor (S207). According to each of the above-described embodiments, the execution management of the command descriptor 311 can be performed by the command number 312/322 for identifying the descriptor. Therefore, a valid flag is set for each communication process execution based on each command descriptor as in the conventional case. No need to reset. This can shorten the time considerably when the number of descriptors is large, and can be a more effective method. (2) Read / confirm process of valid flag of preceding status descriptor (S208) and read / confirm process of setting area of continuing command descriptor (S21)
0). The CCU 2 can immediately recognize the presence or absence of an empty area in the status table 32 by the LCWC or LSWC notified by the input / output instruction from the CPU 1, and can also recognize the presence of the next command descriptor by the continuation flag 316. Can be moved to. (3) Reset processing of the valid flag of the status descriptor (S216). The CPU 1 uses the INTC or the status descriptor 321 notified by an interrupt from the CCU.
Since the result of the predetermined communication process can be grasped by the continuation flag 326 set to, it is possible to shift to the next process.

【0030】[0030]

【発明の効果】以上の説明から明らかなように、本発明
の通信制御システムの同期制御方法は、CPUがコマン
ドディスクリプタを設定する際に、個々のコマンドディ
スクリプタに当該通信処理指示の識別情報を付加すると
共に、設定したコマンドディスクリプタ数又はコマンド
ディスクリプタの有無を予めCCUに通知し、CCUが
ステータスディスクリプタを設定する際に、個々のステ
ータスディスクリプタに当該処理結果報告の識別情報を
付加すると共に、設定したステータスディスクリプタ数
又はステータスディスクリプタの有無を予めCPUに通
知するようにしたので、CCU及びCPUが主メモリに
アクセスして個々のディスクリプタの有無ないしその有
効性を確認しなくとも直ちに本来の通信制御のための処
理が実行可能になる効果があり、従来の問題点が解消さ
れる。
As is apparent from the above description, in the synchronous control method of the communication control system of the present invention, when the CPU sets the command descriptor, the identification information of the communication processing instruction is added to each command descriptor. In addition, the CCU is notified in advance of the number of command descriptors set or the presence or absence of command descriptors, and when the CCU sets the status descriptor, the identification information of the processing result report is added to each status descriptor, and the set status is set. Since the CPU is notified in advance of the number of descriptors or the presence / absence of status descriptors, the CCU and the CPU immediately access the main memory to check the presence / absence of individual descriptors or their validity without delay for the original communication control. Processing becomes executable Is effective, conventional problems can be solved.

【0031】特に、CPUが前記処理結果報告に基づく
処理が完了したステータスディスクリプタ数をコマンド
ディスクリプタ数と共にCCUに通知する構成では、同
期制御に要する時間がより短縮される効果がある。
In particular, in the configuration in which the CPU notifies the CCU of the number of status descriptors in which the processing based on the processing result report has been completed, together with the number of command descriptors, there is an effect that the time required for synchronous control is further shortened.

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

【図1】本発明の第1実施例に係る通信制御システムの
要部構成図。
FIG. 1 is a configuration diagram of main parts of a communication control system according to a first embodiment of the present invention.

【図2】(a)は第1実施例で用いるコマンドテーブル
の説明図、(b)はステータステーブルの説明図。
2A is an explanatory diagram of a command table used in the first embodiment, and FIG. 2B is an explanatory diagram of a status table.

【図3】第1実施例によりCPUとCCUが主メモリを
介して、コマンドディスクリプタ及びステータスディス
クリプタを授受する場合の同期制御手順図。
FIG. 3 is a synchronization control procedure diagram when the CPU and the CCU exchange a command descriptor and a status descriptor via the main memory according to the first embodiment.

【図4】(a)は本発明の第2実施例によるコマンドデ
ィスクリプタの説明図、(b)はステータスディスクリ
プタの説明図。
4A is an explanatory diagram of a command descriptor according to a second embodiment of the present invention, and FIG. 4B is an explanatory diagram of a status descriptor.

【図5】第2実施例に係る通信制御システムの要部構成
図であり、主メモリに、図4(a)の内容のコマンドデ
ィスクリプタを確保したコマンドテーブルと、図4
(b)の内容のステータスディスクリプタを確保したス
テータステーブルとが設定された例を示す。
FIG. 5 is a configuration diagram of a main part of a communication control system according to a second embodiment, in which a command table in which a command descriptor having the content of FIG.
The example in which the status table which secured the status descriptor of the content of (b) was set is shown.

【図6】従来の通信制御システムの要部構成図。FIG. 6 is a configuration diagram of a main part of a conventional communication control system.

【図7】(a)は従来のコマンドテーブルの説明図、
(b)はステータステーブルの説明図。
FIG. 7A is an explanatory diagram of a conventional command table,
(B) is an explanatory diagram of a status table.

【図8】従来のCPUとCCUが主メモリを介して、コ
マンドディスクリプタ及びステータスディスクリプタを
授受する場合の同期制御手順図。
FIG. 8 is a synchronous control procedure diagram when a conventional CPU and CCU exchange a command descriptor and a status descriptor via a main memory.

【符号の説明】 1,4 CPU 2,5 CCU 3,6 主メモリ 11,41 CPUの主制御部 21,51 CCUの主制御部 12 CPUのディスクリプタ管理部 22 CCUのディスクリプタ管理部 31,61 コマンドテーブル 311,611 コマンドディスクリプタ 32,62 ステータステーブル 321,621 ステータスディスクリプタ 312,322 コマンド番号 316,326 継続フラグ[Explanation of Codes] 1,4 CPU 2,5 CCU 3,6 Main memory 11,41 CPU main control unit 21,51 CCU main control unit 12 CPU descriptor management unit 22 CCU descriptor management unit 31,61 Command Table 311,611 Command Descriptor 32,62 Status Table 321,621 Status Descriptor 312,322 Command Number 316,326 Continuation Flag

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 情報処理装置から通信制御装置への通信
処理指示をコマンドディスクリプタを介して行い、該コ
マンドディスクリプタを読み出した通信制御装置が個々
の通信処理指示に基づく処理結果報告をステータスディ
スクリプタを介して行う通信制御システムの同期制御方
法であって、 前記情報処理装置がコマンドディスクリプタを設定する
際に、個々のコマンドディスクリプタに当該通信処理指
示の識別情報を付加すると共に、設定したコマンドディ
スクリプタ数を予め通信制御装置に通知し、前記通信制
御装置がステータスディスクリプタを設定する際に、個
々のステータスディスクリプタに当該処理結果報告の識
別情報を付加すると共に、設定したステータスディスク
リプタ数を予め情報処理装置に通知することを特徴とす
る通信制御システムの同期制御方法。
1. A communication processing instruction from an information processing apparatus to a communication control apparatus is issued via a command descriptor, and the communication control apparatus that has read the command descriptor issues a processing result report based on each communication processing instruction via a status descriptor. In the synchronization control method of the communication control system to be performed by, the information processing device, when setting the command descriptor, while adding the identification information of the communication processing instruction to each command descriptor, the number of command descriptors set in advance Notifying the communication control device, when the communication control device sets the status descriptor, the identification information of the processing result report is added to each status descriptor, and the number of set status descriptors is notified to the information processing device in advance. It is characterized by Synchronization control method of the control system.
【請求項2】 前記情報処理装置が前記処理結果報告に
基づく処理が完了したステータスディスクリプタ数を前
記コマンドディスクリプタ数と共に前記通信制御装置に
通知することを特徴とする請求項1記載の通信制御シス
テムの同期制御方法。
2. The communication control system according to claim 1, wherein the information processing apparatus notifies the communication control apparatus of the number of status descriptors for which the processing based on the processing result report has been completed, together with the number of command descriptors. Synchronous control method.
【請求項3】 情報処理装置から通信制御装置への通信
処理指示をコマンドディスクリプタを介して行い、該コ
マンドディスクリプタを読み出した通信制御装置が個々
の通信処理指示に基づく処理結果報告をステータスディ
スクリプタを介して行う通信制御システムの同期制御方
法であって、 前記情報処理装置がコマンドディスクリプタを設定する
際に、設定したコマンドディスクリプタの有無を予め通
信制御装置に通知すると共に、個々のコマンドディスク
リプタに当該通信処理指示の識別情報と継続する通信処
理指示の表示とを付加し、前記通信制御装置がステータ
スディスクリプタを設定する際に個々のステータスディ
スクリプタに当該処理結果報告の識別情報と継続する処
理結果報告の表示とを付加することを特徴とする通信制
御システムの同期制御方法。
3. A communication processing instruction from an information processing apparatus to a communication control apparatus is issued via a command descriptor, and the communication control apparatus which has read the command descriptor issues a processing result report based on each communication processing instruction via a status descriptor. A method for synchronizing control of a communication control system, wherein when the information processing device sets a command descriptor, the communication control device is notified in advance of the presence or absence of a command descriptor that has been set, and the communication processing is performed on each command descriptor. Addition of identification information of the instruction and display of the continuous communication processing instruction, and when the communication control device sets the status descriptor, the identification information of the processing result report and the display of the continuous processing result report in each status descriptor, and Communication control system characterized by adding Synchronization control method systems out.
【請求項4】 前記情報処理装置が前記処理結果報告に
基づく処理が完了したステータスディスクリプタ数を前
記コマンドディスクリプタの有無と共に前記通信制御装
置に通知することを特徴とする請求項3記載の通信制御
システムの同期制御方法。
4. The communication control system according to claim 3, wherein the information processing apparatus notifies the communication control apparatus of the number of status descriptors for which the processing based on the processing result report is completed, together with the presence or absence of the command descriptor. Synchronization control method.
JP6315118A 1994-12-19 1994-12-19 Synchronous control method for communication control system Expired - Fee Related JP2939707B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6315118A JP2939707B2 (en) 1994-12-19 1994-12-19 Synchronous control method for communication control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6315118A JP2939707B2 (en) 1994-12-19 1994-12-19 Synchronous control method for communication control system

Publications (2)

Publication Number Publication Date
JPH08171523A true JPH08171523A (en) 1996-07-02
JP2939707B2 JP2939707B2 (en) 1999-08-25

Family

ID=18061630

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6315118A Expired - Fee Related JP2939707B2 (en) 1994-12-19 1994-12-19 Synchronous control method for communication control system

Country Status (1)

Country Link
JP (1) JP2939707B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2008126227A1 (en) * 2007-03-29 2010-07-22 富士通マイクロエレクトロニクス株式会社 Display control apparatus, information processing apparatus, and display control program
US8725879B2 (en) 2009-02-06 2014-05-13 Fujitsu Limited Network interface device
JP2017213031A (en) * 2016-05-30 2017-12-07 京楽産業.株式会社 Game machine

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2008126227A1 (en) * 2007-03-29 2010-07-22 富士通マイクロエレクトロニクス株式会社 Display control apparatus, information processing apparatus, and display control program
US9463692B2 (en) 2007-03-29 2016-10-11 Cypress Semiconductor Corporation Display control device to display image data
US8725879B2 (en) 2009-02-06 2014-05-13 Fujitsu Limited Network interface device
JP2017213031A (en) * 2016-05-30 2017-12-07 京楽産業.株式会社 Game machine

Also Published As

Publication number Publication date
JP2939707B2 (en) 1999-08-25

Similar Documents

Publication Publication Date Title
KR950002709B1 (en) Information transfer method and arragnement
JPS63255760A (en) Control system
JPS609292B2 (en) Time interval length control method between data blocks
JPH08171523A (en) Synchronization control method of communication control system
US7058741B2 (en) System for suspending processing by a first electronic device on a data line to allow a second electronic device to use the data line, with subsequent resumption of the processing of the first electronic device
JP3137197B2 (en) Multiprocessor system
EP0609082A1 (en) Information transfer in a data processing system
EP0609083A1 (en) Information transfer in a data processing system
JP2003186666A (en) Microcomputer and dma control circuit
JPH10320345A (en) Bus controller
JPS6356737B2 (en)
JPH01236349A (en) Serial interface initializing system
JP2569086B2 (en) Data transmission control method
JPS6148747B2 (en)
JPH07306840A (en) Computer system
JPH01125643A (en) Control system for divided transmission/reception of message
JPS59205848A (en) Priority control system
JPS6294042A (en) Communication control equipment
JPS58121443A (en) Communication controller
JPS62190544A (en) Higher link unit for programmable controller
JPH02144654A (en) Message output instruction control system
JPH0740240B2 (en) Information processing apparatus and information processing system
JPH06161927A (en) Data communication system
JPS6359155A (en) Communication control system
JPH0334051A (en) Interface control system

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees