JPH1021182A - Interrupt processing system and controller - Google Patents
Interrupt processing system and controllerInfo
- Publication number
- JPH1021182A JPH1021182A JP16922096A JP16922096A JPH1021182A JP H1021182 A JPH1021182 A JP H1021182A JP 16922096 A JP16922096 A JP 16922096A JP 16922096 A JP16922096 A JP 16922096A JP H1021182 A JPH1021182 A JP H1021182A
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- bus
- ioc
- expansion
- processing
- 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
- 238000003672 processing method Methods 0.000 claims description 8
- 238000000034 method Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 8
- 101100126167 Escherichia coli (strain K12) intD gene Proteins 0.000 description 6
- 230000010365 information processing Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Landscapes
- Bus Control (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、特に拡張バスに接
続された入出力制御装置からの割り込みの処理に好適な
割り込み処理方式および制御装置に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt processing method and a control device which are particularly suitable for processing an interrupt from an input / output control device connected to an expansion bus.
【0002】[0002]
【従来の技術】PCIバスやVMEバス等のバスに接続
された入出力制御装置(IOC)からの割り込みをプロ
セッサに伝達するために、バスの各スロット毎に専用の
割り込みラインが設けられている。この割り込みライン
の数は4本から16本程度(PCIバスで4本、VME
バスで7本)と、比較的少ない。2. Description of the Related Art In order to transmit an interrupt from an input / output control unit (IOC) connected to a bus such as a PCI bus or a VME bus to a processor, a dedicated interrupt line is provided for each slot of the bus. . The number of interrupt lines is from 4 to 16 (4 on the PCI bus, VME
7 buses), which is relatively small.
【0003】パソコンやワークステーションなどの比較
的小規模なシステムにおいては、バスに接続される入出
力制御装置の数は普通1〜4であるため、割り込みライ
ンの数の制限が問題となることは少ない。しかし、シス
テムによっては割り込みラインの数以上の入出力制御装
置を必要とする場合がある。In a relatively small-scale system such as a personal computer or a workstation, the number of input / output control devices connected to the bus is usually one to four. Few. However, some systems require more input / output controllers than the number of interrupt lines.
【0004】かかる場合には、バス上のいずれか1つの
スロットにさらにバスを拡張するためのバスアダプタを
接続し、ここで拡張された拡張バス上の各スロットに入
出力制御装置を接続する。このとき、拡張バスと接続さ
れた入出力制御装置からの割り込みの処理の問題が生じ
る。In such a case, a bus adapter for further expanding the bus is connected to any one slot on the bus, and an input / output controller is connected to each slot on the expanded expansion bus. At this time, there is a problem of processing an interrupt from the input / output control device connected to the extension bus.
【0005】図5は、従来例のバス拡張をしたコンピュ
ータシステムのブロック図である。この例においては、
基本バスおよび拡張バスともPCIバスである。FIG. 5 is a block diagram of a conventional computer system with a bus extension. In this example,
Both the basic bus and the expansion bus are PCI buses.
【0006】このシステムでは、基本バス12上の第0
スロット12aから第3スロット12dのそれぞれに割
り込みラインintA〜intDが割り当てられてい
る。第0スロット12aにはバスアダプタ430が接続
され、このバスアダプタ430に拡張バス15が接続さ
れ、バスの拡張がされている。拡張バス15上の第0ス
ロット15aから第3スロット15dのそれぞれにも割
り込みラインinta〜intdが割り当てられてい
る。図では分かれて書かれているが、割り込みラインi
ntA〜intD、inta〜intdはそれぞれバス
12、15の一部を構成するものである。また、入出力
制御装置IOC−B131〜IOC−D133、IOC
−a’460〜IOC−d’463はいずれも不図示の
入出力装置に接続されている。In this system, the 0th bus on the basic bus 12
Interrupt lines intA to intD are assigned to each of the slots 12a to 12d. A bus adapter 430 is connected to the 0th slot 12a, and an expansion bus 15 is connected to the bus adapter 430 to extend the bus. Interrupt lines inta to intd are also assigned to the 0th slot 15a to the third slot 15d on the expansion bus 15, respectively. Although it is written separately in the figure, the interrupt line i
ntA to intD and inta to intd constitute part of the buses 12 and 15, respectively. Also, the input / output control devices IOC-B131 to IOC-D133, IOC
-A'460 to IOC-d'463 are all connected to an input / output device (not shown).
【0007】ここで、基本バス12と接続されたIOC
−B131〜IOC−D133のいずれかに割り込み要
因(接続されている入出力装置で生じた割り込み要因を
含む。以下、同じ)が生じた場合は、割り込みラインi
ntB〜intDおよびホストブリッジ11を介して割
り込み要因が生じたことをCPU10に通知する。この
とき、ホストブリッジ11はどのIOCから割り込み要
求があったかを判断することができる。しかし、拡張バ
ス15と接続されたIOC−a’460〜IOC−d’
463のいずれかに割り込み要因が生じた場合には、ホ
ストブリッジ11はどのIOCから割り込み要求があっ
たかを直接判断することができない。IOC−a’46
0〜IOC−d’463のいずれかに割り込み要因が生
じても、ホストブリッジ11にはバスアダプタ430か
ら割り込み要求があったとしか判断できないからであ
る。Here, the IOC connected to the basic bus 12
-B131 to IOC-D133, if an interrupt factor (including an interrupt factor generated by a connected input / output device; the same applies hereinafter), an interrupt line i
The CPU 10 is notified via the ntB to intD and the host bridge 11 that an interrupt factor has occurred. At this time, the host bridge 11 can determine which IOC has issued the interrupt request. However, the IOC-a'460-IOC-d 'connected to the extension bus 15
If an interrupt factor occurs in any of the I / O modules 463, the host bridge 11 cannot directly determine which IOC has issued the interrupt request. IOC-a'46
This is because even if an interrupt factor occurs in any of 0 to IOC-d'463, the host bridge 11 can only determine that an interrupt request has been issued from the bus adapter 430.
【0008】従って、IOC−a’460〜IOC−
d’463のいずれかに割り込み要因が生じた場合に
は、どのIOCから割り込み要求があったのかを判別す
る手段がなくてはならない。Accordingly, IOC-a'460-IOC-
If an interrupt factor occurs in any of d'463, there must be means for determining which IOC has issued the interrupt request.
【0009】この判別手段をハードウェアによって実現
したものとして、特開平2−230356に記載の情報
処理装置のバス拡張装置があげられる。このバス拡張装
置のブロック図を図6に、動作のフローチャートを図7
に示す。[0009] As a device which realizes this determination means by hardware, there is a bus expansion device of an information processing device described in JP-A-2-230356. FIG. 6 is a block diagram of this bus expansion device, and FIG.
Shown in
【0010】このバス拡張装置は、拡張バス35上に設
けられたスレーブ34(複数あるものの内の1つ)が割
り込み信号37を出力すると、この割り込み信号37は
複数の割り込み信号38の1つとして論理和回路33に
入力される。そして、論理和回路33から所定のレベル
の信号39を基本バス36に出力する。これと同時に、
レジスタ32の割り込み信号38の所定レベルのビット
をONする。基本バス36上に設けられている中央処理
装置31は、割り込み信号を入力すると(S31)、そ
れが拡張バス35に割り当てた割り込みレベルであれ
ば、拡張装置内のレジスタ32にアクセスする(S3
2)。そして、拡張バス35上のどの割り込みレベルが
出力されているのかを調べ(S33、S34)、その割
り込みレベルに対応したスレーブ34に対してアクセス
して処理を行う(S35)。In this bus expansion apparatus, when a slave 34 (one of a plurality of slaves) provided on an expansion bus 35 outputs an interrupt signal 37, the interrupt signal 37 is converted into one of a plurality of interrupt signals 38. The signal is input to the OR circuit 33. Then, a signal 39 of a predetermined level is output from the OR circuit 33 to the basic bus 36. At the same time,
A predetermined level bit of the interrupt signal 38 of the register 32 is turned ON. When the central processing unit 31 provided on the basic bus 36 receives the interrupt signal (S31), if the interrupt signal is the interrupt level assigned to the expansion bus 35, the central processing unit 31 accesses the register 32 in the expansion device (S3).
2). Then, it checks which interrupt level on the extension bus 35 is being output (S33, S34), and accesses the slave 34 corresponding to the interrupt level to perform processing (S35).
【0011】この例によりバスの拡張を行うには、論理
和回路およびレジスタを設ける必要があったが、これら
は拡張装置内に設けなければならなかった。図5の例で
説明すると、拡張バス上のどのIOCで割り込みが発生
したかを判定するためには、バスアダプタ430に割り
込みラインを引き込んで、バスアダプタ430内に論理
和回路およびレジスタを設けなければならなかった。In order to extend the bus according to this example, it was necessary to provide an OR circuit and a register, but these had to be provided in the expansion device. Referring to the example of FIG. 5, in order to determine which IOC on the expansion bus caused the interrupt, an interrupt line must be drawn into the bus adapter 430 and an OR circuit and a register must be provided in the bus adapter 430. I had to.
【0012】ところで、PCIバスやVMEバス等の標
準的な入出力バスについては、バス拡張用に機能を1チ
ップに納めたバスブリッジチップが多数市販されてい
る。しかし、これら市販のバスブリッジチップは、ピン
数の増加によるコストの増大を避けるため、専用の割り
込みラインを取り込むように構成されていない。By the way, as for standard input / output buses such as a PCI bus and a VME bus, a large number of bus bridge chips in which functions are provided in a single chip for bus expansion are commercially available. However, these commercially available bus bridge chips are not configured to capture a dedicated interrupt line in order to avoid an increase in cost due to an increase in the number of pins.
【0013】一方、装置の開発期間を短縮し、コストダ
ウンをするには、市販のバスブリッジチップを使用して
バスアダプタを構成するするほうが有利である。特にバ
スアダプタのような基本ハードウェアの構成を変えるこ
とは、周辺のハードウェアの構成を変えるよりもコスト
が高くなる。従って、現在商品化されているバス拡張装
置としてのバスアダプタでは拡張バス上のどの装置に割
り込み要因が生じたかの判別をすべてソフトウェア(割
り込み処理ルーチン)での処理に委ねている。On the other hand, in order to shorten the development period of the device and reduce the cost, it is more advantageous to configure the bus adapter using a commercially available bus bridge chip. In particular, changing the configuration of basic hardware such as a bus adapter is more expensive than changing the configuration of peripheral hardware. Therefore, in a bus adapter as a bus expansion device that is currently commercialized, the determination of which device on the expansion bus caused the interrupt factor is entirely left to software (interrupt processing routine) processing.
【0014】図8は、この割り込み処理のルーチンでの
動作を示すフローチャートである。まず、拡張バスに接
続されたIOCのいずれかで割り込み要因が生じると、
そのIOCに割り込み要因が生じたことを示すレジスタ
(割り込み要因レジスタ)の当該ビットをONする。こ
の割り込み要求は拡張バスの割り込みラインを介してバ
スアダプタ430に通知される。すると、バスアダプタ
430は、バスアダプタ430自身が割り込み要因を生
じたものとしてホストブリッジ11を介してCPU10
に割り込みを要求する(S41)。次に、CPU10
は、拡張バス15と接続されたIOCの割り込み要因レ
ジスタの状態を順番に調べていくため、変数nに0を代
入する(S42)。FIG. 8 is a flow chart showing the operation of this interrupt processing routine. First, when an interrupt factor occurs in any of the IOCs connected to the expansion bus,
The corresponding bit of a register (interrupt factor register) indicating that an interrupt factor has occurred in the IOC is turned on. This interrupt request is notified to the bus adapter 430 via the interrupt line of the extension bus. Then, the bus adapter 430 determines that the bus adapter 430 itself has caused an interrupt factor, and
Request an interrupt (S41). Next, the CPU 10
Assigns 0 to a variable n in order to sequentially check the state of the interrupt factor register of the IOC connected to the extension bus 15 (S42).
【0015】次に、CPU10は、拡張バス15の第n
スロットに接続されたIOCの割り込み要因レジスタの
状態を読み込み(S43)、その割り込み要因レジスタ
の当該ビットがONであるかどうか判定する(S4
4)。その割り込み要因レジスタの当該ビットがONで
ないと判定すれば、変数nに1を加えて(S45)、ス
テップS43の処理へ戻る。その割り込み要因レジスタ
の当該ビットがONであると判定すれば、そのIOCが
割り込み要求を出していると判定し、CPU10のレジ
スタおよびプログラム状態語(PSW)の退避などをし
て割り込み処理を行う(S46)。Next, the CPU 10 controls the n-th
The status of the interrupt factor register of the IOC connected to the slot is read (S43), and it is determined whether the bit of the interrupt factor register is ON (S4).
4). If it is determined that the bit of the interrupt factor register is not ON, 1 is added to the variable n (S45), and the process returns to step S43. If it is determined that the corresponding bit of the interrupt factor register is ON, it is determined that the IOC has issued an interrupt request, and the interrupt processing is performed by saving the register of the CPU 10 and a program status word (PSW) ( S46).
【0016】図5の例でIOC−d’463が割り込み
要求を出したとして説明する。IOC−d’463は第
3スロット15dに接続されているので、IOC−a’
460、IOC−b’461、IOC−c’462の割
り込み要因レジスタを読み出して当該ビットがONでは
ないと判定した後、IOC−d’463の割り込み要因
レジスタを読み出して当該ビットがONであると判定
し、これが割り込み要求を出していることがわかる。こ
れらの処理を行った後でないと、割り込み処理へ進むこ
とができない。この例での割り込み要因発生から割り込
み処理に移るまでのタイムチャートを図9に示す。In the example shown in FIG. 5, it is assumed that IOC-d'463 has issued an interrupt request. Since the IOC-d '463 is connected to the third slot 15d, the IOC-a'
460, IOC-b '461, IOC-c' 462, read out the interrupt factor register and determine that the bit is not ON, and then read the IOC-d '463 interrupt factor register and determine that the bit is ON. It is determined that this is issuing an interrupt request. Only after these processes are performed can the process proceed to the interrupt process. FIG. 9 shows a time chart from the occurrence of an interrupt factor to the shift to interrupt processing in this example.
【0017】上述の如く、拡張バス上の割り込み要因が
生じた入出力制御装置を判定するためにソフトウェアの
処理によっていたのでは、割り込み処理に移るまでに非
常に時間がかかってしまう場合があった。だからといっ
て、基本ハードウェアである拡張装置としてのバスアダ
プタの構成自体を変更することはコスト上不利になると
いう問題点があった。As described above, if software processing is used to determine the input / output control device on which an interrupt factor has occurred on the expansion bus, it may take a very long time to proceed to interrupt processing. . However, there is a problem in that changing the configuration of the bus adapter as an expansion device, which is basic hardware, is disadvantageous in terms of cost.
【0018】[0018]
【発明が解決しようとする課題】本発明は、上記従来技
術の問題点を解決するためになされたものであり、基本
ハードウェアである拡張装置の構成を変更することな
く、拡張バス上の制御装置からの割り込み要求にも機敏
に対処できる割り込み処理方式および制御装置を提供す
ることを目的とする。SUMMARY OF THE INVENTION The present invention has been made in order to solve the above-mentioned problems of the prior art, and has a control on an expansion bus without changing the configuration of an expansion device which is basic hardware. An object of the present invention is to provide an interrupt processing method and a control device that can promptly respond to an interrupt request from a device.
【0019】[0019]
【課題を解決するための手段】上記目的を達成するた
め、本発明の割り込み処理方式は、次のようなものとし
た。In order to achieve the above object, the interrupt processing method of the present invention is as follows.
【0020】割り込みが発生したときに、この割り込み
の処理を行う処理手段と、この処理手段に接続された基
本バスと、この基本バスを拡張するための拡張手段と、
この拡張手段に接続された拡張バスと、この拡張バスに
接続され、この拡張バス、前記拡張手段および前記基本
バスを介して前記処理手段に対して割り込み要求を発生
する複数の制御手段とを備えた割り込み処理方式であっ
て、前記基本バスは、割り込みが発生したことを示す信
号を伝達する基本バス割り込みラインを有するものであ
り、前記基本バスは、割り込みが発生したことを示す信
号を伝達する基本バス割り込みラインを有するものであ
り、前記拡張バスは、前記制御手段に割り込みが発生し
たこと示す信号を伝達する前記複数の制御手段のそれぞ
れに対応した複数の拡張バス割り込みラインを有するも
のであり、前記複数の制御手段の少なくとも1つは、前
記複数の拡張バス割り込みラインの信号状態を記憶する
記憶手段を有するものであり、前記処理手段は、前記複
数の制御手段のいずれか1つから割り込み要求が発生し
たことが伝達されると、前記記憶手段を参照し、ここで
参照した前記記憶手段の状態に基づいてどの制御手段か
ら割り込み要求が発生したかを特定してから、割り込み
処理を行うものである割り込み処理方式。When an interrupt occurs, processing means for processing the interrupt, a basic bus connected to the processing means, expansion means for expanding the basic bus,
An extension bus connected to the extension means; and a plurality of control means connected to the extension bus and generating an interrupt request to the processing means via the extension bus, the extension means and the basic bus. The basic bus has a basic bus interrupt line for transmitting a signal indicating that an interrupt has occurred, and the basic bus transmits a signal indicating that an interrupt has occurred. A basic bus interrupt line, wherein the expansion bus has a plurality of expansion bus interrupt lines corresponding to each of the plurality of control means for transmitting a signal indicating that an interrupt has occurred to the control means. At least one of the plurality of control means has a storage means for storing signal states of the plurality of expansion bus interrupt lines. When the processing unit is notified that an interrupt request has been generated from any one of the plurality of control units, the processing unit refers to the storage unit, and based on the state of the storage unit referred to here, An interrupt processing method in which an interrupt request is specified after identifying which control unit has generated the interrupt request.
【0021】ここで、前記制御手段のいずれか1つに割
り込み要求が発生すると、この割り込み要求が発生した
ことが前記拡張バス割り込みラインの1つを介して前記
拡張手段に伝達され、前記拡張手段は、前記拡張手段か
ら割り込みが発生したものとして、この割り込みを前記
基本バス割り込みラインを介して前記処理手段に伝達す
る。Here, when an interrupt request is generated in any one of the control means, the occurrence of the interrupt request is transmitted to the expansion means via one of the expansion bus interrupt lines, and Transmits an interrupt to the processing unit via the basic bus interrupt line, assuming that an interrupt has occurred from the expansion unit.
【0022】本発明の割り込み処理方式は、上記のよう
に構成したことにより、拡張バスに接続された複数の制
御手段の1つに割り込みが発生したときに、処理手段は
一時記憶手段の状態を読み出すだけで、どの制御手段に
割り込みが発生したかを特定することができる。The interrupt processing system of the present invention is configured as described above, so that when an interrupt occurs in one of the plurality of control units connected to the expansion bus, the processing unit changes the state of the temporary storage unit. Only by reading, it is possible to specify which control means has caused the interruption.
【0023】このため、割り込みを発生した制御手段が
拡張バスのどこに接続されているかにかかわらず、その
制御手段からの割り込みに対して機敏に対応することが
できる。しかも、拡張手段の構成を従来のものと全く変
える必要がない。Therefore, regardless of where the control means that generated the interrupt is connected to the expansion bus, it is possible to respond promptly to the interrupt from the control means. In addition, there is no need to change the configuration of the extension means at all.
【0024】なお、前記複数の制御手段のうちその1つ
だけが前記記憶手段を有するという構成も、前記複数の
制御手段のすべてが前記記憶手段を有するという構成も
可能である。要するに、前記記憶手段を有する制御手段
は1つ以上のいくつあってもよい。It is possible to adopt a configuration in which only one of the plurality of control means has the storage means, or a configuration in which all of the plurality of control means have the storage means. In short, there may be one or more control means having the storage means.
【0025】また、本発明の制御装置は、複数の割り込
みラインを有するバスに接続され、このバスを介して割
り込み処理装置に前記複数の割り込みラインの信号の状
態を記憶する記憶手段を備えたものである。Further, the control device of the present invention is connected to a bus having a plurality of interrupt lines, and is provided with storage means for storing the states of the signals of the plurality of interrupt lines in the interrupt processing device via the bus. It is.
【0026】ここで、前記一時記憶手段は、割り込みラ
インに対応する1ビットのみにフラグが立てられる複数
ビットからなる第1のレジスタと、割り込み要求を示す
信号を前記バスの割り込みラインの1つにのみ出力する
ために前記第1のレジスタの各ビットの出力信号と割り
込み要求を示す信号とを論理演算して前記バスの各割り
込みラインに出力する複数の論理回路とを備え、さら
に、前記バスの各割り込みライン上の信号を入力して保
持する第2のレジスタを有するものとして構成できる。Here, the temporary storage means includes a first register consisting of a plurality of bits in which only one bit corresponding to an interrupt line is flagged, and a signal indicating an interrupt request to one of the interrupt lines of the bus. A plurality of logic circuits for performing a logical operation on an output signal of each bit of the first register and a signal indicating an interrupt request to output only the output signal to each interrupt line of the bus, and It can be configured to have a second register that inputs and holds a signal on each interrupt line.
【0027】この制御装置を従来から使用してきた拡張
バスを有するシステムに適用すれば、他の装置の構成を
全く変更することなく、拡張バスに接続されたあらゆる
制御装置が発生した割り込みに対し、機敏に対応するこ
とができる。If this control device is applied to a system having an expansion bus which has been used in the past, the interrupt generated by any control device connected to the expansion bus can be performed without any change in the configuration of other devices. I can respond quickly.
【0028】[0028]
【発明の実施の形態】以下、図面を参照して本発明の一
実施形態について説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.
【0029】図1は、本発明の一実施形態のバス拡張を
したコンピュータシステムのブロック図である。この例
においては、基本バスおよび拡張バスともPCIバスで
ある。FIG. 1 is a block diagram of a computer system in which a bus is extended according to an embodiment of the present invention. In this example, both the basic bus and the expansion bus are PCI buses.
【0030】このシステムにおいて、CPU10はホス
トブリッジ11を介して基本バス12に接続されてい
る。基本バス12には12a〜12dの4つのスロット
があり、第0スロット12aから第3スロット12dに
接続される入出力制御装置のそれぞれに割り込みライン
intA〜intDを割り当てている。第0スロット1
2aにはバス拡張装置としてバスアダプタ130が接続
され、このバスアダプタ130に拡張バス15を接続
し、バスの拡張を行っている。拡張バス15にも15a
〜15dの4つのスロットがあり、第0スロット15a
から第3スロット15dに接続される入出力制御装置の
それぞれに割り込みラインinta〜intdを割り当
てている。図では分かれて書かれているが、割り込みラ
インintA〜intD、inta〜intdはそれぞ
れバス12、15の一部を構成するものである。In this system, the CPU 10 is connected to the basic bus 12 via the host bridge 11. The basic bus 12 has four slots 12a to 12d, and interrupt lines intA to intD are assigned to input / output control devices connected to the 0th slot 12a to the third slot 12d. 0th slot 1
A bus adapter 130 is connected to 2a as a bus expansion device. The expansion bus 15 is connected to the bus adapter 130 to extend the bus. 15a for expansion bus 15
-15d, and the 0th slot 15a
To the third input / output control device connected to the third slot 15d. Although illustrated separately in the figure, the interrupt lines intA to intD and inta to intd constitute a part of the buses 12 and 15, respectively.
【0031】基本バス12の第1スロット12b、第2
スロット12c、第3スロット12dにはそれぞれ入出
力制御装置IOC−B131,IOC−C132、IO
C−D133が接続されている。また、拡張バス15の
第0スロット15a、第1スロット15b、第2スロッ
ト15c、第3スロット15dにはそれぞれ入出力制御
装置IOC−a160、IOC−b161、IOC−c
162、IOC−d163が接続されている。これらの
入出力制御装置はいずれも不図示の入出力装置に接続さ
れている。The first slot 12b of the basic bus 12, the second slot 12b
The input / output control devices IOC-B131, IOC-C132, IO
C-D133 is connected. The 0th slot 15a, the first slot 15b, the second slot 15c, and the third slot 15d of the expansion bus 15 are respectively provided with input / output control devices IOC-a160, IOC-b161, and IOC-c.
162 and IOC-d 163 are connected. Each of these input / output control devices is connected to an input / output device (not shown).
【0032】拡張バス15の各割り込みラインinta
〜intdはいずれも、IOC−a160〜IOC−d
163に接続している。そして、IOC−a160〜I
OC−d163はそれぞれいずれの割り込みラインに対
しても入出力可能となっている。Each interrupt line inta of the extension bus 15
~ Intd are all IOC-a160 to IOC-d
163. And IOC-a160-I
The OC-d 163 is capable of inputting / outputting any of the interrupt lines.
【0033】次に、各入出力制御装置の割り込みライン
に対する入出力に関して詳細に説明する。図2は、本発
明の一実施形態の入出力制御装置の割り込み通知部を示
すブロック図である。Next, the input / output to / from the interrupt line of each input / output control device will be described in detail. FIG. 2 is a block diagram illustrating an interrupt notification unit of the input / output control device according to the embodiment of the present invention.
【0034】この割り込み通知部は、INTEレジスタ
20と、ANDゲート21と、オープンコレクタ素子2
2と、割り込み要因レジスタ23と、増幅器24とから
構成されている。ここで、INTEレジスタ20と割り
込み要因レジスタ23とは拡張バス15に接続されてい
る。The interrupt notification unit includes an INTE register 20, an AND gate 21, and an open collector element 2.
2, an interrupt factor register 23, and an amplifier 24. Here, the INTE register 20 and the interrupt factor register 23 are connected to the extension bus 15.
【0035】INTEレジスタ20は、システムの立ち
上げ時にCPU10の初期設定ルーチンが、割り込みラ
インinta〜intdの1つずつに対応させるべくI
EA〜IEDのいずれか1つのビットをONする。本実
施形態においては、システムの立ち上げ時にIOC−a
160ではIEAが、IOC−b161ではIEBが、
IOC−c162ではIECが、IOC−d163では
IEDがそれぞれONされる。The INTE register 20 is set so that the initial setting routine of the CPU 10 at the time of starting up the system allows the initialization routine to correspond to each of the interrupt lines inta to intd.
Turn on any one bit of EA to IED. In the present embodiment, the IOC-a
IEA at 160, IEB at IOC-b161,
The IEC is turned on in the IOC-c 162, and the IED is turned on in the IOC-d 163.
【0036】ANDゲート21は、IOC−a160〜
IOC−d163に割り込み要因が生じたときに、それ
ぞれ対応する割り込みラインinta〜intdのいず
れか1つだけに割り込み要因が生じたこと示す信号を出
力できるように、INTEレジスタ20の各ビットの出
力との論理積をとるものである。The AND gate 21 is connected to the IOC-a 160
When an interrupt factor occurs in the IOC-d 163, the output of each bit of the INTE register 20 is set so that a signal indicating that an interrupt factor has occurred in only one of the corresponding interrupt lines inta to intd can be output. And the logical product of
【0037】ANDゲート21の出力信号はそれぞれ割
り込み要因レジスタ23のIA,IB,IC,IDの各
ビットに書き込まれ、その入出力制御装置に割り込み要
因が生じたことを示すものである。さらに、IA,I
B,IC,IDの各ビットの出力信号は割り込みライン
inta〜intdへ出力される。オープンコレクタ素
子22は他の入出力制御装置の割り込み要因レジスタの
IA,IB,IC,IDビットをONすることを避ける
ため、電圧を遮断する。The output signal of the AND gate 21 is written into each bit of IA, IB, IC and ID of the interrupt factor register 23, and indicates that an interrupt factor has occurred in the input / output control device. In addition, IA, I
The output signal of each bit of B, IC and ID is output to interrupt lines inta to intd. The open collector element 22 cuts off the voltage in order to avoid turning on the IA, IB, IC and ID bits of the interrupt factor register of another input / output control device.
【0038】また、割り込みラインinta〜intd
から入力した信号を増幅器24で増幅し、これらをそれ
ぞれ割り込み要因レジスタ23のOA,OB,OC,O
Dの各ビットに書き込む。そして、CPU10は割り込
み要因レジスタ23の内容を拡張バス15、バスアダプ
タ130、基本バス12およびホストブリッジ11を介
して読み取る。CPU10はここで読み取った割り込み
要因レジスタ23の状態によって、他のどの入出力制御
装置に割り込み要因が生じているかをも判断することが
できる。Further, the interrupt lines inta to intd
Are amplified by the amplifier 24, and these are amplified by the OA, OB, OC, and O of the interrupt factor register 23, respectively.
Write to each bit of D. Then, the CPU 10 reads the contents of the interrupt factor register 23 via the extension bus 15, the bus adapter 130, the basic bus 12, and the host bridge 11. The CPU 10 can also determine which other input / output control device has caused the interrupt factor based on the state of the interrupt factor register 23 read here.
【0039】以下、本発明の一実施形態の割り込み処理
ルーチンでの動作について説明する。図3は、本発明の
一実施形態の動作を示すフローチャートである。The operation in the interrupt processing routine according to one embodiment of the present invention will be described below. FIG. 3 is a flowchart showing the operation of the embodiment of the present invention.
【0040】まず、拡張バスに接続されたIOC−a1
60〜IOC−d163のいずれかで割り込み要因が生
じると、その割り込み要因レジスタ23のIA〜IDビ
ットのいずれかがONされる。これは割り込みラインi
nta〜intdのいずれかを介してバスアダプタ13
0に通知される。バスアダプタ130はバスアダプタ1
30自身が割り込み要因を生じたものとしてホストブリ
ッジ11を介してCPU10に割り込みを要求する(S
11)。次に、拡張バス15上のIOC−a160〜I
OC−d163のいずれか1つの割り込み要因レジスタ
23の状態を読み出す(S12)。次に、読み出した割
り込み要因レジスタ23は割り込み要因を生じた入出力
制御装置のものであるかをIA〜IDビットの状態を調
べることによって判定する(S13)。First, the IOC-a1 connected to the extension bus
When an interrupt factor occurs in any of 60 to IOC-d 163, one of the IA to ID bits of the interrupt factor register 23 is turned on. This is the interrupt line i
bus adapter 13 via any of nta to intd
0 is notified. Bus adapter 130 is bus adapter 1
30 itself issues an interrupt factor to the CPU 10 via the host bridge 11 and requests an interrupt (S
11). Next, the IOC-a 160 to I
The state of any one of the interrupt factor registers 23 of the OC-d 163 is read (S12). Next, the read interrupt factor register 23 determines whether or not the interrupt factor register 23 belongs to the input / output control device that generated the interrupt factor by checking the state of the IA to ID bits (S13).
【0041】割り込み要因を生じたIOCのものである
と判定した場合は、そのままCPU10のレジスタおよ
びPSWの退避などをして割り込み処理を続行して行う
(S15)。割り込み要因を生じたIOCのものでない
と判定した場合は、読み出した割り込み要因レジスタ2
3のOA〜ODビットの状態に基づいて割り込み要因を
生じたIOCへアクセスする(S14)。それから、C
PU10のレジスタおよびPSWの退避などをして割り
込み処理を行う(S15)。If it is determined that the interrupt is caused by the IOC that caused the interrupt, the interrupt processing is continued by saving the register of the CPU 10 and the PSW as it is (S15). If it is determined that the interrupt is not of the IOC that caused the interrupt, the read interrupt factor register 2
The IOC that caused the interrupt is accessed based on the status of the OA to OD bits 3 (S14). Then, C
The interrupt processing is performed by saving the registers and the PSW of the PU 10 (S15).
【0042】具体的な例によって説明する。IOC−d
163に割り込み要因が生じ、CPU10はIOC−a
160の割り込み要因レジスタ23の内容を読み取るも
のと仮定する。A specific example will be described. IOC-d
163 causes an interrupt, and the CPU 10 sets the IOC-a
It is assumed that the contents of the interrupt factor register 23 are read.
【0043】システムの立ち上げ時に、IOC−a16
0〜IOC−d163のすべての割り込み要因レジスタ
23のIA〜ID、OA〜ODビットは、すべてOFF
の状態になっている。また、IOC−d163のINT
Eレジスタ20のIEDビットがONの状態になる。I
OC−d163で割り込み要因が生じると、ANDゲー
ト21の出力によって、IOC−d163の割り込み要
因レジスタ23のIDビットがONされる。すると、割
り込みラインintdがONの状態となり、また、IO
C−a160〜IOC−d163の割り込み要因レジス
タ23のODビットがONの状態となる。When the system is started, the IOC-a16
IA to ID and OA to OD bits of all interrupt factor registers 23 of 0 to IOC-d 163 are all OFF.
It is in the state of. In addition, INT of IOC-d163
The IED bit of the E register 20 is turned on. I
When an interrupt factor occurs in the OC-d 163, the ID bit of the interrupt factor register 23 of the IOC-d 163 is turned on by the output of the AND gate 21. Then, the interrupt line intd is turned ON, and the IO
The OD bits of the interrupt factor registers 23 of the C-a 160 to IOC-d 163 are turned on.
【0044】割り込みラインintdがONの状態とな
ると、バスアダプタ130に割り込み要因が生じたこと
が通知される。バスアダプタ130は、バスアダプタ1
30自身に割り込み要因が生じたものとして、ホストブ
リッジ11を介してCPU10に割り込みを要求する。
割り込みを要求されたCPU10は、ホストブリッジ1
1、基本バス12、バスアダプタ130および拡張バス
15を介して、IOC−a160の割り込み要因レジス
タ23の内容を読み出す。ここで読み出した割り込み要
因レジスタ23のIAビットがOFF、ODビットがO
Nとなっているので、CPU10は割り込み要因を生じ
たのがIOC−d163であることが分かる。When the interrupt line intd is turned on, the bus adapter 130 is notified that an interrupt factor has occurred. The bus adapter 130 is a bus adapter 1
Assuming that an interrupt factor has occurred in itself, an interrupt request is issued to the CPU 10 via the host bridge 11.
The CPU 10 that has been requested to interrupt the host bridge 1
1. Read the contents of the interrupt factor register 23 of the IOC-a 160 via the basic bus 12, the bus adapter 130 and the expansion bus 15. The IA bit of the interrupt factor register 23 read here is OFF, and the OD bit is O.
Since it is N, the CPU 10 knows that the IOC-d 163 caused the interrupt factor.
【0045】そして、CPU10はIOC−d163へ
アクセスし、割り込み処理へと移る。なお、この間の動
作のタイムチャートを図4に示す。Then, the CPU 10 accesses the IOC-d 163 and shifts to interrupt processing. FIG. 4 shows a time chart of the operation during this time.
【0046】このように本実施形態のコンピュータシス
テムでは、拡張バス上の入出力制御装置に割り込み要因
が生じた場合でも、機敏に割り込み処理へ移ることがで
きる。しかも、基本ハードウェアであるバスアダプタの
構成を変える必要がないので、コスト的な不利も比較的
小さい。As described above, in the computer system according to the present embodiment, even when an interrupt factor occurs in the input / output control device on the expansion bus, it is possible to promptly proceed to the interrupt processing. In addition, since there is no need to change the configuration of the bus adapter, which is the basic hardware, the disadvantage of cost is relatively small.
【0047】なお、上記実施形態のコンピュータシステ
ムにおいては、拡張バス上のすべての入出力制御装置が
上記の割り込み通知部を有する構成をとっていたが、割
り込み通知部を有する入出力制御装置は1つあればよ
い。CPUがバスアダプタから割り込み要求を受けた場
合には、必ずこの割り込み通知部を有する入出力制御装
置の割り込み要因レジスタを読み出すようにする。こう
すれば、割り込み処理部を有する入出力制御装置は1つ
だけでもどの入出力制御装置に割り込み要因が生じたか
を判断できるからである。In the computer system of the above embodiment, all the input / output control devices on the expansion bus have the above-described interrupt notification unit. I just need to get it. When the CPU receives an interrupt request from the bus adapter, the CPU always reads the interrupt factor register of the input / output control device having the interrupt notification unit. This is because even one input / output control device having an interrupt processing unit can determine which input / output control device has caused the interrupt factor.
【0048】また、上記実施形態では、コンピュータ外
部の入出力制御装置を接続するバスを拡張する例を示し
て説明したが、コンピュータ間の情報の転送を行うよう
な場合やバス接続されたLANを拡張する場合などに
も、本発明を適用することができる。In the above-described embodiment, an example has been described in which the bus for connecting the input / output control device external to the computer is extended. However, in the case where information is transferred between computers or when the bus-connected LAN is used. The present invention can be applied to the case of extension.
【0049】[0049]
【発明の効果】以上説明したように、本発明の割り込み
制御方式によれば、拡張バスに接続された制御手段から
割り込みを受けた場合に、機敏に割り込み処理へ移るこ
とができる。しかも、基本ハードウェアである拡張手段
の構成を全く変える必要がないので、コスト的な不利は
小さい。As described above, according to the interrupt control method of the present invention, when an interrupt is received from the control means connected to the expansion bus, it is possible to promptly proceed to the interrupt processing. In addition, since there is no need to change the configuration of the expansion means, which is the basic hardware, there is little disadvantage in terms of cost.
【0050】また、本発明の制御装置を使用すれば、従
来までのシステムに対して上位互換性を保持しつつ、拡
張バスに接続された制御手段からの割り込みに機敏に対
応することができる。Further, by using the control device of the present invention, it is possible to promptly respond to an interrupt from the control means connected to the expansion bus while maintaining upward compatibility with the conventional system.
【図1】本発明の一実施形態のコンピュータシステムの
ブロック図である。FIG. 1 is a block diagram of a computer system according to an embodiment of the present invention.
【図2】本発明の一実施形態の入出力制御装置の割り込
み通知部のブロック図である。FIG. 2 is a block diagram of an interrupt notification unit of the input / output control device according to the embodiment of the present invention.
【図3】本発明の一実施形態の動作を示すフローチャー
トである。FIG. 3 is a flowchart showing an operation of one embodiment of the present invention.
【図4】本発明の一実施形態の動作の一例のタイムチャ
ートである。FIG. 4 is a time chart of an example of the operation of the embodiment of the present invention.
【図5】従来例のコンピュータシステムのブロック図で
ある。FIG. 5 is a block diagram of a conventional computer system.
【図6】従来例のバス拡張装置のブロック図である。FIG. 6 is a block diagram of a conventional bus expansion device.
【図7】従来例のバス拡張装置の動作を示すフローチャ
ートである。FIG. 7 is a flowchart showing the operation of a conventional bus expansion device.
【図8】従来例の動作を示すフローチャートである。FIG. 8 is a flowchart showing the operation of the conventional example.
【図9】従来例の動作の一例のタイムチャートである。FIG. 9 is a time chart of an example of the operation of the conventional example.
10 CPU 11 ホストブリッジ 12 基本バス 15 拡張バス 130 バスアダプタ 131〜133、160〜163 入出力制御装置(I
OC) intA〜intD、inta〜intd 割り込みラ
イン 20 INTEレジスタ 21 ANDゲート 22 オープンコレクタ素子 23 割り込み要因レジスタDESCRIPTION OF SYMBOLS 10 CPU 11 Host bridge 12 Basic bus 15 Expansion bus 130 Bus adapter 131-133, 160-163 I / O control device (I
OC) intA to intD, inta to intd Interrupt line 20 INTE register 21 AND gate 22 Open collector element 23 Interrupt factor register
Claims (6)
みの処理を行う処理手段と、この処理手段に接続された
基本バスと、この基本バスを拡張するための拡張手段
と、この拡張手段に接続された拡張バスと、この拡張バ
スに接続され、この拡張バス、前記拡張手段および前記
基本バスを介して前記処理手段に対して割り込み要求を
発生する複数の制御手段とを備えた割り込み処理方式で
あって、 前記基本バスは、割り込みが発生したことを示す信号を
伝達する基本バス割り込みラインを有するものであり、 前記拡張バスは、前記制御手段に割り込みが発生したこ
と示す信号を伝達する前記複数の制御手段のそれぞれに
対応した複数の拡張バス割り込みラインを有するもので
あり、 前記複数の制御手段の少なくとも1つは、前記複数の拡
張バス割り込みラインの信号状態を記憶する記憶手段を
有するものであり、 前記処理手段は、前記複数の制御手段のいずれか1つか
ら割り込み要求が発生したことが伝達されると、前記記
憶手段を参照し、ここで参照した前記記憶手段の状態に
基づいてどの制御手段から割り込み要求が発生したかを
特定してから、割り込み処理を行うものである割り込み
処理方式。1. A processing means for processing an interrupt when an interrupt occurs, a basic bus connected to the processing means, an expansion means for expanding the basic bus, and a connection to the expansion means. And a plurality of control means connected to the expansion bus and generating an interrupt request to the processing means via the expansion bus, the expansion means and the basic bus. Wherein the basic bus has a basic bus interrupt line for transmitting a signal indicating that an interrupt has occurred; and the extension bus transmits the signal indicating that an interrupt has occurred to the control means. And a plurality of extension bus interrupt lines corresponding to each of the plurality of control means. At least one of the plurality of control means includes a plurality of extension bus interrupt lines. And a storage unit for storing a signal state of an interrupt line, wherein the processing unit refers to the storage unit when an interrupt request is transmitted from any one of the plurality of control units. An interrupt processing method in which an interrupt request is specified from which control means has generated an interrupt request based on the state of the storage means referred to here.
要求が発生すると、この割り込み要求は発生したことが
前記拡張バス割り込みラインの1つを介して前記拡張手
段に伝達され、前記拡張手段は、前記拡張手段から割り
込みが発生したものとして、この割り込みを前記基本バ
ス割り込みラインを介して前記処理手段に伝達すること
を特徴とする請求項1に記載の割り込み処理方式。2. When an interrupt request is generated in any one of the control means, the occurrence of the interrupt request is transmitted to the expansion means via one of the expansion bus interrupt lines, and the expansion means 2. The interrupt processing method according to claim 1, wherein the interrupt is transmitted to the processing unit via the basic bus interrupt line, assuming that an interrupt has occurred from the extension unit.
記記憶手段を有することを特徴とする請求項1または2
に記載の割り込み処理方式。3. The method according to claim 1, wherein only one of said plurality of control means has said storage means.
Interrupt processing method described in 1.
手段を有することを特徴とする請求項1または2に記載
の割り込み処理方式。4. The interrupt processing method according to claim 1, wherein all of said plurality of control means have said storage means.
続され、このバスを介して割り込み処理装置に割り込み
要求を発生する制御装置であって、前記複数の割り込み
ラインの信号の状態を記憶する記憶手段を備えた制御装
置。5. A control device connected to a bus having a plurality of interrupt lines to generate an interrupt request to an interrupt processing device via the bus, the storage unit storing a state of a signal of the plurality of interrupt lines. Control device equipped with
いる割り込みラインに対応する1ビットのみにフラグが
立てられる複数ビットからなる第1のレジスタと、割り
込み要求を示す信号を前記バスの割り込みラインの1つ
にのみ出力するために前記第1のレジスタの各ビットの
出力信号と割り込み要求を示す信号とを論理演算して前
記バスの各割り込みラインに出力する複数の論理回路と
を備え、さらに、前記バスの各割り込みライン上の信号
を入力して保持する第2のレジスタを有することを特徴
とする請求項5に記載の制御装置。6. A storage device comprising: a first register comprising a plurality of bits in which only one bit corresponding to an interrupt line to which a control device is connected is flagged; A plurality of logic circuits for performing a logical operation on an output signal of each bit of the first register and a signal indicating an interrupt request to output the signal to only one of the lines and outputting the signal to each interrupt line of the bus; 6. The control device according to claim 5, further comprising a second register for inputting and holding a signal on each interrupt line of the bus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP16922096A JPH1021182A (en) | 1996-06-28 | 1996-06-28 | Interrupt processing system and controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP16922096A JPH1021182A (en) | 1996-06-28 | 1996-06-28 | Interrupt processing system and controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH1021182A true JPH1021182A (en) | 1998-01-23 |
Family
ID=15882452
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP16922096A Pending JPH1021182A (en) | 1996-06-28 | 1996-06-28 | Interrupt processing system and controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH1021182A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002522846A (en) * | 1998-08-10 | 2002-07-23 | マイクロン エレクトロニクス, インコーポレイテッド | Processor or core logic unit with internal registers for peripheral status |
-
1996
- 1996-06-28 JP JP16922096A patent/JPH1021182A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002522846A (en) * | 1998-08-10 | 2002-07-23 | マイクロン エレクトロニクス, インコーポレイテッド | Processor or core logic unit with internal registers for peripheral status |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5802269A (en) | Method and apparatus for power management of distributed direct memory access (DDMA) devices | |
US6233635B1 (en) | Diagnostic/control system using a multi-level I2C bus | |
US5499346A (en) | Bus-to-bus bridge for a multiple bus information handling system that optimizes data transfers between a system bus and a peripheral bus | |
US10983924B2 (en) | Information processing device and processor | |
US6000043A (en) | Method and apparatus for management of peripheral devices coupled to a bus | |
US5724528A (en) | PCI/ISA bridge having an arrangement for responding to PCI address parity errors for internal PCI slaves in the PCI/ISA bridge | |
US5758099A (en) | Plug and play protocol for bus adapter card | |
US6611912B1 (en) | Method and apparatus having a system BIOS write configuration data of a riser card to a controller configuration space when connecting the riser card to a motherboard | |
US6601165B2 (en) | Apparatus and method for implementing fault resilient booting in a multi-processor system by using a flush command to control resetting of the processors and isolating failed processors | |
US5867645A (en) | Extended-bus functionality in conjunction with non-extended-bus functionality in the same bus system | |
CN116431534B (en) | Data access method, switch and storage medium | |
JPH09185578A (en) | Method and device for optimizing pci interruption binding and related standby time for extended/bridged pci bus | |
US5721882A (en) | Method and apparatus for interfacing memory devices operating at different speeds to a computer system bus | |
US5933613A (en) | Computer system and inter-bus control circuit | |
US7054979B2 (en) | Method and apparatus for routing configuration accesses from a primary port to a plurality of secondary ports | |
JP4359618B2 (en) | Configuration register access method, setting method, integrated circuit parts, computer system, product | |
JP3526031B2 (en) | Data transfer device | |
JP4257358B2 (en) | Bus control method and apparatus | |
JPH1021182A (en) | Interrupt processing system and controller | |
JP3531368B2 (en) | Computer system and inter-bus control circuit | |
US6199123B1 (en) | Computer system for supporting increased PCI master devices without the requiring additional bridge chips | |
JP2938049B1 (en) | A control device for hot-swapping an expansion I/O device into a computer main unit | |
US6519555B1 (en) | Apparatus and method of allowing PCI v1.0 devices to work in PCI v2.0 compliant system | |
JPH10198524A (en) | Hard disk controller | |
JPH05242008A (en) | Data processor |