Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH063917B2 - Interrupt arbitration system - Google Patents
[go: Go Back, main page]

JPH063917B2 - Interrupt arbitration system - Google Patents

Interrupt arbitration system

Info

Publication number
JPH063917B2
JPH063917B2 JP61199322A JP19932286A JPH063917B2 JP H063917 B2 JPH063917 B2 JP H063917B2 JP 61199322 A JP61199322 A JP 61199322A JP 19932286 A JP19932286 A JP 19932286A JP H063917 B2 JPH063917 B2 JP H063917B2
Authority
JP
Japan
Prior art keywords
interrupt
cpu
arbitration
external device
external
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
Application number
JP61199322A
Other languages
Japanese (ja)
Other versions
JPS6354842A (en
Inventor
周 吉田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP61199322A priority Critical patent/JPH063917B2/en
Publication of JPS6354842A publication Critical patent/JPS6354842A/en
Publication of JPH063917B2 publication Critical patent/JPH063917B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、割り込み調停システムに関し、特に、単一の
CPUバスを共有する複数の外部機器からのCPUに対
する割り込み要求に対して優先順位を設けず平等に調停
する割り込み調停システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt arbitration system, and more particularly, to prioritizing interrupt requests to CPUs from a plurality of external devices sharing a single CPU bus. An interrupt arbitration system that arbitrates equally.

[従来の技術] 単一のCPUバスに複数の外部機器を接続し、外部機器
からの割り込み要求を処理する場合、各外部機器は任意
の時期に割り込み要求を発生するため、同時に複数の割
り込み要求が発生することがある。しかし、CPUは同
時に複数の割り込み要求を処理することはできないの
で、なんらかの方法で割り込み要求を調停し、一つずつ
処理する必要がある。
[Prior Art] When a plurality of external devices are connected to a single CPU bus and an interrupt request from the external device is processed, each external device generates an interrupt request at an arbitrary time. May occur. However, since the CPU cannot process a plurality of interrupt requests at the same time, it is necessary to arbitrate the interrupt requests by some method and process them one by one.

従来、複数の外部機器からの割り込み要求を調停するに
は、デイジーチェーンによる方法や、ポーリングによる
方法等がとられていた。
Hitherto, in order to arbitrate interrupt requests from a plurality of external devices, methods such as a daisy chain method and a polling method have been used.

[解決すべき問題点] 上述した従来のデイジーチェーンによる方法は、複数の
外部機器からの割り込み要求線をデイジーチェーンによ
って接続するため、各外部機器に優先順位ができてしま
い、すべての機器の割り込みを平等に処理したいときに
は使用できない。また、デイジーチェーンにすると、外
部機器が取り外し可能な構造でマザーボードに実装され
ている場合、一つの外部機器を取り外すとそれより優先
順位の低い外部機器の割り込みはすべて受け付け不能に
なる。
[Problems to be solved] In the above-mentioned conventional method using the daisy chain, since the interrupt request lines from a plurality of external devices are connected by the daisy chain, priority is given to each external device, and the interrupts of all devices are interrupted. It cannot be used when you want to treat the Further, in the daisy chain, when the external device is mounted on the motherboard in a removable structure, if one external device is removed, all interrupts of the external device with lower priority cannot be accepted.

ポーリング方式にした場合も、通常ではポーリングの順
序により優先順位が決まり、優先順位を持たせたくない
場合はシーケンスが複雑になる。また、外部機器の数が
多い場合は全部の機器をポーリングするのに非常に時間
がかかる。
Even when the polling method is used, the priority order is usually determined by the polling order, and the sequence becomes complicated when the priority order is not desired. Also, when the number of external devices is large, it takes a very long time to poll all the devices.

本発明は、上記問題点にかんがみてなされたもので、複
数の外部機器からの割り込み要求を優先順位を設けるこ
となく、簡易かつ平等に調停する割り込み調停システム
の提供を目的とする。
The present invention has been made in view of the above problems, and an object of the present invention is to provide an interrupt arbitration system that arbitrates interrupt requests from a plurality of external devices in a simple and equal manner without setting priorities.

[問題点の解決手段] 上記目的を達成するため、本発明の割り込み調停システ
ムは、CPUバスを共有する複数の外部機器からのCP
Uに対する割り込み要求を調停するシステムにおいて、
上記外部機器に対して機器番号を符号化した割り込み調
停クロックを与える発生回路を備え、上記外部機器に
は、CPUに割り込み要求をするとともに、CPUから
割り込みアクノレッジ信号を受信したときに割り込みベ
クトルを出力する手段、及び、割り込み要求を発生した
とき割り込み要求線がニゲイトされており、かつ、上記
割り込み調停クロックのデコード値が予め各外部機器に
設定されている機器番号に一致したときのみ上記CPU
の割り込みアクノレッジ信号を受け付け可能とする手段
が設けられている。
[Means for Solving Problems] In order to achieve the above object, the interrupt arbitration system according to the present invention uses CPs from a plurality of external devices sharing a CPU bus.
In a system that arbitrates interrupt requests for U,
The external device is provided with a generation circuit for giving an interrupt arbitration clock in which a device number is encoded, and the external device issues an interrupt request to the CPU and outputs an interrupt vector when an interrupt acknowledge signal is received from the CPU. And the CPU only when the interrupt request line is negated when the interrupt request is generated and the decode value of the interrupt arbitration clock matches the device number preset in each external device.
Means for enabling reception of the interrupt acknowledge signal of is provided.

[実施例] 以下、図面にもとづいて本発明の実施例を説明する。[Embodiment] An embodiment of the present invention will be described below with reference to the drawings.

第1図は、本発明の一実施例に係る割り込み調停システ
ムの構成を示す。また、第2図は第1図の割り込み調停
システムの動作を表すタイムチャートを示す。
FIG. 1 shows the configuration of an interrupt arbitration system according to an embodiment of the present invention. FIG. 2 is a time chart showing the operation of the interrupt arbitration system shown in FIG.

第1図において、1はメインCPUで、一つのCPUバ
スに複数の外部機器2−1,2−2、…が接続されてい
る。3は制御回路で、メインCPU1に割り込み要求を
するとき割り込み要求信号IREQを出力する。そし
て、メインCPU1から割り込みアクノレッジ信号IA
CKが返されると、割り込みベクトルをデータバスに乗
せて、自分が割り込み発生機器であることをメインCP
U1に知らせる。4は機器番号設定部で、予め各外部機
器2ごとに個別の数値を2進数で設定しておく。
In FIG. 1, reference numeral 1 is a main CPU, and a plurality of external devices 2-1, 2-2, ... Are connected to one CPU bus. A control circuit 3 outputs an interrupt request signal IREQ when an interrupt request is issued to the main CPU 1. Then, the main CPU 1 issues an interrupt acknowledge signal IA.
When CK is returned, the interrupt vector is put on the data bus and the main CP confirms that it is the device that generated the interrupt.
Notify U1. Reference numeral 4 denotes a device number setting unit that sets individual numerical values in advance in binary numbers for each external device 2.

5は外部機器の設けられた調停信号発生回路で、割り込
み調停クロック発生回路6からの割り込み調停クロック
信号SEL0〜SEL2をデコードするとともに、この
デコード値を、予め自分に設定された機器番号と比較
し、等しい場合は、調停信号SELをアサートする。7
は割り込みアクノレッジ受付回路で、一定条件下でのみ
メインCPU1の割り込みアクノレッジ信号TIACK
を制御回路3に受け付け可能とする。各外部機器2から
の割り込み要求線TIREQはワイアードOR接続され
ている。
Reference numeral 5 denotes an arbitration signal generation circuit provided in an external device, which decodes the interrupt arbitration clock signals SEL0 to SEL2 from the interrupt arbitration clock generation circuit 6 and compares the decoded value with a device number set in advance. , If they are equal, the arbitration signal SEL is asserted. 7
Is an interrupt acknowledge reception circuit, which is an interrupt acknowledge signal TIACK of the main CPU 1 only under a certain condition.
Can be accepted by the control circuit 3. The interrupt request line TIREQ from each external device 2 is connected by wired OR.

外部機器2内の回路は外部機器2−1についてのみ示し
ているが、外部機器2−2,2−3…も、同様の構成と
なっている。
The circuit in the external device 2 is shown only for the external device 2-1, but the external devices 2-2, 2-3 ... Have the same configuration.

この実施例では、割り込み調停クロック信号SEL0〜
SEL2により0から7を2進数化し、外部機器2の数
を8までとしているが、割り込み調停用クロックのビッ
ト数を増やすことにより、9以上の外部機器2にも対応
可能である。
In this embodiment, the interrupt arbitration clock signals SEL0 to SEL0
Although SEL2 converts 0 to 7 into a binary number and the number of external devices 2 is 8, the number of external arbitration clocks 9 can be increased by increasing the number of bits of the interrupt arbitration clock.

上記構成において、各制御回路3は任意の時期に割り込
み要求を発生し、割り込み要求信号IREQをアサート
する。しかし、各制御回路3が割り込みアクノレッジ信
号IACKを受信して割り込みベクトルを出力できるの
は、割り込みアクノレッジ受付回路7におけるG1地点
が“H”レベルの時だけである。そして、このG1地点
が“H”レベルになるのは、以下の3つの条件が揃った
ときである。
In the above configuration, each control circuit 3 generates an interrupt request at an arbitrary time and asserts the interrupt request signal IREQ. However, each control circuit 3 can receive the interrupt acknowledge signal IACK and output the interrupt vector only when the point G1 in the interrupt acknowledge reception circuit 7 is at "H" level. The G1 point becomes the “H” level when the following three conditions are met.

割り込み要求信号IREQがアサートされている。The interrupt request signal IREQ is asserted.

割り込み要求線TIREQがニゲイトされている。The interrupt request line TIREQ is negated.

調停信号SELがアサートされている。The arbitration signal SEL is asserted.

すなわち、自分以外のすべての外部機器2が割り込み要
求をアサートされておらず、かつ自分の調停信号SEL
がアサートされると、メインCPU1の割り込みアクノ
レッジ信号IACKが受け付け可能になる。
That is, none of the external devices 2 other than itself has asserted the interrupt request, and its own arbitration signal SEL.
Is asserted, the interrupt acknowledge signal IACK of the main CPU 1 can be accepted.

通常、上記三つの条件の内、とだけで十分である。
しかし、の条件がないと、まれに二つ以上の外部機器
2が全く同時に割り込み要求を発生したとき、二つ以上
の外部機器2が同時に割り込みアクノレッジ信号IAC
Kを受け付け可能になってしまうことが有り得る。この
ため、本発明では、の条件を追加してこれを防いでい
る。
Usually, only one of the above three conditions is sufficient.
However, if there is no condition of (2), when two or more external devices 2 generate interrupt requests at exactly the same time, the two or more external devices 2 simultaneously generate the interrupt acknowledge signal IAC.
It is possible that K will be accepted. For this reason, in the present invention, the condition is added to prevent this.

[発明の効果] 以上説明したように本発明は、外部機器に割り込み調停
クロックを与え、かつ各々の外部機器内に一定条件下で
のみ割り込みアクノレッジ信号を受け付け可能とする手
段を有することにより、複数の外部機器が同時に割り込
み要求を発生した場合にも、各外部機器が出力する割り
込みベクトルデーターバス上で衝突することを防ぐこと
ができる効果がある。
[Effect of the Invention] As described above, the present invention provides a plurality of interrupt arbitration clocks to external devices, and each external device has means for accepting an interrupt acknowledge signal only under a certain condition. Even if the external devices simultaneously generate interrupt requests, it is possible to prevent the collision on the interrupt vector data bus output by each external device.

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

第1図は本発明の一実施例に係る割り込み調停システム
のブロック図、第2図は第1図のシステムのタイミング
チャートである。 1:メインCPU 2:外部機器 4:機器番号設定部 5:調停信号発生回路 6:割り込み調停クロック発生回路 7:割り込みアクノレッジ受付回路
FIG. 1 is a block diagram of an interrupt arbitration system according to an embodiment of the present invention, and FIG. 2 is a timing chart of the system of FIG. 1: Main CPU 2: External device 4: Device number setting section 5: Arbitration signal generation circuit 6: Interrupt arbitration clock generation circuit 7: Interrupt acknowledge reception circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】CPUバスを共有する複数の外部機器から
のCPUに対する割り込み要求を調停するシステムにお
いて、 上記外部機器に対して機器番号を符号化した割り込み調
停クロックを与える発生回路を備え、 上記外部機器には、CPUに割り込み要求をするととも
に、CPUから割り込みアクノレッジ信号を受信したと
きに割り込みベクトルを出力する手段、及び、割り込み
要求を発生したとき割り込み要求線がニゲイトされてお
り、かつ、上記割り込み調停クロックのデコード値が予
め各外部機器に設定されている機器番号に一致したとき
のみ上記CPUの割り込みアクノレッジ信号を受け付け
可能とする手段が設けられていること を特徴とする割り込み調停システム。
1. A system for arbitrating interrupt requests to a CPU from a plurality of external devices sharing a CPU bus, comprising a generating circuit for supplying an interrupt arbitration clock in which a device number is coded to the external device. The device has means for making an interrupt request to the CPU, outputting an interrupt vector when the interrupt acknowledge signal is received from the CPU, and an interrupt request line being negated when the interrupt request is generated, and An interrupt arbitration system comprising means for accepting the interrupt acknowledge signal of the CPU only when the decoded value of the arbitration clock matches the device number preset in each external device.
JP61199322A 1986-08-25 1986-08-25 Interrupt arbitration system Expired - Lifetime JPH063917B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61199322A JPH063917B2 (en) 1986-08-25 1986-08-25 Interrupt arbitration system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61199322A JPH063917B2 (en) 1986-08-25 1986-08-25 Interrupt arbitration system

Publications (2)

Publication Number Publication Date
JPS6354842A JPS6354842A (en) 1988-03-09
JPH063917B2 true JPH063917B2 (en) 1994-01-12

Family

ID=16405866

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61199322A Expired - Lifetime JPH063917B2 (en) 1986-08-25 1986-08-25 Interrupt arbitration system

Country Status (1)

Country Link
JP (1) JPH063917B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5075750A (en) * 1973-11-07 1975-06-21
JPS5749932B2 (en) * 1974-06-06 1982-10-25
JPS55159222A (en) * 1979-05-31 1980-12-11 Mitsubishi Electric Corp Processing system for interruption input

Also Published As

Publication number Publication date
JPS6354842A (en) 1988-03-09

Similar Documents

Publication Publication Date Title
US4797815A (en) Interleaved synchronous bus access protocol for a shared memory multi-processor system
US4631670A (en) Interrupt level sharing
US5237696A (en) Method and apparatus for self-timed digital data transfer and bus arbitration
US5555413A (en) Computer system and method with integrated level and edge interrupt requests at the same interrupt priority
EP0139742A1 (en) Bus repeater
US5263146A (en) Multiprocessor system including an exclusive access controller with lock request holding and grant circuits
WO1983003910A1 (en) Method and apparatus for limiting bus utilization
JPS62280948A (en) Bus arbitration system
EP0996068A2 (en) Deterministic arbitration of a serial bus using arbitration addresses
JP2654281B2 (en) Single bus competition module arbitration mechanism for common bus
JPH063917B2 (en) Interrupt arbitration system
US5898847A (en) Bus arbitration method and appparatus for use in a multiprocessor system
US20060129725A1 (en) Round-robin bus protocol
JPH0429104B2 (en)
JPS62259157A (en) Interrupt method
JPS6448154A (en) Bus arbitrating circuit with timeout monitor
GB2230166A (en) Resource control allocation
US6467001B1 (en) VLSI chip macro interface
JPH0821014B2 (en) Multiple input/output data transfer device
JPH01150958A (en) Device for arbitrating bus
JP2000322273A (en) Interrupt arbitration system
KR20000039582A (en) Apparatus for processing interrupters of versa module eurocard
JP2007172105A (en) Interruption arbitration system and interruption arbitration method
EP0717362A1 (en) An arbitrator of access to a MCA channel by several control units with centralized arbitration processor interface,in particular LAN and SCSI control units
JPS6225358A (en) Interrupt request level variable device