JPH0380353A - Interruption processing method and data channel device - Google Patents
Interruption processing method and data channel deviceInfo
- Publication number
- JPH0380353A JPH0380353A JP21831989A JP21831989A JPH0380353A JP H0380353 A JPH0380353 A JP H0380353A JP 21831989 A JP21831989 A JP 21831989A JP 21831989 A JP21831989 A JP 21831989A JP H0380353 A JPH0380353 A JP H0380353A
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- flag
- cpu
- register
- input
- 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
Links
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は複数の入出力装置(IO装置)を収容するデー
タチャネル装置(CH)とマフブトIO方式でCHを制
御する中央処理装置(CP U)との間の割り込み処理
方法に関するものである。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a data channel device (CH) that accommodates a plurality of input/output devices (IO devices) and a central processing unit (CPU) that controls the CH using the Mahbbut IO method. ) is related to an interrupt processing method between
第1図に示すように、一般にCHIOIはCPU100
からの起動を受け、以後例えば主記憶装置(MM)10
2上に用意されたCH制御語(CCW)の内容に従って
MM102〜10装置104゜〜104□3間のデータ
転送をCPUI OOとは独立に実行する装置である。As shown in Figure 1, CHIOI generally has a CPU of 100
After that, for example, the main memory (MM) 10
This device executes data transfer between the MM102-10 devices 104°-104□3 independently of the CPUI OO according to the contents of the CH control word (CCW) prepared on the CPU 2.
ここでデータ転送が正常あるいは異常に終了すると、C
HIOIはその時の状態をチャネル状態語(CSW)と
して設定し、CPUI 00へ割り込みを発生する。If the data transfer ends normally or abnormally, C
HIOI sets the current state as the channel state word (CSW) and generates an interrupt to CPUI 00.
本発明はCPU100がCHIOIを制御する方式とし
てマツブトIO方式(即ち、従来のSIO,HIO等の
入出力専用命令は使用せず、コマンド書き込み用レジス
タやステータス読み取り用レジスタをアドレス空間上に
割付け、汎用のロード/ストア命令で読み書きする方式
。FDP−11等で1970年頃から使われている周知
技術である。)を対象とする。The present invention uses the Matsubuto IO method as a method for the CPU 100 to control CHIOI (that is, it does not use conventional input/output dedicated instructions such as SIO and HIO, but allocates command write registers and status read registers in the address space, and uses general-purpose (This is a well-known technology that has been used in FDP-11 and other devices since around 1970.)
更に、本発明はCI−1が複数の10装置を収容し、異
なるデバイスに対してであればCPUからの起動要求を
多重に(即ち、以前の起動に対するデータ転送の終了報
告を待たずに)受付け、各■0装置に関するデータ転送
を並列に実行する機能を有する時の、CH,!:CPU
(ソフト)との間の割り込み処理方法に関するもので
ある。Furthermore, the present invention allows CI-1 to accommodate multiple 10 devices and to multiplex activation requests from the CPU for different devices (i.e., without waiting for data transfer completion reports for previous activations). Reception, CH,! when having the function of executing data transfer regarding each ■0 device in parallel. :CPU
(software).
なお、チャネル状態語C8WはCH内に設置し、割り込
みを受けたCPU上の割り込み処理プログラムが直接こ
れを読む場合を前提とする。It is assumed that the channel status word C8W is placed in the CH and is directly read by the interrupt processing program on the CPU that receives the interrupt.
この種の割り込み処理方法として従来は次のようなもの
が用いられてきた。Conventionally, the following methods have been used as this type of interrupt processing method.
方法A:逐次割り込み方法
方法B:多重割り込み方法
方法Aは、現在発生中の割り込みがリセットされるまで
次の割り込みを待ち合わせる方法である。Method A: Sequential interrupt method Method B: Multiple interrupt method Method A is a method of waiting for the next interrupt until the currently occurring interrupt is reset.
第7図にこの種の割り込み処理方法のシーケンス図を示
す。FIG. 7 shows a sequence diagram of this type of interrupt processing method.
■ CHは配下のあるデバイスDV0〜DVn−。■CH is a subordinate device DV0 to DVn-.
についてのデータ転送動作を終了するとチャネル状態語
CSWを編集し、割り込み待キュー(CSWキユー)へ
登録する。CHはチャネル状態語CSWを書き込むべき
終結状態レジスタTSRがリセット中であればC8Wキ
ユーからチャネル状態語CSWを1個取り出し終結状態
レジスタTSRにセットしCPUへ割り込みを発生ずる
(なお、CPUへの割り込み通知手段としては専用の信
号線を用いるものと、CPUとCHを接続するバス信号
線を用いるものとの二つが知られている)。この時点で
C3Wキユー内にチャネル状態語C3Wが存在しても終
結状態レジスタTSRがCPUから解放(リセット)さ
れるまで次の割り込みは発生しない。When the data transfer operation for 1 is completed, the channel status word CSW is edited and registered in the interrupt waiting queue (CSW queue). If the final state register TSR into which the channel state word CSW is to be written is being reset, the CH takes out one channel state word CSW from the C8W queue, sets it in the final state register TSR, and generates an interrupt to the CPU. There are two known notification means: one that uses a dedicated signal line, and one that uses a bus signal line that connects the CPU and CH). Even if the channel status word C3W exists in the C3W queue at this point, the next interrupt will not occur until the final status register TSR is released (reset) by the CPU.
■ 一方、CPU側はまずCHからの割り込みを検出す
るが、第7図は「割り込みフラグの周期的ルックイン方
式」の場合を例にとって示している(割り込み検出方法
としては二つが知られている。一つはCPUのハードが
割り込み検出時、現在実行中の命令を強制的に中断し、
割り込み処理ルーチンへ制御を移すものであり、もう一
つは上記のようなハードの強制動作を抑止するよう予め
マスクを設定しておき、ソフトが都合のよい時に(通常
は周期的に)CHからの割り込み時設定された要求(フ
ラグ)をルックインし、検出するルックイン方式である
)。On the other hand, the CPU side first detects an interrupt from the CH, and FIG. 7 shows an example of the "periodic look-in method for interrupt flags" (there are two known interrupt detection methods). One is when the CPU hardware detects an interrupt, it forcibly interrupts the currently executing instruction.
This transfers control to the interrupt processing routine, and the other is to set a mask in advance to prevent the forced operation of the hardware as described above, and then the software transfers control from the CH at a convenient time (usually periodically). (This is a look-in method that looks in and detects the request (flag) set at the time of an interrupt.)
■ ルックインによって割り込みを検出したCPUはそ
の要因を分析するため、CH内の終結状態レジスタTS
Rを読み取る。正しく読み取れると終結状態レジスタT
SRをリセットする。■ When the CPU detects an interrupt by look-in, it analyzes the cause of the interrupt by registering the final status register TS in the CH.
Read R. If it is read correctly, the final status register T
Reset SR.
この結果、当該割り込みはCH内において解除されたこ
とになる。As a result, the interrupt is canceled within the CH.
■ CHは終結状態レジスタTSRリセットを検出する
とC8Wキユーを参照し、空きでなければ再びC5Wキ
ユーからチャネル状態語C3Wを一つ取り出し、上記と
同様の処理を繰り返す。(2) When the CH detects the termination state register TSR reset, it refers to the C8W queue, and if it is not empty, takes out one channel state word C3W from the C5W queue again and repeats the same process as above.
方法Bは、現在発生中の割り込みのリセットを待たずに
次の割り込みを発生させるものである。方法Bでは、割
り込み要因が発生すると現在発生中の割り込み有無に関
わらすCHは直ちにCPUへ割り込む。この場合には、
割り込み通知手段を複数設ける必要がある。即ち、専用
の信号線を用いるならCH配下のデバイス数分の信号線
を用意しなければならないし、又、バス信号線を用いて
ベクタ割り込みを行う場合にはデバイス毎に異なる割り
込みベクタ値を用いなければならない。ここで、ベクタ
割り込みとは「割り込み処理ルーチンの先頭アドレスが
ベクタ値に対応づけられており、割り込み発生時ハード
ウェアによって、ベクタ値をインデクスとして、テーブ
ルが索引されてソフトの制御が対応する割り込みルーチ
ンへ移る」方式であり、マイクロプロセンサを用いたシ
ステムで広(利用されている周知技術である。Method B is to generate the next interrupt without waiting for the currently generated interrupt to be reset. In method B, when an interrupt factor occurs, the CH immediately interrupts the CPU regardless of whether or not an interrupt is currently occurring. In this case,
It is necessary to provide multiple interrupt notification means. In other words, if dedicated signal lines are used, signal lines must be prepared for the number of devices under the CH, and if vectored interrupts are performed using bus signal lines, different interrupt vector values must be used for each device. There must be. Here, a vectored interrupt is defined as ``The start address of the interrupt processing routine is associated with a vector value, and when an interrupt occurs, the hardware uses the vector value as an index to index the table, and software controls the corresponding interrupt routine. It is a well-known technology that is widely used in systems using microprosensors.
(1)方法AでCHからの割り込みを要求フラグのルッ
クインによって検出する場合にはルックイン周期内にC
H当たり高々1個の割り込みしか処理できないのでCH
内でほぼ同時に発生した割り込みであっても最後にCP
Uによって処理されるものは、「ルックイン周期」×「
デバイス数」もの遅延が伴うことになる。同−CHで同
時に割り込み要求が発生する頻度が高い場合、あるいは
CPUのルックイン周期が比較的大きい場合には問題と
なる。(1) In method A, when detecting an interrupt from CH by looking in the request flag, C
CH can handle only one interrupt at most per H.
Even if interrupts occur almost simultaneously within the CP
What is processed by U is "look-in period" x "
This will result in a delay of "number of devices". This becomes a problem when interrupt requests occur simultaneously on the same CH with a high frequency, or when the look-in period of the CPU is relatively long.
(2)また、方法Aでは発生した割り込みの処理順がC
H内で固定的に決定されてしまうため、CPUが処理順
を任意に選ぶことはできず融通性に欠ける面がある。(2) Also, in method A, the processing order of the generated interrupts is C.
Since the processing order is fixedly determined within H, the CPU cannot arbitrarily select the processing order, resulting in a lack of flexibility.
(3)一方、方法BではCH当り具備する割り込み通知
手段、即ち、専用信号線がバスによるベクタ値が1個で
は済まず、そこがネックとなり得るようなシステムでは
採用が困難となる。(3) On the other hand, in method B, the interrupt notification means provided for each CH, that is, the dedicated signal line requires only one vector value via a bus, and it is difficult to employ in a system where this can become a bottleneck.
最近では、割り込み制御部はほとんどLSI化されてお
り、その集積度ネックから取り得るベクタ値の数に制約
を与えているものもある。Recently, most interrupt control units have been implemented as LSIs, and some have restrictions on the number of vector values that can be taken due to the integration problem.
本発明の一つの目的は、CPUがルックインによる割り
込み検出方式を採用する場合であっても、検出遅延の最
悪値が従来はど大きくならない割り込み処理方法と、そ
の割り込み処理方法の実施に直接使用されるデータチャ
ネル装置を提供することにある。One object of the present invention is to provide an interrupt processing method in which the worst value of detection delay does not become as large as in the past even when a CPU adopts a look-in interrupt detection method, and an interrupt processing method that can be used directly to implement the interrupt processing method. An object of the present invention is to provide a data channel device that uses
また、本発明の別の目的はほぼ同時に起こった割り込み
に付いては処理順序をソフト側が自由に決められる割り
込み処理方法と、その割り込み処理方法の実施に直接使
用するデータチャネル装置を提供することにある。Another object of the present invention is to provide an interrupt processing method that allows software to freely determine the processing order for interrupts that occur almost simultaneously, and a data channel device that can be used directly to implement the interrupt processing method. be.
更に、他の目的は、割り込み通知手段を上記〔方法B〕
のように複数持たずに済む割り込み処理方法と、その割
り込み処理方法の実施に直接使用するデータチャネル装
置を提供することにある。Furthermore, for another purpose, the interrupt notification means described above [Method B]
An object of the present invention is to provide an interrupt processing method that does not require a plurality of interrupt processing methods, and a data channel device that can be used directly to implement the interrupt processing method.
上記の目的を達成するため、本発明の割り込み処理方法
は、中央処理装置(CP U)と、n (>2)台の入
出力(IO)装置を収容し、該入出力装置の多重動作を
制御するデータチャネル装置(CH)とを含んで構成さ
れるシステムにおいて、前記データチャネル装置(CH
)が前記入出力(ro)装置からの割り込み要因を割り
込み要求フラグとして周期的にまとめ一括して前記中央
処理装置(CP U)へ割り込むと、該中央処理装置(
CPU)は割り込み検出後、前記割り込み要求フラグを
読み出し、割り込みを発生している入出力(IO)装置
対応のチャネル状態語(CSW)を順次読み出し、その
後、前記割り込み要求フラグをリセットすることを特徴
とする。To achieve the above object, the interrupt processing method of the present invention accommodates a central processing unit (CPU) and n (>2) input/output (IO) devices, and performs multiple operations of the input/output devices. In a system configured to include a data channel device (CH) to control, the data channel device (CH)
) periodically collects the interrupt factors from the input/output (RO) device as an interrupt request flag and interrupts the central processing unit (CPU) at once.
After detecting an interrupt, the CPU reads the interrupt request flag, sequentially reads channel state words (CSW) corresponding to the input/output (IO) device generating the interrupt, and then resets the interrupt request flag. shall be.
また本発明のデータチャネル装置は、割り込み受付機能
を有する中央処理装置(CP U)とバスを介して接続
され収容するn (>2)台の入出力(■○)装置の多
重動作を制御するデータチャネル装置(CH)であって
、前記人出力(IO)装置n個分のフラグビットを保持
する第一の割り込みフラグレジスタ(IFR’)と、前
記第一の割り込みフラグレジスタの一時コピーを保持す
る第二の割り込みフラグレジスタ(IFR)と、前記入
出力装置と対応して設けられた入出力装置動作の終了状
態を示すチャネル状態語(CSW)を保持するn個の終
結状態レジスタ(TSR)群と、前記入出力装置動作の
終了を検出し、該入出力装置対応の終結状態レジスタ(
TSR)に前記チャネル装置語を設定するとともに、前
記第一の割り込みフラグレジスタの対応ビットにフラグ
を立てる終結情報・フラグ設定手段と、所定の周期で起
動されたとき、前記第一の割り込みフラグレジスフ上に
立っているフラグビットが存在するか否かをチェフクし
、存在するとき、前記第一の割り込みフラグレジスタ(
IFR’)を前記第二の割り込みフラグレジスタ(IF
R)に移し、前記割り込み受付機能を有する中央処理装
置に割り込みを発生する割り込み発生手段とを具備こと
なることを特徴とする。Furthermore, the data channel device of the present invention controls multiple operations of n (>2) input/output (■○) devices connected to and accommodated via a central processing unit (CPU) having an interrupt reception function. a data channel device (CH) that holds a first interrupt flag register (IFR') that holds flag bits for n human output (IO) devices and a temporary copy of the first interrupt flag register; a second interrupt flag register (IFR) that corresponds to the input/output device, and n final status registers (TSR) that hold a channel status word (CSW) indicating the termination status of the input/output device operation provided corresponding to the input/output device. group, the end of the operation of the input/output device is detected, and the final status register (
termination information/flag setting means for setting the channel device word in the TSR) and setting a flag in the corresponding bit of the first interrupt flag register; Checks whether there is a flag bit set in , and if it exists, the first interrupt flag register (
IFR') to the second interrupt flag register (IF
Shifting to R), the present invention is characterized by comprising an interrupt generating means for generating an interrupt to the central processing unit having the interrupt reception function.
本発明によれば、CHからの1回の割り込みで複数の割
り込みを通知できるため、あるルックイン周期において
CPUが割り込みを検出した時、ソフトはCH割り込み
時点に発生していた他の割り込み要求もその周期で刈り
取ってしまうため、従来のような検出遅延の問題は緩和
できる。According to the present invention, multiple interrupts can be notified with one interrupt from CH, so when the CPU detects an interrupt in a certain look-in period, the software can also notify other interrupt requests that were occurring at the time of the CH interrupt. Since it is harvested at regular intervals, the conventional problem of detection delay can be alleviated.
また、刈り取った後、CPUの判断で処理順を決めるこ
ともできる。Furthermore, after reaping, the processing order can be determined by the CPU.
さらに、チャネル装置からCPUへの割り込み回数も従
来方式に比較し減少し得る。Furthermore, the number of interrupts from the channel device to the CPU can also be reduced compared to the conventional system.
さらに、本発明では割り込みリセットを待たすに次の割
り込みを発生することはしないので、ベクタ値あるいは
割り込み信号線等の割り込み通知手段は1つで済む。Furthermore, in the present invention, since the next interrupt is not generated until the interrupt is reset, only one interrupt notification means such as a vector value or an interrupt signal line is required.
以下図面にもとづき実施例について説明する。Examples will be described below based on the drawings.
第2図は本発明が適用されるシステム構成の例である。 FIG. 2 is an example of a system configuration to which the present invention is applied.
第2図において、100はCPU、101はCH,10
2はCPU100.CHIOIから直接アクセスできる
主記憶(メモリ)装置MM、103はCPU、CH,M
Mを接続するシステムバス、104.〜104.l−I
はIOデバイス、105はCHと10デバイス間を接続
するIOインタフェースバスである。In Figure 2, 100 is the CPU, 101 is the CH, 10
2 is CPU100. The main memory (memory) device MM, which can be accessed directly from CHIOI, 103 is the CPU, CH, M
A system bus connecting M, 104. ~104. l-I
is an IO device, and 105 is an IO interface bus that connects CH and 10 devices.
更に、CPU100は、主制御部(MPU)100−1
、システムバス・インタフェース制御部(SBIF)1
00−2、プログラムを保持するR OM部100−3
、割り込みフラグを保持し主制御部MPUへ割り込んだ
り割り込みのマスク指定を可能とする割り込み制御部(
IRC)100−4 、MPUI 00−1〜IRC1
00iを接続するCPUローカルパル100−5を含ん
で構成される。Furthermore, the CPU 100 includes a main control unit (MPU) 100-1.
, system bus interface control unit (SBIF) 1
00-2, ROM section 100-3 that holds programs
, an interrupt control unit (
IRC) 100-4, MPUI 00-1~IRC1
It is configured to include a CPU local pulse 100-5 to which 00i is connected.
また、CHIOIはプログラムによりCHの主要機能を
実行するローカルMPUのL−MPUIol−1、シス
テムバス・インタフェース制御部5BIFIOI−2,
5BIF−CHローカルバス間のインタフェースをとる
アダプタ部ADPI01−3、プログラム及び各種のデ
ータを保持し、またバッファとしても使用されるROM
/RAM部101−4、各デバイスとの間でIOインタ
フェースバスの時分割多重使用を行うIOインタフェー
スバス制御部108F1015 (例えば、日本電気
社製SC3Iコントローラ「μPD72111」など)
を含んで構成される。CHIOI also includes L-MPUIol-1, a local MPU that executes the main functions of CH according to a program, system bus interface control unit 5BIFIOI-2,
Adapter unit ADPI01-3 that interfaces between the 5BIF and CH local buses, ROM that holds programs and various data and is also used as a buffer.
/RAM unit 101-4, IO interface bus control unit 108F1015 that performs time division multiplexing of the IO interface bus with each device (for example, NEC SC3I controller “μPD72111”, etc.)
It consists of:
割り込み制御部IRC内には割り込み要求レジスタ(I
RR)、割り込みマスクレジスタ(IMR)等のレジス
タが含まれ、またアダプタ部ADP 101−3内には
n個の終結状態レジスタTSRi (i=o、1、・
・・、n−1)、第一、第二の割り込みフラグレジスタ
IFR’ IFR等が含まれている。The interrupt control unit IRC contains an interrupt request register (I
RR), interrupt mask register (IMR), etc., and the adapter part ADP 101-3 includes n final status registers TSRi (i=o, 1, .
. . , n-1), first and second interrupt flag registers IFR', IFR, etc. are included.
以下、本発明の動作について第3図から第5図。The operation of the present invention will be described below with reference to FIGS. 3 to 5.
を用いて説明する。Explain using.
CH内L−MPUのファームによる処理:(])チャネ
ル状態語C8W、割り込みフラグの設定(第3図を参照
)
L−MPUは周辺の10インタフェースバス制御部l0
BFからあるデバイス(iとする)に関するコマンド実
行終了の割り込みを検出すると、割り込み処理プログラ
ムに於てIOインタフェースバス制御部l0BF内のス
テータスレジスタを読み取りデバイス番号及び割り込み
要因を分析し、CPUへ通知すべきチャネル状態語CS
Wを編集する。チャネル状態語CSWには入出力動作終
了時の状態、デバイス番号等が保持される。そして、こ
のチャネル状態語C8Wを当該デバイスに対応する制御
レジスタの終結状態レジスタTSRiに設定し、割り込
み要求フラグとして、ビット “1“を第一割込フラグ
レジスタIFR’上の対応ビット位置に設定し、割り込
み処理プログラムを終了する。Processing by firmware of L-MPU in CH: (]) Channel status word C8W, setting of interrupt flag (see Figure 3) L-MPU is connected to peripheral 10 interface bus control unit l0
When a command execution end interrupt for a certain device (referred to as i) is detected from BF, the interrupt processing program reads the status register in the IO interface bus control unit l0BF, analyzes the device number and interrupt cause, and notifies the CPU. power channel state word CS
Edit W. The channel state word CSW holds the state at the end of the input/output operation, the device number, etc. Then, this channel state word C8W is set in the final state register TSRi of the control register corresponding to the device, and bit "1" is set as the interrupt request flag in the corresponding bit position on the first interrupt flag register IFR'. , terminate the interrupt handling program.
以上の処理はデバイスとの間の入出力動作が終了する毎
に実行される。The above processing is executed every time an input/output operation with a device is completed.
(21CPUへの割り込み処理(第4図を参照〉一方、
L−MP Uは上記の割り込み処理とは独立に一定周期
毎に起動されるプログラムを具備しており、これにより
CPUへの割り込みを発生する。(ここでの周期はCP
U (ソフト)の割り込みルックインの周期よりも短い
方が効果的である。)
即ち、周期的に起動されると、まず第一の割り込みフラ
グレジスタIFR’上のフラグをチェックしAll
’O’ ならば何もしないで終了。(21CPU interrupt processing (see Figure 4)) On the other hand,
The L-MPU includes a program that is activated at regular intervals independently of the above-mentioned interrupt processing, and thereby generates an interrupt to the CPU. (The period here is CP
It is more effective if it is shorter than the U (soft) interrupt look-in period. ) That is, when it is activated periodically, it first checks the flag on the first interrupt flag register IFR' and
If 'O', exit without doing anything.
1個以上フラグが立っている場合には割り込み要因が存
在するので第一の割り込みフラグレジスタIFR”をC
PUへの窓口となる第二の割り込みフラグレジスタIF
Rヘコピーし、第一の割り込みフラグレジスタIFR’
は次の割り込みフラグ設定用にリセフトし解放する。そ
して、CPUへの割り込みを発生する。割り込みの通知
手段としては割り込み専用の信号線を用いるものとバス
信号線を用いるものとが考えら4れるが、ここではどち
らでもよい。If one or more flags are set, an interrupt factor exists, and the first interrupt flag register IFR" is set to C.
Second interrupt flag register IF serving as a window to the PU
Copy to R and write it to the first interrupt flag register IFR'
is reset and released for setting the next interrupt flag. Then, an interrupt to the CPU is generated. As the means for notifying an interrupt, it is possible to use a signal line dedicated to interrupts or a bus signal line, but either one may be used here.
例えば、バス信号線を利用する場合であれば、アダプタ
部ADPIOI−3、システムバス・インタフェース制
御部5BIFIOI−2経由で割り込み制御部IRC1
00−4内の割り込み要求レジスタIRRヘベクタ値を
書き込む処理を行えばよい。For example, if a bus signal line is used, the interrupt control unit IRC1 is connected via the adapter unit ADPIOI-3 and the system bus interface control unit 5BIFIOI-2.
The process of writing the vector value to the interrupt request register IRR in 00-4 may be performed.
このアクセスは、システムバス103、CPU内システ
ムバス・インタフェース制御部5BIF 100−2
、CPUローカルバス1005を経由して、割り込み制
御部IRC1004へ到達し、割り込み制御部IRC1
00−4内ではシステムバス経由のベクタ(直を検出し
、割り込み要求レジスタIRR上のそれに対応するビッ
ト位置に“1゛を立てる。割り込み制御部IRC内の割
り込みマスク、レジスタIMRレジスタには初期設定時
CPUによりそのベクタに対してマスクが設定されてい
るため、割り込み制御部IRCから主制御部MPUl0
(1−1に対し割り込みは発生しない。This access is performed by the system bus 103 and the CPU internal system bus interface control unit 5BIF 100-2.
, reaches the interrupt control unit IRC1004 via the CPU local bus 1005, and interrupts the interrupt control unit IRC1.
In 00-4, the vector (direct) via the system bus is detected and "1" is set in the corresponding bit position in the interrupt request register IRR.The interrupt mask in the interrupt control unit IRC, and the initial setting in the register IMR register. Since a mask is set for that vector by the CPU, the interrupt control unit IRC sends the main control unit MPUl0
(No interrupt occurs for 1-1.
CPU内ソフトによる処理:
次にCPU側ソフトの割り込み処理について第5図によ
り説明する。ここでは、割り込み検出をルックインで行
う場合を例にとって説明する。しかし、本発明は非ルッ
クイン方式でも成り立つことは明らかである。Processing by software in the CPU: Next, interrupt processing by the software in the CPU will be explained with reference to FIG. Here, an example will be explained in which interrupt detection is performed by look-in. However, it is clear that the invention also works with non-look-in methods.
ルックインによる割り込み検出を行うためにCPUはシ
ステムの初期設定段階において割り込み制御部IRCか
らCHについ゛ての割り込みが発生しないように割り込
み制御部IRC内の割り込みマスフレジス51MR上の
CHに対応するマスクビットを“1゛にセントしておく
。In order to perform interrupt detection by look-in, the CPU sets a mask bit corresponding to CH on the interrupt mask register 51MR in the interrupt control unit IRC so that an interrupt for CH will not be generated from the interrupt control unit IRC at the initial setting stage of the system. “I’ll put a cent on 1゛.
■ CH割り込み受付処理が周期的に起動されると、ま
ず割り込み制御部IRC内の割り込み要求レジスタIR
Rレジスタを読み取りCH割り込みフラグがONである
か否かをチェックする。■ When CH interrupt acceptance processing is activated periodically, first the interrupt request register IR in the interrupt control unit IRC is activated.
Read the R register and check whether the CH interrupt flag is ON.
ONなら割り込みありと判断し次の処理へ進む。If it is ON, it is determined that there is an interrupt and the process proceeds to the next step.
OFFなら終了する。If it is OFF, it ends.
08割り込み処理は続いてCH内のアダプタ部ADPI
OI−3に設けられた制御レジスタの第二の割り込みフ
ラグレジスタIFRを読み取る。08 interrupt processing continues with the adapter part ADPI in the CH.
Read the second interrupt flag register IFR of the control registers provided in OI-3.
なお第二の割り込みフラグレジスタIFRはアドレス空
間上に割り付けられているマソプド10方式のため、C
PUは汎用のロード/ストア命令を用いて容易にアクセ
スすることができる。即ち、制御レジスタはアドレス空
間の一部に割り付けられ、そのアドレスが主制御部MP
Ul0I−1から発生されるとシステムバス・インタフ
ェース制御部5BIF100−2.101−2によって
アダプタ部ADPIOI−3まで到達し、該アダプタ部
ADPIOI−3内で照合が得られ目的のレジスタにア
クセスできるしくみである。Note that the second interrupt flag register IFR is allocated in the address space using the Masopd 10 method, so C
The PU can be easily accessed using general purpose load/store instructions. That is, the control register is allocated to a part of the address space, and its address is assigned to the main control unit MP.
When generated from Ul0I-1, it reaches the adapter unit ADPIOI-3 by the system bus interface control unit 5BIF100-2. It is.
■ 続いて第二の割り込みフラグレジスタIFR上の°
1”の立っている各ピント位置iに対応■
したデバイスiについて、終結状態レジスタTSRiの
読みだし、上位のプログラムへの引継ぎキューへの登録
を繰り返し実行し、“1゛の立っているすべてのデバイ
スについて終了すると、割り込み制御部IRC内割り込
み要求レジスタIRR上の割り込み要求フラグビットの
解除、第二の割り込みフラグレジスタIFRのリセフト
をこの順に実行し、処理を終了する。■ Next, ° on the second interrupt flag register IFR.
For each device i corresponding to the focus position i where "1" is set, reading the final status register TSRi and registering it in the handover queue to the upper program are repeatedly executed, and all the devices where "1" is set are When the device is finished, the interrupt request flag bit on the interrupt request register IRR in the interrupt control unit IRC is cleared and the second interrupt flag register IFR is reset in this order, and the process ends.
以上に基づ< CPU−CH間のシーケンス図を第6図
に示す。Based on the above, a sequence diagram between CPU and CH is shown in FIG.
次に本発明の他の幾つかのB様を示す。Next, some other types B of the present invention will be shown.
以上の実施例ではCPUが1台の場合を説明したが、マ
ルチプロセッサ構成の特定な1台であってもよいことは
明らかである。In the above embodiments, the case where there is one CPU has been described, but it is clear that a specific one in a multiprocessor configuration may be used.
第2図のCHSCPUの内部ブロック構成はほんの一例
であり、第3図〜第5図のフローを満たす範囲で、すな
わち本発明の要旨を満たす範囲であればどんな構成でも
よい。例えば、第2図でCH配下の10デバイスは異な
る種類でもよく、また同一バスに収容されている必要も
ない。The internal block configuration of the CHSCPU shown in FIG. 2 is just an example, and any configuration may be used as long as it satisfies the flow shown in FIGS. 3 to 5, that is, as long as it satisfies the gist of the present invention. For example, the 10 devices under CH in FIG. 2 may be of different types, and do not need to be accommodated in the same bus.
その他、本発明の効果を逸脱しない範囲で幾多の変形が
考えられる。In addition, numerous modifications can be made without departing from the effects of the present invention.
〔発明の効果〕
以上詳細に説明したように、本発明によれば、CHから
の1回の割り込みで複数の割り込みを通知できるため、
あるルンクイン周期においてCPUが割り込みを検出し
た時、ソフトは08割り込み時点に発生していた他の割
り込み要求もその周期で刈り取ってしまうため、従来の
ような検出遅延の問題は緩和できる。[Effects of the Invention] As explained in detail above, according to the present invention, multiple interrupts can be notified with one interrupt from the CH.
When the CPU detects an interrupt in a certain run-in period, the software also reaps other interrupt requests that occurred at the time of the 08 interrupt in that period, so the conventional problem of detection delay can be alleviated.
また、刈り取った後、CPUの判断で処理順を決めるこ
ともできる。さらに、チャネル装置からCPUへの割り
込み回数も従来方式に比較し減少し得る。Furthermore, after reaping, the processing order can be determined by the CPU. Furthermore, the number of interrupts from the channel device to the CPU can also be reduced compared to the conventional system.
さらに、本発明では割り込みリセットを待たずに次の割
り込みを発生することはしないので、ヘクタ値あるいは
割り込み信号線等の割り込み通知手段は1つで済む。Furthermore, in the present invention, since the next interrupt is not generated without waiting for the interrupt reset, only one interrupt notification means such as a hector value or an interrupt signal line is required.
第1図はCHを含んだシステムの一般的構成例、第2図
は本発明が適用されるシステム構成例、第3図はCH内
L−MPUファームによるl0BF割り込み処理フロー
第4図はL−MPUファームによるCPUへの割り込み
処理フロー
第5図はCPUのCI割り込み受付処理フロー第6図は
本発明の割り込み処理方法のシーケンス図の例、
第7図は従来の割り込み処理方法のシーケンス図の例で
ある。
O・・・中央処理装置、
L・・・データチャネル装置、
2・・・主記憶装置、
3・・・システムバス、
4o〜104□1・・・■0装置、
0−1・・・主制御部、
0−2.101−2
・・・システムバス・インク
フェース制御部、
100−4・・・割込制御部、
100−5・・・CPUローカルバス、101−1・・
・ローカルMPU。
101−3・・・アダプタ部、FIG. 1 is an example of a general configuration of a system including a CH, FIG. 2 is an example of a system configuration to which the present invention is applied, and FIG. Figure 5 is a flowchart of interrupt processing for the CPU by the MPU firm. Figure 6 is an example of a sequence diagram of the interrupt processing method of the present invention. Figure 7 is an example of a sequence diagram of a conventional interrupt processing method. It is. O...Central processing unit, L...Data channel device, 2...Main storage device, 3...System bus, 4o~104□1...■0 device, 0-1...Main Control unit, 0-2.101-2...System bus/ink face control unit, 100-4...Interrupt control unit, 100-5...CPU local bus, 101-1...
・Local MPU. 101-3...adapter section,
Claims (2)
力(IO)装置を収容し、該入出力装置の多重動作を制
御するデータチャネル装置(CH)とを含んで構成され
るシステムにおいて、前記データチャネル装置(CH)
が前記入出力(IO)装置からの割り込み要因を割り込
み要求フラグとして周期的にまとめ一括して前記中央処
理装置(CPU)へ割り込むと、該中央処理装置(CP
U)は割り込み検出後、前記割り込み要求フラグを読み
出し、割り込みを発生している入出力(IO)装置対応
のチャネル状態語(CSW)を順次読み出し、その後、
前記割り込み要求フラグをリセットする ことを特徴とする割り込み処理方法。(1) It is configured to include a central processing unit (CPU) and a data channel device (CH) that accommodates n (>2) input/output (IO) devices and controls multiple operations of the input/output devices. In the system, the data channel device (CH)
periodically collects the interrupt factors from the input/output (IO) device as an interrupt request flag and interrupts the central processing unit (CPU) all at once.
After detecting an interrupt, U) reads the interrupt request flag, sequentially reads the channel state word (CSW) corresponding to the input/output (IO) device generating the interrupt, and then,
An interrupt processing method comprising resetting the interrupt request flag.
)とバスを介して接続され収容するn(>2)台の入出
力(IO)装置の多重動作を制御するデータチャネル装
置(CH)であって、前記入出力(IO)装置n個分の
フラグビットを保持する第一の割り込みフラグレジスタ
(IFR′)と、 前記第一の割り込みフラグレジスタの一時コピーを保持
する第二の割り込みフラグレジスタ(IFR)と、 前記入出力装置と対応して設けられた入出力装置動作の
終了状態を示すチャネル状態語(CSW)を保持するn
個の終結状態レジスタ(TSR)群と、 前記入出力装置動作の終了を検出し、該入出力装置対応
の終結状態レジスタ(TSR)に前記チャネル状態語を
設定するとともに、前記第一の割り込みフラグレジスタ
の対応ビットにフラグを立てる終結情報・フラグ設定手
段と、所定の周期で起動されたとき、前記第一の割り込
みフラグレジスタ上に立っているフラグビットが存在す
るか否かをチェックし、存在するとき、前記第一の割り
込みフラグレジスタ(IFR′)を前記第二の割り込み
フラグレジスタ(IFR)に移し、前記割り込み受付機
能を有する中央処理装置(CPU)に割り込みを発生す
る割り込み発生手段とを具備してなる ことを特徴とするデータチャネル装置。(2) Central processing unit (CPU) with interrupt reception function
) is a data channel device (CH) that controls multiple operations of n (>2) input/output (IO) devices connected and accommodated via a bus, a first interrupt flag register (IFR') that holds a flag bit; a second interrupt flag register (IFR) that holds a temporary copy of the first interrupt flag register; and a second interrupt flag register (IFR') that holds a temporary copy of the first interrupt flag register. Holds a channel state word (CSW) indicating the completion status of input/output device operations.
a group of final status registers (TSR); detecting the end of the input/output device operation, setting the channel status word in the final status register (TSR) corresponding to the input/output device, and setting the first interrupt flag; a termination information/flag setting means that sets a flag in a corresponding bit of the register; and a termination information/flag setting means that, when activated at a predetermined cycle, checks whether or not a flag bit that is set on the first interrupt flag register exists; interrupt generation means for transferring the first interrupt flag register (IFR') to the second interrupt flag register (IFR) and generating an interrupt to the central processing unit (CPU) having the interrupt reception function; A data channel device comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21831989A JPH0380353A (en) | 1989-08-24 | 1989-08-24 | Interruption processing method and data channel device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21831989A JPH0380353A (en) | 1989-08-24 | 1989-08-24 | Interruption processing method and data channel device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0380353A true JPH0380353A (en) | 1991-04-05 |
Family
ID=16717988
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP21831989A Pending JPH0380353A (en) | 1989-08-24 | 1989-08-24 | Interruption processing method and data channel device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0380353A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5556533A (en) * | 1993-08-03 | 1996-09-17 | A & D Company Limited | Voltage applying method for hydrogen-type enzyme electrode |
| US7585464B2 (en) | 2002-04-19 | 2009-09-08 | Panasonic Corporation | Biosensor cartridge and biosensor dispensing device |
| JP2010091583A (en) * | 2002-01-18 | 2010-04-22 | Arkray Inc | Analytical device having temperature detection unit |
-
1989
- 1989-08-24 JP JP21831989A patent/JPH0380353A/en active Pending
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5556533A (en) * | 1993-08-03 | 1996-09-17 | A & D Company Limited | Voltage applying method for hydrogen-type enzyme electrode |
| US5741634A (en) * | 1993-08-03 | 1998-04-21 | A & D Company Limited | Throwaway type chemical sensor |
| JP2010091583A (en) * | 2002-01-18 | 2010-04-22 | Arkray Inc | Analytical device having temperature detection unit |
| US7585464B2 (en) | 2002-04-19 | 2009-09-08 | Panasonic Corporation | Biosensor cartridge and biosensor dispensing device |
| US8052943B2 (en) | 2002-04-19 | 2011-11-08 | Panasonic Corporation | Biosensor cartridge |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5133062A (en) | RAM buffer controller for providing simulated first-in-first-out (FIFO) buffers in a random access memory | |
| US4949301A (en) | Improved pointer FIFO controller for converting a standard RAM into a simulated dual FIFO by controlling the RAM's address inputs | |
| US5115499A (en) | Shared computer resource allocation system having apparatus for informing a requesting computer of the identity and busy/idle status of shared resources by command code | |
| US6674751B1 (en) | Serialized bus communication and control architecture | |
| US5961614A (en) | System for data transfer through an I/O device using a memory access controller which receives and stores indication of a data status signal | |
| JPH0380353A (en) | Interruption processing method and data channel device | |
| JPS623361A (en) | Status report system | |
| JPH0221619B2 (en) | ||
| JPH08314854A (en) | Data transfer system and related apparatus | |
| JPS594045B2 (en) | Line control processor in digital systems | |
| JPH01214939A (en) | Single-chip microcomputer | |
| JPS58105371A (en) | Multiplex calculator and structure of communication bus used therefor | |
| JPS6027976A (en) | First-in first-out memory device | |
| JP3141948B2 (en) | Computer system | |
| JP2702832B2 (en) | Relief controller for low priority adapter | |
| JP2789654B2 (en) | Buffer control method | |
| JPH0535507A (en) | Central processing unit | |
| JPS5850410Y2 (en) | Interrupt priority controller | |
| JPH01147763A (en) | Input/output control system for terminal concentrator | |
| JPS6330951A (en) | Data transfer system for communication control processor | |
| JPH10320351A (en) | Buffer system | |
| JPS63293656A (en) | Communication control adapter task switching method | |
| JPH0690711B2 (en) | Memory access control method | |
| JP2001014177A (en) | Asynchronous data input / output processing method and its program recording medium | |
| JPS63187943A (en) | Communication control equipment |