JPH0340416B2 - - Google Patents
Info
- Publication number
- JPH0340416B2 JPH0340416B2 JP59201018A JP20101884A JPH0340416B2 JP H0340416 B2 JPH0340416 B2 JP H0340416B2 JP 59201018 A JP59201018 A JP 59201018A JP 20101884 A JP20101884 A JP 20101884A JP H0340416 B2 JPH0340416 B2 JP H0340416B2
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- input
- output
- priority
- activation
- 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 - Lifetime
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/20—Handling requests for interconnection or transfer for access to input/output bus
- G06F13/24—Handling requests for interconnection or transfer for access to input/output bus using interrupt
- G06F13/26—Handling requests for interconnection or transfer for access to input/output bus using interrupt with priority control
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multi Processors (AREA)
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、複数の中央処理装置と複数の入出力
装置との間のデータの流れを制御する入出力制御
装置に係り、特に割込みステータスと起動信号と
を最適に制御する入出力制御装置に関する。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to an input/output control device that controls the flow of data between a plurality of central processing units and a plurality of input/output devices, and particularly relates to an input/output control device that controls the flow of data between a plurality of central processing units and a plurality of input/output devices. The present invention relates to an input/output control device that optimally controls a start signal.
一般に、最近の計算機システムには中央処理装
置(以下CPUと称する)が、プログラムの各命
令の実行ごとに、外部の非同期的なできごとが発
生したかどうかを調べ、発生がなければ次の命令
をプログラムのロジツクに従つて実行し、発生が
あれば特定の番地に制御を移す割込み機構が設け
てある。 Generally, in modern computer systems, a central processing unit (hereinafter referred to as CPU) checks whether an external asynchronous event has occurred each time each program instruction is executed, and if no external asynchronous event has occurred, the next instruction is executed. An interrupt mechanism is provided that executes the interrupt according to the logic of the program and transfers control to a specific address if an interrupt occurs.
割込み制御は通常割込み原因の発生があれば、
プログラムのロジツクの進行と異なる強制的な制
御の転移を引き起こす、即ち、高優先度の制御プ
ログラムへの制御の転移である。 Interrupt control is normally performed when an interrupt cause occurs.
This causes a forced transfer of control that is different from the progress of the program's logic, ie, transfer of control to a high-priority control program.
しかし、割込み原因の内容によつては必ずしも
高優先度のものばかりとは限らず、例えばプログ
ラム命令の終了をCPUに報告するための割込み
等のように、プログラムの命令実行終了時点で割
込み制御を行うものもある。 However, depending on the content of the interrupt cause, it may not necessarily be a high priority one; for example, an interrupt to report the end of a program instruction to the CPU, etc. There are things to do.
一方、計算機システムの高速化、大規模化に伴
い演算速度の速いCPUが開発実用化され、複合
化された計算機システムにこれらが組合わされた
場合、演算速度の速いCPUと演算速度が比較的
遅いCPUとで命令処理時間に極端なアンバラン
スが生じることになる。 On the other hand, as computer systems become faster and larger, CPUs with fast calculation speeds are developed and put into practical use, and when these are combined into a complex computer system, a CPU with fast calculation speeds and a CPU with relatively slow calculation speeds are used. This results in an extreme imbalance in instruction processing time with the CPU.
かかるシステムでの割込み制御を行うに当たつ
て、これらのアンバランスを是正し、適正化され
た割込み制御を行う入出力制御装置の開発が要望
されている。 When performing interrupt control in such a system, there is a demand for the development of an input/output control device that corrects these imbalances and performs optimized interrupt control.
第3図は多重処理を行う複合計算機システムの
ブロツクダイヤグラムを示す。
FIG. 3 shows a block diagram of a compound computer system that performs multiple processing.
第3図に示すシステムにおいて、例えば、複数
の入出力装置3a〜3n(以下IOD 3a〜3n
と称する)に対する上位装置1a(例えば、
CPU)からの入出力コマンド命令をパス2aを
経由して実行し、実行終了報告を上位装置1aに
するために、該当のIOD3a〜3n、例えばIOD
3aからのステータース割込みを入出力装置2
(以下IOC2と称する)が処理する場合、従来は
以下の2つの方法で処理されていた。 In the system shown in FIG. 3, for example, a plurality of input/output devices 3a to 3n (hereinafter referred to as IODs 3a to 3n)
) for the host device 1a (for example,
In order to execute input/output commands from (CPU) via path 2a and report the completion of execution to the host device 1a, the corresponding IODs 3a to 3n, e.g.
The status interrupt from 3a is sent to input/output device 2.
(hereinafter referred to as IOC2) has traditionally been processed using the following two methods.
即ち、IOD3aからの割込みステータスが制御
部6経由割込み指示回路7と起動優先指示回路8
に出力されると、起動優先指示回路8は予め設定
している信号S1=1(起動優先信号)をパス2a
の起動判別回路4aに出力する。 That is, the interrupt status from the IOD 3a is transmitted via the control unit 6 to the interrupt instruction circuit 7 and the startup priority instruction circuit 8.
, the startup priority instruction circuit 8 passes the preset signal S1=1 (startup priority signal) to the path 2a.
The signal is output to the activation determination circuit 4a.
同時に割込み指示回路7は、割込み発生回路5
aと起動判別回路4bに割込み指示信号を出し、
割込み発生回路5aは上位装置1aに対してリク
エストインを送出し、又起動判別回路4bは上
位装置1bに対してIOC2使用中′を報告し、
割込み処理が実行される。 At the same time, the interrupt instruction circuit 7
sends an interrupt instruction signal to a and activation determination circuit 4b,
The interrupt generation circuit 5a sends a request in to the host device 1a, and the activation determination circuit 4b reports to the host device 1b that IOC2 is in use.
Interrupt processing is executed.
(1):しかし、割込みステータスが発生してから引
続きパス2bに対して上位装置1bから起動
′がかかると、IOC2は起動判別回路4aに
出力されている信号がS1=1で起動を優先す
る信号であることから、リクエストインの処
理は待機させられ、起動′の処理が優先処理
される。(1): However, if the host device 1b continues to activate the path 2b after the interrupt status has occurred, the IOC 2 will give priority to activation because the signal output to the activation determination circuit 4a is S1 = 1. Since it is a signal, request-in processing is put on standby, and start-up processing is prioritized.
(2):一方、起動優先指示回路8に予め設定してい
る信号がS1=0(割込み優先信号)である場合
に、上位装置1bから起動′がかかると、
IOC2は起動判別回路4aに出力されている信
号がS1=0であることから、IOC2使用中′
を起動判別回路4bが出力し、同時に割込み発
生回路5aからのリクエストインを優先処理
する。(2): On the other hand, when the signal preset in the startup priority instruction circuit 8 is S1=0 (interrupt priority signal), if a startup' is applied from the host device 1b,
Since the signal output to the activation determination circuit 4a is S1=0, IOC2 is in use.
The activation determination circuit 4b outputs this, and at the same time, requests from the interrupt generation circuit 5a are processed with priority.
上述のような2つの従来方法例において、(1)の
方法で出力する場合では、第3図に示す複合シス
テムで例えば、上位装置1bが上位装置1aより
演算処理が速い場合で、しかも上位装置1bから
の入出力コマンド命令頻度が高い場合、上位装置
1bからの入出力コマンド命令が常に優先処理さ
れるため、上位装置1aへの割込みステータス処
理が進まないケースが発生する。
In the two examples of conventional methods described above, in the case of outputting using method (1), for example, in the complex system shown in FIG. When the frequency of input/output commands from the host device 1b is high, the input/output command commands from the host device 1b are always processed with priority, so that a case may occur in which the interrupt status processing for the host device 1a does not proceed.
又、(2)の方法で処理する場合では、多重処理が
期待する程進まない等の問題点があつた。 Furthermore, when processing using method (2), there were problems such as multiprocessing not progressing as expected.
即ち、割込みステータスの種類によつて(1)また
は(2)のどの方法をとるか一律に決めていたことに
問題があつた。 That is, there was a problem in uniformly deciding which method (1) or (2) to use depending on the type of interrupt status.
本発明は、上記問題点を解消した新規な入出力
制御装置を実現することを目的とするものであ
り、該問題点は、起動優先手段と前記割込み優先
手段とを所定周期で切替える選択手段を設け、前
記優先選択手段により前記複数の上位装置と複数
の入出力装置との間のデータの流れを制御する本
発明による入出力制御装置により解決される。
It is an object of the present invention to realize a new input/output control device that solves the above-mentioned problems. The problem is solved by an input/output control device according to the present invention, which is provided and controls the flow of data between the plurality of host devices and the plurality of input/output devices by the priority selection means.
即ち、入出力制御装置で所定入出力装置からの
割込みステータスを保持した時、上位装置からの
入出力コマンドによる入出力装置の起動を優先す
る手段と、割込みを優先する手段とのどちらか一
方を所定周期を持つて優先選択する起動/割込み
優先選択回路を用いて、複合システムにより入出
力制御装置が共用される場合の最適なステータス
割込み処理を行い、複合システムの処理能力の効
率化と適正化を図るようにした。
That is, when the input/output control device holds the interrupt status from a predetermined input/output device, either a means for prioritizing activation of the input/output device by an input/output command from a host device or a means for prioritizing the interrupt is provided. Using a startup/interrupt priority selection circuit that prioritizes selection at predetermined intervals, performs optimal status interrupt processing when an input/output control device is shared by a complex system, making the processing capacity of the complex system more efficient and appropriate. I tried to do this.
以下本発明の要旨を第1図、第2図に示す実施
例により具体的に説明する。
The gist of the present invention will be specifically explained below with reference to embodiments shown in FIGS. 1 and 2.
第1図は本発明に係る入出力制御装置を有する
複合システムで、Aは複合システムのブロツクダ
イヤグラム、Bは本発明に係る起動/割込優先選
択回路の一実施例、Cは本発明に係る優先選択回
路のタイムチャート、第2図は本発明に係る入出
力制御装置の流れ図をそれぞれ示す。尚全図を通
じて同一記号は同一対象物又は内容を示す。 FIG. 1 shows a complex system having an input/output control device according to the present invention, A is a block diagram of the complex system, B is an embodiment of the activation/interrupt priority selection circuit according to the present invention, and C is a diagram of the complex system according to the present invention. FIG. 2 shows a time chart of the priority selection circuit and a flow chart of the input/output control device according to the present invention. The same symbols indicate the same objects or contents throughout the figures.
第1図B,Cに示すT1は割込み優先信号S1
=0出力区間を示し、T2は起動優先信号S1=
1出力区間を示す。又T1出力区間とT2区間と
の比率は、一定比率ではなく、1対1〜1対10ぐ
らいの幅を一定の変動周期を持つて循環している
ものとする。 T1 shown in Figure 1B and C is the interrupt priority signal S1
=0 output section, T2 is activation priority signal S1=
1 output section is shown. Further, it is assumed that the ratio between the T1 output section and the T2 section is not a constant ratio, but cycles in a range of about 1:1 to 1:10 with a constant fluctuation period.
尚第1図BのT0はIOC2内で発生するクロツ
ク信号、第1図Cの数値はT1出力区間とT2出
力区間との比率の一例を示すもので、例えば、最
初の比率は1対5、次は1対6、1対7と順次循
環するものとする。 Note that T0 in FIG. 1B is a clock signal generated within the IOC2, and the numerical values in FIG. 1C indicate an example of the ratio between the T1 output section and the T2 output section. Next, it is assumed that 1:6 and 1:7 are sequentially circulated.
尚、起動/割込み優先選択回路9の動作は次の
ように行う。即ち、カウンタ10の出力信号から
順次循環する比率の信号を論理アレー11で作成
し、この出力をデコーダ12でT1信号、T2信
号として起動判定回路4a,4bに出力する。 The activation/interrupt priority selection circuit 9 operates as follows. That is, the logic array 11 generates a ratio signal that is sequentially circulated from the output signal of the counter 10, and the decoder 12 outputs this output as the T1 signal and T2 signal to the activation determination circuits 4a and 4b.
次に本実施例を第2図の流れ図をもとにして説
明する。 Next, this embodiment will be explained based on the flow chart of FIG.
尚第2図の(a)領域は起動/割込み優先選択回路
9の動作領域で、(b)領域は起動判別回路4a,4
b、割込み発生回路5a,5bの動作領域、(c)は
IOC2使用中のセツト、(d)は割込み受付シーケン
ス、(e)は起動受付シーケンスをそれぞれ示す。 The area (a) in FIG. 2 is the operation area of the activation/interrupt priority selection circuit 9, and the area (b) is the operation area of the activation/interrupt priority selection circuit 9.
b. Operating area of interrupt generation circuits 5a and 5b; (c) is
(d) shows the set while IOC2 is in use, (d) shows the interrupt acceptance sequence, and (e) shows the startup acceptance sequence.
(ST‐1) :例えば、IOD3aからIOC2に対して
割込み信号が発生すると、制御部6は起動/割
込み優先選択回路9の状態がT1出力区間かT
2出力区間かを見る。(ST-1): For example, when an interrupt signal is generated from the IOD3a to the IOC2, the control unit 6 determines whether the state of the activation/interrupt priority selection circuit 9 is in the T1 output section or T1.
Check whether it is in the 2 output section.
(ST‐2) :T1区間であれば(ST−3)へ、T
2出力区間であれば(ST−6)へと進む。(ST-2): If it is T1 section, go to (ST-3), T
If it is a 2-output section, proceed to (ST-6).
(ST‐3) :T1信号と割込み信号をパス2a(上
位装置1aに対する割込みの場合)内起動判別
回路4aにセツトする。(ST-3): Set the T1 signal and the interrupt signal to the activation determination circuit 4a in the path 2a (in the case of an interrupt to the host device 1a).
尚パス2a以外からIOC2に対して起動′
が有つた場合は、割込み指示回路7は起動判別
回路4bに対してIOC2使用中の表示を出さ
せ、起動′を拒否する。 In addition, start for IOC2 from a path other than path 2a'
If so, the interrupt instruction circuit 7 causes the activation determination circuit 4b to display an indication that the IOC 2 is in use, and rejects the activation.
(ST‐4) :割込み信号をセツトしたパス2a以外
からのパス(パス2b等)より起動があれば
IOC2使用中をセツトし、他パスからの起動が
なければ次の動作に移る。(ST-4): If there is activation from a path other than path 2a where the interrupt signal is set (path 2b, etc.)
Set IOC2 in use, and if there is no activation from another path, move on to the next operation.
(ST‐5) :割込み発生回路5aへの起動指示によ
り、割込みシーケンス(d)を実行する。(ST-5): Execute interrupt sequence (d) by instructing the interrupt generation circuit 5a to start.
(ST‐6) :T2信号と割込み信号をパス2a内起
動判別回路4aにセツトする。(ST-6): Set the T2 signal and interrupt signal to the activation determination circuit 4a in the path 2a.
尚パス2a以外への起動が有つた場合は起動
受付可能とする。 Note that if there is activation to a path other than path 2a, activation can be accepted.
(ST‐7) :割込み信号をセツトしたパス2a以外
からのパス(パス2b等)より起動があれば起
動受付シーケンスア(e)を実行し、パス2a以外
からの起動がなければ次に進む。(ST-7): If there is activation from a path other than path 2a where the interrupt signal is set (such as path 2b), execute activation acceptance sequence a (e), and if there is no activation from path other than path 2a, proceed to the next step. .
(ST‐8) :割込み発生回路5aへの指示により、
割込みシーケンス(d)を実行する。(ST-8): According to the instruction to the interrupt generation circuit 5a,
Execute interrupt sequence (d).
以上のような本発明によれば、複合システムよ
り共用される場合の入出力制御装置の割込み処理
が当該システムに順応して適正化され、入出力装
置への入出力命令がより円滑に推移すると言う効
果がある。
According to the present invention as described above, when the input/output control device is shared by a complex system, the interrupt processing of the input/output control device is optimized in accordance with the system, and input/output commands to the input/output device can be processed more smoothly. It has the effect of saying.
第1図は本発明に係る入出力制御装置を有する
複合システムで、Aは複合システムのブロツクダ
イヤグラム、Bは本発明に係る起動/割込み優先
選択回路の一実施例、Cは本発明に係る優先選択
回路のタイムチャート、第2図は本発明に係る入
出力制御装置の流れ図、第3図は多重処理を行う
複合計算機システムのブロツクダイヤグラム、を
それぞれ示す。
図において、1a,1bは上位装置、2は
IOC、2a,2bはパス、3a〜3nはIOD、4
a,4bは起動判別回路、5a,5bは割込み発
生回路、6は制御部、7は割込み指示回路、8は
起動優先指示回路、9は起動/割込み優先選択回
路、10はカウンタ、11は論理アレー、12は
デコーダ、13はインバータ、をそれぞれ示す。
FIG. 1 shows a complex system having an input/output control device according to the present invention, A is a block diagram of the complex system, B is an embodiment of the activation/interrupt priority selection circuit according to the present invention, and C is a priority according to the present invention. FIG. 2 is a flowchart of the input/output control device according to the present invention, and FIG. 3 is a block diagram of a multiprocessing computer system. In the figure, 1a and 1b are host devices, and 2 is
IOC, 2a, 2b are passes, 3a to 3n are IOD, 4
a and 4b are activation determination circuits, 5a and 5b are interrupt generation circuits, 6 is a control section, 7 is an interrupt instruction circuit, 8 is an activation priority instruction circuit, 9 is an activation/interrupt priority selection circuit, 10 is a counter, and 11 is logic 12 is a decoder, and 13 is an inverter.
Claims (1)
あり、一方の該上位装置への割込みステータスを
保持している時でも、他方の該上位装置からの入
出力コマンドを優先して受けつける起動優先手段
と、前記割込みステータスを保持した時は前記割
込みステータスが処理されるまで前記入出力コマ
ンド処理を待機させる割込み優先手段とを有する
装置において、前記起動優先手段と前記割込み優
先手段とを所定周期で切替える優先選択手段を設
け、前記優先選択手段により前記複数の上位装置
と複数の入出力装置との間のデータの流れを制御
することを特徴とする入出力制御装置。1. Startup that is located between multiple higher-level devices and multiple input/output devices, and even when the interrupt status for one of the higher-level devices is maintained, it receives input/output commands from the other higher-level device with priority. In a device having a priority means and an interrupt priority means for waiting the input/output command processing until the interrupt status is processed when the interrupt status is held, the activation priority means and the interrupt priority means are activated at a predetermined period. 1. An input/output control device comprising: a priority selection means for switching between the input and output devices; and the priority selection means controls the flow of data between the plurality of host devices and the plurality of input/output devices.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59201018A JPS6180346A (en) | 1984-09-26 | 1984-09-26 | Input/output control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59201018A JPS6180346A (en) | 1984-09-26 | 1984-09-26 | Input/output control device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6180346A JPS6180346A (en) | 1986-04-23 |
| JPH0340416B2 true JPH0340416B2 (en) | 1991-06-18 |
Family
ID=16434103
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59201018A Granted JPS6180346A (en) | 1984-09-26 | 1984-09-26 | Input/output control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6180346A (en) |
-
1984
- 1984-09-26 JP JP59201018A patent/JPS6180346A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6180346A (en) | 1986-04-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6156542B2 (en) | ||
| JPS60159941A (en) | Multilevel preference microinterrupt controller | |
| AU603876B2 (en) | Multiple i/o bus virtual broadcast of programmed i/o instructions | |
| JPH0340416B2 (en) | ||
| JPH01214939A (en) | Single-chip microcomputer | |
| JPS60181934A (en) | Task priority degree controlling system | |
| JPH01137359A (en) | Processor control system | |
| JPS5916054A (en) | Microprocessor | |
| JPH06324861A (en) | System and method for controlling cpu | |
| JPH01184546A (en) | Single chip microcomputer | |
| JPS6136850A (en) | Input and output interruption information system | |
| JP2581327B2 (en) | A method for handling I/O interrupts in a virtual machine | |
| JPS6385828A (en) | Processing method for high level language | |
| JPH01279328A (en) | Input/output emulation mechanism | |
| JPS6290729A (en) | Controlling system for virtual calculator system | |
| JPS6143369A (en) | Multi-processor system | |
| JPH02311903A (en) | Programmable controller | |
| JPH064306A (en) | How to divide interrupt processing | |
| JPH03116335A (en) | System for transferring from non-privileged cpu to privileged cpu | |
| JPH0778091A (en) | Multitask managing method | |
| JPH087686B2 (en) | Interrupt controller device with priority setting function | |
| JPS6269323A (en) | Event processing system | |
| JPH02282855A (en) | DMA transfer control method | |
| JPS62266639A (en) | Interface device for input/output device | |
| JPS61156307A (en) | Sequence controller |