JPH07210490A - Input/output control system - Google Patents

Input/output control system

Info

Publication number
JPH07210490A
JPH07210490A JP151294A JP151294A JPH07210490A JP H07210490 A JPH07210490 A JP H07210490A JP 151294 A JP151294 A JP 151294A JP 151294 A JP151294 A JP 151294A JP H07210490 A JPH07210490 A JP H07210490A
Authority
JP
Japan
Prior art keywords
interrupt
microprocessor
input
processing
interruption
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
JP151294A
Other languages
Japanese (ja)
Inventor
Seiichi Kuriyama
誠一 栗山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP151294A priority Critical patent/JPH07210490A/en
Publication of JPH07210490A publication Critical patent/JPH07210490A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce time for executing an output instruction by interrupting and restarting the interruption processing of a microprocessor concerning an input/output control system controlling plural channels by the single microprocessor. CONSTITUTION:The input/output control system can interrupt and restart the interruption processing of the microprocessor by providing with an interruption generating means 6 capable of optionally setting from the microprocessor 3 to a channel 4 connected to the microprocessor 3 and a means 7 for interruption from the channel 4 or interruption generation. Thereby, the system can complete the input/output instruction by the absolute minimum processing without affecting time for interruption processing.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、入出力制御方式に係
り、特に複数のチャネルを単一のマイクロプロセッサに
より制御する入出力制御方式に関する物である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an input / output control system, and more particularly to an input / output control system for controlling a plurality of channels by a single microprocessor.

【0002】[0002]

【従来の技術】入出力システムにおける一般的な構成を
図4に示す。
2. Description of the Related Art A general configuration of an input / output system is shown in FIG.

【0003】CHC(チャネルコントローラ)2は、C
PU(中央処理装置)1とCH(チャネル)4との間の
通信制御をおこなう。CPU1はCHC2単位で通信を
行なうのでCHC2配下の複数のCH4からCPU1へ
の報告要求はCHC2が統括し、各CH4の通信制御の
競合を防いでいる。CH4はI/O(入出力装置)5と
のデータ転送制御やI/O5からの報告要求によるCH
C2を経由したCPU1への状態報告等を行なう。
CHC (channel controller) 2 is a C
Communication control between the PU (central processing unit) 1 and the CH (channel) 4 is performed. Since the CPU1 communicates in units of CHC2, the CHC2 supervises the report requests from the plurality of CH4 under the CHC2 to the CPU1 and prevents the competition of the communication control of each CH4. CH4 is a CH based on data transfer control with I / O (input / output device) 5 and report request from I / O5
The status is reported to the CPU 1 via C2.

【0004】CHC2とCH4は同一のマイクロプロセ
ッサ3上のプログラムで制御しており、CHC2を非割
込みレベル、CH4を特定の割込みレベルに割り当てて
いる。この入出力システムでの一連の入出力命令動作の
タイムチャートを図3に示す。
CHC2 and CH4 are controlled by a program on the same microprocessor 3, and CHC2 is assigned to a non-interrupt level and CH4 is assigned to a specific interrupt level. A time chart of a series of input / output command operations in this input / output system is shown in FIG.

【0005】CHC2はCPU1から入出力起動指示を
受付けると、起動受付処理9によって指示されたI/O
5への起動を行ない、監視ループ10でI/O5の起動
応答報告を待つ。
When the CHC 2 receives an input / output activation instruction from the CPU 1, the I / O instructed by the activation acceptance processing 9
Then, the monitoring loop 10 waits for an I / O 5 activation response report.

【0006】次にI/O5からの起動応答報告により割
込みが発生し、割込み受付け処理11に続き起動応答コ
ード作成処理12を行ない、I/O5からの起動応答報
告の内容に従い起動応答コードを作成する。その後、デ
ータ転送が可能ならばデータ転送開始処理15を行なっ
た後、CHC2への起動応答報告要求を行ない再びCH
C2の監視ループ10へ復帰する。CHC2は監視ルー
プ10中でCH4の起動応答報告要求を検出し、起動応
答処理13によってCH4が作成した起動応答コードを
CPU1へ報告する。
Next, an interrupt is generated by the activation response report from the I / O 5, and the activation response code creation process 12 is performed following the interrupt acceptance process 11 to create the activation response code according to the contents of the activation response report from the I / O 5. To do. After that, if data transfer is possible, the data transfer start processing 15 is performed, and then the activation response report request to the CHC 2 is made and the CH is re-started.
Return to the monitoring loop 10 of C2. The CHC 2 detects the activation response report request of the CH 4 in the monitoring loop 10 and reports the activation response code created by the CH 4 to the CPU 1 by the activation response process 13.

【0007】以上でCPU1の一つの入出力命令が終了
する。
With the above, one input / output instruction of the CPU 1 is completed.

【0008】なお、この種の装置として関連する物に
は、例えば特開昭58−86645号公報等が挙げられ
る。
[0008] Examples of related devices of this type include, for example, JP-A-58-86645.

【0009】[0009]

【発明が解決しようとする課題】前記従来技術では、C
H4の処理が全て終結するまでCPU1への起動応答が
できない。
In the above conventional technique, C
The start response cannot be made to the CPU 1 until the processing of H4 is completed.

【0010】近年はCPU1の処理速度が向上され、C
H4との処理性能の差が大きくなる傾向にある。加えて
CH4のデータ転送方式の高度化、複雑化に伴いCH4
が占める入出力命令時間の割合いが増える為に、CPU
1の入出力命令性能の低下を招く問題があった。
In recent years, the processing speed of the CPU 1 has been improved, and C
The difference in processing performance from H4 tends to increase. In addition, as CH4 data transfer methods become more sophisticated and complex, CH4
Because the percentage of I / O command time occupied by
However, there is a problem that the input / output instruction performance of No. 1 is deteriorated.

【0011】本発明は、上記問題を解決するものであ
り、上位への応答を優先して行なわせる事ができる入出
力制御方式を提供する事を目的としている。
The present invention is intended to solve the above problems, and an object of the present invention is to provide an input / output control system capable of giving priority to a response to a host.

【0012】[0012]

【課題を解決するための手段】上記目的を達成するため
に、CH4にマイクロプロセッサ3側から任意に設定可
能な割込み発生手段と、CH4からの割込みか前記割込
み発生手段による割込みであるかの割込み識別手段を設
けた。
In order to achieve the above object, an interrupt generating means that can be arbitrarily set in CH4 from the microprocessor 3 side, and an interrupt whether it is an interrupt from CH4 or an interrupt by the interrupt generating means An identification means is provided.

【0013】[0013]

【作用】よって、マイクロプロセッサ3は起動応答が可
能となった時点でCH4の割込み処理を中断し、CHC
2の制御へ移りCPU1への起動応答動作を終了させ
る。
Therefore, the microprocessor 3 interrupts the interrupt processing of CH4 at the time when the activation response becomes possible, and the CHC
The control shifts to the control 2 to end the activation response operation to the CPU 1.

【0014】起動応答動作終了後は、前記割込み手段に
よりCH4から再度割込みを発生させ、割込みを受付け
たマイクロプロセッサ3は前記割込み識別手段により一
時中断していた割込み処理を再開する。
After the completion of the start-up response operation, the interrupt means again generates an interrupt from CH4, and the microprocessor 3 which has received the interrupt restarts the interrupt processing which has been temporarily interrupted by the interrupt identification means.

【0015】[0015]

【実施例】以下、本発明の実施例を図面を参照しながら
説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0016】図1は本発明の一実施例であるシステム構
成図であり、CH4にマイクロプロセッサ3から任意に
割込みを発生させる事ができる割込み発生手段としてF
F(フリップフロップ)6と、FF6の設定または割込
み識別手段としてのスキャンバス7を設けている。FF
6の出力はCH4が発生させる割込み信号8とオアされ
ており、CH4からマイクロプロセッサ3への割込みと
同等の割込みを発生することができる。
FIG. 1 is a system configuration diagram showing an embodiment of the present invention, in which F is provided as an interrupt generating means capable of arbitrarily generating an interrupt from CH3 to the microprocessor 3.
An F (flip-flop) 6 and a scan bus 7 as a setting or interrupt identification means of the FF 6 are provided. FF
The output of 6 is ORed with the interrupt signal 8 generated by CH4, and an interrupt equivalent to the interrupt from CH4 to the microprocessor 3 can be generated.

【0017】図2は本発明の一実施例の動作を示すタイ
ムチャートである。図2中、図3と同一部については同
一符号を付しその説明を省略する。図2において一連の
起動処理終了後、CH4は起動応答コード作成処理12
により起動応答コードを作成し、CHC2へ起動応答報
告要求を出して復帰することでCHC2の監視ループ1
0へ戻る。CHC2はCH4からの起動応答報告要求を
監視ループ10で検出し、CPU1へ起動応答コードを
報告する。以上で先ずCPU1の入出力命令が完了す
る。
FIG. 2 is a time chart showing the operation of one embodiment of the present invention. 2, those parts which are the same as those corresponding parts in FIG. 3 are designated by the same reference numerals, and a description thereof will be omitted. In FIG. 2, after a series of start-up processing is completed, CH4 starts the start-up response code 12
CHC2 monitoring loop 1 by creating a start response code by issuing a start response report request to CHC2 and returning
Return to 0. The CHC 2 detects the activation response report request from the CH 4 in the monitoring loop 10 and reports the activation response code to the CPU 1. Thus, the input / output command of the CPU 1 is completed first.

【0018】次に、CHC2は本発明の割込み発生手段
であるFF6を再割込み要求処理14で設定し、再度C
H4からの割込みを発生させる。マイクロプロセッサ3
はCH4からの割込みを受付けることでCH4に対する
処理を開始するが、その先頭の割込み受付け処理11に
よって本発明の割込み識別手段であるスキャンバス7を
介してFF6の値を読みだす。その結果、現在行なって
いる割込み処理が割込み発生手段であるFF6により発
生した物であることを認識し、マイクロプロセッサ3は
前に中断していた割込み処理を再開させ、データ転送開
始処理15を行ない処理を終了する。
Next, the CHC 2 sets the FF 6 which is the interrupt generation means of the present invention in the re-interruption request processing 14, and again C
Generate an interrupt from H4. Microprocessor 3
Starts the process for CH4 by accepting the interrupt from CH4, and the value of FF6 is read out by the interrupt accepting process 11 at the head thereof via the scan bus 7 which is the interrupt identifying means of the present invention. As a result, it is recognized that the interrupt process currently being performed is generated by the FF 6 which is the interrupt generation means, and the microprocessor 3 restarts the interrupt process that was interrupted before and performs the data transfer start process 15. The process ends.

【0019】[0019]

【発明の効果】以上の説明で明らかなように、CHC
2、CH4においてI/O5への起動からCPU1への
起動応答を行なうまでをCH4の処理時間全体に影響せ
ず必要最小限の処理で完了することができる。
As is clear from the above description, CHC
2. In CH4, the process from the activation to I / O5 to the response to the activation to CPU1 can be completed with the minimum necessary processing without affecting the entire processing time of CH4.

【0020】よってCPU1の入出力命令の時間を短縮
させ、CPU1の命令性能の低下を防ぐ。
Therefore, the input / output command time of the CPU 1 is shortened and the deterioration of the command performance of the CPU 1 is prevented.

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

【図1】本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

【図2】本発明の一実施例のタイムチャートである。FIG. 2 is a time chart of an example of the present invention.

【図3】従来方式のタイムチャートである。FIG. 3 is a time chart of a conventional method.

【図4】一般的な入出力システムの構成図である。FIG. 4 is a configuration diagram of a general input / output system.

【符号の説明】[Explanation of symbols]

1…中央処理装置、 2…チャネルコントローラ、 3…マイクロプロセッサ、 4…チャネル、 5…入出力装置、 6…本発明による割込み発生手段、 7…本発明による割込み識別手段、 8…割込み信号、 9…起動受付け処理、 10…監視ループ、 11…割込み受付け処理、 12…起動応答コード作成処理、 13…起動応答処理、 14…再割込み要求処理、 15…データ転送開始処理。 DESCRIPTION OF SYMBOLS 1 ... Central processing unit, 2 ... Channel controller, 3 ... Microprocessor, 4 ... Channel, 5 ... Input / output device, 6 ... Interrupt generation means by this invention, 7 ... Interrupt identification means by this invention, 8 ... Interrupt signal, 9 ... start acceptance processing, 10 ... monitoring loop, 11 ... interrupt acceptance processing, 12 ... start response code creation processing, 13 ... start response processing, 14 ... re-interruption request processing, 15 ... data transfer start processing.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数のチャネルより割込みを受付ける機能
を具備したマイクロプロセッサを有するデータ処理シス
テムにおいて、マイクロプロセッサ側から任意に設定可
能な割込み発生手段と、チャネルからの割込みか前記割
込み発生手段による割込みであるかを区別する割込み識
別手段を設け、マイクロプロセッサが行なう割込み処理
を中断、再開可能とすることを特徴とする入出力制御方
式。
1. In a data processing system having a microprocessor having a function of accepting interrupts from a plurality of channels, interrupt generating means that can be arbitrarily set from the microprocessor side, and an interrupt from a channel or an interrupt by the interrupt generating means. An input / output control system characterized in that an interrupt identification means for distinguishing whether or not it is provided is provided, and interrupt processing performed by a microprocessor can be interrupted and restarted.
JP151294A 1994-01-12 1994-01-12 Input/output control system Pending JPH07210490A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP151294A JPH07210490A (en) 1994-01-12 1994-01-12 Input/output control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP151294A JPH07210490A (en) 1994-01-12 1994-01-12 Input/output control system

Publications (1)

Publication Number Publication Date
JPH07210490A true JPH07210490A (en) 1995-08-11

Family

ID=11503543

Family Applications (1)

Application Number Title Priority Date Filing Date
JP151294A Pending JPH07210490A (en) 1994-01-12 1994-01-12 Input/output control system

Country Status (1)

Country Link
JP (1) JPH07210490A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6173339B1 (en) 1997-12-26 2001-01-09 Fujitsu Limited System for monitoring execution of commands from a host for shared I/O devices by setting a time-out period based on control parameters sent by the host

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6173339B1 (en) 1997-12-26 2001-01-09 Fujitsu Limited System for monitoring execution of commands from a host for shared I/O devices by setting a time-out period based on control parameters sent by the host

Similar Documents

Publication Publication Date Title
JPS63238630A (en) Interruption controller for microprocessor
US5809335A (en) Data transfer apparatus capable of handling DMA block transfer interruptions
JPH07210490A (en) Input/output control system
JP2003186936A (en) Method and device for executing operation verification simulation and its program
JP3898332B2 (en) Timer automatic control device and recording medium
JP4535663B2 (en) State machine control method and state machine
JPH05197577A (en) Virtual computer execution priority control system in virtual computer system
JPH07287660A (en) Interruption processing method for programmable controller
JPH06149592A (en) Interruption processing system for microcomputer
JP2581327B2 (en) Virtual machine I / O interrupt handling method
JP2000155694A (en) Task manager
JPH04342012A (en) Auxiliary storage device accessing system
JPS62162104A (en) Flow chart type programmable controller
JPS61288232A (en) Output instruction control system
JPS62117054A (en) Confirmation system for state of input and output device
JP2000099453A (en) Input and output control device and method for controlling dma transfer
JPH0224703A (en) Numerical controller
JPS6182259A (en) Input and output adaptor control system
JPH0462093B2 (en)
JPS6063662A (en) Multiprocessor system
JPS62140145A (en) Virtual computer system
JP2000029850A (en) Task controlling method using inter-processor communication of operating system
JPS63311462A (en) Terminal activating system for front end communication processor
JPS6278631A (en) Input and output control system for plural operating system
JPH0520049A (en) Information processing system with correcting function for control memory and correcting method for control memory