JPH11232097A - Information processor - Google Patents

Information processor

Info

Publication number
JPH11232097A
JPH11232097A JP10033173A JP3317398A JPH11232097A JP H11232097 A JPH11232097 A JP H11232097A JP 10033173 A JP10033173 A JP 10033173A JP 3317398 A JP3317398 A JP 3317398A JP H11232097 A JPH11232097 A JP H11232097A
Authority
JP
Japan
Prior art keywords
event
instruction
bus
address
instructions
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
Application number
JP10033173A
Other languages
Japanese (ja)
Inventor
Yoshinobu Terui
嘉信 照井
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP10033173A priority Critical patent/JPH11232097A/en
Publication of JPH11232097A publication Critical patent/JPH11232097A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve the real time performance of an event processing and to efficiently execute the event processing. SOLUTION: A bus interface 2 monitors a bus event, and when the bus event occurs, an event address EA is supplied to an event instruction issuing part 3, which is provided with a memory array divided by an instruction line so as to store processing instructions related to plural events. Each instruction line holds series of instructions including plural instructions for changing an instruction fetch address in advance. When the bus event occurs, the event instruction issuing part 3 is switched from an ordinary mode to an event processing mode and by switching a selector 4, in place of the instruction fetch from a cache 1, series of instructions corresponding to the instruction fetch address are supplied to a CPU.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、CPU等を搭載
した情報処理装置に係り、特にバスイベントとして検知
可能なイベントに対するイベント処理を効率的に実行す
る情報処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus equipped with a CPU and the like, and more particularly to an information processing apparatus for efficiently executing an event process for an event that can be detected as a bus event.

【0002】[0002]

【従来の技術】従来、情報処理装置においては、例えば
DMA転送の終了等のイベントに対し、割り込みを用い
たイベント通知方法が採用されている。割り込みを用い
たイベント通知処理の場合、制限された割り込み線を使
用して多数の割り込み要求元へのサービスを行っている
ため、割り込み発生時にアサートされる割り込み線から
割り込み要求元を一意に識別することができず、CPU
上で動作するOSは、デバイスを表現したデバイス構造
体のチェインを探索し、アサートされた割り込み線を使
用している複数のデバイスの各々に対し、割り込み発行
の有無を確認することで、実際に割り込みを発行したデ
バイスを同定している(ポーリング)。
2. Description of the Related Art Conventionally, an information processing apparatus employs an event notification method using an interrupt for an event such as the end of a DMA transfer. In the case of event notification processing using interrupts, since many interrupt request sources are serviced using a limited interrupt line, the interrupt request source is uniquely identified from the interrupt line asserted when an interrupt occurs Can not do, CPU
The OS operating on the above searches the chain of the device structure expressing the device, and confirms whether or not each of the plurality of devices using the asserted interrupt line has issued the interrupt, thereby actually executing the interrupt. The device that issued the interrupt is identified (polling).

【0003】また、例えば特開平5−108479、特
開平6−28258には、イベント発生時にイベント処
理専用のキャッシュを設け、イベント処理および通常処
理の高速化を図る技術が開示されているが、これらの技
術は上述したポーリング処理を高速に実行させることは
可能であっても、ポーリング処理を不要にするものでは
ない。
For example, JP-A-5-108479 and JP-A-6-28258 disclose techniques for providing a cache dedicated to event processing when an event occurs to speed up event processing and normal processing. Although the technique described above can execute the above-mentioned polling processing at high speed, it does not make the polling processing unnecessary.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来技
術のポーリング方式においては、デバイス構造体のチェ
インを探索する処理、デバイスの各々に対して割り込み
発行の有無を確認する処理が重く、リアルタイム性を大
きく低下させるという問題があった。
However, in the conventional polling method, the process of searching for a chain of a device structure and the process of confirming whether or not each device issues an interrupt are heavy, and the real-time performance is greatly increased. There was a problem of lowering.

【0005】この発明は上述した事情に鑑みてなされた
もので、イベント処理のリアルタイム性を向上させるこ
とができるとともに、効率的に実行することができる情
報処理装置を提供することを目的としている。
The present invention has been made in view of the above circumstances, and has as its object to provide an information processing apparatus that can improve the real-time property of event processing and can execute the processing efficiently.

【0006】[0006]

【課題を解決するための手段】上述した問題点を解決す
るために、請求項1記載の発明では、命令アドレスを出
力し、該命令アドレスに対応する命令を実行する演算手
段と、バスイベントを監視するバスイベント監視手段
と、複数のバスイベントに関連する一連の複数の命令を
保持する保持手段と、前記バスイベント監視手段によっ
てバスイベントが検出されると、前記保持手段に保持さ
れ、検出されたバスイベントに対応する一連の複数の命
令を、前記演算手段に出力するイベント命令発行手段と
を具備することを特徴とする。
According to a first aspect of the present invention, there is provided an arithmetic unit for outputting an instruction address and executing an instruction corresponding to the instruction address; Bus event monitoring means for monitoring, holding means for holding a series of a plurality of instructions related to the plurality of bus events, and when the bus event monitoring means detects a bus event, the bus event is held and detected by the holding means. Event instruction issuing means for outputting a series of plural instructions corresponding to the bus event to the arithmetic means.

【0007】この発明によれば、複数のバスイベントに
関連する一連の複数の命令を保持手段に保持しておき、
バスイベント監視手段によってバスイベントが検出され
ると、イベント命令発行手段によって、通常の命令に代
えて、保持手段に保持され、検出されたバスイベントに
対応する一連の複数の命令を演算手段に出力するように
したので、ポーリング処理が不要となり、イベント処理
のリアルタイム性を向上させることが可能となり、効率
的に実行することが可能となる。
According to the present invention, a series of a plurality of instructions related to a plurality of bus events is held in the holding means,
When a bus event is detected by the bus event monitoring unit, a series of multiple instructions corresponding to the detected bus event are output to the arithmetic unit by the event instruction issuing unit instead of the normal instruction and held by the holding unit. As a result, the polling process becomes unnecessary, the real-time property of the event process can be improved, and the event process can be executed efficiently.

【0008】[0008]

【発明の実施の形態】次に図面を参照してこの発明の実
施形態について説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0009】A.実施形態の構成 図1は本発明の実施形態による情報処理装置の一部構成
を示すブロック図である。図において、命令キャッシュ
1は、CPUからCPUアドレスADDに出力される命
令アドレスに対する命令をキャッシュし、命令アドレス
に対応するキャッシュ出力命令S2をセレクタ4に供給
する。また、バスインターフェース2は、データバスD
B、アドレスバス(コントロールバスを含む)ABから
バスイベントを表すバスアドレスとコントロール信号と
(以下、イベントアドレスEAという)を取り出し、イ
ベント命令発行部3へ供給する。
A. Configuration of Embodiment FIG. 1 is a block diagram showing a partial configuration of an information processing apparatus according to an embodiment of the present invention. In the figure, an instruction cache 1 caches an instruction for an instruction address output from a CPU to a CPU address ADD, and supplies a cache output instruction S2 corresponding to the instruction address to the selector 4. The bus interface 2 is connected to the data bus D
B, a bus address representing a bus event and a control signal (hereinafter, referred to as an event address EA) are taken out from an address bus (including a control bus) AB and supplied to the event instruction issuing unit 3.

【0010】イベント命令発行部3は、バスイベントに
関連したイベント命令を複数記憶しており、バスインタ
フェース2を介してイベントアドレスEAを監視し、自
身に登録されたバスイベント(特定のアドレスに対する
読み出し/書き込みアクセス)が検出されると、モード
信号MSを切り替える。セレクタ4は、上記モード信号
MSに応じて、上記キャッシュ1から供給されるキャッ
シュ出力命令S2またはイベント命令発行部3からの検
出バスイベントに関連して登録されたイベント命令S3
のいずれかをCPUフェッチ命令S3として出力する。
したがって、CPUは、登録バスイベントが検出された
場合には、CPU自身が発行した命令アドレスに拘ら
ず、検出バスイベントに関連して登録された命令S3を
実行することになる。
The event instruction issuing unit 3 stores a plurality of event instructions related to a bus event, monitors an event address EA via the bus interface 2, and registers a bus event registered therein (readout for a specific address). / Write access) is detected, the mode signal MS is switched. In response to the mode signal MS, the selector 4 outputs the event instruction S3 registered in association with the cache output instruction S2 supplied from the cache 1 or the detected bus event from the event instruction issuing unit 3.
Is output as the CPU fetch instruction S3.
Therefore, when a registered bus event is detected, the CPU executes the instruction S3 registered in association with the detected bus event, regardless of the instruction address issued by the CPU itself.

【0011】バスイベントとしては、DMA転送の最終
転送アクセス等が好適な例となる。すなわち、従来の情
報処理装置においては、CPUにより起動されたDMA
は一連(通常複数)のデータ転送を完了した後、CPU
に対して割り込みによりDMA転送の終了を通知してく
る。割り込みを通知されたCPUは、アサートされた割
り込み信号に関連するデバイスをポーリングすることに
より、割り込みを発行したデバイスを検出する。しかし
ながら、前述したように、ポーリング処理は処理コスト
が大きく、リアルタイム性の低下の一因になっていた。
従来の情報処理装置において、ポーリング処理が必要な
のは、ハードウェアリソースの制約から全ての例外イベ
ントおよびCPU処理起動要因を識別可能なほどの割り
込み信号を用意することができないため、少数の割り込
み信号線にイベントが集約されてマッピングされるため
である。
A preferred example of the bus event is a final transfer access of a DMA transfer. That is, in the conventional information processing apparatus, the DMA activated by the CPU is
Completes a series (usually multiple) of data transfers,
, The end of the DMA transfer is notified by an interrupt. The CPU notified of the interrupt detects the device that issued the interrupt by polling the device associated with the asserted interrupt signal. However, as described above, the polling processing has a high processing cost and has been a cause of a decrease in real-time properties.
In the conventional information processing device, the polling process is required because it is not possible to prepare an interrupt signal enough to identify all exception events and CPU processing activation factors due to hardware resource restrictions. This is because events are aggregated and mapped.

【0012】DMA転送が終了すると、すなわちDMA
転送の最終転送アクセスが行われると割り込みが通知さ
れることは自明のことであるため、本発明の情報処理装
置では、バスイベントを直接検出することにより、イベ
ントの割り込みへのマッピングを不要にし(したがっ
て、登録イベントに関してはポーリング処理が不要にな
る)、加えてイベントが発行される処理起動時にイベン
ト処理ルーチンの一部をイベント命令発行部3に登録し
ておくことで、イベント検出時、即座にイベント処理に
移行することを可能にし、リアルタイム性を向上させる
ことができる。
When the DMA transfer is completed,
Since it is self-evident that an interrupt is notified when the final transfer access of the transfer is performed, the information processing apparatus of the present invention directly detects a bus event, thereby eliminating the need to map an event to an interrupt. Therefore, a polling process is not required for a registered event. In addition, by registering a part of the event processing routine in the event instruction issuing unit 3 at the time of starting the process of issuing the event, the event is immediately detected when the event is detected. It is possible to shift to event processing and improve real-time properties.

【0013】次に、図2は、本発明の情報処理装置のイ
ベント命令発行部3とその周辺の構成を示すブロック図
である。なお、図1に対応する部分には同一の符号を付
けて説明を省略する。図において、バスインターフェー
ス2からのイベントアドレスEAは、イベントアドレス
レジスタ12に供給される。イベントアドレスレジスタ
12では、イベントアドレスEAをキー部Kとハッシュ
部Hとに分けて保持し、キー部Kを比較器19の入力A
に供給し、ハッシュ部Hをセレクタ15の一方の入力端
に供給する。タグライトレジスタ13は、CPUからC
PUデータバスIDBを介して供給されるバスイベント
アドレスを、キー部Kとハッシュ部Hとに分けて保持
し、キー部Kをタグアレイ17に供給し、ハッシュ部H
をセレクタ15の他方の入力端に供給する。
Next, FIG. 2 is a block diagram showing the configuration of the event instruction issuing unit 3 of the information processing apparatus of the present invention and its peripherals. Note that the same reference numerals are given to portions corresponding to FIG. In the figure, an event address EA from a bus interface 2 is supplied to an event address register 12. The event address register 12 holds the event address EA separately for a key portion K and a hash portion H, and stores the key portion K in the input A of the comparator 19.
And the hash portion H is supplied to one input terminal of the selector 15. The tag write register 13 receives a C
The bus event address supplied via the PU data bus IDB is separately stored in a key portion K and a hash portion H, and the key portion K is supplied to the tag array 17 so that the hash portion H
Is supplied to the other input terminal of the selector 15.

【0014】命令ライトレジスタ14は、アドレスデコ
ーダ10の制御に従って、CPUからのイベント関連命
令をCPUデータIDBを介して順次記憶する。該命令
ライトレジスタ14には、本実施形態においては、例え
ば連続する4命令等の複数命令(以後、ラインという)
を保持可能とする。セレクタ15は、タグライトレジス
タ13に書き込みが行われる場合には(登録動作時)、
タグライトレジスタ13のハッシュ部Hをハッシュデコ
ーダ16に供給し、イベントアドレスレジスタ12に書
き込みが行われる場合には(発行動作時)、タグライト
レジスタ12のハッシュ部Hをハッシュデコーダ16に
供給する。
The instruction write register 14 sequentially stores event-related instructions from the CPU via the CPU data IDB under the control of the address decoder 10. In the present embodiment, the instruction write register 14 includes a plurality of instructions such as four consecutive instructions (hereinafter referred to as a line).
Can be held. When data is written to the tag write register 13 (at the time of registration operation), the selector 15
The hash portion H of the tag write register 13 is supplied to the hash decoder 16, and when the event address register 12 is written (at the time of issuing operation), the hash portion H of the tag write register 12 is supplied to the hash decoder 16.

【0015】ハッシュデコーダ16は、ハッシュ部Hに
対応するエントリ選択線をアサートし、タグアレイ1
7、命令アレイ18のいずれかを選択する。タブアレイ
17は、複数のエントリから構成されており、命令登録
時にタグライトレジスタ13から供給されるキー部Kを
記憶する。また、命令アレイ18は、タグアレイと同様
に複数のエントリから構成されており、上記タグアレイ
17の対応するエントリに、命令ライトレジスタ14に
保持されている複数命令を記憶する。
The hash decoder 16 asserts an entry selection line corresponding to the hash part H, and
7. Select one of the instruction arrays 18. The tab array 17 includes a plurality of entries, and stores a key portion K supplied from the tag write register 13 at the time of registering an instruction. The instruction array 18 is composed of a plurality of entries like the tag array, and stores a plurality of instructions held in the instruction write register 14 in corresponding entries of the tag array 17.

【0016】比較器19は、イベントアドレスレジスタ
12からのキー部Kと、タグアレイ17からのキー部K
とを比較し、双方が一致すると、ヒット信号S5をアサ
ートする。ラッチ20は、ヒット信号S5をラッチし、
モード信号MSとしてCPUアドレスレジスタ11、命
令カウンタ22およびセレクタ4に供給する。命令ライ
ンバッファ21は、上記ヒット信号S5がアサートされ
ると、命令アレイ18からの命令ラインをラッチし、命
令セレクタ23に供給する。
The comparator 19 has a key part K from the event address register 12 and a key part K from the tag array 17.
Are compared, and if they match, the hit signal S5 is asserted. The latch 20 latches the hit signal S5,
The mode signal MS is supplied to the CPU address register 11, the instruction counter 22, and the selector 4. When the hit signal S5 is asserted, the instruction line buffer 21 latches the instruction line from the instruction array 18 and supplies it to the instruction selector 23.

【0017】命令カウンタ22は、モード信号MSによ
りイネーブルされると、CPUから命令アクセスが発行
される度にカウントアップする。命令セレクタ23は、
命令カウンタ22のカウント値に従って、命令ラインバ
ッファ21の出力からイベント命令S3を選択出力す
る。セレクタ4は、モード信号MSの状態に応じて切り
替わり、通常、図1のキャッシュ1からのキャッシュ出
力命令S2をCPUフェッチ命令FIとして出力し、モ
ード信号MSがアサートされると、命令ラインバッファ
21にラッチされていたイベント命令S3を命令セレク
タ23を介して出力する。
When enabled by the mode signal MS, the instruction counter 22 counts up each time an instruction access is issued from the CPU. The instruction selector 23
According to the count value of the instruction counter 22, the event instruction S3 is selectively output from the output of the instruction line buffer 21. The selector 4 switches according to the state of the mode signal MS and normally outputs the cache output instruction S2 from the cache 1 in FIG. 1 as a CPU fetch instruction FI. When the mode signal MS is asserted, the selector 4 The latched event instruction S3 is output via the instruction selector 23.

【0018】B.実施形態の動作 次に、上述した実施形態の動作について図1および図2
を参照して説明する。
B. Next, the operation of the above-described embodiment will be described with reference to FIGS.
This will be described with reference to FIG.

【0019】B−1.登録動作 まず、イベント命令発行部3にバスイベントとイベント
関連命令を登録する手順について説明する。イベント命
令発行部3に対するバスイベントとイベント関連命令の
登録は、CPUが当該イベントを生起する可能性のある
処理を行う前に行われる。CPUは、アドレスデコーダ
10の制御の下、CPUデータバスIDBを介して命令
ライトレジスタ14にイベント関連命令(連続する4命
令等の複数命令:ライン)を順次書き込む。
B-1. Registration Operation First, a procedure for registering a bus event and an event-related instruction in the event instruction issuing unit 3 will be described. The registration of the bus event and the event-related instruction to the event instruction issuing unit 3 is performed before the CPU performs a process that may cause the event. Under the control of the address decoder 10, the CPU sequentially writes event-related instructions (a plurality of consecutive instructions such as four instructions: lines) to the instruction write register 14 via the CPU data bus IDB.

【0020】命令ライトレジスタ14へのイベント関連
命令ラインの書き込みが完了すると、CPUは、バスイ
ベントアドレスをCPUデータバスIDBを介してタグ
ライトレジスタ13に書き込む。書き込まれるバスイベ
ントアドレスには、バスイベントのアクセス種別(読み
出し/書き込み種別、メモリ空間種別、I/O空間種別
等)が含まれるものとする。例えば、システムのデータ
アクセスがワード(4バイト)を単位に行われる場合に
は、CPUアドレスの下位2ビットは、バスイベントに
関係しないため、32ビットのCPUデータの下位2ビ
ット中にアクセス種別を含ませることが可能である。
When the writing of the event-related instruction line to the instruction write register 14 is completed, the CPU writes the bus event address to the tag write register 13 via the CPU data bus IDB. It is assumed that the bus event address to be written includes the access type (read / write type, memory space type, I / O space type, etc.) of the bus event. For example, when data access of the system is performed in units of words (4 bytes), since the lower 2 bits of the CPU address are not related to the bus event, the access type is set in the lower 2 bits of the 32-bit CPU data. It is possible to include.

【0021】また、システムのデータアクセスがバイト
単位で行われる場合には、バスイベントが含まれるアド
レス空間で使用されていないアドレスビットに相当する
ビット数をアクセス種別に割り当てることが可能であ
る。本実施例では、アドレス/データ長を32ビット、
システムがワードを単位としてアクセスを行い、イベン
ト関連命令ライン長が4ワードで、かつイベント命令発
行部3の内部のタグアレイ17、命令アレイ18が各々
32エントリあるものと仮定する。但し、個々の数値
は、一例であり、これに限定されるものではない。
When data access of the system is performed in byte units, the number of bits corresponding to address bits not used in the address space including the bus event can be assigned to the access type. In this embodiment, the address / data length is 32 bits,
It is assumed that the system accesses in units of words, the event-related instruction line length is 4 words, and the tag array 17 and the instruction array 18 inside the event instruction issuing unit 3 each have 32 entries. However, each numerical value is an example, and the present invention is not limited to this.

【0022】上記仮定により、タグライトレジスタ13
に書き込もうとするCPUデータのD0,D1は未使用
となり、ここでは、D0により読み出し/書き込み種別
を示すものとする。タグエントリが32エントリあるた
め、タグライトレジスタ13の内容をハッシュ部Hとキ
ー部Kに分割すると、ハッシュ部Hは、32エントリを
デコード可能なようにD6〜D2、キー部KはD31〜
D7+D0となる。
Based on the above assumption, the tag write register 13
D0 and D1 of the CPU data to be written into the memory are unused, and here, the read / write type is indicated by D0. Since there are 32 tag entries, when the content of the tag write register 13 is divided into a hash portion H and a key portion K, the hash portion H becomes D6 to D2 so that 32 entries can be decoded, and the key portion K becomes D31 to D31.
D7 + D0.

【0023】タグライトレジスタ13に書き込みが行わ
れると、セレクタ15が切り替わり、タグライトレジス
タ13のハッシュ部Hがハッシュデコーダ16に入力さ
れる。ハッシュデコーダ16では、ハッシュ部Hに対応
するエントリ選択線をアサートし、タグアレイ17、命
令アレイ18のいずれかを選択する。選択されたタグア
レイ17には、タグライトレジスタ13のキー部Kが書
き込まれ、選択された命令アレイ18の対応するエント
リには、命令ライトレジスタ14に保持されている複数
命令が一括して書き込まれる。
When writing to the tag write register 13 is performed, the selector 15 is switched, and the hash portion H of the tag write register 13 is input to the hash decoder 16. The hash decoder 16 asserts an entry selection line corresponding to the hash portion H, and selects one of the tag array 17 and the instruction array 18. The key portion K of the tag write register 13 is written in the selected tag array 17, and a plurality of instructions held in the instruction write register 14 are collectively written in the corresponding entry of the selected instruction array 18. .

【0024】以上の動作により、イベント命令発行手段
3にバスイベントとイベント関連命令ラインを登録する
ことができる。
With the above operation, a bus event and an event-related instruction line can be registered in the event instruction issuing means 3.

【0025】B−2.発行動作 次に、バスイベントの検出過程とイベント命令S3の発
行過程について説明する。アドレスバスABは、常時、
バスインターフェース2を介してイベント命令発行部3
の内部に入力されており、アドレスバスAB上でタグア
レイ17上に登録されたイベントが発生すると、イベン
トアドレスEAがイベントアドレスレジスタ12に供給
される。イベントアドレスレジスタ12の出力は、キー
部Kとハッシュ部Hに分割され、ハッシュ部Hは、セレ
クタ15を介してハッシュデコーダ16に供給され、キ
ー部Kは比較器19の入力Aに供給される。
B-2. Issue Operation Next, a process of detecting a bus event and a process of issuing the event instruction S3 will be described. The address bus AB is always
Event instruction issuing unit 3 via bus interface 2
When an event registered on the tag array 17 occurs on the address bus AB, the event address EA is supplied to the event address register 12. The output of the event address register 12 is divided into a key portion K and a hash portion H. The hash portion H is supplied to a hash decoder 16 via a selector 15, and the key portion K is supplied to an input A of a comparator 19. .

【0026】ハッシュデコーダ16では、ハッシュ部H
がデコードされ、エントリ選択線のいずれかがアサート
される。タグアレイ17では、アサートされたエントリ
選択線に対応するエントリから記憶されている内容が読
み出され、比較器19の入力Bに供給される。また、命
令アレイ18では、アサートされたエントリ選択線に対
応するエントリから記憶されている命令ラインが読み出
され、命令ラインバッファ21に供給される。
In the hash decoder 16, the hash part H
Is decoded, and one of the entry select lines is asserted. In the tag array 17, the content stored from the entry corresponding to the asserted entry selection line is read and supplied to the input B of the comparator 19. In the instruction array 18, the stored instruction line is read from the entry corresponding to the asserted entry selection line, and supplied to the instruction line buffer 21.

【0027】比較器19では、イベントアドレスレジス
タ12からのキー部Kと、タグアレイ17からのキー部
Kとが比較される。そして、双方が一致すると、ヒット
信号S5がアサートされると同時に、命令ラインバッフ
ァ21で命令アレイ18からの命令ラインがラッチされ
る。上記ヒット信号S5は、ラッチ20でラッチされ、
モード信号MSとして送出される。モード信号MSがア
サートされると、セレクタ4が切り替わり、通常、CP
Uフェッチ命令FIとして出力されているキャッシュ出
力命令S2に代わって、命令ラインバッファ21にラッ
チされていたイベント命令S3が命令セレクタ23を介
して出力される。
The comparator 19 compares the key K from the event address register 12 with the key K from the tag array 17. When the two match, the hit signal S5 is asserted, and the instruction line from the instruction array 18 is latched by the instruction line buffer 21 at the same time. The hit signal S5 is latched by the latch 20,
It is transmitted as a mode signal MS. When the mode signal MS is asserted, the selector 4 switches, and normally, the CP 4
Instead of the cache output instruction S2 output as the U fetch instruction FI, the event instruction S3 latched in the instruction line buffer 21 is output via the instruction selector 23.

【0028】上記イベント命令S3は、命令ラインバッ
ファ21の出力を命令カウンタ22に従って命令セレク
タ23で選択出力したものであり、モード信号MSによ
りイネーブルされた命令カウンタ22は、CPUから命
令アクセスが発行される度にカウントアップされる。し
たがって、命令ラインバッファ21にラッチされた命令
ラインから順にイベント命令S3がCPUフェッチ命令
FIとして出力される。また、モード信号MSがアサー
トされると、CPUアドレスADDがCPUアドレスレ
ジスタ11にセットされる。
The event instruction S3 is obtained by selectively outputting the output of the instruction line buffer 21 by the instruction selector 23 in accordance with the instruction counter 22. The instruction counter 22 enabled by the mode signal MS receives an instruction access from the CPU. Counted up every time. Therefore, the event instruction S3 is output as the CPU fetch instruction FI in order from the instruction line latched in the instruction line buffer 21. When the mode signal MS is asserted, the CPU address ADD is set in the CPU address register 11.

【0029】イベント処理では、まず、検出されたイベ
ントを処理するイベント処理ルーチンのアドレスがCP
Uのアドレスレジスタ11にセットされるように、命令
アドレスの変更が行われる。本実施形態では、命令アレ
イエントリに登録される命令ラインを4命令長と仮定し
たが、実際には、少なくとも前述した命令アドレス変更
を行うことができるだけの命令長が必要であり、4命令
長に限るものではない。
In the event processing, first, the address of the event processing routine for processing the detected event is set to CP.
The instruction address is changed so as to be set in the U address register 11. In the present embodiment, the instruction line registered in the instruction array entry is assumed to be four instruction lengths. However, in practice, it is necessary to have an instruction length at least capable of performing the above-described instruction address change. It is not limited.

【0030】CPUアドレスレジスタ11の内容がイベ
ント処理ルーチンアドレスに変更されると、CPUは通
常モード処理としてイベント処理を実行できるようにな
る。このため、以降の処理では、後の通常処理への復帰
のために通常処理中断アドレスを保持しているCPUア
ドレスレジスタ11の内容を読み出してレジスタあるい
はメモリにセーブした後、ラッチ20をクリアするため
に割り当てられているアドレスへダミーアクセスを行
い、ラッチ20をクリアすることで、モード信号MSを
ネゲートする。モード信号MSがネゲートされると、C
PUフェッチ命令FIには、キャッシュ出力命令S2が
出力されるようになるが、そのとき、CPUアドレスレ
ジスタ11には、既にイベント処理ルーチンのアドレス
が設定されているため、通常モード処理としてイベント
処理ルーチンを実行することになる。
When the content of the CPU address register 11 is changed to the event processing routine address, the CPU can execute the event processing as the normal mode processing. Therefore, in the subsequent processing, the contents of the CPU address register 11 holding the normal processing interruption address are read out and saved in the register or the memory for returning to the normal processing later, and then the latch 20 is cleared. Performs a dummy access to the address assigned to the memory cell and clears the latch 20, thereby negating the mode signal MS. When the mode signal MS is negated, C
The cache output instruction S2 is output to the PU fetch instruction FI. At this time, since the address of the event processing routine is already set in the CPU address register 11, the event processing routine is executed as the normal mode processing. Will be executed.

【0031】なお、上述した実施形態では、タグアレイ
17、命令アレイ18を各々1組の例を示したが、タグ
アレイ17、命令アレイ18を複数組設けることも可能
であり、その場合には、イベントアドレスEAに対する
連想度が向上し、D6〜D2が等しい複数のイベントア
ドレスを登録可能になる。
In the above-described embodiment, one example of the tag array 17 and the instruction array 18 is shown, but a plurality of sets of the tag array 17 and the instruction array 18 may be provided. The degree of association with the address EA is improved, and a plurality of event addresses having the same D6 to D2 can be registered.

【0032】言い換えると、上述したように、タグアレ
イ17、命令アレイ18を各々1組とした場合には、D
6〜D2が等しい複数のイベントアドレスを登録するこ
とができないので、登録するイベントをソフトウェアで
管理する必要がある。
In other words, as described above, when the tag array 17 and the instruction array 18 are each one set, D
Since it is not possible to register a plurality of event addresses having the same 6-D2, it is necessary to manage the events to be registered by software.

【0033】また、上述した実施形態では、タグアレイ
17、命令アレイ18を32エントリと仮定したが、こ
れに限定されるものではなく、同時に生起する可能性の
あるイベント数を登録可能であればいくつでもよい。
In the above-described embodiment, the tag array 17 and the instruction array 18 are assumed to have 32 entries. However, the present invention is not limited to this, and any number of events that may occur simultaneously can be registered. May be.

【0034】[0034]

【発明の効果】以上、説明したように、この発明によれ
ば、複数のバスイベントに関連する一連の複数の命令を
保持手段に保持しておき、バスイベント監視手段によっ
てバスイベントが検出されると、イベント命令発行手段
によって、通常の命令に代えて、保持手段に保持され、
検出されたバスイベントに対応する一連の複数の命令を
演算手段に出力するようにしたので、ポーリング処理が
不要となり、イベント処理のリアルタイム性を向上させ
ることができるとともに、効率的に実行することができ
るという利点が得られる。
As described above, according to the present invention, a series of a plurality of instructions related to a plurality of bus events is held in the holding means, and the bus event is detected by the bus event monitoring means. And by the event instruction issuing means, in place of the normal instruction, held in the holding means,
Since a series of multiple instructions corresponding to the detected bus event are output to the arithmetic means, polling processing becomes unnecessary, real-time performance of event processing can be improved, and efficient execution can be achieved. The advantage that it can be obtained.

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

【図1】 本発明の実施形態による情報処理装置の一部
構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a partial configuration of an information processing apparatus according to an embodiment of the present invention.

【図2】 本発明の情報処理装置のイベント命令発行部
3とその周辺の構成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of an event instruction issuing unit 3 and its peripherals of the information processing apparatus of the present invention.

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

ADD 命令アドレス 1 キャッシュ(命令出力手段) 2 バスインターフェース(バスイベント監視手段) 3 イベント命令発行部(保持手段、イベント命令発行
手段、書き込み手段) 4 セレクタ(切替手段) FI フェッチ命令(命令)
ADD instruction address 1 cache (instruction output means) 2 bus interface (bus event monitoring means) 3 event instruction issuing unit (holding means, event instruction issuing means, writing means) 4 selector (switching means) FI fetch instruction (instruction)

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 命令アドレスを出力し、該命令アドレス
に対応する命令を実行する演算手段と、 バスイベントを監視するバスイベント監視手段と、 複数のバスイベントに関連する一連の複数の命令を保持
する保持手段と、 前記バスイベント監視手段によってバスイベントが検出
されると、前記保持手段に保持され、検出されたバスイ
ベントに対応する一連の複数の命令を、前記演算手段に
出力するイベント命令発行手段とを具備することを特徴
とする情報処理装置。
1. An arithmetic unit for outputting an instruction address and executing an instruction corresponding to the instruction address, a bus event monitoring unit for monitoring a bus event, and holding a series of a plurality of instructions related to a plurality of bus events. An event instruction issuing unit that, when a bus event is detected by the bus event monitoring unit, outputs a series of plural instructions corresponding to the detected bus event to the arithmetic unit when the bus event is detected by the bus event monitoring unit. And an information processing apparatus.
【請求項2】 前記一連の複数の命令は、前記演算手段
の命令アドレスを変更し、検出されたバスイベントに対
して前記演算手段が実行すべき処理ルーチンのアドレス
を、前記演算手段のアドレスレジスタにセットする命令
群であることを特徴とする請求項1記載の情報処理装
置。
2. The method according to claim 1, wherein the series of instructions change an instruction address of the arithmetic unit, and store an address of a processing routine to be executed by the arithmetic unit in response to a detected bus event, in an address register of the arithmetic unit. 2. The information processing apparatus according to claim 1, wherein the set of instructions is a set of instructions.
【請求項3】 前記バスイベントの生起に先だって、該
バスイベントに関連する一連の複数の命令を前記保持手
段に書き込む書き込み手段を具備することを特徴とする
請求項1記載の情報処理装置。
3. The information processing apparatus according to claim 1, further comprising a writing unit that writes a series of a plurality of instructions related to the bus event into the holding unit before the occurrence of the bus event.
【請求項4】 前記演算手段が出力する命令アドレスに
対応する命令を出力する命令出力手段と、 前記バスイベント監視手段によってバスイベントが検出
されない場合には、前記命令出力手段から出力される命
令を選択的に前記演算手段に供給し、前記バスイベント
監視手段によってバスイベントが検出された場合には、
前記イベント命令発行手段から出力される一連の複数の
命令を選択的に前記演算手段に供給する切替手段とを具
備することを特徴とする請求項1記載の情報処理装置。
4. An instruction output means for outputting an instruction corresponding to an instruction address output by said arithmetic means, and an instruction output from said instruction output means when no bus event is detected by said bus event monitoring means. Selectively supplying the arithmetic means, and when a bus event is detected by the bus event monitoring means,
2. The information processing apparatus according to claim 1, further comprising: a switching unit that selectively supplies a series of plural instructions output from the event instruction issuing unit to the arithmetic unit.
JP10033173A 1998-02-16 1998-02-16 Information processor Pending JPH11232097A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10033173A JPH11232097A (en) 1998-02-16 1998-02-16 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10033173A JPH11232097A (en) 1998-02-16 1998-02-16 Information processor

Publications (1)

Publication Number Publication Date
JPH11232097A true JPH11232097A (en) 1999-08-27

Family

ID=12379147

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10033173A Pending JPH11232097A (en) 1998-02-16 1998-02-16 Information processor

Country Status (1)

Country Link
JP (1) JPH11232097A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3163432A1 (en) * 2015-10-30 2017-05-03 Samsung Electronics Co., Ltd. Method and apparatus for storing event signal and image, and operating method of vision sensor for transmitting event signal to storing apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3163432A1 (en) * 2015-10-30 2017-05-03 Samsung Electronics Co., Ltd. Method and apparatus for storing event signal and image, and operating method of vision sensor for transmitting event signal to storing apparatus
KR20170050461A (en) * 2015-10-30 2017-05-11 삼성전자주식회사 Apparatus and method for storing event signal and image and operating method of vision sensor for transmitting event signal to the apparatus
US10097779B2 (en) 2015-10-30 2018-10-09 Samsung Electronics Co., Ltd. Method and apparatus for storing event signal and image, and operating method of vision sensor for transmitting event signal to storing apparatus

Similar Documents

Publication Publication Date Title
JP5923449B2 (en) Method and apparatus for reducing power consumption in a pattern recognition processor
US5561814A (en) Methods and apparatus for determining memory operating characteristics for given memory locations via assigned address ranges
JP3509067B2 (en) Store instruction transfer method and processor
KR101072645B1 (en) Method and system to indicate an exception­triggering page within a microprocessor
US8190794B2 (en) Control function for memory based buffers
JP5128093B2 (en) Device that invalidates multiple address cache entries
CN111767081A (en) Apparatus, method and system for accelerating storage processing
US6751700B2 (en) Date processor and storage system including a set associative cache with memory aliasing
US6757809B1 (en) Data processor having 2n bits width data bus for context switching functions
US7581042B2 (en) I/O hub resident cache line monitor and device register update
US11327768B2 (en) Arithmetic processing apparatus and memory apparatus
US7111127B2 (en) System for supporting unlimited consecutive data stores into a cache memory
US9886396B2 (en) Scalable event handling in multi-threaded processor cores
JPH11232097A (en) Information processor
US7356649B2 (en) Semiconductor data processor
US4737908A (en) Buffer memory control system
US10649786B2 (en) Reduced stack usage in a multithreaded processor
US20030204665A1 (en) High performance architecture with shared memory
JP3956652B2 (en) Processor system
US20230020505A1 (en) Processor circuit and data processing method
JPH05158793A (en) Parallel cache memory
JP3511529B2 (en) Complex arithmetic processing unit
JPH1011387A (en) Information processor
JP2621793B2 (en) Multiplex method of bus cycle
JPH0981458A (en) Access method to cache in data-processing system