JP4490337B2 - Resynchronizable interrupt generator - Google Patents

Resynchronizable interrupt generator Download PDF

Info

Publication number
JP4490337B2
JP4490337B2 JP2005172348A JP2005172348A JP4490337B2 JP 4490337 B2 JP4490337 B2 JP 4490337B2 JP 2005172348 A JP2005172348 A JP 2005172348A JP 2005172348 A JP2005172348 A JP 2005172348A JP 4490337 B2 JP4490337 B2 JP 4490337B2
Authority
JP
Japan
Prior art keywords
counter
count value
interrupt
clock
timing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005172348A
Other languages
Japanese (ja)
Other versions
JP2006350435A (en
Inventor
弘晃 宇野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Semiconductor Ltd
Original Assignee
Fujitsu Semiconductor 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 Fujitsu Semiconductor Ltd filed Critical Fujitsu Semiconductor Ltd
Priority to JP2005172348A priority Critical patent/JP4490337B2/en
Publication of JP2006350435A publication Critical patent/JP2006350435A/en
Application granted granted Critical
Publication of JP4490337B2 publication Critical patent/JP4490337B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は,再同期可能な割込発生回路に関し,特に,外部からの同期信号により内部割込タイミングを再同期させることができ割込信号の連続発生を防止した割込発生回路に関する。   The present invention relates to a resynchronizable interrupt generation circuit, and more particularly, to an interrupt generation circuit that can resynchronize internal interrupt timing by an external synchronization signal and prevents continuous generation of interrupt signals.

内部に複数のプロセッサコアを有する集積回路装置が提案されている。例えば,特許文献1,2などである。かかるプロセッサコアを内蔵する集積回路装置において,内蔵される割込発生回路が所定の周期で内蔵プロセッサコアに割込信号を与える場合がある。この場合,割込発生回路は,外部から供給される外部クロックをもとに内部クロックを生成し,内部クロックに同期してカウンタを動作させ,そのカウンタの所定のカウント値に応答して内部で割込信号を発生する。外部クロックから内部クロックを生成するクロック発生器を内蔵することで,何らかの理由で外部クロックが途絶えた場合でも内部クロックが継続して生成され,内部で割込信号の発生を継続させることができる。ただし,その場合は内蔵クロック発生器による内部クロックの位相ずれを考慮して,外部から同期信号を供給し内部カウンタの動作を再同期することが必要になる。また,外部同期信号を切り換えた場合に新たな外部同期信号のタイミングに再同期することも必要になる。
特公平6−1464号公報 特表2003−507217号公報
An integrated circuit device having a plurality of processor cores therein has been proposed. For example, Patent Literatures 1 and 2 are used. In an integrated circuit device incorporating such a processor core, the built-in interrupt generation circuit may give an interrupt signal to the built-in processor core at a predetermined cycle. In this case, the interrupt generation circuit generates an internal clock based on an external clock supplied from the outside, operates the counter in synchronization with the internal clock, and internally responds to a predetermined count value of the counter. Generate an interrupt signal. By incorporating a clock generator that generates an internal clock from an external clock, the internal clock is continuously generated even if the external clock is interrupted for some reason, and the generation of an interrupt signal can be continued internally. In this case, however, it is necessary to resynchronize the operation of the internal counter by supplying a synchronization signal from the outside in consideration of the phase shift of the internal clock by the built-in clock generator. It is also necessary to resynchronize with the timing of a new external synchronization signal when the external synchronization signal is switched.
Japanese Examined Patent Publication No. 6-1464 Special table 2003-507217 gazette

上記の割込発生回路において,外部同期信号に応答して内部カウンタをクリアすれば内部の割込信号の発生タイミングを再同期させることができる。しかしながら,外部同期信号のタイミングが内部カウンタのクリア動作の直後と一致した場合,内部カウンタが再度クリアされることになる。その場合,内部カウンタのクリア動作に応答して内部割込信号を発生させると,内部割込信号が連続して発生することになる。短時間内で連続して発生する割込信号は,内蔵されるプロセッサコアによっては受信されない場合があり,複数のプロセッサコアの割り込み制御が異なり,プロセッサ間の割込動作で矛盾が生じる。   In the above interrupt generation circuit, the internal interrupt signal generation timing can be resynchronized by clearing the internal counter in response to the external synchronization signal. However, when the timing of the external synchronization signal coincides with that immediately after the internal counter clear operation, the internal counter is cleared again. In this case, if an internal interrupt signal is generated in response to the clear operation of the internal counter, the internal interrupt signal is generated continuously. Interrupt signals generated continuously within a short time may not be received depending on the built-in processor cores, and the interrupt control of a plurality of processor cores is different, resulting in inconsistencies in interrupt operations between processors.

そこで,本発明の目的は,短時間で連続する割込発生を防止した割込発生回路を提供することにある。   SUMMARY OF THE INVENTION An object of the present invention is to provide an interrupt generation circuit that prevents occurrence of continuous interrupts in a short time.

上記の目的を達成するために,本発明の第1の側面によれば,クロックに同期して0からn−1まで循環してカウント動作するn進のカウンタと,前記カウンタの所定のカウント値に応答して割込信号を発生する割込信号発生器とを有する割込発生回路において,外部同期信号をkクロック遅延させる遅延回路を有し,前記カウンタは前記遅延回路で遅延した遅延同期信号に応答してカウント値「k」をロードし,前記割込信号発生器は前記カウンタのクリア値に応答して前記割込信号を発生する。   To achieve the above object, according to the first aspect of the present invention, an n-ary counter that circulates from 0 to n-1 in synchronization with a clock and performs a counting operation, and a predetermined count value of the counter And an interrupt signal generator for generating an interrupt signal in response to the delay synchronization signal having a delay circuit for delaying the external synchronization signal by k clocks, wherein the counter is delayed by the delay circuit. In response, the count value “k” is loaded, and the interrupt signal generator generates the interrupt signal in response to the clear value of the counter.

上記の第1の側面によれば,外部同期信号がカウンタがクリアされるタイミングで供給されても,遅延回路により外部同期信号のタイミングからkクロック遅延してカウンタがカウント値「k」にセットされるので,カウンタが短時間で連続してクリア値「0」になることが防止され,短時間で連続する割込発生を防止することができる。   According to the first aspect described above, even if the external synchronization signal is supplied at the timing when the counter is cleared, the delay circuit sets the counter to the count value “k” with a delay of k clocks from the timing of the external synchronization signal. Therefore, it is possible to prevent the counter from continuously becoming the clear value “0” in a short time, and it is possible to prevent occurrence of continuous interrupts in a short time.

上記第1の側面において,好ましい態様によれば,前記遅延回路は外部同期信号を1クロック遅延し,前記カウンタは遅延同期信号に応答してカウント値「1」をロードする。また,別の好ましい実施例によれば,外部クロックを供給され前記カウンタにクロックを供給するクロック発生器を更に有する。これによれば,外部同期信号及び外部クロックが途絶えても内部でクロックを発生するので,割込信号の発生を継続させることができる。   In the first aspect, according to a preferred embodiment, the delay circuit delays the external synchronization signal by one clock, and the counter loads the count value “1” in response to the delay synchronization signal. According to another preferred embodiment, it further comprises a clock generator which is supplied with an external clock and supplies a clock to the counter. According to this, even if the external synchronization signal and the external clock are interrupted, the clock is generated internally, so that the generation of the interrupt signal can be continued.

上記の目的を達成するために,本発明の第2の側面によれば,クロックに同期して0からn−1まで循環してカウント動作するn進のカウンタと,前記カウンタの所定のカウント値に応答して割込信号を発生する割込信号発生器とを有する割込発生回路において,外部同期信号をkクロック遅延させる遅延回路を有し,前記カウンタは前記遅延回路で遅延した遅延同期信号に応答してカウント値「0」にクリアし,前記割込信号発生器は前記カウンタのカウント値「n−k」に応答して前記割込信号を発生する。   In order to achieve the above object, according to a second aspect of the present invention, an n-ary counter that circulates from 0 to n-1 in synchronization with a clock and performs a counting operation, and a predetermined count value of the counter And an interrupt signal generator for generating an interrupt signal in response to the delay synchronization signal having a delay circuit for delaying the external synchronization signal by k clocks, wherein the counter is delayed by the delay circuit. In response to the counter value, the count value is cleared to "0", and the interrupt signal generator generates the interrupt signal in response to the count value "nk" of the counter.

上記の第2の側面によれば,カウンタがロード機能を有さずクリア機能を有する場合でも,外部同期信号のタイミングからkクロック遅延したタイミングでカウンタにクリア値「0」を実質的にロードすることができるので,カウント値「n−k」で発生する割込信号が連続して発生するのを防止することができる。   According to the second aspect, even when the counter does not have a load function but has a clear function, the counter is substantially loaded with a clear value “0” at a timing delayed by k clocks from the timing of the external synchronization signal. Therefore, it is possible to prevent the interruption signal generated at the count value “n−k” from being generated continuously.

割込発生回路において,短時間で連続する割込発生を防止できる。   In the interrupt generation circuit, continuous interrupt generation in a short time can be prevented.

以下,図面にしたがって本発明の実施の形態について説明する。但し,本発明の技術的範囲はこれらの実施の形態に限定されず,特許請求の範囲に記載された事項とその均等物まで及ぶものである。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. However, the technical scope of the present invention is not limited to these embodiments, but extends to the matters described in the claims and equivalents thereof.

図1は,割込発生回路を内蔵する集積回路装置の構成と動作を示す図である。図1(A)の集積回路装置LSIは,4つのプロセッサコアDSP#1〜4を内蔵するとともに,それらに割込信号IRQを発生する割込発生回路10を有する。そして,割込発生回路10は,外部クロックECLKを供給するクロック供給部20と,外部同期信号SYNCを供給する同期信号供給部22とから,それぞれ外部クロックECLKと外部同期信号SYNCとを供給される。割込発生回路10は,内部クロックICLKに応答して0〜n−1まで循環してカウントするn進カウンタ12と,カウンタ12のカウント値をデコードしカウント値が所定の値の時に割込信号IRQを発生する割込発生器14とを有する。さらに,割込発生回路10は,外部クロックECLKを供給され,それと同等の周期で内部クロックICLKを生成するクロック発生器16を有する。   FIG. 1 is a diagram showing the configuration and operation of an integrated circuit device incorporating an interrupt generation circuit. The integrated circuit device LSI of FIG. 1A includes four processor cores DSP # 1 to DSP # 1-4, and includes an interrupt generation circuit 10 that generates an interrupt signal IRQ. The interrupt generation circuit 10 is supplied with the external clock ECLK and the external synchronization signal SYNC from the clock supply unit 20 that supplies the external clock ECLK and the synchronization signal supply unit 22 that supplies the external synchronization signal SYNC, respectively. . The interrupt generation circuit 10 is an n-ary counter 12 that circulates and counts from 0 to n-1 in response to the internal clock ICLK, and decodes the count value of the counter 12 and outputs an interrupt signal when the count value is a predetermined value. And an interrupt generator 14 for generating an IRQ. Furthermore, the interrupt generation circuit 10 has a clock generator 16 that is supplied with the external clock ECLK and generates the internal clock ICLK at a period equivalent to the external clock ECLK.

図1(B)に割込発生回路の動作例が示される。クロック発生器16が生成する内部クロックICLKに同期して,8進のカウンタ12がカウント値0〜7をカウントしている。そして,一例として,割込信号発生器14は,カウント値が「0」,「4」のタイミングで割込信号IRQを出力している。通常動作では,外部クロックECLKと内部クロックICLKとはタイミングが一致している。但し,両クロックのタイミングずれがあっても割込信号のタイミングが所望のタイミングに調節されるように,外部同期信号SYNCのタイミングでカウンタ12がクリアされる。   FIG. 1B shows an operation example of the interrupt generation circuit. In synchronization with the internal clock ICLK generated by the clock generator 16, the octal counter 12 counts the count values 0-7. As an example, the interrupt signal generator 14 outputs the interrupt signal IRQ at the timing of the count values “0” and “4”. In normal operation, the external clock ECLK and the internal clock ICLK have the same timing. However, the counter 12 is cleared at the timing of the external synchronization signal SYNC so that the timing of the interrupt signal is adjusted to a desired timing even if there is a timing difference between both clocks.

クロック発生器16を内蔵することにより,クロック供給部20の故障などにより外部クロックECLKの供給が途絶えたとしても,内部クロックICLKの供給が継続され割込信号IRQの発生を維持することができる。同期信号供給部22が故障した場合でも同様に割込信号の発生を維持することができる。そして,別の同期信号供給部24に切り換えられた後は,そこからの外部同期信号SYNCのタイミングでカウンタ12がクリアされ,カウンタの再同期が行われる。   By incorporating the clock generator 16, even if the supply of the external clock ECLK is interrupted due to a failure of the clock supply unit 20, the supply of the internal clock ICLK is continued and the generation of the interrupt signal IRQ can be maintained. Even when the synchronization signal supply unit 22 breaks down, the generation of the interrupt signal can be maintained in the same manner. After switching to another synchronization signal supply unit 24, the counter 12 is cleared at the timing of the external synchronization signal SYNC therefrom, and the counter is resynchronized.

図2は,図1の割込発生回路の動作タイミング図である。この例では,カウンタは0〜255をカウントする256進のカウンタであり,割込信号発生器14はカウント値が「0」になるタイミングで割込信号IRQを発生している。図2(A)は通常動作のタイミングを示している。つまり,外部同期信号SYNCは,時間t1のカウント値「255」のタイミングで供給され,その次のクロックICLKに同期して時間t2でクリア信号CLRとして入力されカウント値を「0」にクリアする。このクリアカウント値「0」に応答して割込信号発生器14は割込信号IRQを出力する。このように,外部同期信号SYNCがカウント値「255」のタイミングで発生していれば,その次のクロックタイミングでカウンタがクリアされ,カウンタの通常のクリア動作(カウント値「0」へのクリア)と一致し,カウンタの周期(256クロック)で割込信号IRQが生成される。以上が通常動作である。   FIG. 2 is an operation timing chart of the interrupt generation circuit of FIG. In this example, the counter is a 256-ary counter that counts from 0 to 255, and the interrupt signal generator 14 generates the interrupt signal IRQ at the timing when the count value becomes “0”. FIG. 2A shows the timing of normal operation. That is, the external synchronization signal SYNC is supplied at the timing of the count value “255” at time t1, and is input as the clear signal CLR at time t2 in synchronization with the next clock ICLK to clear the count value to “0”. In response to the clear account value “0”, the interrupt signal generator 14 outputs an interrupt signal IRQ. Thus, if the external synchronization signal SYNC is generated at the timing of the count value “255”, the counter is cleared at the next clock timing, and the counter is normally cleared (clearing to the count value “0”). And an interrupt signal IRQ is generated with a counter period (256 clocks). The above is the normal operation.

一方,図2(B)は誤動作の例を示す。外部同期信号SYNCが遅れて時間t2のカウント値「0」のタイミングで供給されると,その次のクロックICLKに同期して時間t3でクリア信号CLRとして入力されカウント値を「0」にクリアする。そのため,通常のカウンタ動作でカウント値が「0」にクリアされた時間t2とその直後の外部同期信号によりクリアされた時間t3とで連続して割込信号IRQが発生する。そして,この割込信号を供給されるプロセッサのうち,例えば,プロセッサDSP#1では,連続する割込信号IRQを受信することができるものの,別のプロセッサDSP#2では,割込信号IRQ受信直後の所定期間は割込禁止モードになるなどの理由で,連続する割込信号IRQのうち最初のみ受信し2番目の割込信号は受信できない場合がある。その結果,プロセッサDSP#1は2回の割込動作を実行し,プロセッサDSP#2は1回の割込動作しか実行しなくなり,両プロセッサの割込動作が不一致となり,誤動作を招くことになる。例えば,プロセッサ同士で連携して割込動作を行うなどの場合には誤動作の原因となる。   On the other hand, FIG. 2B shows an example of malfunction. When the external synchronization signal SYNC is delayed and supplied at the timing of the count value “0” at time t2, it is input as the clear signal CLR at time t3 in synchronization with the next clock ICLK, and the count value is cleared to “0”. . Therefore, the interrupt signal IRQ is generated continuously at time t2 when the count value is cleared to “0” by normal counter operation and at time t3 cleared by the external synchronization signal immediately after that. Of the processors supplied with this interrupt signal, for example, the processor DSP # 1 can receive a continuous interrupt signal IRQ, but another processor DSP # 2 immediately receives the interrupt signal IRQ. During the predetermined period, there is a case where only the first of the continuous interrupt signals IRQ is received and the second interrupt signal cannot be received because the interrupt prohibition mode is set. As a result, the processor DSP # 1 executes the interrupt operation twice, and the processor DSP # 2 only executes the interrupt operation once, so that the interrupt operations of both processors become inconsistent, resulting in malfunction. . For example, when interrupt operations are performed in cooperation between processors, a malfunction may be caused.

したがって,外部同期信号SYNCがどのようなタイミングで供給されても,上記のような短時間の内に割込信号IRQが連続して生成されることが回避できるように割込発生回路を構成することが望まれる。   Therefore, an interrupt generation circuit is configured so that it is possible to avoid the continuous generation of the interrupt signal IRQ within a short time as described above, regardless of the timing of the external synchronization signal SYNC. It is desirable.

図3は,本実施の形態における割込発生回路を有する集積回路装置の構成図である。集積回路装置LSIは,図1と同様に複数のプロセッサコアDSP#1〜4を内蔵し,さらに,割込発生回路10を有する。割込発生回路10は,内部クロックICLKに同期してカウント値を順次インクリメントするカウンタ12と,カウンタ12のカウント値CUNTが所定の値の時に割込信号IRQを生成する割込信号発生器14と,外部クロックECLKを供給されそれと同等の周波数の内部クロックICLKを生成するクロック発生器16と,外部同期信号SYNCを内部クロックICLKの1クロックだけ遅延する遅延回路18と,ロード値レジスタ19とを有する。そして,遅延した同期信号がカウンタ12のロード端子に供給されるタイミングでロード値「1」がカウンタ12にロードされる。また,割込信号発生器14は,カウント値をデコードする機能を有し,例えばクリアされたカウント値「0」をデコードして割込信号を発生する。他のカウント値で割込信号を発生してもよい。   FIG. 3 is a block diagram of an integrated circuit device having an interrupt generation circuit in the present embodiment. The integrated circuit device LSI includes a plurality of processor cores DSP # 1 to DSP # 1 to 4 as in FIG. The interrupt generation circuit 10 includes a counter 12 that sequentially increments a count value in synchronization with the internal clock ICLK, and an interrupt signal generator 14 that generates an interrupt signal IRQ when the count value CUNT of the counter 12 is a predetermined value. A clock generator 16 that is supplied with the external clock ECLK and generates an internal clock ICLK having the same frequency as the external clock ECLK, a delay circuit 18 that delays the external synchronization signal SYNC by one clock of the internal clock ICLK, and a load value register 19. . Then, the load value “1” is loaded into the counter 12 at the timing when the delayed synchronization signal is supplied to the load terminal of the counter 12. The interrupt signal generator 14 has a function of decoding the count value. For example, the interrupt signal generator 14 decodes the cleared count value “0” to generate an interrupt signal. An interrupt signal may be generated with another count value.

なお,後述する一般化した割込発生回路では,ロード値レジスタ19のロード値がkであり,遅延回路18はkクロックの期間,外部同期信号SYNCを遅延する。   In a generalized interrupt generation circuit described later, the load value of the load value register 19 is k, and the delay circuit 18 delays the external synchronization signal SYNC for a period of k clocks.

外部には,図1と同様に外部クロック供給部20と外部同期信号供給部22と予備の外部同期信号供給部24とが設けられている。基本的な動作は,図1のタイミング図と同様である。   As in FIG. 1, an external clock supply unit 20, an external synchronization signal supply unit 22, and a spare external synchronization signal supply unit 24 are provided outside. The basic operation is the same as the timing chart of FIG.

本実施の形態の割込発生回路は,図1の回路と異なり,外部同期信号SYNCが遅延回路18により1クロックだけ遅延してカウンタ12のロード端子LOADに供給される。そして,カウンタ12は,ロード端子LOADに遅延同期信号が供給されるタイミングでロード値レジスタ19のロード値「1」を入力カウント値INとしてロードする。外部同期信号SYNCは,図1と同様にカウント値「255」のタイミング供給される。このように,外部同期信号SYNCによる再同期動作では,カウンタ12がロード値「1」をロードするだけでありクリア値「0」にはならないので,外部同期信号SYNCのタイミングにかかわらず短い時間で連続する割込信号IRQの発生は生じない。   Unlike the circuit of FIG. 1, the interrupt generation circuit of the present embodiment is supplied to the load terminal LOAD of the counter 12 with the external synchronization signal SYNC delayed by one clock by the delay circuit 18. Then, the counter 12 loads the load value “1” of the load value register 19 as the input count value IN at the timing when the delay synchronization signal is supplied to the load terminal LOAD. The external synchronization signal SYNC is supplied with the timing of the count value “255” as in FIG. Thus, in the resynchronization operation by the external synchronization signal SYNC, the counter 12 only loads the load value “1” and does not become the clear value “0”. Therefore, in a short time regardless of the timing of the external synchronization signal SYNC. Generation of a continuous interrupt signal IRQ does not occur.

図4,5,6は,図3の割込発生回路の動作タイミング図である。図4は通常動作を示し,時間t1のカウント値「255」のタイミングで外部同期信号SYNCが供給されると,遅延回路18により1クロック遅延して時間t2のカウント値「0」のタイミングでロード端子LOADに同期信号が供給される。それに応答して,カウンタ12は,次の内部クロックのタイミングである時間t3でロード値「1」をロードする。カウンタ12は,時間t2で通常のカウンタ動作によりカウント値「0」にクリアされるので,そのタイミングで割込信号発生器14は割込信号IRQを出力する。このように,外部同期信号を1クロック遅延させると共にそのタイミングでカウント値を「0」にクリアせずに「1」をロードすることで,通常動作は図2(A)と同じになる。   4, 5 and 6 are operation timing charts of the interrupt generation circuit of FIG. FIG. 4 shows a normal operation. When the external synchronization signal SYNC is supplied at the timing of the count value “255” at the time t1, the delay circuit 18 delays one clock and loads it at the timing of the count value “0” at the time t2. A synchronization signal is supplied to the terminal LOAD. In response to this, the counter 12 loads the load value “1” at time t3 which is the timing of the next internal clock. Since the counter 12 is cleared to the count value “0” by the normal counter operation at time t2, the interrupt signal generator 14 outputs the interrupt signal IRQ at that timing. Thus, by delaying the external synchronization signal by one clock and loading “1” without clearing the count value to “0” at that timing, the normal operation becomes the same as in FIG.

図5は,外部同期信号SYNCのタイミングが遅れてカウント値「0」のタイミングにずれた場合を示している。時間t2のカウント値「0」のタイミングで外部同期信号SYNCが供給されると,1クロック遅延した時間t3でロード信号LOADが供給される。そして,その次の内部クロックのタイミング(時間t4)でカウンタ12はロード値「1」をロードする。その結果,時間t3とt4でカウンタ12はカウント値「1」を繰り返すことになる。したがって,その時の周期は257クロックと1クロックだけ長くなる。しかし,カウント値「0」で割込信号IRQが発生した後は,再度カウンタがクリアされないので,連続して割込信号IRQが発生することはない。   FIG. 5 shows a case where the timing of the external synchronization signal SYNC is delayed and shifted to the timing of the count value “0”. When the external synchronization signal SYNC is supplied at the timing of the count value “0” at time t2, the load signal LOAD is supplied at time t3 delayed by one clock. Then, the counter 12 loads the load value “1” at the timing of the next internal clock (time t4). As a result, the counter 12 repeats the count value “1” at times t3 and t4. Therefore, the period at that time is increased by 257 clocks and 1 clock. However, after the interrupt signal IRQ is generated with the count value “0”, the counter is not cleared again, so that the interrupt signal IRQ is not generated continuously.

そして,次の外部同期信号SYNCは256クロック後のカウント値「255」のタイミングで供給されるので,そこから通常動作に復帰する。外部同期信号SYNCのタイミングが更に遅れた場合は,カウンタ12がロード値「1」になりそのサイクルが長くなるだけであり,短い間にカウント値が「0」を繰り返すことはない。   Since the next external synchronization signal SYNC is supplied at the timing of the count value “255” after 256 clocks, the normal operation is resumed from there. When the timing of the external synchronization signal SYNC is further delayed, the counter 12 becomes the load value “1” and only the cycle becomes longer, and the count value does not repeat “0” in a short time.

図6は,外部同期信号SYNCのタイミングが早まってカウント値「254」のタイミングにずれた場合を示している。時間t0のカウント値「254」で外部同期信号SYNCが供給されると,1クロック遅延後の時間t1のカウント値「255」でロード信号LOADが供給される。それに応答して,次の内部クロックのタイミングの時間t2でロード値「1」がカウンタ12にロードされる。したがって,この場合は,カウント値「0」にクリアされることがなくそれに対応する割込信号IRQは発生しない。そして,次の外部同期信号SYNCは256クロック後のカウント値「255」のタイミングで供給されるので,そこで通常動作に戻る。このように,1回だけ割込信号IRQは生成されないが,次のサイクルから再同期されて通常動作に戻る。   FIG. 6 shows a case where the timing of the external synchronization signal SYNC is advanced to a timing of the count value “254”. When the external synchronization signal SYNC is supplied at the count value “254” at time t0, the load signal LOAD is supplied at the count value “255” at time t1 after one clock delay. In response to this, the load value “1” is loaded into the counter 12 at the time t2 of the timing of the next internal clock. Therefore, in this case, the count value “0” is not cleared and the corresponding interrupt signal IRQ is not generated. Then, since the next external synchronization signal SYNC is supplied at the timing of the count value “255” after 256 clocks, it returns to normal operation. Thus, the interrupt signal IRQ is not generated only once, but is re-synchronized from the next cycle to return to the normal operation.

外部同期信号SYNCのタイミングが更に早まった場合は,カウンタ12がその早いタイミングでロード値「1」になり次の通常動作までのクロック数が少なくなるだけであり,短い間にカウント値が「0」を繰り返すことはない。   When the timing of the external synchronization signal SYNC is further advanced, the counter 12 becomes the load value “1” at the earlier timing and only the number of clocks until the next normal operation is reduced. Is not repeated.

図7は,本実施の形態の一般化した場合の動作タイミング図である。一般化した場合,カウンタはカウント値が0〜n−1のn進カウンタであり,図3の遅延回路18はkクロックだけ遅延し,ロード値レジスタ19にはロード値「k」が格納されている。そして,通常動作では,外部同期信号SYNCはカウント値が「n−1」のタイミングで外部から供給される。   FIG. 7 is an operation timing chart when the present embodiment is generalized. When generalized, the counter is an n-ary counter with a count value of 0 to n−1, the delay circuit 18 of FIG. 3 is delayed by k clocks, and the load value register 19 stores the load value “k”. Yes. In the normal operation, the external synchronization signal SYNC is supplied from the outside at the timing when the count value is “n−1”.

図7(A)は通常動作を示し,カウンタ12の最大カウント値「n−1」の時間t1のタイミングで外部同期信号SYNCが供給され,次の時間t2でカウンタがカウント値「0」にクリアされ割込信号IRQが生成される。そして,時間t1からkクロックだけ遅延した後の時間t3(カウント値「k−1」)でロード信号LOADが供給され,その次のクロックタイミングの時間t4でカウンタがロード値「k」をロードする。したがって,カウンタ12の通常カウント動作に何ら変化は生じない。   FIG. 7A shows a normal operation, in which the external synchronization signal SYNC is supplied at the timing t1 of the maximum count value “n−1” of the counter 12, and the counter is cleared to the count value “0” at the next time t2. And an interrupt signal IRQ is generated. Then, the load signal LOAD is supplied at time t3 (count value “k−1”) after being delayed by k clocks from time t1, and the counter loads the load value “k” at time t4 of the next clock timing. . Therefore, no change occurs in the normal count operation of the counter 12.

図7(B)は外部同期信号SYNCが1クロック遅れてカウント値「0」の時間t2のタイミングで供給された場合を示す。時間t2で外部同期信号SYNCが供給されると,それがkクロック遅延し,カウント値「k」の時間t4のタイミングでロード信号LOADが供給される。それに応答して,次のクロックタイミングの時間t5でカウンタはロード値「k」をロードする。したがって,時間t4,t5でカウント値「k」が連続する。しかし,カウント値「0」は1回しか発生しないので,そのタイミングで割込信号IRQが発生するだけである。カウント値「k」がロードされたサイクルでは1クロックだけ長くなり,256クロック後の次のカウント値「n−1」のタイミングで外部同期信号SYNCが供給され,図7(A)と同じ通常動作に戻る。   FIG. 7B shows a case where the external synchronization signal SYNC is supplied at a timing t2 of the count value “0” with a delay of one clock. When the external synchronization signal SYNC is supplied at time t2, it is delayed by k clocks, and the load signal LOAD is supplied at the timing t4 of the count value “k”. In response to this, the counter loads the load value “k” at time t5 of the next clock timing. Therefore, the count value “k” continues at times t4 and t5. However, since the count value “0” is generated only once, the interrupt signal IRQ is only generated at that timing. In the cycle in which the count value “k” is loaded, it becomes longer by one clock, the external synchronization signal SYNC is supplied at the timing of the next count value “n−1” after 256 clocks, and the same normal operation as in FIG. Return to.

外部同期信号SYNCが早まった場合の動作は,図6との対比から理解できるので,ここでの説明を省略する。   Since the operation when the external synchronization signal SYNC is advanced can be understood from the comparison with FIG. 6, the description thereof is omitted here.

図8は,第2の実施の形態における割込発生回路を有する集積回路装置の構成図である。第2の実施の形態の割込発生回路10では,カウンタ12のロード機能を利用せずに,その代わりにクリア機能を利用して実質的にロード値「0」をロードするようにする。外部同期信号SYNCを遅延回路18が1クロック遅延させるのは,第1の実施の形態と同じである。ただし,クリア機能を利用して実質的にロード値「0」をロードするようにしたので,通常動作において,外部同期信号SYNCをカウント値「254」のタイミングで供給し,1クロック遅延後のカウント値「255」でカウンタがその同期信号をクリア信号として受信し,その1クロック後にカウンタがクリア動作を行う。さらに,実質的にロード値が「0」であるので,デコーダ機能を有する割込信号発生器14は,カウント値「0」ではなく「255」で割込信号IRQを発生する。つまり,図3〜6のタイミングを1クロック早めたタイミングで動作することになる。   FIG. 8 is a block diagram of an integrated circuit device having an interrupt generation circuit in the second embodiment. In the interrupt generation circuit 10 of the second embodiment, the load function of the counter 12 is not used, but instead, the load value “0” is substantially loaded using the clear function. The delay circuit 18 delays the external synchronization signal SYNC by one clock as in the first embodiment. However, since the load value “0” is substantially loaded using the clear function, the external synchronization signal SYNC is supplied at the timing of the count value “254” in the normal operation, and the count after one clock delay is obtained. With the value “255”, the counter receives the synchronization signal as a clear signal, and the counter performs a clear operation after one clock. Further, since the load value is substantially “0”, the interrupt signal generator 14 having a decoder function generates the interrupt signal IRQ with “255” instead of the count value “0”. That is, the operation of FIGS. 3 to 6 is performed at a timing one clock earlier.

図9,図10,図11は,図8の割込発生回路の動作タイミング図である。図9は通常動作を示していて,外部同期信号SYNCは時間t0のカウント値「254」のタイミングで供給され,遅延回路18で1クロック遅延して時間t1のカウント値「255」のタイミングでクリア信号としてカウンタに供給される。その1クロック後の時間t2でカウンタはカウント値「0」にクリア動作する。また,デコーダ機能を有する割込信号発生器14は,カウント値「255」のタイミングで割込信号IRQを発生する。   9, FIG. 10 and FIG. 11 are operation timing charts of the interrupt generation circuit of FIG. FIG. 9 shows a normal operation, and the external synchronization signal SYNC is supplied at the timing of the count value “254” at time t0, delayed by one clock in the delay circuit 18 and cleared at the timing of the count value “255” at time t1. It is supplied to the counter as a signal. At time t2 after one clock, the counter clears to the count value “0”. The interrupt signal generator 14 having a decoder function generates an interrupt signal IRQ at the timing of the count value “255”.

図10は,外部同期信号SYNCのタイミングが遅れてカウント値「255」のタイミングにずれた場合を示している。時間t1のカウント値「255」のタイミングで外部同期信号SYNCが供給されると,1クロック遅延した時間t2でクリア信号CLRが供給される。そして,その次の内部クロックのタイミングの時間t3でカウンタ12はカウント値「0」にクリア動作する。その結果,時間t2とt3でカウンタ12はカウント値「0」を繰り返すことになる。したがって,その時のカウンタ周期は257クロックと1クロックだけ長くなる。しかし,カウント値「255」で割込信号IRQが発生した後は,再度カウンタがカウント値「255」にならないので,連続して割込信号IRQが発生することはない。   FIG. 10 shows a case where the timing of the external synchronization signal SYNC is delayed and shifted to the timing of the count value “255”. When the external synchronization signal SYNC is supplied at the timing of the count value “255” at time t1, the clear signal CLR is supplied at time t2 delayed by one clock. Then, at the time t3 of the timing of the next internal clock, the counter 12 clears to the count value “0”. As a result, the counter 12 repeats the count value “0” at times t2 and t3. Therefore, the counter cycle at that time is 257 clocks, which is longer by one clock. However, after the interrupt signal IRQ is generated at the count value “255”, the counter does not become the count value “255” again, so that the interrupt signal IRQ is not generated continuously.

外部同期信号SYNCが1クロック遅れて供給されるとそのサイクルでは257クロックと長くなるが,次のサイクルでは外部同期信号SYNCは256クロック後のカウント値「254」で供給されるので,通常動作に戻る。また,外部同期信号SYNCのタイミングが更に遅れた場合は,カウンタ12がクリア値「0」になりそのサイクルが長くなるだけであり,短い間に割込信号を発生させるカウント値「255」を繰り返すことはない。   If the external synchronization signal SYNC is supplied with a delay of one clock, the cycle becomes as long as 257 clocks. However, in the next cycle, the external synchronization signal SYNC is supplied with a count value “254” after 256 clocks. Return. Further, when the timing of the external synchronization signal SYNC is further delayed, the counter 12 is cleared to “0” and the cycle is only lengthened, and the count value “255” that generates an interrupt signal is repeated in a short time. There is nothing.

図11は,外部同期信号SYNCのタイミングが早まってカウント値「253」のタイミングにずれた場合を示している。図中2サイクル目において,カウント値「253」で外部同期信号SYNCが供給されると,1クロック遅延後の時間t0のカウント値「254」でクリア信号CLRが供給される。それに応答して,次の内部クロックのタイミングの時間t1でカウンタ12がクリア値「0」にクリア動作される。したがって,この場合は,カウンタはカウント値「255」になることがなく,それに対応する割込信号IRQは発生しない。そして,次の外部同期信号SYNCは256クロック後のカウント値「254」のタイミングで供給されるので,通常動作に戻る。このように,1回だけ割込信号IRQは生成されないが,次のサイクルから再同期されて通常動作に戻る。   FIG. 11 shows a case where the timing of the external synchronization signal SYNC is advanced and shifted to the count value “253”. In the second cycle in the figure, when the external synchronization signal SYNC is supplied with the count value “253”, the clear signal CLR is supplied with the count value “254” at time t0 after one clock delay. In response to this, the counter 12 is cleared to the clear value “0” at the time t1 of the next internal clock timing. Therefore, in this case, the counter does not become the count value “255”, and the corresponding interrupt signal IRQ is not generated. Since the next external synchronization signal SYNC is supplied at the timing of the count value “254” after 256 clocks, the normal operation is resumed. Thus, the interrupt signal IRQ is not generated only once, but is re-synchronized from the next cycle to return to the normal operation.

外部同期信号SYNCのタイミングが更に早まった場合は,カウンタ12がその早いタイミングでクリア値「0」になり次の通常動作までのクロック数が少なくなるだけであり,短い間に割込信号を発生させるカウント値「255」を繰り返すことはない。   When the timing of the external sync signal SYNC is further advanced, the counter 12 is cleared to “0” at the earlier timing and only the number of clocks until the next normal operation is reduced, and an interrupt signal is generated in a short time. The count value “255” to be repeated is not repeated.

図12は,第2の実施の形態の一般化した場合の動作タイミング図である。一般化した場合,カウンタはカウント値が0〜n−1のn進カウンタであり,図8の遅延回路18はkクロックだけ遅延し,割込信号発生器14はカウント値「n−k」のタイミングで割込信号IRQを発生する。そして,通常動作では,外部同期信号SYNCはカウント値が「n−k−1」のタイミングで外部から供給される。カウンタが遅延した外部同期信号に応答してクリア動作するのは同じである。   FIG. 12 is an operation timing chart when the second embodiment is generalized. When generalized, the counter is an n-ary counter with a count value of 0 to n−1, the delay circuit 18 of FIG. 8 is delayed by k clocks, and the interrupt signal generator 14 has a count value “n−k”. An interrupt signal IRQ is generated at the timing. In the normal operation, the external synchronization signal SYNC is supplied from the outside at the timing when the count value is “n−k−1”. It is the same that the counter performs a clear operation in response to the delayed external synchronization signal.

図12(A)は通常動作を示し,カウンタ12のカウント値「n−k−1」の時間t0のタイミングで外部同期信号SYNCが供給され,次の時間t1のカウント値「n−k」のタイミングで割込信号IRQが生成される。そして,時間t0からkクロックだけ遅延した後の時間t3(カウント値「n−1」)でクリア信号CLRが供給され,その次のクロックタイミングの時間t4でカウンタがカウント値「0」にクリアされる。したがって,カウンタ12の通常カウント動作に何ら変化は生じない。   FIG. 12A shows a normal operation, where the external synchronization signal SYNC is supplied at the timing t0 of the count value “n−k−1” of the counter 12, and the count value “n−k” at the next time t1 An interrupt signal IRQ is generated at the timing. Then, the clear signal CLR is supplied at time t3 (count value “n−1”) after being delayed by k clocks from time t0, and the counter is cleared to the count value “0” at time t4 of the next clock timing. The Therefore, no change occurs in the normal count operation of the counter 12.

図12(B)は外部同期信号SYNCが1クロック遅れてカウント値「n−k」の時間t1のタイミングで供給された場合を示す。図中の2サイクル目において,時間t1で外部同期信号SYNCが供給されると,それがkクロック遅延し,カウント値「0」の時間t4のタイミングでクリア信号CLRが供給される。それに応答して,次のクロックタイミングの時間t5でカウンタはクリア値「0」にクリアされる。したがって,クリア値「0」が連続する。しかし,割込信号が発生するカウント値「n−k」は1回しか発生しないので,そのタイミングで割込信号IRQが発生するだけである。この2サイクル目では1クロックだけ長くなり,その後,時間t1からnクロック後のカウント値「n−k−1」のタイミングで外部同期信号SYNCが供給され,図12(A)と同じ通常動作に戻る(図示せず)。   FIG. 12B shows a case where the external synchronization signal SYNC is supplied at the timing t1 of the count value “n−k” with a delay of one clock. In the second cycle in the figure, when the external synchronization signal SYNC is supplied at time t1, it is delayed by k clocks, and the clear signal CLR is supplied at the timing of the count value “0” at time t4. In response to this, the counter is cleared to the clear value “0” at time t5 of the next clock timing. Therefore, the clear value “0” continues. However, since the count value “n−k” generated by the interrupt signal is generated only once, only the interrupt signal IRQ is generated at that timing. In this second cycle, the external synchronization signal SYNC is supplied at the timing of the count value “n−k−1” after n clocks from the time t1, and the same normal operation as in FIG. Return (not shown).

外部同期信号SYNCが早まった場合の動作は,図11との対比から理解できるので,ここでの説明を省略する。   Since the operation when the external synchronization signal SYNC is advanced can be understood from the comparison with FIG. 11, the description thereof is omitted here.

図13は,第3の実施の形態における割込発生回路を有する集積回路装置の構成図である。この例では,外部クロックの供給を受けることなく,内部のクロック発生器16が常に内部クロックICLKを生成し,外部同期信号SYNCによりカウンタ12を有する割込発生回路10の再同期動作が行われる。それ以外は,図3の構成と同じである。   FIG. 13 is a configuration diagram of an integrated circuit device having an interrupt generation circuit according to the third embodiment. In this example, the internal clock generator 16 always generates the internal clock ICLK without receiving the supply of the external clock, and the resynchronization operation of the interrupt generation circuit 10 having the counter 12 is performed by the external synchronization signal SYNC. Otherwise, the configuration is the same as in FIG.

同様に,図8の構成において,内部のクロック発生器16が外部クロックの供給を受けることなく常に内部クロックを生成する構成にしてもよい。   Similarly, in the configuration of FIG. 8, the internal clock generator 16 may always generate an internal clock without receiving an external clock.

以上のとおり,第1の実施の形態では,カウント値「0」のタイミングで割込信号が生成されるようにし,外部同期信号をkクロック遅延させてカウント値「k」をロードするようにしたので,カウンタのカウント値「0」が繰り返されることが防止される。また,第2の実施の形態では,カウント値「n−k」のタイミングで割込信号が生成されるようにし,外部同期信号をkクロック遅延させてカウンタをカウント値「0」にクリア動作するようにしたので,カウント値「n−k」が繰り返されることが防止される。いずれの場合も,k=1にすることで遅延回路を1クロック遅延の簡単な回路にすることができる。   As described above, in the first embodiment, an interrupt signal is generated at the timing of the count value “0”, and the count value “k” is loaded by delaying the external synchronization signal by k clocks. Therefore, the count value “0” of the counter is prevented from being repeated. In the second embodiment, an interrupt signal is generated at the timing of the count value “n−k”, the external synchronization signal is delayed by k clocks, and the counter is cleared to the count value “0”. Since it did in this way, it is prevented that count value "nk" is repeated. In either case, by setting k = 1, the delay circuit can be a simple circuit having a one-clock delay.

以上の実施の形態をまとめると,次の付記のとおりである。   The above embodiment is summarized as follows.

(付記1)クロックに同期して0からn−1まで循環してカウント動作するn進のカウンタと,前記カウンタの所定のカウント値に応答して割込信号を発生する割込信号発生器とを有する割込発生回路において,
外部同期信号をkクロック遅延させる遅延回路を有し,前記カウンタは前記遅延回路で遅延した遅延同期信号に応答してカウント値「k」をロードし,前記割込信号発生器は前記カウンタのクリア値に応答して前記割込信号を発生することを特徴とする割込発生回路。
(Supplementary note 1) An n-ary counter that circulates from 0 to n−1 in synchronization with the clock, and an interrupt signal generator that generates an interrupt signal in response to a predetermined count value of the counter, In an interrupt generation circuit having
A delay circuit for delaying the external synchronization signal by k clocks; the counter loads a count value “k” in response to the delay synchronization signal delayed by the delay circuit; and the interrupt signal generator clears the counter An interrupt generation circuit for generating the interrupt signal in response to a value.

(付記2)付記1において,
前記遅延回路は外部同期信号を1クロック遅延し,前記カウンタは遅延同期信号に応答してカウント値「1」をロードすることを特徴とする割込発生回路。
(Appendix 2) In Appendix 1,
The delay generation circuit delays an external synchronization signal by one clock, and the counter loads a count value “1” in response to the delay synchronization signal.

(付記3)付記1において,
外部クロックを供給され前記カウンタに内部クロックを供給するクロック発生器を更に有することを特徴とする割込発生回路。
(Appendix 3) In Appendix 1,
An interrupt generation circuit further comprising a clock generator which is supplied with an external clock and supplies an internal clock to the counter.

(付記4)付記3において,
前記外部同期信号は,通常動作においてカウント値「n−1」のタイミングで供給され,n個の外部クロック毎に供給されることを特徴とする割込発生回路。
(Appendix 4) In Appendix 3,
The external synchronizing signal is supplied at a timing of a count value “n−1” in normal operation and is supplied every n external clocks.

(付記5)クロックに同期して0からn−1まで循環してカウント動作するn進のカウンタと,前記カウンタの所定のカウント値に応答して割込信号を発生する割込信号発生器とを有する割込発生回路において,
外部同期信号をkクロック遅延させる遅延回路を有し,前記カウンタは前記遅延回路で遅延した遅延同期信号に応答してカウント値「0」にクリアし,前記割込信号発生器は前記カウンタのカウント値「n−k」に応答して前記割込信号を発生することを特徴とする割込発生回路。
(Supplementary Note 5) An n-ary counter that circulates from 0 to n-1 in synchronization with the clock, and an interrupt signal generator that generates an interrupt signal in response to a predetermined count value of the counter, In an interrupt generation circuit having
A delay circuit for delaying the external synchronization signal by k clocks; the counter is cleared to a count value “0” in response to the delay synchronization signal delayed by the delay circuit; and the interrupt signal generator is configured to count the counter An interrupt generation circuit for generating the interrupt signal in response to a value “n−k”.

(付記6)付記5において,
前記遅延回路は外部同期信号を1クロック遅延し,前記割込信号発生器は前記カウンタのカウント値「n−1」に応答して前記割込信号を発生することを特徴とする割込発生回路。
(Appendix 6) In Appendix 5,
The delay circuit delays an external synchronization signal by one clock, and the interrupt signal generator generates the interrupt signal in response to a count value “n−1” of the counter. .

(付記7)付記5において,
外部クロックを供給され前記カウンタに内部クロックを供給するクロック発生器を更に有することを特徴とする割込発生回路。
(Appendix 7) In Appendix 5,
An interrupt generation circuit further comprising a clock generator which is supplied with an external clock and supplies an internal clock to the counter.

(付記8)付記7において,
前記外部同期信号は,通常動作においてカウント値「n−k−1」のタイミングで供給され,n個の外部クロック毎に供給されることを特徴とする割込発生回路。
(Appendix 8) In Appendix 7,
The external synchronization signal is supplied at a timing of a count value “n−k−1” in a normal operation, and is supplied every n external clocks.

割込発生回路を内蔵する集積回路装置の構成と動作を示す図である。It is a figure which shows the structure and operation | movement of an integrated circuit device which incorporates an interrupt generation circuit. 図1の割込発生回路の動作タイミング図である。FIG. 2 is an operation timing chart of the interrupt generation circuit of FIG. 1. 本実施の形態における割込発生回路を有する集積回路装置の構成図である。It is a block diagram of the integrated circuit device which has the interrupt generation circuit in this Embodiment. 図3の割込発生回路の動作タイミング図である。FIG. 4 is an operation timing chart of the interrupt generation circuit of FIG. 3. 図3の割込発生回路の動作タイミング図である。FIG. 4 is an operation timing chart of the interrupt generation circuit of FIG. 3. 図3の割込発生回路の動作タイミング図である。FIG. 4 is an operation timing chart of the interrupt generation circuit of FIG. 3. 本実施の形態の一般化した場合の動作タイミング図である。It is an operation | movement timing diagram at the time of generalizing this Embodiment. 第2の実施の形態における割込発生回路を有する集積回路装置の構成図である。It is a block diagram of the integrated circuit device which has the interrupt generation circuit in 2nd Embodiment. 図8の割込発生回路の動作タイミング図である。FIG. 9 is an operation timing chart of the interrupt generation circuit of FIG. 8. 図8の割込発生回路の動作タイミング図である。FIG. 9 is an operation timing chart of the interrupt generation circuit of FIG. 8. 図8の割込発生回路の動作タイミング図である。FIG. 9 is an operation timing chart of the interrupt generation circuit of FIG. 8. 第2の実施の形態の一般化した場合の動作タイミング図である。It is an operation | movement timing diagram at the time of generalization of 2nd Embodiment. 第3の実施の形態における割込発生回路を有する集積回路装置の構成図である。It is a block diagram of the integrated circuit device which has the interrupt generation circuit in 3rd Embodiment.

符号の説明Explanation of symbols

LSI:集積回路装置 DSP:プロセッサコア
10:割込発生回路 IRQ:割込信号
12:カウンタ 14:割込信号発生器
16:クロック発生器 18:遅延回路
19:ロード値レジスタ LOAD:ロード端子
SYNC:外部同期信号 ICLK:内部クロック
LSI: Integrated circuit device DSP: Processor core 10: Interrupt generation circuit IRQ: Interrupt signal 12: Counter 14: Interrupt signal generator 16: Clock generator 18: Delay circuit 19: Load value register LOAD: Load terminal SYNC: External synchronization signal ICLK: Internal clock

Claims (4)

クロックに同期して0からn−1まで循環してカウント動作するn進のカウンタと,前記カウンタの所定のカウント値に応答して割込信号を発生する割込信号発生器とを有する割込発生回路において,
外部同期信号に応答して前記カウンタが再同期し,
前記外部同期信号をkクロック遅延させる遅延回路を有し,前記カウンタは前記遅延回路で遅延した遅延同期信号に応答してカウント値「k」をロードして再同期し,前記割込信号発生器は前記カウンタのクリア値に応答して前記割込信号を発生することを特徴とする割込発生回路。
An interrupt having an n-ary counter that circulates from 0 to n-1 in synchronization with the clock and an interrupt signal generator that generates an interrupt signal in response to a predetermined count value of the counter In the generator circuit,
The counter resynchronizes in response to an external synchronization signal,
Said external synchronizing signal has a delay circuit for k clock delay, the counter is resynchronized by loading a count value "k" in response to the delayed synchronization signal delayed by the delay circuit, the interrupt signal generator Generates an interrupt signal in response to a clear value of the counter.
請求項1において,
前記遅延回路は外部同期信号を1クロック遅延し,前記カウンタは遅延同期信号に応答してカウント値「1」をロードすることを特徴とする割込発生回路。
In claim 1,
The delay generation circuit delays an external synchronization signal by one clock, and the counter loads a count value “1” in response to the delay synchronization signal.
クロックに同期して0からn−1まで循環してカウント動作するn進のカウンタと,前記カウンタの所定のカウント値に応答して割込信号を発生する割込信号発生器とを有する割込発生回路において,
外部同期信号に応答して前記カウンタが再同期し,
前記外部同期信号をkクロック遅延させる遅延回路を有し,前記カウンタは前記遅延回路で遅延した遅延同期信号に応答してカウント値「0」にクリアして再同期し,前記割込信号発生器は前記カウンタのカウント値「n−k」に応答して前記割込信号を発生することを特徴とする割込発生回路。
An interrupt having an n-ary counter that circulates from 0 to n-1 in synchronization with the clock and an interrupt signal generator that generates an interrupt signal in response to a predetermined count value of the counter In the generator circuit,
The counter resynchronizes in response to an external synchronization signal,
Said external synchronizing signal has a delay circuit for k clock delay, the counter is cleared and re-synchronization with the count value "0" in response to the delayed synchronization signal delayed by the delay circuit, the interrupt signal generator Generates an interrupt signal in response to a count value “n−k” of the counter.
請求項3において,
前記遅延回路は外部同期信号を1クロック遅延し,前記割込信号発生器は前記カウンタのカウント値「n−1」に応答して前記割込信号を発生することを特徴とする割込発生回路。
In claim 3,
The delay circuit delays an external synchronization signal by one clock, and the interrupt signal generator generates the interrupt signal in response to a count value “n−1” of the counter. .
JP2005172348A 2005-06-13 2005-06-13 Resynchronizable interrupt generator Expired - Fee Related JP4490337B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005172348A JP4490337B2 (en) 2005-06-13 2005-06-13 Resynchronizable interrupt generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005172348A JP4490337B2 (en) 2005-06-13 2005-06-13 Resynchronizable interrupt generator

Publications (2)

Publication Number Publication Date
JP2006350435A JP2006350435A (en) 2006-12-28
JP4490337B2 true JP4490337B2 (en) 2010-06-23

Family

ID=37646244

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005172348A Expired - Fee Related JP4490337B2 (en) 2005-06-13 2005-06-13 Resynchronizable interrupt generator

Country Status (1)

Country Link
JP (1) JP4490337B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60116549U (en) * 1984-01-12 1985-08-07 三菱電機株式会社 Main/slave computer synchronization device
JPH0756862A (en) * 1993-08-20 1995-03-03 Yaskawa Electric Corp System for synchronizing multiprocessor system
JP2002149419A (en) * 2000-11-03 2002-05-24 Arm Ltd Logic unit for clarifying interruption and integrated circuit
JP2004054669A (en) * 2002-07-22 2004-02-19 Renesas Technology Corp Interrupt controller and concurrent processing system using the same
JP2005339245A (en) * 2004-05-27 2005-12-08 Nec Electronics Corp Interruption generation circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60116549U (en) * 1984-01-12 1985-08-07 三菱電機株式会社 Main/slave computer synchronization device
JPH0756862A (en) * 1993-08-20 1995-03-03 Yaskawa Electric Corp System for synchronizing multiprocessor system
JP2002149419A (en) * 2000-11-03 2002-05-24 Arm Ltd Logic unit for clarifying interruption and integrated circuit
JP2004054669A (en) * 2002-07-22 2004-02-19 Renesas Technology Corp Interrupt controller and concurrent processing system using the same
JP2005339245A (en) * 2004-05-27 2005-12-08 Nec Electronics Corp Interruption generation circuit

Also Published As

Publication number Publication date
JP2006350435A (en) 2006-12-28

Similar Documents

Publication Publication Date Title
CN100373288C (en) Glitch-free clock selection circuit
US9501088B2 (en) Clock generator, communication device and sequential clock gating circuit
US8375239B2 (en) Clock control signal generation circuit, clock selector, and data processing device
US7490257B2 (en) Clock distributor for use in semiconductor logics for generating clock signals when enabled and a method therefor
US20010022745A1 (en) Delay locked loop for use in semiconductor memory device
US6675249B2 (en) Information processing equipment and information processing system
US5881113A (en) Redundancy clock supply module for exchange system
JP4490337B2 (en) Resynchronizable interrupt generator
JP3600533B2 (en) Method and apparatus for synchronizing time of day (TOD) events between nodes
JP2004258888A (en) Semiconductor integrated circuit
JP3132657B2 (en) Clock switching circuit
US6879541B2 (en) Integrated circuit with improved output control signal and method for generating improved output control signal
JP2008311989A (en) Dll circuit
JP2005109955A (en) Asynchronous communication circuit
JP2007193658A (en) Semiconductor device
KR940008732B1 (en) Clock selected control circuit
JP3062179B1 (en) Redundant clock phase adjustment circuit
JP2962087B2 (en) Power control circuit
JPH08329000A (en) Information processor
JP3494867B2 (en) Dependent clock switching circuit and dependent clock switching system
JPH11355259A (en) Clock confounding/distributing device
JP2680299B2 (en) Reset circuit for synchronous counter
JP2005026757A (en) Clock switching circuit and image processing apparatus employing the same
JP2679481B2 (en) Self-propelled synchronous circuit
JP4476039B2 (en) Data delivery circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080226

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20080731

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091019

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091201

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100128

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100330

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100401

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130409

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130409

Year of fee payment: 3

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130409

Year of fee payment: 3

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130409

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees