WO2004066150A1 - 割り込み制御方法および割り込み制御装置 - Google Patents

割り込み制御方法および割り込み制御装置 Download PDF

Info

Publication number
WO2004066150A1
WO2004066150A1 PCT/JP2003/000670 JP0300670W WO2004066150A1 WO 2004066150 A1 WO2004066150 A1 WO 2004066150A1 JP 0300670 W JP0300670 W JP 0300670W WO 2004066150 A1 WO2004066150 A1 WO 2004066150A1
Authority
WO
WIPO (PCT)
Prior art keywords
interrupt
disable
register
controller
control device
Prior art date
Application number
PCT/JP2003/000670
Other languages
English (en)
French (fr)
Inventor
Kazunori Kuki
Masahiro Tanaka
Hirokazu Kanma
Original Assignee
Fujitsu Limited
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 Fujitsu Limited filed Critical Fujitsu Limited
Priority to JP2004567141A priority Critical patent/JPWO2004066150A1/ja
Priority to PCT/JP2003/000670 priority patent/WO2004066150A1/ja
Priority to EP03701871A priority patent/EP1562116A1/en
Priority to CNB038240785A priority patent/CN100336022C/zh
Priority to AU2003203386A priority patent/AU2003203386A1/en
Publication of WO2004066150A1 publication Critical patent/WO2004066150A1/ja
Priority to US11/084,010 priority patent/US20050165990A1/en

Links

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F16ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
    • F16BDEVICES FOR FASTENING OR SECURING CONSTRUCTIONAL ELEMENTS OR MACHINE PARTS TOGETHER, e.g. NAILS, BOLTS, CIRCLIPS, CLAMPS, CLIPS OR WEDGES; JOINTS OR JOINTING
    • F16B37/00Nuts or like thread-engaging members
    • F16B37/04Devices for fastening nuts to surfaces, e.g. sheets, plates
    • F16B37/06Devices for fastening nuts to surfaces, e.g. sheets, plates by means of welding or riveting
    • F16B37/062Devices for fastening nuts to surfaces, e.g. sheets, plates by means of welding or riveting by means of riveting
    • F16B37/065Devices for fastening nuts to surfaces, e.g. sheets, plates by means of welding or riveting by means of riveting by deforming the material of the nut

Definitions

  • the present invention relates to an interrupt control method and an interrupt control device for executing a predetermined interrupt process by one interrupt controller to which an interrupt signal from another device is input among a plurality of interrupt controllers.
  • one interrupt factor (macro) is assigned to one interrupt number, or more specifically, an interrupt controller that performs the process specified by that number.
  • an interrupt controller that performs the process specified by that number.
  • An object of the present invention is to provide an interrupt control method and an interrupt control device capable of performing various interrupt controls required by a user while suppressing a circuit scale, in order to solve the above-described problem of the conventional technology. And Disclosure of the invention
  • an interrupt control method or an interrupt control device includes a plurality of interrupt controllers.
  • Interrupt control method for executing interrupt processing Z interrupt control device, wherein an interrupt number is set for each of the other devices, and based on the set interrupt number.
  • One of the plurality of interrupt controllers is determined.
  • the interrupt number may be set in a register for each of the other devices.
  • the interrupt controller that inputs the interrupt signal may be determined from some of the plurality of interrupt controllers.
  • an interrupt disabling number for disabling the interrupt of the other device may be set, and the other device on which the interrupt disabling number has been set may be notified that the interrupt has been disabled. Good.
  • the interrupt disable number may be set in a register for each of the other devices.
  • a user who incorporates the system LSI according to the present invention into various devices such as home appliances can determine which interrupt to use simply by changing the interrupt number or interrupt disable number set in the register for each interrupt factor. And the processing when an interrupt occurs can be arbitrarily switched.
  • FIG. 1 shows, among various devices into which the interrupt control device according to the first embodiment of the present invention is incorporated, a combination of interrupt factors in a device A, an interrupt number and an interrupt condition assigned to each interrupt factor
  • FIG. 2 is an explanatory diagram schematically showing a hardware configuration of the interrupt control device according to the first embodiment of the present invention
  • FIG. 3 is a diagram showing an embodiment of the present invention.
  • FIG. 4 is a flowchart showing a procedure of an interrupt control process in the interrupt control device according to the first embodiment.
  • FIG. 4 is a description schematically showing a hardware configuration of the interrupt control device according to the second embodiment of the present invention.
  • FIG. 1 shows, among various devices into which the interrupt control device according to the first embodiment of the present invention is incorporated, a combination of interrupt factors in a device A, an interrupt number and an interrupt condition assigned to each interrupt factor
  • FIG. 2 is an explanatory diagram schematically showing a hardware configuration of the interrupt control device according to the first embodiment of the present invention
  • FIG. 3 is
  • FIG. 5 is a diagram showing a list of interrupt numbers that can be set in each of the interrupt number setting circuits 402 a to 400 21 according to the second embodiment of the present invention.
  • FIG. 6 is an explanatory diagram schematically showing a hardware configuration of an interrupt control device according to a third embodiment of the present invention.
  • FIG. 7 is an interrupt control device according to the related art. Description that schematically shows the hardware configuration of FIG. BEST MODE FOR CARRYING OUT THE INVENTION
  • FIG. 1 is a block diagram of an interrupt control device of a certain device A among various devices into which an interrupt control device according to the first embodiment of the present invention (specifically, a system LSI built into various devices such as home appliances) is incorporated.
  • FIG. 9 is an explanatory diagram showing a relationship between a combination, an interrupt number assigned to each interrupt factor, and an interrupt condition. As shown in Fig. 1, device A does not assume seven interrupt factors 1, 4, 6, 7, 8, 13 and 15, and each factor has an interrupt number 15, 16, 17 , 18, 19, 20, 21 are assigned. Note that device B, which is different from device A, differs from Fig. 1 in the combination of interrupt factors and the priority of interrupts between factors.
  • FIG. 2 is an explanatory diagram schematically showing a hardware configuration of the interrupt control device according to the first embodiment of the present invention.
  • FIG. 2 shows only those parts related to the present invention among various circuits on the system LSI which is the interrupt control device according to the present invention.
  • reference numeral 200 denotes a CPU, which sets an interrupt number in each register of an interrupt number setting circuit 202 a to 202 p, which will be described later, and sets an interrupt level and an interrupt destination address to interrupt controllers 204 a to 204 g, which will be described later. Set various information required for interrupt processing.
  • 201a to 201p are interrupt factors, specifically, a MAC port for executing a specific process.
  • a predetermined interrupt signal interrupt occurrence flag
  • 202a to 202p are interrupt number setting circuits.
  • the number of interrupt factors here, for example, only 16, is prepared, and each is associated with one interrupt factor. For example, taking the interrupt number setting circuit 202a as an example, this circuit is physically connected to interrupt source 1, and when an interrupt occurs in the macro, an interrupt signal indicating that fact is input. .
  • the interrupt number setting circuit 202a specifically includes a register 202a_1 and a decoder 202a-12, and the register 202a_1 includes an interrupt assigned in advance to the interrupt factor 1 by the CPU 200.
  • the interrupt number 15 is set.
  • the decoder 202a-2 is a circuit that outputs a signal to any one of a plurality of bus lines according to the contents held in the register 202a-1.
  • Reference numeral 203 denotes a controller determination circuit, which comprises seven OR circuits 203a to 203g in the example of FIG. 2 for the number of interrupt numbers.
  • the controller determining circuit 203 converts the signals output from the decoders 202a-2 to 202p-2 of the interrupt number setting circuits 202a to 202p by OR circuits 203a to 203g into interrupt controllers 204a to 204 described later. It is a circuit to assign to any of g.
  • Reference numeral 204 denotes an interrupt controller, which is composed of seven interrupt controllers 204a to 204g in the example of FIG. 2 for the number of interrupts. In the following description, unless otherwise specified, 204 a to 204 g and their aggregate 204 are also called “interrupt controllers”.
  • FIG. 3 is a flowchart illustrating a procedure of an interrupt control process in the interrupt control device according to the first embodiment of the present invention.
  • the CPU 200 executing the predetermined program for setting the interrupt information sends, to each of the interrupt controllers 204 a to 204 g, the conditions of the interrupt specified by the interrupt numbers 15 to 21 (interrupt level, interrupt destination address, (Such as an interrupt level mask value) (step S301).
  • the CPU 200 sets the interrupt numbers assigned to the corresponding interrupt factors 201a to 201p in the registers 202a-1 to 202p-1 of the interrupt number setting circuits 202a to 202p (step S 302).
  • the register 202a-1 is set with the interrupt number 15 assigned to the interrupt factor 201a, and the register 202b-1 is set with a predetermined value indicating that no interrupt number is assigned. Note that the order of step S301 and step S302 may be reversed.
  • step S303: Yes the interrupt 202 set in the interrupt number setting circuit 202a that receives the interrupt signal is sent from the register 202a-1.
  • the number is read out to the decoder 202a-2 (step S304).
  • the above number is decoded by the decoder 202a-2, that is, a signal is output to one of the bus lines from the decoder 202a-2 (step S305), and the OR circuit to which this signal is input is output.
  • the output being 1 only in the OR circuit 203 a among 203 a to 203 g, an interrupt signal is input to the interrupt controller 204 a connected to the circuit (step S 306).
  • the interrupt controller 204a executes the program of the interrupt address according to the priority set therein and the like (step S307).
  • the process returns to step S303 to execute a new interrupt. Wait state.
  • the combination of interrupts, the interrupt number corresponding to each interrupt, and the interrupt condition change depending on which register of the interrupt number setting circuits 202a to 202 is set to which interrupt number. It can be done. Therefore, the same interrupt control device can be directly connected to various devices only by changing the setting of the interrupt number or the like in terms of hardware. Also, since there is no needless mounting of a controller for interrupts that are not used at the embedded destination, the circuit scale can be reduced and power consumption can be reduced. You.
  • the number of outputs from each of the decoders 202 a_2 to 202 p-2 of the interrupt number setting circuits 202 a to 202 p, and the OR circuit 203 in the controller determination circuit 203 The number of inputs to a to 203 must be the same as the number of interrupt factors 201 a to 201 p (16 in the above example).
  • the circuits from the interrupt number setting circuits 202a to 202p to the interrupt controllers 204a to 204g become complicated and large-scale. There was a problem that would. Therefore, the circuit may be simplified by providing a certain restriction on the setting of the interrupt number as in Embodiment 2 described below.
  • FIG. 4 is an explanatory diagram schematically showing a hardware configuration of the interrupt control device according to the second embodiment of the present invention.
  • the number of interrupt sources is 12 (16 in the first embodiment), and three interrupt numbers are assigned to them (seven in the first embodiment). Shall be.
  • the interrupt number setting circuits 202a to 202p are connected to the seven OR circuits 203a to 203g, respectively.
  • ⁇ 4021 are only connected to two OR circuits each.
  • the signal output from the interrupt number setting circuit 402a corresponding to the interrupt cause 401a is not input to the 403a and 403b of the OR circuits 403a to 403f in the preceding stage. Further, since the above signal is input to only 404a or 404 of the three interrupt controllers via the subsequent OR circuits 403g and 403h, the 0th one of the three interrupt processes prepared in advance is used. Processing and the first processing and the power can not be activated.
  • interrupt number setting circuit 402a In other words, "00" is stored in the register in the interrupt number setting circuit 402a. Indicates that even if an interrupt number other than “01” is set, the wiring cannot be executed due to hardware. Conversely, the interrupt numbers that can be set in the interrupt number setting circuit 402 a are limited to either “0 0” or “01”.
  • FIG. 5 is a list of interrupt numbers that can be set for each of the interrupt number setting circuits 402 a to 420 1 according to the second embodiment. As shown in Fig. 5, each circuit has a limit on the interrupt number that can be set. For example, it is not possible to set the interrupt number "0 2" in the interrupt number setting circuit 402a.
  • the wiring in the controller determination circuit 403 can be greatly simplified in exchange for this. This effect increases as the number of interrupt sources increases.
  • the first and second embodiments are examples in which interrupts from various macros connected to the interrupt control device are permitted.However, in some cases, conversely, it is desired to prohibit interrupts from a specific macro port. is there.
  • FIG. 6 is an explanatory diagram schematically showing the hardware configuration of the interrupt control device according to the third embodiment, focusing on this difference.
  • one signal line output from the decoder 602 b in the interrupt number setting circuit 602 is connected to the interrupt disable register 601 a in the interrupt source 601.
  • the CPU 600 sets a predetermined value (interruption prohibition number) indicating that the interrupt is disabled in the register 62a, the value is decoded. The value becomes 1 on the output line of the decoder 602 b, and this signal is input to the interrupt disable register 601 a.
  • An interrupt disable flag is set in the interrupt disable register 601a that receives this signal, and the interrupt factor 601 does not output an interrupt signal as long as the above flag is set.
  • the CPU 6000 rewrites the register 602a to set the interrupt number instead of the interrupt disable number, the disable flag of the interrupt disable register 601a is also released.
  • interrupt prohibition was implemented by setting the interrupt level to 0, so the interrupt signal itself was transmitted from the interrupt source to the interrupt controller. Since it is not generated, the circuit is not occupied by interrupts that are prohibited anyway, and processing is efficient.
  • a user who incorporates the system LSI according to the present invention into various devices simply changes the interrupt number or the interrupt disable number set in the register for each interrupt factor. Since the ability to use interrupts and the processing when an interrupt occurs can be switched arbitrarily, an interrupt control method that can perform the various interrupt controls required by the user while suppressing the circuit size And it is suitable for interrupt control devices, especially for system LSIs with excellent versatility and cost performance.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Bus Control (AREA)

Abstract

 個々の割り込み要因(マクロ)ごとにレジスタとデコーダからなる割り込み番号設定回路を設け、レジスタ内に任意の割り込み番号を設定しておく。そして、たとえば割り込み要因(201a)で割り込みが発生すると、レジスタ(202a−1)に設定された割り込み番号15がデコーダ(202a−2)に読み出され、当該番号に対応するバスラインの1本から割り込み信号が出力される。上記信号はコントローラ決定回路(203)内のOR回路(203a~203g)により、複数ある割り込みコントローラのうちいずれか一つ、ここでは(204a)に振り分けられ、これを受けたコントローラ(204a)により割り込み番号15の割り込み処理が実行される。それによって、回路規模を抑制しつつもユーザが必要とする多種多様な割り込み制御を行うことが可能となる。

Description

明 細 書 割り込み制御方法および割り込み制御装置 技術分野
この発明は、 複数の割り込みコントローラのうち、 他の装置からの割り込み信 号が入力した一つの割り込みコントローラにより所定の割り込み処理を実行する 割り込み制御方法および割り込み制御装置に関する。 背景技術
パーソナル'コンピュータや電子手帳などのいわゆる情報機器だけでなく、 A V機器、 調理機器、 冷蔵庫、 洗濯機、 エアコンなど、 一般に普及したほとんどす ベての電化製品は、 CPU (Ce n t r a l P r o c e s s i n g Un i t ) によって制御されるようになっている。
そして、 CPUの利用局面の拡大と平行して、 あらゆる機器に搭載可能な、 多 機能 ·高機能でかつ汎用性の高いシステム L S Iの研究 ·開発が精力的になされ ている。
こうしたチップで、 家電メーカーなどのユーザが必要に応じて必要な機能を選 択できるようになれば、 チップ一つで製品ごとに LS Iを作り替える必要がなく なり、 開発費や工場の初期投資額を抑えることができる。
しかしながら、 チップの汎用性を高めれば高めようとするほど、 その回路が複 雑'大規模になることは避けられない。 特に、 こうしたチップには製品により多 種多様なマク口が接続されるので、 これらのマクロからの割り込みを制御するだ けでも複雑 ·大規模な回路を要する。
すなわち、 従来のシステム LS Iでは第 7図に示すように、 ハードウェア設計 の時点で一つの割り込み要因 (マクロ) に一つの割り込み番号、 さらに言えば当 該番号で特定される処理を行う割り込みコントローラを固定的に対応づけていた たとえば、 第 7図中、 割り込み要因 1で割り込みを必要とする何らかの事象が 発生すると、 割り込み要因 1で生成された割り込み信号は、 割り込み番号 1 5の 割り込みコントローラ以外には物理的に入力しないようになっている。 そして、 上記コントローラは上記信号が入力すると、 自己の保持する割り込みレベル.割 り込み先ァドレスなどの条件にしたがって 1 5番の割り込み処理を実行する。 したがって、 上記従来技術では、 このシステム L S Iに接続されることが予想 されるすべての割り込み要因の数だけ割り込み機構を設けることが必須となり、 回路の複雑ィ匕 '大規模化の原因となっていた。 そして、 家電など、 組み込み先の 製品のユーザからは、 特に L S Iの小型ィ匕 (部品そのものの小型化あるいは削減 ) や価格抑制の要請が強い。
上記の点に関して、 従来技術の中には割り込み番号の一覧表を書き換え可能な メモリに保持しておき、 上記メモリのアドレスを指定して、 当該アドレスに格納 された割り込み番号により割り込み先を決定するものがある。 この従来技術によ れば、 上記メモリを書き換えることで割り込み先をダイナミックに変更できるが 、 その他の割り込み条件などは変更することができない (たとえば特開平 1 0— 1 1 4 1 1号公報を参照。)。
この発明は上記従来技術による問題を解決するため、 回路規模を抑制しつつも ユーザが必要とする多種多様な割り込み制御を行うことが可能な割り込み制御方 法および割り込み制御装置を提供することを目的とする。 発明の開示
上述した課題を解決し、 目的を達成するため、 この発明にかかる割り込み制御 方法または割り込み制御装置は、 複数の割り込みコントローラのうち、 他の装置 からの割り込み信号が入力した一つの割り込みコントローラにより所定の割り込 み処理を実行する割り込み制御方法 Z割り込み制御装置であって、 前記他の装置 ごとに割り込み番号を設定するようにし、 設定された割り込み番号にもとづいて 前記複数の割り込みコントローラのうち一つを決定する。
また、 この発明にかかる割り込み制御方法または割り込み制御装置は、 前記他 の装置ごとのレジスタに前記割り込み番号を設定するようにしてもよい。 また、 前記割り込み信号を入力する割り込みコントローラを、 前記複数の割り込みコン トローラのうち一部の割り込みコントローラの中から決定するようにしてもよい 。 さらに、 前記他の装置の割り込みを禁止するための割り込み禁止番号を設定す るようにし、 割り込み禁止番号が設定された前記他の装置には、 割り込みが禁止 されたことを通知するようにしてもよい。 さらにまた、 前記他の装置ごとのレジ スタに前記割り込み禁止番号を設定するようにしてもよい。
これらの発明によって、 本発明にかかるシステム L S Iを家電などの各種機器 に組み込むユーザは、 割り込み要因ごとのレジスタに設定する割り込み番号や割 り込み禁止番号を変化させるだけで、 どの割り込みを使用するかや割り込み発生 時の処理などを任意に切り替えることができる。 図面の簡単な説明
第 1図は、 この発明の実施の形態 1にかかる割り込み制御装置が組み込まれる 各種機器のうち、 ある機器 Aにおける割り込み要因の組み合わせと、 個々の割り 込み要因に割り当てられた割り込み番号および割り込み条件との関係を示す説明 図であり、 第 2図は、 この発明の実施の形態 1にかかる割り込み制御装置のハー ドウエア構成を模式的に示す説明図であり、 第 3図は、 この発明の実施の形態 1 にかかる割り込み制御装置における、 割り込み制御処理の手順を示すフローチヤ ートであり、 第 4図は、 この発明の実施の形態 2にかかる割り込み制御装置のハ 一ドウエア構成を模式的に示す説明図であり、 第 5図は、 この発明の実施の形態 2にかかる割り込み番号設定回路 4 0 2 a〜4 0 2 1のそれぞれに設定可能な割 り込み番号の一覧を示す説明図であり、 第 6図は、 この発明の実施の形態 3にか 力る割り込み制御装置のハードウエア構成を模式的に示す説明図であり、 第 7図 は、 従来技術にかかる割り込み制御装置のハードウエア構成を模式的に示す説明 図である。 発明を実施するための最良の形態
以下に添付図面を参照して、 この発明にかかる割り込み制御方法および割り込 み制御装置の好適な実施の形態を詳細に説明する。
(実施の形態 1)
第 1図は、 この発明の実施の形態 1にかかる割り込み制御装置 (具体的には、 家電などの各種機器に組み込まれるシステム LS I) が組み込まれる各種機器の うち、 ある機器 Aにおける割り込み要因の組み合わせと、 個々の割り込み要因に 割り当てられた割り込み番号および割り込み条件との関係を示す説明図である。 第 1図に示すように、 機器 Aにおいては割り込み要因 1, 4, 6, 7, 8, 1 3, 15の 7つの割り込みし力想定されておらず、 各要因に割り込み番号 15, 16, 17, 18, 19, 20, 21が割り当てられているものとする。 なお、 Aとは別の機器 Bでは、 第 1図とは割り込み要因の組み合わせや各要因間の割り 込みの優先順位なども異なる。
つぎに、 第 2図はこの発明の実施の形態 1にかかる割り込み制御装置のハード ウェア構成を模式的に示す説明図である。 第 2図には、 本発明にかかる割り込み 制御装置であるシステム LS I上の各種回路のうち、 本発明に関係のある部分の みを示している。
第 2図中、 200は CPUであり、 後述する割り込み番号設定回路 202 a〜 202 p内の各レジスタに割り込み番号を設定するとともに、 後述する割り込み コントローラ 204 a〜204 gに割り込みレベルや割り込み先ァドレスなど、 割り込み処理に必要な諸情報を設定する。
201 a〜201 pは割り込み要因、 具体的には特定の処理を実行するマク口 などであり、 割り込みを必要とする事象が発生すると、 所定の割り込み信号 (割 り込み発生フラグ) を後述する割り込み番号設定回路 202 a〜202pに出力 する。 202 a〜202 pは割り込み番号設定回路であり、 割り込み要因の数、 ここ ではたとえば 16個だけ用意されて、 それぞれが一つの割り込み要因に対応づけ られている。 たとえば割り込み番号設定回路 202 aを例に取ると、 この回路は 割り込み要因 1に物理的に接続され、 当該マクロで割り込みが発生した場合に、 その事実を示す割り込み信号が入力するようになっている。
また、 割り込み番号設定回路 202 aは具体的にはレジスタ 202 a _ 1とデ コーダ 202 a一 2により構成され、 レジスタ 202 a _ 1には CPU 200に より、 あらかじめ割り込み要因 1に割り当てられた割り込み番号、 第 1図の例で は割り込み番号 15が設定されている。 そして、 デコーダ 202 a— 2はレジス タ 202 a— 1の保持内容にしたがって、 複数あるバスラインのうちいずれか 1 本に信号を出力する回路である。
203はコントローラ決定回路であり、 割り込み番号の個数分、 第 2図の例で は 7個の OR回路 203 a〜203 gにより構成される。 コントローラ決定回路 203は、 割り込み番号設定回路 202 a〜202 pのデコーダ 202 a— 2〜 202 p— 2から出力された信号を、 OR回路 203 a〜203 gにより、 後述 する割り込みコントローラ 204 a〜 204 gのいずれかに振り分ける回路であ る。
204は割り込みコントローラであり、 割り込み番号の個数分、 第 2図の例で は 7個の割り込みコントローラ 204 a〜204 gにより構成される。 なお、 以 下では特に区別する必要のない限り、 204 a〜204 gのほかそれらの集合体 である 204も 「割り込みコントローラ」 と呼ぶ。
つぎに、 第 3図はこの発明の実施の形態 1にかかる割り込み制御装置における 、 割り込み制御処理の手順を示すフローチャートである。 まず、 割り込み情報設 定用の所定のプログラムを実行する CPU 200が、 割り込みコントローラ 20 4 a〜204 gのそれぞれに、 割り込み番号 15〜 21で特定される割り込みの 条件 (割り込みレベル、 割り込み先アドレス、 割り込みレベルマスク値など) を 設定する (ステップ S 301)。 つぎに、 CPU 200は割り込み番号設定回路 202 a~202 pのレジスタ 202 a— l〜202 p— 1に、 対応する割り込み要因 201 a~201 pに割 り当てられた割り込み番号を設定する (ステップ S 302)。 たとえば、 レジスタ 202 a— 1には割り込み要因 201 aに割り当てられた割り込み番号 15が、 レジスタ 202 b—1には割り込み番号が割り当てられていないことを示す所定 の値が、 それぞれ設定される。 なお、 ステップ S 301とステップ S 302とは 順序が逆であってもよい。
その後、 たとえば割り込み要因 201 aから割り込み信号が入力すると (ステ ップ S 303 : Y e s )、 これを受けた割り込み番号設定回路 202 a内のレジス タ 202 a— 1から、 そこに設定された割り込み番号がデコーダ 202 a— 2へ - 読み出される (ステップ S 304)。
そして、 デコーダ 202 a— 2により上記番号がデコードされる、 すなわちデ コーダ 202 a - 2からのバスラインのいずれか 1本に信号が出力され (ステツ プ S 305)、 この信号が入力した OR回路 203 a~203 g中、 OR回路 20 3 aのみで出力が 1となる結果、 当該回路に接続された割り込みコントローラ 2 04 aに割り込み信号が入力する (ステップ S 306)。
そして、 割り込みコントローラ 204 aはそこに設定された優先順位などに応 じて、 割り込み先ァドレスのプログラムを実行し (ステップ S 307)、 当該プロ グラムが終了すると、 ステップ S 303に戻って新たな割り込みの待ち状態とな る。
以上説明した実施の形態 1によれば、 割り込み番号設定回路 202 a〜202 のどのレジスタにどの割り込み番号を設定するかによって、 割り込みの組み合 わせと各割り込みに対応する割り込み番号および割り込み条件を変化させること ができる。 そのため、 ハードウェア的には同一の割り込み制御装置を、 割り込み 番号の設定などを変更するだけで種々の装置にそのまま糸且み込むことができる。 また、 組み込み先では使用しない割り込みのためのコントローラを無駄に搭載 することがないので、 回路規模を抑制できるほか、 消費電力も抑えることができ る。
(実施の形態 2)
さて、 上述した実施の形態 1にかかる割り込み制御装置では、 割り込み番号設 定回路 202 a〜202 pの各デコーダ 202 a_2〜202 p— 2からの出力 本数、 およびコントローラ決定回路 203内の OR回路 203 a〜203 への 入力本数は、 いずれも割り込み要因 201 a〜201 pの数だけ (上記の例では 16本) 必要である。
そのため、 装置の汎用性を高めるために多数の割り込み要因に対応しようとす ると、 割り込み番号設定回路 202 a〜202 pから割り込みコントローラ 20 4 a〜204 gに至る回路が複雑化 ·大規模化してしまうという問題があった。 そこで、 以下に説明する実施の形態 2のように、 割り込み番号の設定に一定の制 限を設けることで上記回路を簡素化するようにしてもよい。
第 4図は、 この発明の実施の形態 2にかかる割り込み制御装置のハードウエア 構成を模式的に示す説明図である。 なお、 実施の形態 2にかかる割り込み制御装 置では、 割り込み要因は 12個 (実施の形態 1では 16個)、 それらに割り当てら れる割り込み番号は 3個 (実施の形態 1では 7個) であるものとする。
第 2図に示した実施の形態 1では、 割り込み番号設定回路 202 a〜202 p は 7つの OR回路 203 a〜203 gにそれぞれ接続されていたが、 実施の形態 2の割り込み番号設定回路 402 a〜4021は、 それぞれ 2つの OR回路に接 続されるのみである。
たとえば、 割り込み要因 401 aに対応する割り込み番号設定回路 402 aか ら出力した信号は、 前段の OR回路 403 a〜403 f のうち 403 aと 403 bにしカ入力しなレ、。 さらに、 上記信号はその後段の OR回路 403 g, 403 hを経由して、 3つの割り込みコントローラのうち 404 aあるいは 404 に しか入力しないので、 あらかじめ用意された 3つの割り込み処理のうち、 0番の 処理と 1番の処理とし力起動することができなレ、。
言い換えれば、 割り込み番号設定回路 402 a内のレジスタに 「00」 あるい は 「0 1」 以外の割り込み番号を設定しても、 ハードウェア的に当該処理が実行 できない配線となっている。 逆に言えば、 割り込み番号設定回路 4 0 2 aに設定 できる割り込み番号は、 「0 0」 または 「0 1」 のいずれかに限定される。
第 5図は、 実施の形態 2にかかる割り込み番号設定回路 4 0 2 a 〜 4 0 2 1の それぞれに設定可能な割り込み番号の一覧である。 第 5図に示すように、 各回路 には設定可能な割り込み番号の制限があり、 たとえば割り込み番号設定回路 4 0 2 aに割り込み番号 「0 2」 を設定することはできなレ、。
このように、 実施の形態 2においては設定可能な割り込み番号の自由度がやや 制限を受けるものの、 それと引き換えにコントローラ決定回路 4 0 3内の配線を 大幅に簡素化することができる。 割り込み要因の数が増えるほどこの効果は大き くなる。
(実施の形態 3 )
さて、 上述した実施の形態 1および 2は、 割り込み制御装置に接続された各種 マクロからの割り込みを許可する例であるが、 場合によっては、 逆に特定のマク 口からの割り込みを禁止したいことがある。
そこで、 以下に説明する実施の形態 3のように、 割り込み設定回路内のレジス タに割り込み禁止を意味する所定の値を設定しておき、 この値が設定されている 場合は対応する割り込み要因が割り込み信号を発生しないようにしてもよい。 本発明の実施の形態 3にかかる割り込み制御装置のハードウエア構成は、 第 2 図に示した実施の形態 1あるいは第 4図に示した実施の形態 2とほぼ同様である 力 割り込み番号設定回路の周辺の配線にやや差異がある。 第 6図はこの差異を 中心に、 実施の形態 3にかかる割り込み制御装置のハードウエア構成を模式的に 示す説明図である。
図示するように、 割り込み番号設定回路 6 0 2内のデコーダ 6 0 2 bから出力 する信号線が 1本、 割り込み要因 6 0 1内の割り込み禁止レジスタ 6 0 1 aに接 続されている。 そして C P U 6 0 0により、 割り込み禁止を意味する所定の値 ( 割り込み禁止番号) がレジスタ 6 0 2 aに設定されると、 当該値をデコードした デコーダ 6 0 2 bの上記出力線で値が 1となり、 この信号が割り込み禁止レジス タ 6 0 1 aに入力する。 '
そして、 この信号を受けた割り込み禁止レジスタ 6 0 1 aには割り込み禁止フ ラグが立ち、 割り込み要因 6 0 1は、 上記フラグが立っている限りは割り込み信 号を出力しない。 なお、 C P U 6 0 0がレジスタ 6 0 2 aを書き換えて、 割り込 み禁止番号の代わりに割り込み番号を設定すると、 それに伴つて割り込み禁止レ ジスタ 6 0 1 aの禁止フラグも解除される。
以上説明した実施の形態 3によれば、 割り込み番号設定回路 6 0 2に割り込み 番号でなく割り込み禁止番号を設定することで、 当該回路に対応する割り込み要 因の割り込みを禁止することができる。
従来技術では、 割り込みの禁止は割り込みレベルを 0にすることで実現してい たので、 割り込み信号自体は割り込み要因から割り込みコントローラまで伝送さ れていたのであるが、 本発明によればそもそも割り込み信号が発生されないため 、 いずれにせよ禁止される割り込みのために回路が占有されることなく、 処理が 効率的である。 産業上の利用可能性
以上のように本発明によれば、 本発明にかかるシステム L S Iを家電などの各 種機器に組み込むユーザは、 割り込み要因ごとのレジスタに設定する割り込み番 号や割り込み禁止番号を変化させるだけで、 どの割り込みを使用する力や割り込 み発生時の処理などを任意に切り替えることができるので、 回路規模を抑制しつ つもユーザが必要とする多種多様な割り込み制御を行うことが可能な割り込み制 御方法および割り込み制御装置、 特に、 汎用性およびコストパフォーマンスに優 れたシステム L S Iに適している。

Claims

請 求 の 範 囲
1 . 複数の割り込みコントローラのうち、 他の装置からの割り込み信号が入力し た一つの割り込みコントローラにより所定の割り込み処理を実行する割り込み制 御方法であって、
前記他の装置ごとに割り込み番号を設定する割り込み番号設定工程と、 前記割り込み番号設定工程で設定された割り込み番号を読み出す割り込み番号 読み出し工程と、
前記割り込み番号読み出し工程で読み出された割り込み番号にもとづいて前記 複数の割り込みコントローラのうち一つを決定するコントローラ決定工程と、 を含んだことを特徴とする割り込み制御方法。
2 . 前記割り込み番号設定工程では、 前記他の装置ごとのレジスタに前記割り込 み番号を設定することを特徴とする請求の範囲第 1項に記載の割り込み制御方法
3 . 前記コントローラ決定工程では、 前記割り込み信号を入力する割り込みコン トローラを、 前記複数の割り込みコントローラのうち一部の割り込みコントロー ラの中から決定することを特徴とする請求の範囲第 1項または請求の範囲第 2項 に記載の割り込み制御方法。
4 . さらに、 前記他の装置の割り込みを禁止するための割り込み禁止番号を設定 する割り込み禁止番号設定工程と、
前記割り込み禁止番号設定工程で設定された割り込み禁止番号を読み出す割り 込み禁止番号読み出し工程と、
前記割り込み禁止番号読み出し工程で割り込み禁止番号が読み出された前記他 の装置に、 割り込みが禁止されたことを通知する割り込み可否通知工程と、 を含んだことを特徴とする請求の範囲第 1項または請求の範囲第 2項に記載の 割り込み制御方法。
5 . 前記割り込み禁止番号設定工程では、 前記他の装置ごとのレジスタに前記割 り込み禁止番号を設定することを特徴とする請求の範囲第 4項に記載の割り込み 制御方法。
6 . 前記割り込み番号設定工程で前記割り込み番号を設定されるレジスタと、 前 記割り込み禁止番号設定工程で前記割り込み禁止番号を設定されるレジスタとは 同一であることを特徴とする請求の範囲第 5項に記載の割り込み制御方法。
7 . 複数の割り込みコントローラのうち、 他の装置からの割り込み信号が入力し た一つの割り込みコントローラにより所定の割り込み処理を実行する割り込み制 御装置であって、
前記他の装置ごとに割り込み番号を設定する割り込み番号設定手段と、 前記割り込み番号設定手段により設定された割り込み番号を読み出す割り込み 番号読み出し手段と、
前記割り込み番号読み出し手段により読み出された割り込み番号にもとづいて 前記複数の割り込みコントローラのうち一つを決定するコント口ーラ決定手段と を備えたことを特徴とする割り込み制御装置。
8 . 前記割り込み番号設定手段は、 前記他の装置ごとのレジスタに前記割り込み 番号を設定することを特徴とする請求の範囲第 7項に記載の割り込み制御装置。
9 . 前記割り込み番号読み出し手段はデコーダであり、 前記割り込み番号設定手 段により設定された割り込み番号に対応するパスラインに割り込み信号を出力す ることを特徴とする請求の範囲第 7項または請求の範囲第 8項に記載の割り込み 制御装置。
1 0 . 前記コントローラ決定手段は、 前記割り込み番号読み出し手段から出力さ れた割り込み信号を複数の O R回路によりレ、ずれか一つの割り込みコントローラ に入力することで、 前記複数の割り込みコントローラのうち一つを決定すること を特徴とする請求の範囲第 9項に記載の割り込み制御装置。
1 1 . 前記コントローラ決定手段は、 前記割り込み信号を入力する割り込みコン トローラを、 前記複数の割り込みコントローラのうち一部の割り込みコントロー ラの中から決定することを特徴とする請求の範囲第 1 0項に記載の割り込み制御 装置。
1 2. さらに、 前記他の装置の割り込みを禁止するための割り込み禁止番号を設 定する割り込み禁止番号設定手段と、
前記割り込み禁止番号設定手段により設定された割り込み禁止番号を読み出す 割り込み禁止番号読み出し手段と、
前記割り込み禁止番号読み出し手段により割り込み禁止番号が読み出された前 記他の装置に、 割り込みが禁止されたことを通知する割り込み可否通知手段と、 を備えたことを特徴とする請求の範囲第 7項または請求の範囲第 8項に記載の 割り込み制御装置。
1 3 . 前記割り込み禁止番号設定手段は、 前記他の装置ごとのレジスタに前記割 り込み禁止番号を設定することを特徴とする請求の範囲第 1 2項に記載の割り込 み制御装置。
1 4. 前記割り込み番号設定手段により前記割り込み番号を設定されるレジスタ と、 前記割り込み禁止番号設定手段により前記割り込み禁止番号を設定されるレ ジスタとは同一であることを特徴とする請求の範囲第 1 3項に記載の割り込み制 御装置。
PCT/JP2003/000670 2003-01-24 2003-01-24 割り込み制御方法および割り込み制御装置 WO2004066150A1 (ja)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP2004567141A JPWO2004066150A1 (ja) 2003-01-24 2003-01-24 割り込み制御方法および割り込み制御装置
PCT/JP2003/000670 WO2004066150A1 (ja) 2003-01-24 2003-01-24 割り込み制御方法および割り込み制御装置
EP03701871A EP1562116A1 (en) 2003-01-24 2003-01-24 Interrupt control method and interrupt control device
CNB038240785A CN100336022C (zh) 2003-01-24 2003-01-24 中断控制方法和中断控制装置
AU2003203386A AU2003203386A1 (en) 2003-01-24 2003-01-24 Interrupt control method and interrupt control device
US11/084,010 US20050165990A1 (en) 2003-01-24 2005-03-21 Interrupt control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2003/000670 WO2004066150A1 (ja) 2003-01-24 2003-01-24 割り込み制御方法および割り込み制御装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US11/084,010 Continuation US20050165990A1 (en) 2003-01-24 2005-03-21 Interrupt control device

Publications (1)

Publication Number Publication Date
WO2004066150A1 true WO2004066150A1 (ja) 2004-08-05

Family

ID=32750595

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2003/000670 WO2004066150A1 (ja) 2003-01-24 2003-01-24 割り込み制御方法および割り込み制御装置

Country Status (5)

Country Link
EP (1) EP1562116A1 (ja)
JP (1) JPWO2004066150A1 (ja)
CN (1) CN100336022C (ja)
AU (1) AU2003203386A1 (ja)
WO (1) WO2004066150A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100458708C (zh) * 2005-07-05 2009-02-04 英业达股份有限公司 中断控制系统及方法

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100397375C (zh) * 2005-12-02 2008-06-25 北京中星微电子有限公司 多中断处理单元的中断处理的装置和方法
US8291202B2 (en) * 2008-08-08 2012-10-16 Qualcomm Incorporated Apparatus and methods for speculative interrupt vector prefetching
JP6266239B2 (ja) * 2013-07-11 2018-01-24 ルネサスエレクトロニクス株式会社 マイクロコンピュータ

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01113834A (ja) * 1987-10-28 1989-05-02 Hitachi Ltd データ処理装置
JPH0367338A (ja) * 1989-08-05 1991-03-22 Mitsubishi Electric Corp 割り込み制御回路
JPH04309134A (ja) * 1991-04-08 1992-10-30 Nec Corp 割り込み制御回路
US5161228A (en) * 1988-03-02 1992-11-03 Ricoh Company, Ltd. System with selectively exclusionary enablement for plural indirect address type interrupt control circuit
JPH08221351A (ja) * 1995-02-15 1996-08-30 Fuji Facom Corp 割込み番号の設定処理方式
JPH11149382A (ja) * 1997-11-19 1999-06-02 Nec Eng Ltd 情報処理装置及びマイクロプロセッサの割込み制御装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1113834A (ja) * 1997-06-26 1999-01-22 Rinrin Japan:Kk ホイールバランスウエイト
US6219743B1 (en) * 1998-09-30 2001-04-17 International Business Machines Corporation Apparatus for dynamic resource mapping for isolating interrupt sources and method therefor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01113834A (ja) * 1987-10-28 1989-05-02 Hitachi Ltd データ処理装置
US5161228A (en) * 1988-03-02 1992-11-03 Ricoh Company, Ltd. System with selectively exclusionary enablement for plural indirect address type interrupt control circuit
JPH0367338A (ja) * 1989-08-05 1991-03-22 Mitsubishi Electric Corp 割り込み制御回路
JPH04309134A (ja) * 1991-04-08 1992-10-30 Nec Corp 割り込み制御回路
JPH08221351A (ja) * 1995-02-15 1996-08-30 Fuji Facom Corp 割込み番号の設定処理方式
JPH11149382A (ja) * 1997-11-19 1999-06-02 Nec Eng Ltd 情報処理装置及びマイクロプロセッサの割込み制御装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100458708C (zh) * 2005-07-05 2009-02-04 英业达股份有限公司 中断控制系统及方法

Also Published As

Publication number Publication date
EP1562116A1 (en) 2005-08-10
CN1688975A (zh) 2005-10-26
AU2003203386A1 (en) 2004-08-13
JPWO2004066150A1 (ja) 2006-05-18
CN100336022C (zh) 2007-09-05

Similar Documents

Publication Publication Date Title
JPH05307617A (ja) 半導体装置
KR20040012964A (ko) 캐시 메모리 버스트 싸이클 동안 버스 중재를 제어하는시스템 및 방법
WO1999060488A1 (en) Software configurable technique for prioritizing interrupts in a microprocessor-based system
JP2005243033A (ja) インタラプトコントローラ
JP2004054766A (ja) 情報処理装置
WO2004066150A1 (ja) 割り込み制御方法および割り込み制御装置
US20050165990A1 (en) Interrupt control device
KR100731675B1 (ko) 인터럽트 제어 방법 및 인터럽트 제어 장치
JP2004530966A (ja) イベント処理
JP4491365B2 (ja) 直列インタフェース回路
JP2003058381A (ja) プログラムによる例外処理設定を可能にしたプロセッサ
JPS59218561A (ja) マイクロ・コンピユ−タ
JPH0581040A (ja) コンピユータシステム
JP4911842B2 (ja) 割り込み制御回路
JP5166343B2 (ja) 3次元コンピュータグラフィック用プロセッサ
JP4233446B2 (ja) 集積回路装置
JP3652269B2 (ja) 信号処理装置
JP2006236233A (ja) 割り込みレベル選択回路
JP2000122963A (ja) 割り込み制御装置及び割り込み制御方法
JP2008269549A (ja) マイクロコンピュータ
JP2002091901A (ja) プライオリティエンコーダ
JP2008269548A (ja) マイクロコンピュータ
JP2003162424A (ja) Lsi検証装置
JP2005346673A (ja) 割り込みコントローラ及びシステムlsi
JP2004152321A (ja) データ処理装置

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NO NZ OM PH PL PT RO RU SC SD SE SG SK SL TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PT SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 2004567141

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 11084010

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 2003701871

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 1020057006052

Country of ref document: KR

WWE Wipo information: entry into national phase

Ref document number: 20038240785

Country of ref document: CN

WWP Wipo information: published in national office

Ref document number: 2003701871

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 1020057006052

Country of ref document: KR