[go: up one dir, main page]

JPH04167042A - Asynchronous input/output system - Google Patents

Asynchronous input/output system

Info

Publication number
JPH04167042A
JPH04167042A JP2291936A JP29193690A JPH04167042A JP H04167042 A JPH04167042 A JP H04167042A JP 2291936 A JP2291936 A JP 2291936A JP 29193690 A JP29193690 A JP 29193690A JP H04167042 A JPH04167042 A JP H04167042A
Authority
JP
Japan
Prior art keywords
output
input
waiting
address
address match
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2291936A
Other languages
Japanese (ja)
Inventor
Koichi Toyoda
豊田 幸一
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 Corp
Original Assignee
NEC Corp
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 Corp filed Critical NEC Corp
Priority to JP2291936A priority Critical patent/JPH04167042A/en
Publication of JPH04167042A publication Critical patent/JPH04167042A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten a turn around time by automatically performing a waiting process for input/output operation which is performed by a user heretofore. CONSTITUTION:A program which performs input and output is provided with a setting means 11 which sets address coincidence interruption in an input/output address right before the input or output and a detecting means 12 which detects the address coincidence interruption obtained by the setting means 11. Further, a waiting means 13 inputs the output of the detecting means 12 and waits the end of the input or output in the address coincidence interrupting process. Therefore, the process for waiting the input and output which is performed by the user heretofore can be performed automatically. Consequently, the input/output process and the arithmetic process of a CPU can be performed in parallel by a necessary sufficient quantity and the turn around time is shortened.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は入出力を行うプログラムにおける非同期入出力
方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an asynchronous input/output method in a program that performs input/output.

〔従来の技術〕[Conventional technology]

入出力は他のCPUで行う演算処理等と比較して処理速
度が格段に遅いため、従来から人出力とcpUで行う処
理とを同時に行うため非同期入出力の方式がとられてい
る。
Since the processing speed of input/output is much slower than arithmetic processing performed by other CPUs, an asynchronous input/output method has traditionally been used to simultaneously perform human output and processing performed by the CPU.

第6図は従来の非同期入出力方式の説明に供する図で、
(−)における61は入力文を示し、(b)における6
2は出力文を示す。そして、63m 、 63bは待ち
合せを示す。
Figure 6 is a diagram used to explain the conventional asynchronous input/output method.
61 in (-) indicates the input sentence, 6 in (b)
2 indicates an output sentence. 63m and 63b indicate a meeting point.

そしそ、従来の非同期入出力方式はこの第6図に示すよ
うに1人出力を待ち合わせる箇所をプログラム中で明示
的に指定する方式であった。
The conventional asynchronous input/output method, as shown in FIG. 6, was a method in which a location where one person's output was to be waited for was explicitly specified in the program.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来の非同期入出力方式では、利用者が入出力を待ち合
わせる箇所をプログラム中で明示的に指定する必要があ
るため、必ずしも効果的な指定でなかったり、指定を誤
るとプログラム自体が誤動作するという課題があった。
With conventional asynchronous input/output methods, it is necessary for the user to explicitly specify the location in the program where the user waits for input/output, which causes problems such as not necessarily being an effective specification, and incorrect specification causing the program itself to malfunction. was there.

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

本発明の非同期入出力方式は、入出力を行うプログラム
において、入出力を行う直前に入出力データアドレスで
のアドレス一致割り込みを設定する設定手段と、この設
定手段によって得られたアドレス一致割り込みを検出す
る検出手段と、この検出手段の出力を入力としアドレス
一致割り込み処理において入出力の終了を待ち合わせる
待ち合せ手段とを備えてなるものである。
The asynchronous input/output method of the present invention includes a setting means for setting an address match interrupt at an input/output data address immediately before performing input/output in a program that performs input/output, and detecting an address match interrupt obtained by this setting means. Waiting means receives the output of the detection means and waits for completion of input/output in address match interrupt processing.

ま念、本発明の別の発明による非同期入出力方式は、入
出力を行うプログラムにおいて、入出力を行う直前に、
入力ならば入力データの参照および更新時に、出力なら
ば出力データの更新時に割り込みを発生させる入出力デ
ータアドレスでのアドレス一致割り込みを設定する設定
手段と、この設定手段の出力全入力としデータのi照・
更新釜々の条件でアドレス一致割り込みを検出する検出
手段と、この検出手段の出力を入力としアドレス一致割
り込み処理において入出力の終了を待ち合わせる待ち合
せ手段とを備えてなるものである。
By the way, the asynchronous input/output method according to another invention of the present invention is that in a program that performs input/output, immediately before performing input/output,
A setting means for setting an address match interrupt at an input/output data address that generates an interrupt when input data is referenced and updated if it is an input, or when output data is updated if it is an output; Teru・
The apparatus is equipped with a detecting means for detecting an address match interrupt under the conditions of the update mechanism, and a waiting means that receives the output of the detecting means as an input and waits for the completion of input/output in address match interrupt processing.

〔作用〕[Effect]

本発明においては、従来利用者が行っていた入出力を待
ち合わせる処理を自動的に行う。
In the present invention, processing for waiting for input/output, which was conventionally performed by a user, is automatically performed.

〔実施例〕〔Example〕

以下、図面に基づき本発明の実施例を詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail based on the drawings.

第1図は本発明による非同期入出力方式の一実施例を示
すブロック図である。
FIG. 1 is a block diagram showing an embodiment of the asynchronous input/output method according to the present invention.

この第1図において、11#iアドレス一致割り込み設
定部で、このアドレス一致割り込み設定部11は、入出
力を行う直前に入出力データアドレスでのアドレス一致
割り込みを設定する設定手段と入出力を行う直前に入力
ならば、入力データの参照および更新時に、出力ならは
出力データの更新時に割り込みを発生させる入出力デー
タアドレスでのアドレス一致割り込みを設定する設定手
段を構成している。12はアドレス一致割り込み検出部
で、このアドレス一致割り込み検出部12は、上記設定
手段によって得られたアドレス一致割り込みを検出する
検出手段と上記設定手段の出力を入力としデータの参照
・更新釜々の条件でアドレス一致割り込みを検出する検
出手段を構成している。13は入出力待ち合わせ部で、
この入出力待ち合わせ部13は、上記検出手段の出力を
入力としアドレス一致割り込み処理において入出力の終
了を待ち合わせる待ち合せ手段とアドレス一致割り込み
処理において入出力の終了を待ち合わせる待ち合せ手段
を構成している。
In FIG. 1, 11#i address match interrupt setting section 11 performs input/output with a setting means for setting an address match interrupt at an input/output data address immediately before input/output. It constitutes a setting means for setting an address match interrupt at the input/output data address, which generates an interrupt at the time of referencing and updating the input data if it is an input immediately before, and at the time of updating the output data if it is an output. Reference numeral 12 denotes an address match interrupt detection unit, which receives the detection means for detecting the address match interrupt obtained by the setting means and the output of the setting means as input, and performs a data reference/update function. It constitutes a detection means that detects an address match interrupt under certain conditions. 13 is an input/output waiting section,
The input/output waiting section 13 receives the output of the detecting means and constitutes a waiting means for waiting for the end of input/output in address match interrupt processing and a waiting means for waiting for the end of input/output in address match interrupt processing.

第2図は原始プログラムを示す説明図で、(、)におけ
る21は入力文、22は入力データの参照、23は入力
データの更新を示し、(b)における24は出力文、2
5は出力データの更新を示す。
Figure 2 is an explanatory diagram showing a source program, where 21 in (,) indicates an input statement, 22 indicates input data reference, 23 indicates update of input data, 24 in (b) indicates an output statement, 2
5 indicates update of output data.

第3図は入出力処理(入出力データでのアドレス一致割
り込み設定手段)のフローチャートで、各ステップ31
〜34においてはそれぞれ所定の処理を実行する。
FIG. 3 is a flowchart of input/output processing (address matching interrupt setting means for input/output data), and each step 31
In steps 34 to 34, predetermined processing is executed.

第4図は入出力テーブル、第5図はアドレス一致割り込
み処理(入出力待ち合わせ手段)のフローチャートで、
各ステップ51〜53においてはそれぞれ所定の処理を
実行する。
Figure 4 is an input/output table, and Figure 5 is a flowchart of address match interrupt processing (input/output waiting means).
In each step 51 to 53, a predetermined process is executed.

つぎに第1図に示す実施例の動作をig2図ないし第5
図を参照して説明する。
Next, the operation of the embodiment shown in Fig. 1 will be explained in Figs.
This will be explained with reference to the figures.

まず、第2図の原始プログラムは、第2図(a)に示す
データAである入力文21をファイルから入力し、入力
したデータをその後参照22することを示す。 したが
って、データAである入力文210入力が完了する前に
データAへのアクセスがあってはならない。
First, the source program shown in FIG. 2 indicates that an input sentence 21, which is data A shown in FIG. 2(a), is input from a file, and the input data is then referenced 22. Therefore, data A must not be accessed before input of the input sentence 210, which is data A, is completed.

そして、入力文(READ文)21が実行されると、入
出力処理において入出力データでのアドレス一致割り込
み部11は、入出力を行う直前で入力データが参照22
′!たけ更新23されたときK(第2図(b)に示す出
力文(WRITE文)24の場合は、出力データが更新
されたときに)アドレス一致割り込みが発生するように
設定しく第3図のステンプ31)、入出力を別タスクで
起動しくステップ32)、データアドレスおよびタスク
IDを第1図に示す入出力テーブルに登録して(ステッ
プ33)、利用者プログラムを継続する(ステップ34
)。
Then, when the input statement (READ statement) 21 is executed, the address match interrupt unit 11 for the input/output data in the input/output process interrupts the input data with the reference 22 immediately before performing the input/output.
′! It should be set so that an address match interrupt occurs when the output data is updated 23 (in the case of the output statement (WRITE statement) 24 shown in FIG. 2(b), when the output data is updated). Step 31), start input/output in a separate task, step 32), register the data address and task ID in the input/output table shown in FIG. 1 (step 33), and continue the user program (step 34).
).

つぎに、入力データが参照22または更新23されるか
出力データが更新25されるかすると、アドレス一致割
り込み検出部12によってI′Il!ll込みが検出さ
れ、割り込み処理が行われる。そして、この割り込み処
理において、入出力待ち合わせ部13は、第4図に示す
入出力テーブルを参照し、割り込みを発生したデータア
ドレスに対応するタスクIDで示されるタスクで実行し
ていた入出力の終了を待ち合わせて(第5図のステップ
51)、入出力データアドレスでのアドレス一致割り込
みを解除しくステップ52)、利用者プログラムを継続
する(ステップ53)。そして、継続てれた利用者プロ
グラムは、アドレス一致割り込みを発生した箇所(第2
図(a)に示す入力データの参照22)から再実行され
るが今度はアドレス一致割り込みが解除されているため
、割り込みは発生しない。
Next, when the input data is referenced 22 or updated 23 or the output data is updated 25, the address matching interrupt detection section 12 detects I'Il! ll interrupt is detected and interrupt processing is performed. In this interrupt processing, the input/output waiting unit 13 refers to the input/output table shown in FIG. (step 51 in FIG. 5), cancels the address match interrupt at the input/output data address (step 52), and continues the user program (step 53). Then, the continued user program will be updated to the location where the address match interrupt occurred (second
The process is re-executed from input data reference 22) shown in Figure (a), but since the address match interrupt has been canceled this time, no interrupt occurs.

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

以上説明したように本発明は、従来利用者が行っていた
入出力を待ち合わせる処理を自動的に行うため、入出力
処理とCPUによる演算処理全必要十分なだけ並行(・
て行うことによって、ターンアラウンドタイムを短縮す
ることができるという効果がある。
As explained above, the present invention automatically performs the process of waiting for input/output, which was conventionally performed by the user, so that all input/output processing and calculation processing by the CPU are performed in parallel (as much as necessary and sufficient).
By doing so, the turnaround time can be reduced.

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

第1図は本発明による非同期入出力方式の一実施例を示
すブロック図、第2図は原始プログラムを示す説明図、
第3図は入出力処理のフローチャート、第4図は入出力
テーブル、第5図はアドレス一致割り込み処理のフロー
チャート、第6図は従来の非同期入出力方式の説明に供
する図である。 11・・・・アドレス一致割り込み設定部、12・・・
・アドレス一致割り込み検出部、13・・・・入出力待
ち合わせ部。 特許出願人  日本電気株式会社
FIG. 1 is a block diagram showing an embodiment of the asynchronous input/output method according to the present invention, FIG. 2 is an explanatory diagram showing a source program,
FIG. 3 is a flowchart of input/output processing, FIG. 4 is an input/output table, FIG. 5 is a flowchart of address match interrupt processing, and FIG. 6 is a diagram for explaining the conventional asynchronous input/output method. 11...Address match interrupt setting section, 12...
-Address match interrupt detection section, 13...I/O waiting section. Patent applicant: NEC Corporation

Claims (2)

【特許請求の範囲】[Claims] (1)入出力を行うプログラムにおいて、入出力を行う
直前に入出力データアドレスでのアドレス一致割り込み
を設定する設定手段と、この設定手段によつて得られた
アドレス一致割り込みを検出する検出手段と、この検出
手段の出力を入力としアドレス一致割り込み処理におい
て入出力の終了を待ち合わせる待ち合せ手段とを備えて
なることを特徴とする非同期入出力方式。
(1) In a program that performs input/output, a setting means for setting an address match interrupt at an input/output data address immediately before performing input/output, and a detection means for detecting an address match interrupt obtained by this setting means. , and waiting means which receives the output of the detection means as input and waits for completion of input/output in address match interrupt processing.
(2)入出力を行うプログラムにおいて、入出力を行う
直前に、入力ならば入力データの参照および更新時に、
出力ならば出力データの更新時に割り込みを発生させる
入出力データアドレスでのアドレス一致割り込みを設定
する設定手段と、この設定手段の出力を入力としデータ
の参照・更新各々の条件でアドレス一致割り込みを検出
する検出手段と、この検出手段の出力を入力としアドレ
ス一致割り込み処理において入出力の終了を待ち合わせ
る待ち合せ手段とを備えてなることを特徴とする非同期
入出力方式。
(2) In a program that performs input/output, immediately before performing input/output, or when referencing and updating input data in the case of input,
If it is an output, there is a setting means for setting an address match interrupt at the input/output data address that generates an interrupt when output data is updated, and an address match interrupt is detected under each condition of data reference and update using the output of this setting means as input. 1. An asynchronous input/output system comprising: a detection means for detecting the output of the detection means; and a waiting means for inputting the output of the detection means and waiting for the completion of the input/output in address match interrupt processing.
JP2291936A 1990-10-31 1990-10-31 Asynchronous input/output system Pending JPH04167042A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2291936A JPH04167042A (en) 1990-10-31 1990-10-31 Asynchronous input/output system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2291936A JPH04167042A (en) 1990-10-31 1990-10-31 Asynchronous input/output system

Publications (1)

Publication Number Publication Date
JPH04167042A true JPH04167042A (en) 1992-06-15

Family

ID=17775376

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2291936A Pending JPH04167042A (en) 1990-10-31 1990-10-31 Asynchronous input/output system

Country Status (1)

Country Link
JP (1) JPH04167042A (en)

Similar Documents

Publication Publication Date Title
JPH04167042A (en) Asynchronous input/output system
JPH04288625A (en) Microcomputer
JP2708647B2 (en) How coprocessors support auxiliary functions
JP2507789B2 (en) Logical simulation processing method of virtual machine
JPH025136A (en) Error processing system for language processing program
JPH074669Y2 (en) Interrupt request processing circuit
JPH02311903A (en) Programmable controller
JPH05313870A (en) Preparation system for program structure diagram
JPS5868162A (en) Retry processing system
JPH03109643A (en) Execution system for data exception procedure
JPS6128144A (en) Executing device of tracing
JPS62113238A (en) Correction system for program of electronic computer system
JPH03167637A (en) Test diagnostic system for information processor
JPS61166631A (en) Microprogram control processor
JPS61241843A (en) Information processor
JPH0772874B2 (en) Interrupt receiving device
JPH02146664A (en) Data transfer system
JPS6252900B2 (en)
JPS6380335A (en) Starting system for background job
JPH02136927A (en) Language process program
JPS60101646A (en) Interruption processing method
JPH0423049A (en) Bus cycle re-executing method
JPH0527963A (en) Simultaneous support method for various floating point calculating instructions
JPH0212542A (en) Information processing system
JPH0378832A (en) Data processor