JP2019074823A - Interrupt control device - Google Patents

Interrupt control device Download PDF

Info

Publication number
JP2019074823A
JP2019074823A JP2017198938A JP2017198938A JP2019074823A JP 2019074823 A JP2019074823 A JP 2019074823A JP 2017198938 A JP2017198938 A JP 2017198938A JP 2017198938 A JP2017198938 A JP 2017198938A JP 2019074823 A JP2019074823 A JP 2019074823A
Authority
JP
Japan
Prior art keywords
interrupt
signal
factor
interrupt signal
unit
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
JP2017198938A
Other languages
Japanese (ja)
Inventor
知教 飯田
Tomonori Iida
知教 飯田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2017198938A priority Critical patent/JP2019074823A/en
Publication of JP2019074823A publication Critical patent/JP2019074823A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

To provide an interruption control device capable of eliminating a cycle of a processor required for clearing an interrupt factor from being cleared and preventing an interrupt from being lost.SOLUTION: An interrupt controller which receives a first interrupt signal and outputs the interrupt signal as a second interrupt signal, and a processor unit which receives the second interrupt signal and executes interrupt processing are provided. The interruption controller includes interrupt factor holding means for holding the interrupt factor, interrupt factor presenting means for presenting the interrupt factor, and interrupt signal generating means for forming the first interrupt signal in a pulse and outputting the same signal. The processor unit includes edge detection means for detecting an edge of the second interrupt signal, count holding means for counting the number of edges, and interrupt processing control means for executing interrupt processing based on the count value.SELECTED DRAWING: Figure 1

Description

本発明は、割り込み制御装置に関する。   The present invention relates to an interrupt control device.

プロセッサユニット及びその周辺モジュールにより構成されるコンピュータシステムにおいて、周辺モジュールが割り込み通知をプロセッサユニットに通知する場合、周辺モジュールとプロセッサユニット間を割り込み信号で接続する。この割り込み信号を検知したプロセッサユニットは、割り込み要因を判別し、その割り込み通知に応じた手続き処理を行う。またレベル信号出力の割り込み通知は、一旦信号がアサートさると出力が解除されるまでプロセッサユニットにて割り込み通知として検知され続ける。このためプロセッサユニットが割り込み信号を検知した場合は、速やかに周辺モジュールからのレベル信号出力を解除する必要がある。このためプロセッサユニットは周辺モジュールに対し、割り込み信号出力の解除を指示する。このような指示は多くの場合、周辺モジュールが内蔵するレジスタファイルに対するプロセッサユニットからの読み書き操作によって行われる。   In a computer system configured of a processor unit and its peripheral modules, when the peripheral module notifies the processor unit of interrupt notification, the peripheral module and the processor unit are connected by an interrupt signal. The processor unit that has detected this interrupt signal determines the cause of the interrupt, and performs procedure processing according to the interrupt notification. Further, interrupt notification of level signal output continues to be detected as interrupt notification by the processor unit until the output is released once the signal is asserted. Therefore, when the processor unit detects an interrupt signal, it is necessary to immediately release the level signal output from the peripheral module. Therefore, the processor unit instructs the peripheral module to release the interrupt signal output. Such an instruction is often performed by a read / write operation from a processor unit to a register file incorporated in a peripheral module.

一般的なコンピュータシステムでは、上記のような手順で割り込み処理が行われるが、プロセッサユニットからの周辺モジュールのレジスタファイルへのアクセスがプロセッサユニットの処理負荷を上げ、且つ割り込み検知から割り込み解除までの所要時間、すなわち割り込みレイテンシを増加させる原因になる。   In a general computer system, interrupt processing is performed according to the above procedure, but access from the processor unit to the register file of the peripheral module increases the processing load of the processor unit, and it is necessary from interrupt detection to interrupt release. It causes time, ie, an increase in interrupt latency.

また、パルス信号出力の割り込み通知は信号のエッジでアサートを通知するため、割り込み解除の処理は必要ないが、プロセッサユニットが割り込み禁止中等の原因で取りこぼしが発生する可能性がある。   Further, since the interrupt notification of the pulse signal output is notified of the assertion at the edge of the signal, the interrupt release process is not necessary, but there is a possibility that a drop may occur due to the processor unit being disabled.

特許文献1には割り込み要求を監視し取りこぼしなく処理を行う方法が開示されている。   Patent Document 1 discloses a method of monitoring an interrupt request and performing processing without missing it.

特開2010−257035号公報JP, 2010-257035, A

しかしながら、上述の特許文献1に開示された従来技術では、待ち行列がMPUの外部で実施されている。そのためMPUが割り込みの完了を外部に伝える必要がある。MPUと周辺回路とでは周波数差が大きいため、レイテンシが増加する可能性がある。   However, in the prior art disclosed in the above-mentioned Patent Document 1, the queue is implemented outside the MPU. Therefore, the MPU needs to notify the completion of the interrupt to the outside. Since the frequency difference between the MPU and the peripheral circuit is large, the latency may increase.

そこで、本発明の目的は、割り込み要因クリアに要するプロセッサのサイクルを無くし、かつ割り込みが消失されることを防止可能な割り込み制御装置を提供することにある。   Therefore, an object of the present invention is to provide an interrupt control device capable of eliminating the processor cycle required for clearing the interrupt factor and preventing the disappearance of the interrupt.

上記目的を達成するために、本発明に係る割り込み制御装置は、
1つ以上の周辺回路から割り込み信号である第一の割り込み信号を受信し、受信した前記第一の割り込み信号を第二の割り込み信号として出力する割り込みコントローラと、
前記第二の割り込み信号を受信し、割り込み処理を実行するプロセッサユニットと、
を備え、
前記割り込みコントローラは、前記第一の割り込み信号を出力した前記周辺回路を特定するための情報を割り込み要因として保持する割り込み要因保持手段と、前記割り込み要因をプロセッサユニットに提示する割り込み要因提示手段と、前記第一の割り込み信号をパルス形式に成形し、前記第二の割り込み信号として前記プロセッサユニットへ出力する割り込み信号生成手段と、
を有し、
前記プロセッサユニットは、前記第二の割り込み信号のエッジを検出するエッジ検出手段と、前記エッジ検出手段で検出したエッジの数をカウントするカウント保持手段と、前記カウント保持手段の保持するカウント数が0より大きい場合に割り込み処理を実行し、前記割り込み処理が完了した場合に前記カウント保持手段のカウント値をデクリメントする割り込み処理制御手段と、
を有することを特徴とする。
In order to achieve the above object, an interrupt control device according to the present invention is:
An interrupt controller that receives a first interrupt signal that is an interrupt signal from one or more peripheral circuits and outputs the received first interrupt signal as a second interrupt signal;
A processor unit that receives the second interrupt signal and executes interrupt processing;
Equipped with
The interrupt controller holds, as an interrupt factor, information for identifying the peripheral circuit that has output the first interrupt signal, and an interrupt factor presenting unit that presents the interrupt factor to the processor unit. Interrupt signal generating means for shaping the first interrupt signal into a pulse format and outputting the first interrupt signal as the second interrupt signal to the processor unit;
Have
The processor unit includes edge detection means for detecting an edge of the second interrupt signal, count holding means for counting the number of edges detected by the edge detection means, and the count number held by the count holding means is zero. Interrupt processing control means for executing interrupt processing when the interrupt processing is larger and decrementing the count value of the count holding means when the interrupt processing is completed;
It is characterized by having.

本発明によれば、割り込み要因クリアに要するプロセッサのサイクルを無くし、かつ割り込みが消失されることを防止可能な割り込み制御装置を提供することができる。   According to the present invention, it is possible to provide an interrupt control device capable of eliminating the processor cycle required for clearing the interrupt factor and preventing the disappearance of the interrupt.

実施例1における割り込みシステムを示す図である。FIG. 1 is a diagram showing an interrupt system in a first embodiment. 実施例1におけるタイムチャートである。5 is a time chart in Embodiment 1. 実施例1における割り込み信号生成部112の構成を示す図である。FIG. 2 is a diagram showing a configuration of an interrupt signal generation unit 112 in the first embodiment. 実施例1における割り込み信号生成部112の動作を示す図である。FIG. 8 is a diagram showing an operation of the interrupt signal generation unit 112 in the first embodiment. 実施例1における割り込み処理制御部123の動作フローである。7 is an operation flow of the interrupt processing control unit 123 in the first embodiment.

以下に、本発明の好ましい実施の形態を、添付の図面に基づいて詳細に説明する。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the attached drawings.

以下、図1〜2を用いて第1の実施形態について説明する。割り込み制御装置の構成を図1に示す。   The first embodiment will be described below with reference to FIGS. The configuration of the interrupt control device is shown in FIG.

図1において、割り込みシステム100は、第一の割り込み信号101を外部入力とし、割り込みコントローラ110、プロセッサユニット120を有する。第二の割り込み信号102は割り込みコントローラ110から出力され、プロセッサユニット120へ入力される信号である。システムバス103はプロセッサユニット120が割り込みコントローラ110のレジスタへアクセスする際に使用されるバスである。   In FIG. 1, an interrupt system 100 has a first interrupt signal 101 as an external input, and has an interrupt controller 110 and a processor unit 120. The second interrupt signal 102 is a signal output from the interrupt controller 110 and input to the processor unit 120. The system bus 103 is a bus used when the processor unit 120 accesses the registers of the interrupt controller 110.

第一の割り込み信号101は割り込みシステム100の外部にある周辺回路からの割り込み信号である。以下、周辺回路A(不図示)、周辺回路B(不図示)の2つの周辺回路があり、それぞれの周辺回路から1本ずつ割り込み信号が出力されているものとして説明する。すなわち、第一の割り込み信号101は2本の信号線から構成される。また、第一の割り込み信号101はパルス形式の信号として説明する。ただし、本発明はこれに限定されない。第一の割り込み信号101はレベル形式の信号であっても良い。   The first interrupt signal 101 is an interrupt signal from a peripheral circuit outside the interrupt system 100. In the following description, it is assumed that there are two peripheral circuits, peripheral circuit A (not shown) and peripheral circuit B (not shown), and one interrupt signal is output from each of the peripheral circuits. That is, the first interrupt signal 101 is composed of two signal lines. The first interrupt signal 101 is described as a pulse type signal. However, the present invention is not limited to this. The first interrupt signal 101 may be a level format signal.

割り込みコントローラ110は、割り込み要因保持部111、割り込み信号生成部112、割り込み要因提示部113を有する。また、プロセッサユニット120は、エッジ検出部121、カウント値保持部122、割り込み処理制御部123を有する。   The interrupt controller 110 includes an interrupt factor holding unit 111, an interrupt signal generation unit 112, and an interrupt factor presentation unit 113. The processor unit 120 further includes an edge detection unit 121, a count value holding unit 122, and an interrupt processing control unit 123.

割り込み要因保持部111は、アサートされた第一の割り込み信号101の割り込み要因を保持する。ここでの割り込み要因とは、アサートされた第一の割り込み信号101を出力した周辺回路を特定可能な情報である。以下、周辺回路A(不図示)の割り込み要因は割り込み要因A、周辺回路B(不図示)の割り込み要因は割り込み要因Bと表す。   The interrupt factor holding unit 111 holds an interrupt factor of the asserted first interrupt signal 101. The interrupt factor here is information that can identify the peripheral circuit that has output the asserted first interrupt signal 101. Hereinafter, an interrupt factor of the peripheral circuit A (not shown) is represented as an interrupt factor A, and an interrupt factor of the peripheral circuit B (not shown) is represented as an interrupt factor B.

割り込み要因提示部113はプロセッサユニット120に割り込み要因保持部111が保持する割り込み要因を提示する。プロセッサユニット130はシステムバス103経由で割り込み要因提示部113にアクセスし、処理すべき割り込み要因を読み出すことができる。割り込み要因保持部111に複数の要因が保持されている場合は、保持されている割り込み要因の中でより優先順位の高い割り込み要因を提示する。この場合、割り込み要因保持部111は各割り込み要因と優先順位とを対応付けたテーブルを持つことで、より優先順位の高い割り込み要因を判断するようにしても良い。   The interrupt factor presenting unit 113 presents to the processor unit 120 the interrupt factor held by the interrupt factor holding unit 111. The processor unit 130 can access the interrupt factor presenting unit 113 via the system bus 103 and read out the interrupt factor to be processed. When a plurality of factors are held in the interrupt factor holding unit 111, an interrupt factor having a higher priority among the held interrupt factors is presented. In this case, the interrupt factor holding unit 111 may determine an interrupt factor having higher priority by having a table in which each interrupt factor is associated with the priority.

加えて割り込み要因提示部113は、プロセッサユニット120により割り込み要因を読まれた場合、提示した割り込み要因を割り込み要因保持部111から削除する。このように動作することで、同じ割り込み要因が複数回プロセッサユニット120に読み出されることを防止できる。提示する割り込み要因を更新するタイミングは、アサートされた第一の割り込み信号101が増加した場合か、あるいは、プロセッサユニット120により割り込み要因を読まれた場合かのいずれかである。   In addition, when the processor unit 120 reads the interrupt factor, the interrupt factor presenting unit 113 deletes the presented interrupt factor from the interrupt factor holding unit 111. By operating in this manner, the same interrupt factor can be prevented from being read by the processor unit 120 multiple times. The timing to update the presented interrupt factor is either when the asserted first interrupt signal 101 increases or when the processor unit 120 reads the interrupt factor.

割り込み信号生成部112は、アサートされた第一の割り込み信号101の数だけパルスを生成し、第二の割り込み信号102としてプロセッサユニット120へ出力する。パルスを生成する際、予め定められた時間分だけ間隔を空けてパルスを出力する。これは生成するパルスが互いに重なることを回避するためである。   The interrupt signal generation unit 112 generates pulses for the number of asserted first interrupt signals 101 and outputs the pulses to the processor unit 120 as a second interrupt signal 102. When generating the pulse, the pulse is output at intervals for a predetermined time. This is to prevent the generated pulses from overlapping each other.

エッジ検出部121は、第二の割り込み信号102のエッジを検出し、検出した場合、カウント保持部122の保持するカウント値をインクリメントする。   The edge detection unit 121 detects an edge of the second interrupt signal 102, and when it detects, increments the count value held by the count holding unit 122.

カウント保持部122は実行すべき割り込み処理の回数を保持する。リセット時に0に初期化され、リセット解除後はエッジ検出部121または割り込み処理制御部123で操作される。   The count holding unit 122 holds the number of interrupt processes to be executed. It is initialized to 0 at the time of reset, and is operated by the edge detection unit 121 or the interrupt processing control unit 123 after the reset release.

割り込み処理制御部123はカウント保持部122の保持するカウント値が0より大きい場合に、メモリ部(不図示)に格納されるプログラムに従って割り込み処理を実行する。実行後はカウント保持部122の保持するカウント値をデクリメントする。   When the count value held by the count holding unit 122 is larger than 0, the interrupt processing control unit 123 executes the interrupt processing according to the program stored in the memory unit (not shown). After execution, the count value held by the count holding unit 122 is decremented.

本発明の割り込みシステムのタイムチャートの一部を図2に示す。図2において、201は周辺回路A(不図示)が出力する第一の割り込み信号101の時間軸、202は周辺回路B(不図示)が出力する第二の割り込み信号102の時間軸である。203は割り込み信号生成部112の出力する第二の割り込み信号102の時間軸である。204はカウント値保持部122の保持するカウント値の時間軸である。205は割り込み制御処理部123の処理ルーチンの時間軸である。また、211から216は時刻を示す。   A part of the time chart of the interrupt system of the present invention is shown in FIG. In FIG. 2, reference numeral 201 denotes a time axis of a first interrupt signal 101 output by the peripheral circuit A (not shown), and reference numeral 202 denotes a time axis of a second interrupt signal 102 output by the peripheral circuit B (not shown). Reference numeral 203 denotes a time axis of the second interrupt signal 102 output from the interrupt signal generation unit 112. Reference numeral 204 denotes a time axis of the count value held by the count value holding unit 122. Reference numeral 205 denotes a time axis of the processing routine of the interrupt control processing unit 123. Also, 211 to 216 indicate time.

時刻211は周辺回路A(不図示)から第一の割り込み信号101が出力された時刻である。このタイミングで第二の割り込み信号102もアサートされ、カウント値保持部122のカウント値がインクリメントされる。説明のため、第一の割り込み信号101から第二の割り込み信号102が生成されるまでの遅延は省略して図示している。また、第二の割り込み信号102が出力されてからカウント保持部122のカウント値がインクリメントされるまでの遅延も省略して図示している。   Time 211 is the time when the first interrupt signal 101 is output from the peripheral circuit A (not shown). At this timing, the second interrupt signal 102 is also asserted, and the count value of the count value holding unit 122 is incremented. For the sake of explanation, the delay from the first interrupt signal 101 to the generation of the second interrupt signal 102 is omitted. Further, a delay from the output of the second interrupt signal 102 to the increment of the count value of the count holding unit 122 is also omitted.

時刻212は割り込み制御処理部123がカウント値保持部122の保持する値が0より大きいことを検知し、割り込み処理を開始する時刻である。この時刻では割り込み要因提示部113は周辺回路A(不図示)の割り込みのみのアサートであるため、割り込み要因Aを提示する。そのため、時刻212で実行される割り込み処理は周辺回路A(不図示)を要因とする割り込み処理である。   A time 212 is a time when the interrupt control processing unit 123 detects that the value held by the count value holding unit 122 is larger than 0, and starts the interrupt processing. At this time, the interrupt factor presenting unit 113 presents the interrupt factor A because it is the assertion of only the interrupt of the peripheral circuit A (not shown). Therefore, the interrupt process executed at time 212 is an interrupt process caused by the peripheral circuit A (not shown).

時刻213は周辺回路B(不図示)から第一の割り込み信号101が出力された時刻である。このタイミングで第二の割り込み信号102もアサートされ、カウント値保持部122のカウント値がインクリメントされる。先と同様に説明のため、第一の割り込み信号101から第二の割り込み信号102が生成されるまでの遅延は省略して図示している。また、第二の割り込み信号102が出力されてからカウント保持部122のカウント値がインクリメントされるまでの遅延も省略して図示している。時刻213では、割り込み処理制御部123は割り込み禁止区間としているため、周辺回路B(不図示)を要因とする割り込み処理は実行されない。しかしながら、第二の割り込み信号102のパルスはカウント値保持部122が保持しているため消失することは無い。   Time 213 is the time when the first interrupt signal 101 is output from the peripheral circuit B (not shown). At this timing, the second interrupt signal 102 is also asserted, and the count value of the count value holding unit 122 is incremented. As described above, for the sake of explanation, the delay from the generation of the first interrupt signal 101 to the generation of the second interrupt signal 102 is omitted. Further, a delay from the output of the second interrupt signal 102 to the increment of the count value of the count holding unit 122 is also omitted. At time 213, since the interrupt processing control unit 123 sets the interrupt prohibition period, the interrupt processing caused by the peripheral circuit B (not shown) is not executed. However, since the pulse of the second interrupt signal 102 is held by the count value holding unit 122, it does not disappear.

時刻214は周辺回路A(不図示)を要因とする割り込み処理が完了する時刻である。このタイミングで割り込み処理制御部123はカウント値保持部122のカウント値をデクリメントする。   A time 214 is a time at which the interrupt processing caused by the peripheral circuit A (not shown) is completed. At this timing, the interrupt processing control unit 123 decrements the count value of the count value holding unit 122.

時刻215は割り込み処理制御部123がカウント値保持部122の保持する値が0より大きいことを検知し、割り込み処理を開始する時刻である。この時刻では割り込み要因提示部113は周辺回路B(不図示)の割り込みのみのアサートであるため、割り込み要因Bを提示する。そのため、時刻215で実行される割り込み処理は周辺回路B(不図示)を要因とする割り込み処理である。   A time 215 is a time when the interrupt processing control unit 123 detects that the value held by the count value holding unit 122 is larger than 0, and starts the interrupt processing. At this time, the interrupt factor presenting unit 113 presents the interrupt factor B because it is the assertion of only the interrupt of the peripheral circuit B (not shown). Therefore, the interrupt process executed at time 215 is an interrupt process caused by the peripheral circuit B (not shown).

時刻216は周辺回路B(不図示)を要因とする割り込み処理が完了する時刻である。このタイミングで割り込み処理制御部123はカウント値保持部122のカウント値をデクリメントする。時刻216以降は、カウント保持部122のカウント値が0であるため割り込み処理は実行されていない。   A time 216 is a time at which the interrupt processing caused by the peripheral circuit B (not shown) is completed. At this timing, the interrupt processing control unit 123 decrements the count value of the count value holding unit 122. Since the count value of the count holding unit 122 is 0 after time 216, interrupt processing is not executed.

図2で示したタイムチャートの時刻213から分かるように、パルス形式の信号にも関わらず、割り込み禁止区間にプロセッサユニット120に届いた割り込み信号が消失することなく実行できる。また第二の割り込み信号102はパルス形式の信号であるため、割り込み要因クリアに必要なサイクル数を無くすことができる。   As can be seen from the time 213 of the time chart shown in FIG. 2, it can be executed without losing the interrupt signal that has arrived at the processor unit 120 in the interrupt disabled section regardless of the pulse type signal. Further, since the second interrupt signal 102 is a pulse type signal, it is possible to eliminate the number of cycles required for clearing the interrupt factor.

本発明の割り込み信号生成部112の構成例を図3に示す。   A configuration example of the interrupt signal generation unit 112 of the present invention is shown in FIG.

311、321はパルス信号をレベル信号に変換する回路である。312、322はレベル信号からパルス信号に変換する回路である。313はORの論理ゲートである。320は遅延素子である。314はレベルパルス変換部312、322との間のイネーブル信号である。イネーブル信号314、324は出力元となるレベルパルス変換部312、322が動作中であることを示す信号である。   Reference numerals 311 and 321 denote circuits for converting pulse signals into level signals. Reference numerals 312 and 322 denote circuits for converting level signals into pulse signals. 313 is an OR logic gate. 320 is a delay element. 314 is an enable signal between the level pulse conversion units 312 and 322. The enable signals 314 and 324 are signals indicating that the level pulse conversion units 312 and 322 which are output sources are in operation.

図3に示した信号生成部112の動作例を図4に示す。   An operation example of the signal generation unit 112 shown in FIG. 3 is shown in FIG.

図4において、421から426は時刻を示す。   In FIG. 4, 421 to 426 indicate time.

401は周辺回路A(不図示)の出力する第一の割り込み信号101の時間軸、402は周辺回路B(不図示)の出力する第一の割り込み信号101の時間軸である。   401 is a time axis of the first interrupt signal 101 output from the peripheral circuit A (not shown), and 402 is a time axis of the first interrupt signal 101 output from the peripheral circuit B (not shown).

403は遅延素子320の出力信号の時間軸である。遅延素子320は時刻421から時刻422に周辺回路B(不図示)の出力する第一の割り込み信号101を遅延させる。   403 is a time axis of the output signal of the delay element 320. Delay element 320 delays first interrupt signal 101 output from peripheral circuit B (not shown) from time 421 to time 422.

404はパルスレベル変換部311の出力信号の時間軸である。パルスレベル変換部311は周辺回路A(不図示)の出力する第一の割り込み信号101をレベル信号に変換する。   Reference numeral 404 denotes a time axis of the output signal of the pulse level conversion unit 311. The pulse level converter 311 converts the first interrupt signal 101 output from the peripheral circuit A (not shown) into a level signal.

405はレベルパルス変換部312の出力信号の時間軸である。レベルパルス変換部312は、他のレベルパルス変換部が動作中か否かを確認し、レベル信号からパルス信号を生成し出力する。本実施例では、レベルパルス変換部312はイネーブル信号324の状態がディセーブル状態であれば、パルス信号を出力する。加えて、レベルパルス変換部312はパルス信号を出力後、パルスレベル変換部311にフィードバックをかけ、パルスレベル変換部311はレベル信号を立ち下げる。   405 is a time axis of the output signal of the level pulse converter 312. The level pulse converter 312 confirms whether another level pulse converter is in operation, and generates and outputs a pulse signal from the level signal. In the present embodiment, the level pulse conversion unit 312 outputs a pulse signal if the state of the enable signal 324 is the disable state. In addition, after the level pulse conversion unit 312 outputs the pulse signal, feedback is given to the pulse level conversion unit 311, and the pulse level conversion unit 311 causes the level signal to fall.

406はレベルパルス変換部312のイネーブル信号の時間軸である。レベルパルス変換部312がパルス信号を生成、出力している期間、イネーブル状態を示す。   Reference numeral 406 denotes a time axis of the enable signal of the level pulse conversion unit 312. While the level pulse converter 312 generates and outputs a pulse signal, it shows the enabled state.

407はパルスレベル変換部321の出力信号の時間軸である。パルスレベル変換部321は周辺回路B(不図示)の出力する第一の割り込み信号101をレベル信号に変換する。   Reference numeral 407 denotes a time axis of the output signal of the pulse level converter 321. The pulse level converter 321 converts the first interrupt signal 101 output from the peripheral circuit B (not shown) into a level signal.

408はレベルパルス変換部322の出力信号の時間軸である。レベルパルス変換部322は、他のレベルパルス変換部が動作中か否かを確認し、レベル信号からパルス信号を生成し出力する。本実施例では、レベルパルス変換部322はイネーブル信号314の状態がディセーブル状態であれば、パルス信号を出力する。加えて、レベルパルス変換部322はパルス信号を出力後、パルスレベル変換部321にフィードバックをかけ、パルスレベル変換部321はレベル信号を立ち下げる。   Reference numeral 408 denotes a time axis of the output signal of the level pulse converter 322. The level pulse converter 322 confirms whether or not another level pulse converter is in operation, and generates and outputs a pulse signal from the level signal. In the present embodiment, the level pulse converter 322 outputs a pulse signal if the state of the enable signal 314 is the disable state. In addition, after the level pulse conversion unit 322 outputs a pulse signal, feedback is given to the pulse level conversion unit 321, and the pulse level conversion unit 321 causes the level signal to fall.

409はレベルパルス変換部322のイネーブル信号の時間軸である。レベルパルス変換部322がパルス信号を生成、出力している期間、イネーブル状態を示す。   Reference numeral 409 denotes a time axis of the enable signal of the level pulse converter 322. While the level pulse converter 322 generates and outputs a pulse signal, it shows the enabled state.

410はORゲート313が出力する第二の割り込み信号102の時間軸である。ORゲート313はレベルパルス変換部312の出力信号とレベルパルス変換部322の出力信号との論理和をとり、第二の割り込み信号102として出力する。   Reference numeral 410 denotes a time axis of the second interrupt signal 102 output from the OR gate 313. The OR gate 313 ORs the output signal of the level pulse converter 312 and the output signal of the level pulse converter 322, and outputs the result as a second interrupt signal 102.

図4に示す動作例では、時刻421の時点で、イネーブル信号324はディセーブル状態であるため、レベルパルス変換部312はパルス信号を生成、出力する。時刻421から時刻424まではレベルパルス変換部312が動作中であるため、イネーブル信号314はイネーブル状態を示す。時刻424でレベルパルス変換部312はパルスレベル変換部311にフィードバックをかけ、パルスレベル変換部311はレベル信号を立ち下げる。   In the operation example shown in FIG. 4, the enable signal 324 is in the disable state at time 421, so the level pulse converter 312 generates and outputs a pulse signal. Since the level pulse converter 312 is in operation from time 421 to time 424, the enable signal 314 indicates the enabled state. At time 424, the level pulse conversion unit 312 feeds back the pulse level conversion unit 311, and the pulse level conversion unit 311 causes the level signal to fall.

レベルパルス変換部322は時刻422から424はイネーブル信号314がイネーブル状態を示しているため動作していない。時刻424の時点で、イネーブル信号324がディセーブル状態を示すため、レベルパルス変換部322はパルス信号を生成、出力する。時刻424から時刻426まではレベルパルス変換部322が動作中であるため、イネーブル信号324はイネーブル状態を示す。時刻426でレベルパルス変換部322はパルスレベル変換部321にフィードバックをかけ、パルスレベル変換部321はレベル信号を立ち下げる。   The level pulse converter 322 does not operate since the enable signal 314 indicates the enable state at times 422 to 424. Since the enable signal 324 indicates the disabled state at time 424, the level pulse converter 322 generates and outputs a pulse signal. Since the level pulse converter 322 is in operation from time 424 to time 426, the enable signal 324 indicates the enabled state. At time 426, the level pulse conversion unit 322 feeds back the pulse level conversion unit 321, and the pulse level conversion unit 321 causes the level signal to fall.

ここで、イネーブル信号314およびイネーブル信号324は、それぞれ時刻424、時刻426でイネーブル状態からディセーブル状態に遷移しているがこれに限らない。ディセーブル状態に遷移するタイミングを変更することで、第二の割り込み信号102のパルスの間隔を調整することが可能である。   Here, the enable signal 314 and the enable signal 324 transition from the enabled state to the disabled state at time 424 and time 426, respectively, but are not limited thereto. It is possible to adjust the pulse interval of the second interrupt signal 102 by changing the timing of transition to the disable state.

図5は実施例1における割り込み処理制御部123の動作フローである。   FIG. 5 is an operation flow of the interrupt processing control unit 123 in the first embodiment.

S500では、図5の動作フローを終了するか否かを判断する。YESの場合は図5に示す処理を終了させる。NOの場合はS501に処理を進める。   In S500, it is determined whether the operation flow of FIG. 5 is ended. In the case of YES, the process shown in FIG. 5 is ended. In the case of NO, the process proceeds to S501.

S501では、カウント値保持部122の保持するカウント値が0より大きいか否かを判断する。YESの場合はS502へ処理を進め、NOの場合はS500を再度処理する。   In S501, it is determined whether the count value held by the count value holding unit 122 is larger than zero. In the case of YES, the process proceeds to S502, and in the case of NO, the process of S500 is performed again.

S502では割り込み処理を実行する。ここでは、システムバス103経由で割り込み要因提示部113にアクセスし、処理すべき要因を読み出し、読み出した要因に応じて処理を行う。S503では、カウント値保持部122の保持するカウント値をデクリメントする処理を実行する。   In step S502, an interrupt process is performed. Here, the interrupt factor presenting unit 113 is accessed via the system bus 103, the factor to be processed is read out, and processing is performed according to the read factor. In S503, a process of decrementing the count value held by the count value holding unit 122 is executed.

以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。   As mentioned above, although the preferable embodiment of this invention was described, this invention is not limited to these embodiment, A various deformation | transformation and change are possible within the range of the summary.

100 割り込みシステム、101 第一の割り込み信号、
102 第二の割り込み信号、103 システムバス、
110 割り込みコントローラ、120 プロセッサユニット
100 interrupt system, 101 first interrupt signal,
102 second interrupt signal, 103 system bus,
110 interrupt controller, 120 processor units

Claims (4)

1つ以上の周辺回路から割り込み信号である第一の割り込み信号を受信し、受信した前記第一の割り込み信号を第二の割り込み信号として出力する割り込みコントローラと、
前記第二の割り込み信号を受信し、割り込み処理を実行するプロセッサユニットと、
を備え、
前記割り込みコントローラは、前記第一の割り込み信号を出力した前記周辺回路を特定するための情報を割り込み要因として保持する割り込み要因保持手段と、前記割り込み要因をプロセッサユニットに提示する割り込み要因提示手段と、前記第一の割り込み信号をパルス形式に成形し、前記第二の割り込み信号として前記プロセッサユニットへ出力する割り込み信号生成手段と、を有し、
前記プロセッサユニットは、前記第二の割り込み信号のエッジを検出するエッジ検出手段と、前記エッジ検出手段で検出したエッジの数をカウントするカウント保持手段と、前記カウント保持手段の保持するカウント数が0より大きい場合に割り込み処理を実行し、前記割り込み処理が完了した場合に前記カウント保持手段のカウント値をデクリメントする割り込み処理制御手段と、
を有することを特徴とする割り込み制御装置。
An interrupt controller that receives a first interrupt signal that is an interrupt signal from one or more peripheral circuits and outputs the received first interrupt signal as a second interrupt signal;
A processor unit that receives the second interrupt signal and executes interrupt processing;
Equipped with
The interrupt controller holds, as an interrupt factor, information for identifying the peripheral circuit that has output the first interrupt signal, and an interrupt factor presenting unit that presents the interrupt factor to the processor unit. Interrupt signal generating means for shaping the first interrupt signal into a pulse format and outputting the first interrupt signal as the second interrupt signal to the processor unit;
The processor unit includes edge detection means for detecting an edge of the second interrupt signal, count holding means for counting the number of edges detected by the edge detection means, and the count number held by the count holding means is zero. Interrupt processing control means for executing interrupt processing when the interrupt processing is larger and decrementing the count value of the count holding means when the interrupt processing is completed;
An interrupt control device characterized by having.
前記割り込み信号生成手段は、出力する前記第二の割り込み信号のパルスが互いに重ならないように予め定められた一定間隔を空けて生成することを特徴とする請求項1に記載の割り込み制御装置。   2. The interrupt control device according to claim 1, wherein the interrupt signal generation means generates the pulses of the second interrupt signal to be output at predetermined intervals so as not to overlap each other. 前記割り込み要因提示手段は、前記プロセッサユニットからアクセスがあった場合に、前記割り込み要因保持手段が保持する前記割り込み要因の内、高優先度の前記割り込み要因を提示することを特徴とする請求項1又は請求項2に記載の割り込み制御装置。   The interrupt factor presenting means presents the interrupt factor of high priority among the interrupt factors held by the interrupt factor holding means when there is an access from the processor unit. Or the interrupt control apparatus of Claim 2. 前記割り込み要因提示手段は、前記プロセッサユニットに提示した前記割り込み要因を前記割り込み要因保持手段から削除することを特徴とする請求項1乃至請求項3の何れか一項に記載の割り込み制御装置。   The interrupt control device according to any one of claims 1 to 3, wherein the interrupt factor presenting unit deletes the interrupt factor presented to the processor unit from the interrupt factor holding unit.
JP2017198938A 2017-10-13 2017-10-13 Interrupt control device Pending JP2019074823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017198938A JP2019074823A (en) 2017-10-13 2017-10-13 Interrupt control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017198938A JP2019074823A (en) 2017-10-13 2017-10-13 Interrupt control device

Publications (1)

Publication Number Publication Date
JP2019074823A true JP2019074823A (en) 2019-05-16

Family

ID=66544106

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017198938A Pending JP2019074823A (en) 2017-10-13 2017-10-13 Interrupt control device

Country Status (1)

Country Link
JP (1) JP2019074823A (en)

Similar Documents

Publication Publication Date Title
US20100306602A1 (en) Semiconductor device and abnormality detecting method
JP2008176360A (en) Multiprocessor system
US20170329730A1 (en) Method and unit for handling interrupts in a system
JP6227767B2 (en) Information processing apparatus, processing method thereof, and input / output apparatus
JP6004463B2 (en) Storage device and control method thereof
JP2019074823A (en) Interrupt control device
US6219744B1 (en) Interrupt masker for an interrupt handler with double-edge interrupt request signals detection
JP2010033255A (en) Signal synchronization method and signal synchronization circuit
JP6687998B2 (en) Speculative interrupt signaling
JP2009003711A (en) Stop detection apparatus of microcomputer
US10459841B2 (en) Information processing apparatus, information processing system, and method of controlling information processing apparatus, configured to form ring-shaped bus
US10540305B2 (en) Semiconductor device
JP2005250683A (en) Microcomputer
JP2005092430A (en) Watchdog timer
JP2007257462A (en) Bus resetting system and method
EP0943999A1 (en) Interrupt masker for an interrupt handler with double-edge interrupt request signals detection
JP2008077184A (en) Interrupt control circuit
JP5441185B2 (en) Interrupt controller and time-division interrupt generation method
JP2006059303A (en) Computer system
JP2018005490A (en) Electronic controller
JP2021068157A (en) Image processing device, image processing method and program
JP4620492B2 (en) Bus interface circuit
JP2017090963A (en) Transmitter and fault diagnosis method
JP6580815B2 (en) Bus access timing control circuit
JP2011180653A (en) Data transfer device and data transfer method

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20191125