JPH0376507B2 - - Google Patents

Info

Publication number
JPH0376507B2
JPH0376507B2 JP25298084A JP25298084A JPH0376507B2 JP H0376507 B2 JPH0376507 B2 JP H0376507B2 JP 25298084 A JP25298084 A JP 25298084A JP 25298084 A JP25298084 A JP 25298084A JP H0376507 B2 JPH0376507 B2 JP H0376507B2
Authority
JP
Japan
Prior art keywords
input
processing
output
output device
status information
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
JP25298084A
Other languages
Japanese (ja)
Other versions
JPS61131148A (en
Inventor
Kyo Kato
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP25298084A priority Critical patent/JPS61131148A/en
Publication of JPS61131148A publication Critical patent/JPS61131148A/en
Publication of JPH0376507B2 publication Critical patent/JPH0376507B2/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 [Field of Industrial Application] The present invention relates to an input/output device control method, and in particular to an input/output device and a method for writing data to the input/output device and/or writing data from the data input/output device. The present invention relates to an input/output control method that enables efficient disconnection control of input/output devices without using interrupt processing in a data processing system including a processing device that reads data.

〔従来の技術〕[Conventional technology]

第4図はデータ処理システムの1構成例であ
り、図中、1は中央処理装置(CPU)、2は主記
憶装置(MM)、3は共通バス、4,5……は入
出力装置である。
Figure 4 shows an example of the configuration of a data processing system. In the figure, 1 is a central processing unit (CPU), 2 is a main memory (MM), 3 is a common bus, and 4, 5... are input/output devices. be.

中央処理装置(CPU)1と主記憶装置(MM)
2は、協同して処理装置としての動作を行ない、
入出力装置4,5へのデータの書込みおよび/ま
たは入出力装置4,5からのデータの読出しを行
なう。
Central processing unit (CPU) 1 and main memory (MM)
2 cooperates to operate as a processing device,
Data is written to and/or read from the input/output devices 4, 5.

処理装置(CPU,MM)は、入出力装置に読
出し/書込み等の処理を依頼する場合、その処理
完了をチエツクしてから同一の入出力装置の次の
読出し/書込み等の処理を行なう必要がある。そ
して、入出力装置の完了をチエツクする方式とし
ては、従来次の2つの方式のいずれかが使用され
ていた。
When a processing device (CPU, MM) requests an input/output device to perform a process such as reading/writing, it must check that the process is completed before proceeding with the next process such as reading/writing from the same input/output device. be. Conventionally, one of the following two methods has been used to check the completion of input/output devices.

入出力装置へいつたん処理を依頼した後、他
の処理を行なわず、同一の入出力装置に関して
そのステータスが完了状態になるまで繰返しチ
エツクする方式。
A method of repeatedly checking the status of the same input/output device until it becomes complete, without performing any other processing, after once requesting the input/output device to perform a process.

入出力装置へ処理を依頼した後、いつたん他
の処理に移り、同一の入出力装置が処理完了時
に上げる割込みによりステータスの完了をチエ
ツクする方式。
A method in which, after requesting processing to an input/output device, it immediately moves on to other processing, and checks whether the status is complete using an interrupt raised by the same input/output device when the processing is completed.

第2図は、上記の方式を使用するときのブロ
ツク図であり、図中、10は処理装置、11は入
出力装置、12は入出力依頼処理部、13はステ
ータス情報チエツク処理部、14は他の処理部、
15はステータスを保持するステータスレジスタ
である。
FIG. 2 is a block diagram when the above method is used. In the figure, 10 is a processing device, 11 is an input/output device, 12 is an input/output request processing section, 13 is a status information check processing section, and 14 is a other processing parts,
15 is a status register that holds status.

第6図は、第2図の構成を使用したときの動作
フローである。
FIG. 6 is an operational flow when the configuration shown in FIG. 2 is used.

第2図、第6図に関しては容易に理解されるの
で、詳細な説明は省略する。
Since FIGS. 2 and 6 are easily understood, detailed explanation will be omitted.

また、第3図は、上記の方式を使用するとき
のブロツク図であり、図中、第2図と同一番号の
ものは同一名称のもの、16はモニタコール処理
部、17はモニタコール完了処理部、18はモニ
タ部、19は割込み処理部、20は割込みベクタ
である。
FIG. 3 is a block diagram when the above method is used. In the figure, the same numbers as those in FIG. 2 have the same names, 16 is a monitor call processing unit, and 17 is a monitor call completion process. 18 is a monitor section, 19 is an interrupt processing section, and 20 is an interrupt vector.

第7図は、第3図の構成を使用したときの動作
フローである。
FIG. 7 is an operational flow when the configuration shown in FIG. 3 is used.

第3図において、処理装置10が入出力装置1
1に処理を依頼する場合、対象とする入出力装置
11が使用可能状態であるか否かを調べるため
に、モニタコール処理部16がモニタ部18に問
合せを行なう。モニタ部18から「使用可」を通
知されたとき、入出力依頼処理部12は、入出力
装置11に処理を依頼する。この後、処理装置1
0では他の処理が可能となり、他の処理部14が
動作を行なう。この後、入出力装置11で処理が
完了すると、入出力装置11から入出力完了割込
みが処理装置10へ入力される。処理装置10で
は、割込みベクタ20内の当該入出力装置11に
対応するエリアからモニタ内の番地情報が取出さ
れ、これによつて、モニタ部18内の割込み処理
部19が起動される。割込み処理部19は、ステ
ータスレジスタ15の内容をチエツクし、完了状
態を示していれば、その旨をモニタコール完了処
理部17へ通知する。モニタコール完了処理部1
7では所定の処理を行ない、入出力装置11に対
する処理はすべて終了する。その後、入出力装置
11に処理を依頼する必要が生じたとき、上記し
たのと同様な処理が繰返される。
In FIG. 3, the processing device 10 is the input/output device 1
1, the monitor call processing unit 16 makes an inquiry to the monitor unit 18 in order to check whether the target input/output device 11 is available for use. When notified by the monitor unit 18 that “usage is available”, the input/output request processing unit 12 requests the input/output device 11 to perform processing. After this, processing device 1
When the value is 0, other processing becomes possible, and the other processing section 14 performs the operation. Thereafter, when the processing is completed by the input/output device 11, an input/output completion interrupt is input from the input/output device 11 to the processing device 10. In the processing device 10, the address information in the monitor is extracted from the area corresponding to the input/output device 11 in the interrupt vector 20, and thereby the interrupt processing section 19 in the monitor section 18 is activated. The interrupt processing section 19 checks the contents of the status register 15, and if it indicates a completed state, notifies the monitor call completion processing section 17 of this fact. Monitor call completion processing unit 1
At step 7, predetermined processing is performed, and all processing for the input/output device 11 is completed. Thereafter, when it becomes necessary to request processing to the input/output device 11, the same processing as described above is repeated.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記の方式においては、入出力装置へ処理を
依頼した後、入出力装置が完了を示すステータス
を上げるまでは、他の処理が行なえず、処理効率
が悪いという欠点がある。
The above method has the drawback that after a process is requested to the input/output device, other processing cannot be performed until the input/output device raises the status indicating completion, resulting in poor processing efficiency.

一方、上記の方式においては、入出力装置へ
処理を依頼した後、他の処理へ移ることができる
が、割込みベクタ20および割込処理部19を設
けるためにメモリ容量が大きくなるという欠点が
ある。
On the other hand, in the above method, after requesting processing to the input/output device, it is possible to move on to other processing, but there is a drawback that the memory capacity becomes large due to the provision of the interrupt vector 20 and the interrupt processing section 19. .

〔問題点を解決するための手段〕[Means for solving problems]

上記の点を解決するために本発明は、入出力装
置と、該入出力装置へのデータの書込みおよび/
または該データ入出力装置からのデータの読出し
を行なう処理装置を含んで構成されるデータ処理
システムにおいて、上記処理装置に、上記入出力
装置に関するステータス情報を、当該ステータス
情報が当該入出力装置の動作完了状態を示すま
で、繰返し調べる処理を行なうステータス情報チ
エツク処理部と、上記入出力装置へ入出力動作を
依頼する処理を行なう入出力処理部とその他の処
理を行なう他の処理部とをそなえ、上記処理装置
は、上記入出力装置へ入出力動作を依頼する前
に、上記ステータス情報チエツク処理部によつて
当該入出力装置の動作が完了しているか否かを調
べ、完了状態を検出した時点に上記入出力依頼処
理部によつて当該入出力装置に入出力動作を依頼
し、該依頼済み時点で当該入出力装置に関する入
出力処理をいつたん終了して次の処理を他の処理
部で行なうよう構成したことを特徴とする。
In order to solve the above points, the present invention provides an input/output device, a method for writing data to the input/output device, and/or an input/output device.
Or, in a data processing system including a processing device that reads data from the data input/output device, the processing device is provided with status information regarding the input/output device, and the status information indicates the operation of the input/output device. It is equipped with a status information check processing unit that performs repeated checking until a completion status is indicated, an input/output processing unit that performs processing of requesting input/output operations to the input/output device, and other processing units that perform other processing, Before requesting the input/output device to perform an input/output operation, the processing device checks whether the operation of the input/output device is completed using the status information check processing unit, and upon detecting the completion state. The input/output request processing unit requests input/output operations from the input/output device, and once the request has been completed, the input/output processing for the input/output device is terminated and the next processing is performed by another processing unit. It is characterized by being configured to perform.

〔作用〕[Effect]

本発明は、入出力要求が発生した時には、入出
力装置の空きを確認した後で入出力装置に対して
入出力処理依頼を出すとともに、当該入出力装置
の動作完了を待たずに他の処理へ移行し、次の入
出力要求が発生した時には、当該入出力装置に対
して入出力処理依頼を出す前に、以前の入出力動
作に関する完了ステータスをチエツクするように
したものである。ここで、処理装置が入出力装置
に対して入出力処理を依頼し、プログラムがその
入出力装置の入出力処理の結果を使用するような
場合には、再度同じ入出力処理を依頼し、当該入
出力処理依頼終了を待つて、以前の入出力処理の
結果を利用することもできる。このようにするこ
とで、少ないハードウエア構成で効率よく入出力
装置を使用することができる。
When an input/output request occurs, the present invention issues an input/output processing request to the input/output device after checking the availability of the input/output device, and performs other processing without waiting for the completion of the operation of the input/output device. When the next input/output request occurs, the completion status of the previous input/output operation is checked before issuing an input/output processing request to the input/output device. Here, if the processing device requests input/output processing to an input/output device and the program uses the result of the input/output processing of that input/output device, it requests the same input/output processing again and It is also possible to wait for the end of the input/output processing request and use the results of the previous input/output processing. By doing so, the input/output device can be used efficiently with a small hardware configuration.

〔実施例〕〔Example〕

第1図は、本発明による一実施例のブロツク図
であり、図中、第2図、第3図と同一番号のもの
は同一名称のものである。第5図は、第1図図示
実施例の動作フローである。
FIG. 1 is a block diagram of one embodiment of the present invention, and in the figure, the same numbers as in FIGS. 2 and 3 have the same names. FIG. 5 is an operational flowchart of the embodiment illustrated in FIG.

まず、処理装置10が入出力装置11に処理を
依頼する場合、ステータス情報チエツク処理部1
3が起動される。ステータス情報チエツク処理部
13はステータスレジスタ15の内容をチエツク
し、動作完了を示していれば入出力依頼処理部1
2を起動する。これにより、入出力依頼処理部1
2は、入出力装置11へ処理を依頼する。そし
て、処理依頼が終つたとき処理装置10では他の
処理が可能となり、他の処理部14が動作を行な
う。
First, when the processing device 10 requests processing to the input/output device 11, the status information check processing section 1
3 is activated. The status information check processing section 13 checks the contents of the status register 15, and if it indicates the completion of the operation, the input/output request processing section 1
Start 2. As a result, input/output request processing section 1
2 requests the input/output device 11 to perform processing. Then, when the processing request is completed, the processing device 10 becomes capable of performing other processing, and other processing units 14 perform operations.

一方、入出力装置11では、上記依頼された処
理が終了しても、ステータスレジスタ15に完了
状態をセツトするのみであり、処理装置10への
割込み等は行なわない。そして、処理装置10に
おいて入出力装置11への次の処理依頼が発生し
たとき、ステータス情報チエツク処理部13が起
動される。ステータス情報チエツク処理部13は
上記したようにステータスレジスタ15の内容を
チエツクし、動作完了を示していれば入出力依頼
処理部12を起動する。また前回の処理が終了し
ておらず、ステータスレジスタ15の内容が動作
完了を示していなければ、ステータスレジスタ1
5の内容を繰返しチエツクする。この繰返しチエ
ツク中に動作完了を検出したとき、入出力依頼処
理部12を起動する。以後、上記したと同様な動
作が繰返される。
On the other hand, even if the requested processing is completed, the input/output device 11 only sets the completed status in the status register 15 and does not interrupt the processing device 10. Then, when the next processing request to the input/output device 11 occurs in the processing device 10, the status information check processing section 13 is activated. The status information check processing section 13 checks the contents of the status register 15 as described above, and starts the input/output request processing section 12 if it indicates that the operation has been completed. Furthermore, if the previous processing has not finished and the contents of the status register 15 do not indicate completion of the operation, the status register 1
Check the contents of 5 repeatedly. When the completion of the operation is detected during this repeated check, the input/output request processing section 12 is activated. Thereafter, the same operations as described above are repeated.

第8図と第9図は、プログラム、制御ソフト、
ハードウエアのレベルで示した入出力シーケンス
チヤート例であり、第8図は本発明の実施例のチ
ヤート例であり、プログラムの入出力マクロ1が
発生すると制御ソフトを介してハードウエアに対
して入出力要求1を出すとともに、当該ハードウ
エアの動作完了を待たずに他のプログラムへ移行
し、次にプログラムの入出力マクロ2が発生した
時には、制御ソフトを介してハードウエアに対し
て入出力要求2を出す前に、以前の入出力動作に
関する完了ステータスをチエツクしてから入出力
要求2を行うことを示している。第9図は上記の
の従来例のチヤート例であり、入出力要求1の
処理完了を待つてから、次のプログラム処理を行
い、当該処理の完了後に入出力要求2を行うこと
を示している。第8図、第9図から明らかなよう
に、本発明によれば、プログラムでXで示す時間
がかかる処理を入出力要求1の完了前に行なうこ
とができる。
Figures 8 and 9 show the program, control software,
This is an example of an input/output sequence chart shown at the hardware level, and FIG. 8 is an example of a chart of an embodiment of the present invention. In addition to issuing an output request 1, the program moves to another program without waiting for the completion of the operation of the relevant hardware, and the next time the program's input/output macro 2 occurs, it issues an input/output request to the hardware via the control software. This indicates that before issuing I/O request 2, the completion status of the previous I/O operation is checked and then I/O request 2 is issued. FIG. 9 is a chart example of the conventional example described above, and shows that the next program process is performed after waiting for the completion of processing of input/output request 1, and that input/output request 2 is performed after the completion of the processing. . As is clear from FIGS. 8 and 9, according to the present invention, the time-consuming process indicated by X can be performed in the program before the input/output request 1 is completed.

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

本発明によれば、ハードウエアを増大させるこ
となく、効率よく入出力装置を使用することがで
きるというすぐれた効果をもたらす。
According to the present invention, an excellent effect is brought about in that input/output devices can be used efficiently without increasing hardware.

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

第1図は本発明による一実施例のブロツク図、
第2図、第3図は従来例のブロツク図、第4図は
データ処理システムの一構成例、第5図は実施例
の動作フロー、第6図、第7図は従来例の動作フ
ロー、第8図は実施例の入出力シーケンスチヤー
ト例、第9図は従来例の入出力シーケンスチヤー
ト例である。 図中、10は処理装置、11は入出力装置、1
2は入出力依頼処理部、13はステータス情報チ
エツク処理部、14は他の処理部である。
FIG. 1 is a block diagram of an embodiment according to the present invention;
2 and 3 are block diagrams of the conventional example, FIG. 4 is a configuration example of a data processing system, FIG. 5 is the operational flow of the embodiment, and FIG. 6 and 7 are the operational flow of the conventional example. FIG. 8 is an example of an input/output sequence chart of the embodiment, and FIG. 9 is an example of an input/output sequence chart of a conventional example. In the figure, 10 is a processing device, 11 is an input/output device, 1
2 is an input/output request processing section, 13 is a status information check processing section, and 14 is another processing section.

Claims (1)

【特許請求の範囲】[Claims] 1 入出力装置と、該入出力装置へのデータの書
込みおよび/または該データ入出力装置からのデ
ータの読出しを行なう処理装置を含んで構成され
るデータ処理装置システムにおいて、上記処理装
置に、上記入出力装置に関するステータス情報
を、当該ステータス情報が当該入出力装置の動作
完了状態を示すまで、繰返し調べる処理を行なう
ステータス情報チエツク処理部と、上記入出力装
置へ入出力動作を依頼する処理を行なう入出力依
頼処理部とその他の処理を行なう他の処理部とを
そなえ、上記処理装置は、上記入出力装置へ入出
力動作を依頼する前に、上記ステータス情報チエ
ツク処理部によつて当該入出力装置の動作が完了
しているか否かを調べ、完了状態を検出した時点
に上記入出力依頼処理部によつて当該入出力装置
に入出力動作を依頼し、該依頼済み時点で当該入
出力装置に関する入出力処理をいつたん終了して
次の処理を他の処理部で行なうよう構成したこと
を特徴とする入出力装置制御方式。
1. In a data processing device system that includes an input/output device and a processing device that writes data to the input/output device and/or reads data from the data input/output device, the processing device has an A status information check processing unit that repeatedly checks status information regarding the input/output device until the status information indicates that the input/output device has completed its operation; and a status information check processing unit that requests the input/output device to perform input/output operations. The processing device includes an input/output request processing section and another processing section that performs other processing, and before requesting input/output operations to the input/output device, the processing device uses the status information check processing section to check the input/output operations. It is checked whether the operation of the device is completed or not, and when the completed state is detected, the input/output request processing unit requests the input/output device to perform the input/output operation, and when the request is completed, the input/output device is executed. 1. An input/output device control method, characterized in that the input/output device control method is configured such that the input/output processing related to the input/output processing is immediately terminated and the next processing is performed by another processing section.
JP25298084A 1984-11-30 1984-11-30 Input and output control system Granted JPS61131148A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25298084A JPS61131148A (en) 1984-11-30 1984-11-30 Input and output control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25298084A JPS61131148A (en) 1984-11-30 1984-11-30 Input and output control system

Publications (2)

Publication Number Publication Date
JPS61131148A JPS61131148A (en) 1986-06-18
JPH0376507B2 true JPH0376507B2 (en) 1991-12-05

Family

ID=17244825

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25298084A Granted JPS61131148A (en) 1984-11-30 1984-11-30 Input and output control system

Country Status (1)

Country Link
JP (1) JPS61131148A (en)

Also Published As

Publication number Publication date
JPS61131148A (en) 1986-06-18

Similar Documents

Publication Publication Date Title
JPH0798663A (en) Asynchronous i/o control system
JPH0376507B2 (en)
JP3130798B2 (en) Bus transfer device
JPH0644193A (en) I/o register access system
JP2785855B2 (en) Information processing device
JP2501393B2 (en) Direct memory access device
JPS6349942A (en) Arithmetic processing unit
JPH04359352A (en) Disk device
JPS63298442A (en) Application managing device
JPS60160466A (en) Device for controlling hierarchical sequence
JPH06266630A (en) Input/output controller with trace function
JPH07111711B2 (en) Processing end interrupt control system
JPS6239790B2 (en)
JPH04342011A (en) Asynchronous input/output controlling system
JPS60256858A (en) Program loading system
JPH01292451A (en) Information processor
JPH0242587A (en) Picture processor
JPH0424733B2 (en)
JPS63170758A (en) Main storage initial write processing system
JPS592028B2 (en) display terminal device
JPS5960553A (en) Disk data controlling system
JPH0659911A (en) External device control system
JPS59212960A (en) Prefetch control system
JPH02272666A (en) Dma transfer control circuit
JPS6349935A (en) Central controller