JPH07168723A - External event detecting method for computer system - Google Patents

External event detecting method for computer system

Info

Publication number
JPH07168723A
JPH07168723A JP31336093A JP31336093A JPH07168723A JP H07168723 A JPH07168723 A JP H07168723A JP 31336093 A JP31336093 A JP 31336093A JP 31336093 A JP31336093 A JP 31336093A JP H07168723 A JPH07168723 A JP H07168723A
Authority
JP
Japan
Prior art keywords
external event
external
event
cpu
circuit
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.)
Granted
Application number
JP31336093A
Other languages
Japanese (ja)
Other versions
JP2677175B2 (en
Inventor
Masayuki Otaka
正之 大鷹
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
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP5313360A priority Critical patent/JP2677175B2/en
Publication of JPH07168723A publication Critical patent/JPH07168723A/en
Application granted granted Critical
Publication of JP2677175B2 publication Critical patent/JP2677175B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To reduce overhead caused by the detection processing of an external event such as an input/output at a computer system. CONSTITUTION:Generated external events 1-n are held by an external event holding circuit 21, and an event generation report signal S1 corresponding to each event is transmitted to a delay circuit 22. The delay circuit 22 delays an interrupt signal S2 to be transmitted to a CPU 1 for fixed time and receives the plural events during that time. The CPU 1, which receives the interrupt signal S2, successively processes the received plural events and when the processing is completed, the CPU transmits a reset instruction S3 to a reset circuit 23 and resets the external event holding circuit 21 and the delay circuit 22.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータシステム
における外部イベント検出方式に関し、特に大量のイベ
ント検出を目的とするコンピュータシステムの外部イベ
ント検出方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an external event detecting method for a computer system, and more particularly to an external event detecting method for a computer system for detecting a large number of events.

【0002】[0002]

【従来の技術】従来、この種のコンピュータシステムの
外部イベント検出方式は、個々に発生する外部イベント
ごとに中央処理装置(以下「CPU」という)に割り込
む割込み方式や、たとえば「1992年8月電子情報通
信学会誌Vol.75No.8交換制御プログラムの基
本技術P.862〜P.869」に示されるように、C
PUが周期的に外部イベント発生の有無を検出するルッ
クイン方式などがある。
2. Description of the Related Art Conventionally, the external event detection method of this type of computer system is an interrupt method that interrupts a central processing unit (hereinafter referred to as "CPU") for each external event that occurs, such as "August 1992 As shown in "Basic Technology of Exchange Control Program P.862 to P.869" of the Institute of Information and Communication Engineers, Vol.
There is a look-in method in which the PU periodically detects whether or not an external event has occurred.

【0003】[0003]

【発明が解決しようとする課題】この従来の外部イベン
ト検出方式の割込み方式では、外部イベントが個々に発
生する度にCPUに割込みが発生し、そのための制御移
行に伴なうCPUの性能低下が発生イベント数に比例し
て大きくなる。従って、大量に外部イベントを処理する
ような場合には、コンピュータシステム全体としての性
能低下を引き起こすという欠点があった。またルックイ
ン方式では、個々のイベント発生をCPUが能動的に検
出するためイベント数が多い場合、負荷量に比例すぜイ
ベント要因数に比例したCPUの固定的な性能低下が大
きくなるという欠点があった。
In the conventional interrupt method of the external event detection method, an interrupt is generated in the CPU each time an external event occurs, and therefore the performance of the CPU is degraded due to the control shift. It increases in proportion to the number of events that occur. Therefore, when a large number of external events are processed, there is a drawback that the performance of the entire computer system is deteriorated. In addition, the look-in method has a drawback in that when the number of events is large because the CPU actively detects the occurrence of each event, the fixed performance deterioration of the CPU, which is proportional to the number of event factors, is proportional to the load amount. It was

【0004】[0004]

【課題を解決するための手段】本発明の目的は、大量の
外部イベント検出のためのCPU負荷を低減することに
ある。このため本発明に係るコンピュータシステムの外
部イベント検出方式は、コンピュータシステムにおい
て、複数の外部イベントの発生をそれぞれ保持し、当該
外部イベント対応にイベント発生を通知する信号を出力
する外部イベント保持手段と、前記外部イベント保持手
段の出力を受信し、当該出力の論理話を割込信号として
遅延して出力する遅延手段と、CPUのリセット命令を
受けて前記外部イベント保持手段と前記遅延手段とにリ
セット信号を与えるリセット手段とを有し、前記CPU
は、前記割込信号を受信すると前記外部イベント保持手
段に保持されている外部イベントを順次処理し、処理完
了により前記リセット命令を出力することを特徴とす
る。
SUMMARY OF THE INVENTION An object of the present invention is to reduce the CPU load for detecting a large amount of external events. Therefore, the external event detection method for a computer system according to the present invention is an external event holding means for holding the occurrence of each of a plurality of external events in the computer system and outputting a signal for notifying the event occurrence corresponding to the external event, A delay means for receiving the output of the external event holding means, delaying and outputting the logical talk of the output as an interrupt signal, and a reset signal for the external event holding means and the delay means in response to a reset command of the CPU. And a reset means for providing the CPU,
When the interrupt signal is received, the external events held in the external event holding means are sequentially processed, and the reset command is output when the processing is completed.

【0005】[0005]

【作用】このため個々の外部イベントをCPUに通知す
る場合、許容される時間内で遅延させ、CPUが遅延イ
ベントを分析する時にその遅延時間内に発生した他のイ
ベントを含めて群処理することによりイベント当たりの
オーバヘッドを削減することができる。
For this reason, when notifying each external event to the CPU, delay the delay within an allowable time, and perform group processing including other events that occurred within the delay time when the CPU analyzes the delay event. Can reduce the overhead per event.

【0006】[0006]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0007】図1は、本発明に係るコンピュータシステ
ムの外部イベント検出方式の一実施例を示すブロック図
である。
FIG. 1 is a block diagram showing an embodiment of an external event detecting system of a computer system according to the present invention.

【0008】図1において、遅延割込回路2は外部イベ
ント保持回路21、遅延回路22及びリセット回路23
を有している。
In FIG. 1, the delay interrupt circuit 2 includes an external event holding circuit 21, a delay circuit 22 and a reset circuit 23.
have.

【0009】外部イベント検出回路21は発生した複数
の外部イベント1〜nを保持し、個々のイベント対応に
当該イベントの発生を通知するインベント発生通知信号
S1を出力する。
The external event detection circuit 21 holds a plurality of external events 1 to n that have occurred and outputs an event occurrence notification signal S1 for notifying the occurrence of the event corresponding to each event.

【0010】遅延回路22では外部イベント保持回路か
ら出力されるイベント発生通知信号S1を受信すると、
CPUへの割込信号S2を許容される時間だけ遅延させ
て出力する。
When the delay circuit 22 receives the event occurrence notification signal S1 output from the external event holding circuit,
The interrupt signal S2 to the CPU is delayed by an allowable time and then output.

【0011】リセット回路23は、外部イベントに対応
する処理が完了したCPU1からプロセッサバス3を経
由して送られるリセット命令S3を受信して、外部イベ
ント保持回路21が保持している外部イベントの情報を
リセットさせるリセット信号S4と遅延回路22の動作
をリセットさせるリセット信号S5とを出力する。
The reset circuit 23 receives the reset command S3 sent from the CPU 1 which has completed the process corresponding to the external event via the processor bus 3, and the external event holding circuit 21 holds the information of the external event. And a reset signal S5 for resetting the operation of the delay circuit 22.

【0012】次に、このように構成された本発明実施例
の動作について説明する。
Next, the operation of the embodiment of the present invention thus constructed will be described.

【0013】入出力動作の終了などをCPU1に通知す
るための外部イベント1〜nは、一旦,外部イベント保
持回路21でイベントが発生したことが保持される。保
持されると外部イベント保持回路21の出力は活性化さ
れイベント発生通知信号S1として遅延回路22へ通知
される。
External events 1 to n for notifying the CPU 1 of the end of the input / output operation are temporarily held in the external event holding circuit 21. When held, the output of the external event holding circuit 21 is activated and notified to the delay circuit 22 as an event occurrence notification signal S1.

【0014】遅延回路22では外部イベントに対応した
いずれかの入力が活性化されると、処理上許容され得る
一定の時間が経過した後にその間に入力した情報を集約
化した出力が活性化されCPU1への割込信号S2とな
る。
In the delay circuit 22, when any input corresponding to an external event is activated, an output in which information input during that time is aggregated is activated after a certain period of time, which is allowable for processing, is activated and the CPU 1 Interrupt signal S2.

【0015】その結果CPU1では割込処理が走行し、
割込み直接の要因となった外部イベントのみならず、遅
延時間内に発生して外部イベント保持回路21に保持さ
れた外部イベント要因についてすべて検査を行いそれぞ
れの処理を行う。
As a result, the CPU 1 executes the interrupt process,
Not only the external event that is the direct factor of the interrupt, but also the external event factors that are generated within the delay time and are held in the external event holding circuit 21 are inspected and each processing is performed.

【0016】各イベントに対応する処理が完了すると、
当該処理が完了したことを反映するためにCPU1はプ
ロセッサバス3を介してリセット命令S3をリセット回
路23に送出する。
When the processing corresponding to each event is completed,
To reflect the completion of the process, the CPU 1 sends a reset command S3 to the reset circuit 23 via the processor bus 3.

【0017】リセット回路3では、当該リセット命令S
3をデコードして処理が完了された外部イベント保持回
路21の個々の回路をリセットして非活性化状態とす
る。
In the reset circuit 3, the reset command S
Each circuit of the external event holding circuit 21 whose processing is completed by decoding 3 is reset to an inactive state.

【0018】各イベントについてCPU1による割込処
理が一通り終了すると、CPU1から送出されるリセッ
ト命令S3に基づいてリセット回路23は活性化状態に
ある遅延回路22をリセットする。これにより遅延回路
22の出力は非活性状態となり、外部からのイベント発
生待ち状態となる。
When the CPU 1 completes the interrupt processing for each event, the reset circuit 23 resets the activated delay circuit 22 based on the reset command S3 sent from the CPU 1. As a result, the output of the delay circuit 22 becomes inactive and waits for an external event to occur.

【0019】その後、外部イベント保持回路21の出力
のどれか一つでも活性化されると遅延回路22は、再び
一定時間の後、出力が活性化されCPU1に対して割り
込みを行う。
After that, when any one of the outputs of the external event holding circuit 21 is activated, the delay circuit 22 again activates the output after a certain time and interrupts the CPU 1.

【0020】このようにして、遅延割込回路2により、
外部イベントの発生毎にCPU1に割り込みを行うこと
なく、一定時間の遅延時間中に発生する外部イベントを
まとめて1回の割り込みで処理するものである。
In this way, the delay interrupt circuit 2
Without interrupting the CPU 1 every time an external event occurs, the external events that occur during the delay time of a fixed time are collectively processed by one interrupt.

【0021】[0021]

【発明の効果】以上説明したように、本発明に係るコン
ピュータシステムの外部イベント検出方式は、イベント
発生に基づく割込信号を遅延させて通知することにより
1回の割込み処理で遅延中に発生した他の割込み要因を
も一緒に処理できる。
As described above, according to the external event detecting method for the computer system of the present invention, the interrupt signal generated upon the occurrence of an event is delayed and notified, so that one interrupt process occurs during the delay. Other interrupt factors can be processed together.

【0022】統計的には外部イベントを束ねて割込通知
することになり、割込回数が削減され、CPUの割込処
理に要する処理が低減され、その結果としてシステムの
性能向上を図ることができる。
Statistically, an external event is bundled to notify an interrupt, the number of interrupts is reduced, the processing required for the interrupt processing of the CPU is reduced, and as a result, the performance of the system can be improved. it can.

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

【図1】本発明に係るコンピュータシステムの外部イベ
ント検出方式の一実施例を示すブロック構成図。
FIG. 1 is a block diagram showing an embodiment of an external event detecting method for a computer system according to the present invention.

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

1 CPU 2 遅延割込回路 3 プロセッサバス 21 外部イベント保持回路 22 遅延回路 23 リセット回路 S1 イベント発生通知信号 S2 割込信号 S3 リセット命令 S4,S5 リセット信号 1 CPU 2 Delay Interrupt Circuit 3 Processor Bus 21 External Event Holding Circuit 22 Delay Circuit 23 Reset Circuit S1 Event Generation Notification Signal S2 Interrupt Signal S3 Reset Command S4, S5 Reset Signal

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 コンピュータシステムにおいて、 複数の外部イベントの発生をそれぞれ保持し、当該外部
イベント対応にイベント発生を通知する信号を出力する
外部イベント保持手段と、 前記外部イベント保持手段の出力を受信し、当該出力の
論理和を割込信号として遅延して出力する遅延手段と、 中央処理装置のリセット命令を受けて前記外部イベント
保持手段と前記遅延手段とにリセット信号を与えるリセ
ット手段とを有し、 前記中央処理装置は、前記割込信号を受信すると前記外
部イベント保持手段に保持されている外部イベントを順
次処理し、処理完了により前記リセット命令を出力する
ことを特徴とするコンピュータシステムの外部イベント
検出方式。
1. A computer system, wherein external event holding means for holding the occurrence of each of a plurality of external events and outputting a signal for notifying the event occurrence corresponding to the external event, and receiving the output of the external event holding means. A delay means for delaying and outputting the logical sum of the outputs as an interrupt signal, and a reset means for receiving a reset command from the central processing unit and giving a reset signal to the external event holding means and the delay means. When the central processing unit receives the interrupt signal, the central processing unit sequentially processes the external events held in the external event holding means, and outputs the reset command when the processing is completed. Detection method.
JP5313360A 1993-12-14 1993-12-14 External event detection method for computer system Expired - Lifetime JP2677175B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5313360A JP2677175B2 (en) 1993-12-14 1993-12-14 External event detection method for computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5313360A JP2677175B2 (en) 1993-12-14 1993-12-14 External event detection method for computer system

Publications (2)

Publication Number Publication Date
JPH07168723A true JPH07168723A (en) 1995-07-04
JP2677175B2 JP2677175B2 (en) 1997-11-17

Family

ID=18040326

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5313360A Expired - Lifetime JP2677175B2 (en) 1993-12-14 1993-12-14 External event detection method for computer system

Country Status (1)

Country Link
JP (1) JP2677175B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010218357A (en) * 2009-03-18 2010-09-30 Fuji Xerox Co Ltd Interrupt control apparatus and image forming apparatus
JP2010277158A (en) * 2009-05-26 2010-12-09 Fujitsu Semiconductor Ltd Interrupt notification control device and semiconductor integrated circuit

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5370482B2 (en) 2009-05-11 2013-12-18 日本電気株式会社 TERMINAL DEVICE, COMMUNICATION METHOD AND COMMUNICATION CONTROL PROGRAM USED FOR THE TERMINAL DEVICE

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03167633A (en) * 1989-11-28 1991-07-19 Oki Electric Ind Co Ltd Control method for interruption program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03167633A (en) * 1989-11-28 1991-07-19 Oki Electric Ind Co Ltd Control method for interruption program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010218357A (en) * 2009-03-18 2010-09-30 Fuji Xerox Co Ltd Interrupt control apparatus and image forming apparatus
US8250272B2 (en) 2009-03-18 2012-08-21 Fuji Xerox Co., Ltd. Interrupt control apparatus and image forming apparatus
JP2010277158A (en) * 2009-05-26 2010-12-09 Fujitsu Semiconductor Ltd Interrupt notification control device and semiconductor integrated circuit
US8612661B2 (en) 2009-05-26 2013-12-17 Fujitsu Semiconductor Limited Interrupt-notification control unit, semiconductor integrated circuit and methods therefor

Also Published As

Publication number Publication date
JP2677175B2 (en) 1997-11-17

Similar Documents

Publication Publication Date Title
US7627705B2 (en) Method and apparatus for handling interrupts in embedded systems
CN109918141A (en) Thread execution method, device, terminal and storage medium
EP0871308A2 (en) Method and program product for flexible control of interrupts in multiprocessor systems
EP0871307A2 (en) Apparatus for flexible control of interrupts in multiprocessor systems
JPH07168723A (en) External event detecting method for computer system
US20070074224A1 (en) Kernel based profiling systems and methods
JP3859564B2 (en) Event notification task control processing method and method, and program
JP4567586B2 (en) Processing equipment
JP2947195B2 (en) Interrupt mask control method
JPH03167633A (en) Control method for interruption program
JPH09212388A (en) Method for monitoring operation of cpu
JP2770797B2 (en) Page Descriptor Update Control Method for Multiprocessor System
JP2834062B2 (en) Information processing system
JPH05158749A (en) Fault monitor control system
CN115599540A (en) Multithreading calling system and method
JPH03158936A (en) Testing method for program
JP3308670B2 (en) Event-driven processing equipment failure detection device
JP2004199423A (en) Processing supervisory device
JPH03185552A (en) Data receiving circuit
JP2006119982A (en) Computer system
JPH02311933A (en) Interruption control system
JPH01177133A (en) Event information system
JPH07325800A (en) Data flow processor
JPH04266147A (en) Bus adaptor device
Ramachandra et al. Analysis of CPU Utilisation and Stack Consumption of a Multimedia Embedded System

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970624