JP2012141730A - Operating clock generation device and processor - Google Patents

Operating clock generation device and processor Download PDF

Info

Publication number
JP2012141730A
JP2012141730A JP2010293344A JP2010293344A JP2012141730A JP 2012141730 A JP2012141730 A JP 2012141730A JP 2010293344 A JP2010293344 A JP 2010293344A JP 2010293344 A JP2010293344 A JP 2010293344A JP 2012141730 A JP2012141730 A JP 2012141730A
Authority
JP
Japan
Prior art keywords
clock
reference clock
operation clock
counter
carry signal
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
JP2010293344A
Other languages
Japanese (ja)
Inventor
Hajime Usami
元 宇佐美
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2010293344A priority Critical patent/JP2012141730A/en
Publication of JP2012141730A publication Critical patent/JP2012141730A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Logic Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To suppress any surplus operating clock from being output due to any glitch in an operating clock generation device for generating an operating clock whose frequency is switchable and a processor equipped with a plurality of circuits which operate with the operating clock generated by the operating clock generation device.SOLUTION: After a counter value is set to the predetermined number, a counter 7 subtracts one counter value each time one reference clock PS0 is counted, and when the counter value becomes "0", outputs a carry signal C-SEL (reference clock PS0 for one cycle) in an H level from a carry terminal 7d, and resets the above mentioned counter value to the above mentioned predetermined number. When a switching value is input to a val_max terminal 7c of the counter 7, the above mentioned predetermined number is changed to the value. A clock gating cell 9 outputs only the reference clock PS0 which has started up when the carry signal C-SEL is the H level as an operating clock BCLK.

Description

本発明は、周波数の切換が可能な動作クロックを生成する動作クロック生成装置、及び、その動作クロック生成装置が生成する動作クロックによって動作する回路を複数備えた処理装置に関する。   The present invention relates to an operation clock generation device that generates an operation clock whose frequency can be switched, and a processing device including a plurality of circuits that operate according to the operation clock generated by the operation clock generation device.

従来、CPU等のように、入力された動作クロックによって動作する回路を備えた処理装置では、消費電力を低減するために動作クロックの周波数を切り換えることが提案されている。例えば、画像形成装置,画像読取装置等に内蔵されてそれらの制御を行う処理装置では、画像の形成や読取が長い間実行されない場合はスリープモードへ移行し、表示部等への通電を中止すると共に、CPU等に入力される動作クロックの周波数を低くすることが提案されている。   2. Description of the Related Art Conventionally, it has been proposed to switch the frequency of an operation clock in a processing apparatus including a circuit that operates according to an input operation clock, such as a CPU, in order to reduce power consumption. For example, in a processing apparatus that is built in an image forming apparatus, an image reading apparatus, or the like and controls them, when image formation or reading is not performed for a long time, the process shifts to a sleep mode and stops energizing the display unit or the like. At the same time, it has been proposed to lower the frequency of the operation clock input to the CPU or the like.

ここで、複数の回路に周波数の異なる動作クロックを切り換えて入力する場合、前記周波数の異なる複数の動作クロックを各回路に対して出力し、各回路毎に設けたセレクタにより所望の周波数の動作クロックを選択して対応する回路に入力することが考えられる。ところが、その場合、前記複数の回路に入力される動作クロックを同期させるためには、各周波数の動作クロックに対してクロック信号供給用の信号線の長さを調整する必要が生じるなど、回路構成が複雑化する可能性がある。   Here, when switching and inputting operation clocks having different frequencies to a plurality of circuits, the plurality of operation clocks having different frequencies are output to each circuit, and an operation clock having a desired frequency is provided by a selector provided for each circuit. Can be selected and input to the corresponding circuit. However, in this case, in order to synchronize the operation clocks input to the plurality of circuits, it is necessary to adjust the length of the signal line for supplying the clock signal with respect to the operation clock of each frequency. May be complicated.

そこで、基準クロックを計数するバイナリ・カウンタが、桁上がり時に出力するキャリー信号を用いて基準クロックをゲーティングすることにより、複数の回路に周波数の異なる動作クロックを切り換えて入力することが提案されている(例えば特許文献1参照)。   Therefore, it has been proposed that a binary counter that counts the reference clock switches and inputs operation clocks having different frequencies to a plurality of circuits by gating the reference clock using a carry signal output at the time of carry. (For example, refer to Patent Document 1).

特開2002−229667号公報JP 2002-229667 A

ところが、特許文献1記載の処理装置では、動作クロックの周波数をセレクタを用いて切り換えているため、その切換時にいわゆるグリッジと言われる小幅パルスの影響が出る場合があった。すると、そのグリッジの発生タイミングによっては、当該グリッジに同期した基準クロック等が余分な動作クロックとして出力されてしまう可能性がある。   However, in the processing apparatus described in Patent Document 1, since the frequency of the operation clock is switched using a selector, there is a case where the effect of a small pulse called a glitch occurs at the time of switching. Then, depending on the generation timing of the glitch, a reference clock or the like synchronized with the glitch may be output as an extra operation clock.

そこで、本発明は、周波数の切換が可能な動作クロックを生成する動作クロック生成装置、及び、その動作クロック生成装置が生成する動作クロックによって動作する回路を複数備えた処理装置において、グリッジによって余分な動作クロックが出力されるのを抑制することを目的としてなされた。   Accordingly, the present invention provides an operation clock generation device that generates an operation clock whose frequency can be switched, and a processing device that includes a plurality of circuits that operate based on the operation clock generated by the operation clock generation device. The purpose was to suppress the output of the operating clock.

前記目的を達するためになされた本発明の動作クロック生成装置は、基準クロックを計数し、所定数の前記基準クロックを計数する毎にキャリー信号を出力するカウンタ部と、前記カウンタ部の前記所定数を設定する設定部と、前記基準クロック及び前記キャリー信号が入力され、前記キャリー信号に同期した前記基準クロックを通過させて他の前記基準クロックを間引くことにより動作クロックを生成するクロックゲーティングセルと、を備えたことを特徴としている。   The operation clock generator of the present invention made to achieve the above object includes a counter unit that counts a reference clock and outputs a carry signal every time a predetermined number of the reference clocks are counted, and the predetermined number of the counter units And a clock gating cell that receives the reference clock and the carry signal and generates an operation clock by passing the reference clock synchronized with the carry signal and thinning out the other reference clock. It is characterized by having.

このように構成された本発明の動作クロック生成装置では、カウンタ部は、基準クロックを計数し、所定数の前記基準クロックを計数する毎にキャリー信号を出力する。すると、クロックゲーティングセルは、前記キャリー信号に同期した前記基準クロックを通過させて他の前記基準クロックを間引くことにより動作クロックを生成する。このため、動作クロックは、前記カウンタ部が前記所定数を計数する毎に出力される。また、設定部は、前記カウンタ部の前記所定数を設定する。このため、設定部によって前記所定数を変更すれば、前記動作クロックの周波数を切り換えることができる。   In the operation clock generation device of the present invention configured as described above, the counter unit counts the reference clock and outputs a carry signal every time a predetermined number of the reference clocks are counted. Then, the clock gating cell generates the operation clock by passing the reference clock synchronized with the carry signal and thinning out the other reference clock. For this reason, the operation clock is output every time the counter unit counts the predetermined number. The setting unit sets the predetermined number of the counter unit. For this reason, if the predetermined number is changed by the setting unit, the frequency of the operation clock can be switched.

このように、本発明では、セレクタによってではなく、カウンタ部の前記所定数を設定することによって動作クロックの周波数を切り換えている。このため、グリッジによって余分な動作クロックが出力されるのを良好に抑制することができる。   As described above, in the present invention, the frequency of the operation clock is switched by setting the predetermined number of the counter units, not by the selector. For this reason, it is possible to satisfactorily suppress the output of an extra operation clock due to the glitch.

なお、前記カウンタ部は、計数値が前記所定数に設定された後、前記基準クロックを1つ計数する毎に1つ計数値を減算し、当該計数値が0になると、前記キャリー信号を出力すると共に前記計数値を前記所定数にリセットするものであってもよい。   The counter unit subtracts one count value every time the reference clock is counted after the count value is set to the predetermined number, and outputs the carry signal when the count value becomes zero. In addition, the count value may be reset to the predetermined number.

また、前記クロックゲーティングセルは、前記キャリー信号の出力中に立ち上がった前記基準クロック、または、前記キャリー信号の出力中に立ち下がった前記基準クロックを通過させ、他の前記基準クロックを間引くものであってもよい。   The clock gating cell passes the reference clock that rises during the output of the carry signal or the reference clock that falls during the output of the carry signal, and thins out the other reference clocks. There may be.

また、本発明の処理装置は、複数の回路を備えた処理装置であって、前記いずれかの動作クロック生成装置が前記各回路毎に設けられ、前記各回路は、自身に対して設けられた前記動作クロック生成装置が生成する動作クロックによって動作することを特徴としている。このため、前記各回路に入力される動作クロックには、前述のようにグリッジによる余分な動作クロックが含まれることがなく、各回路は正確に動作することができる。   The processing apparatus of the present invention is a processing apparatus having a plurality of circuits, wherein any one of the operation clock generation devices is provided for each circuit, and each circuit is provided for itself. The operation clock generator operates according to an operation clock generated. Therefore, the operation clock input to each circuit does not include an extra operation clock due to glitches as described above, and each circuit can operate accurately.

そして、その場合、前記複数の回路のうちの少なくとも2つが、互いに通信を行ってもよい。その場合、グリッジによる余分な動作クロックの出力を抑制できるといった前述の効果が、次のように一層顕著に表れる。すなわち、2つの回路で通信を行う場合、各回路に同様のタイミングで同数の動作クロックが入力される必要がある。本発明では、前述のように、グリッジによる余分な動作クロックの出力を抑制することができるので、前記2つの回路の間の通信を良好に行うことができる。   In that case, at least two of the plurality of circuits may communicate with each other. In that case, the above-described effect that the output of an extra operation clock due to the glitch can be suppressed becomes more prominent as follows. That is, when two circuits communicate, the same number of operation clocks must be input to each circuit at the same timing. As described above, according to the present invention, it is possible to suppress the output of an extra operation clock due to the glitch, so that communication between the two circuits can be performed satisfactorily.

そして、更にその場合、前記2つの回路のうちの一方がCPUで、他方がメモリコントローラであってもよい。CPUとメモリコントローラとの間では頻繁に通信が行われるが、各々に入力される動作クロックが同様に変更されるのであれば、その周波数を変更しても殆ど動作に影響がない。従って、この場合、本発明の効果が一層顕著に表れる。   In that case, one of the two circuits may be a CPU and the other may be a memory controller. Although communication is frequently performed between the CPU and the memory controller, if the operation clock input to each is changed in the same manner, even if the frequency is changed, the operation is hardly affected. Therefore, in this case, the effect of the present invention is more remarkable.

本発明を適用した動作クロック生成装置の構成を表すブロック図である。It is a block diagram showing the structure of the operation clock generation apparatus to which this invention is applied. その動作クロック生成装置のクロックゲーティングセルの構成を模式的に表す等価回路図(A)及びその動作を表すタイムチャート(B)である。FIG. 4 is an equivalent circuit diagram (A) schematically showing the configuration of the clock gating cell of the operation clock generation device and a time chart (B) showing the operation thereof. 前記動作クロック生成装置の動作を表すタイムチャートである。It is a time chart showing operation | movement of the said operation clock generation apparatus. その動作クロック生成装置を応用した処理装置を表すブロック図である。It is a block diagram showing the processing apparatus which applied the operation clock generation apparatus. 参考例の処理装置の構成を表すブロック図である。It is a block diagram showing the structure of the processing apparatus of a reference example. その処理装置の動作及び課題を表すタイムチャートである。It is a time chart showing operation | movement and the subject of the processing apparatus.

(動作クロック生成装置の構成及び動作)
次に、本発明の実施の形態を図面と共に説明する。図1は、本発明を適用した動作クロック生成装置1の構成を表すブロック図である。図1に示すように、動作クロック生成装置1は、次のように、発振回路3,PLL回路5,カウンタ7(カウンタ部の一例),クロックゲーティングセル9を備えている。発振回路3は、動作クロックの元となる発振信号を生成してPLL回路5に入力する。PLL回路5は、発振回路3が出力する発振信号に位相が同期し、周波数が逓倍された基準クロックPS0(任意の周波数でよいが、本例では仮に48MHzとする)を出力する。
(Configuration and operation of operation clock generator)
Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a configuration of an operation clock generation apparatus 1 to which the present invention is applied. As shown in FIG. 1, the operation clock generator 1 includes an oscillation circuit 3, a PLL circuit 5, a counter 7 (an example of a counter unit), and a clock gating cell 9 as follows. The oscillation circuit 3 generates an oscillation signal that is a source of the operation clock and inputs the oscillation signal to the PLL circuit 5. The PLL circuit 5 outputs a reference clock PS0 whose phase is synchronized with the oscillation signal output from the oscillation circuit 3 and whose frequency has been multiplied (arbitrary frequency may be used, but it is assumed to be 48 MHz in this example).

この基準クロックPS0は、カウンタ7のclk端子7aに入力されると共に、クロックゲーティングセル9にも入力されている。カウンタ7は、バイナリ・カウンタとして構成され、カウンタ値(計数値)が所定数に設定された後、基準クロックPS0を1つ計数する毎に1つカウンタ値を減算し、そのカウンタ値をcount端子7bからnビットのデータとして出力する。また、カウンタ7の前記所定数は、カウンタ7のval_max端子7c(設定部の一例)に、図示省略した制御部から切換値が入力されると、その値に変更される。そして、カウンタ7は、前記カウンタ値が「0」になると、carry端子7dからHレベルのキャリー信号C−SELを出力する共に、前記カウンタ値を前記所定数にリセットする。   The reference clock PS0 is input to the clk terminal 7a of the counter 7 and also input to the clock gating cell 9. The counter 7 is configured as a binary counter, and after the counter value (count value) is set to a predetermined number, every time one reference clock PS0 is counted, one counter value is subtracted and the counter value is counted. The data is output as 7-bit data from 7b. The predetermined number of the counter 7 is changed to a value when a switching value is input to the val_max terminal 7c (an example of a setting unit) of the counter 7 from a control unit (not shown). Then, when the counter value becomes “0”, the counter 7 outputs the carry signal C-SEL of the H level from the carry terminal 7d and resets the counter value to the predetermined number.

クロックゲーティングセル9には、前述の基準クロックPS0と共に前述のキャリー信号C−SELも入力され、次のように動作クロックBCLKを出力する。図2(A)は、クロックゲーティングセル9の構成を模式的に表す等価回路図であり、図2(B)はその動作を表すタイムチャートである。なお、実際のクロックゲーティングセル9は、図2(A)に示すようにラッチ回路91,AND回路93等を配線で接続した構成とは異なり、一体のセルとして構成されている。   The clock gating cell 9 also receives the carry signal C-SEL as well as the reference clock PS0, and outputs the operation clock BCLK as follows. FIG. 2A is an equivalent circuit diagram schematically showing the configuration of the clock gating cell 9, and FIG. 2B is a time chart showing its operation. Note that the actual clock gating cell 9 is configured as an integral cell, unlike the configuration in which the latch circuit 91, the AND circuit 93, and the like are connected by wiring as shown in FIG.

図2(A)に示すように、この等価回路は、ラッチ回路91とAND回路93とを備えている。ラッチ回路91には、前述のキャリー信号C−SELと基準クロックPS0の反転とが入力され、基準クロックPS0はAND回路93へも入力されている。ラッチ回路91は、図2(B)に示すように、反転後の基準クロックPS0がHレベルのとき(基準クロックPS0がLレベルのとき)はキャリー信号C−SELの値をそのまま信号LCENとして出力し、反転後の基準クロックPS0の値がLレベルのときは信号LCENの値を保持する。   As shown in FIG. 2A, this equivalent circuit includes a latch circuit 91 and an AND circuit 93. The carry circuit C-SEL and the inversion of the reference clock PS 0 are input to the latch circuit 91, and the reference clock PS 0 is also input to the AND circuit 93. As shown in FIG. 2B, the latch circuit 91 outputs the value of the carry signal C-SEL as a signal LCEN as it is when the inverted reference clock PS0 is at H level (when the reference clock PS0 is at L level). When the value of the inverted reference clock PS0 is L level, the value of the signal LCEN is held.

この信号LCENが基準クロックPS0と共にAND回路93に入力され、両者の論理積が動作クロックBCLKとして出力される。このため、Hレベルのキャリー信号C−SELの出力中に立ち上がった基準クロックPS0が、動作クロックBCLKとして出力されることになる。すなわち、クロックゲーティングセル9は、キャリー信号C−SELがHレベルのときに立ち上がった基準クロックPS0を通過させ、キャリー信号C−SELがLレベルのときに立ち上がった基準クロックPS0を間引くことにより、動作クロックBCLKを生成する。   This signal LCEN is input to the AND circuit 93 together with the reference clock PS0, and the logical product of both is output as the operation clock BCLK. Therefore, the reference clock PS0 that rises during the output of the carry signal C-SEL at the H level is output as the operation clock BCLK. That is, the clock gating cell 9 passes the reference clock PS0 that rises when the carry signal C-SEL is at the H level, and thins out the reference clock PS0 that rises when the carry signal C-SEL is at the L level. An operation clock BCLK is generated.

次に、図3は、動作クロック生成装置1の全体の動作を表すタイムチャートである。図3に示すように、例えば、切換値が「3」に設定されている場合、カウンタ値が「3」に設定された後、カウンタ7は基準クロックPS0を1つ計数する毎に1つカウンタ値を減算する。そして、カウンタ値が「0」となると、次に基準クロックPS0が立ち上がったタイミングT1にて、カウンタ7はカウンタ値を前記切換値にリセットし、基準クロックPS0の1周期分のパルス幅を有するHレベルのキャリー信号C−SELを出力する。すると、そのキャリー信号C−SELの出力中に立ち上がった基準クロックPS0が、動作クロックBCLKとして出力される。   Next, FIG. 3 is a time chart showing the overall operation of the operation clock generator 1. As shown in FIG. 3, for example, when the switching value is set to “3”, after the counter value is set to “3”, the counter 7 counts one for each reference clock PS0. Subtract the value. When the counter value becomes “0”, the counter 7 resets the counter value to the switching value at the next timing T1 when the reference clock PS0 rises, and has a pulse width corresponding to one cycle of the reference clock PS0. A level carry signal C-SEL is output. Then, the reference clock PS0 that rises during the output of the carry signal C-SEL is output as the operation clock BCLK.

ここで、切換値が「3」から「7」に切り換えられたとすると、その切換後にカウンタ値が「0」となった後に基準クロックPS0が立ち上がったタイミングT2にて、カウンタ7はカウンタ値を新たな切換値「7」にリセットする。このときも、前述のように、キャリー信号C−SELが出力され、その出力中に立ち上がった基準クロックPS0が、動作クロックBCLKとして出力される。   Here, assuming that the switching value is switched from “3” to “7”, the counter 7 updates the counter value at the timing T2 when the reference clock PS0 rises after the counter value becomes “0” after the switching. Reset to “7”. Also at this time, as described above, carry signal C-SEL is output, and reference clock PS0 rising during the output is output as operation clock BCLK.

そして、このようにカウンタ値が「7」に設定された後、カウンタ7は基準クロックPS0を1つ計数する毎に1つカウンタ値を減算する。そして、カウンタ値が「0」となると、次に基準クロックPS0が立ち上がったタイミングT3にて、カウンタ7はカウンタ値を前記切換値「7」にリセットし、キャリー信号C−SELを出力する。すると、そのキャリー信号C−SELの出力中に立ち上がった基準クロックPS0が、動作クロックBCLKとして出力される。   Then, after the counter value is set to “7” in this way, the counter 7 subtracts one counter value every time one reference clock PS0 is counted. When the counter value becomes “0”, at the next timing T3 when the reference clock PS0 rises, the counter 7 resets the counter value to the switching value “7” and outputs the carry signal C-SEL. Then, the reference clock PS0 that rises during the output of the carry signal C-SEL is output as the operation clock BCLK.

従って、動作クロック生成装置1では、切換値を入力して前記所定数を変更することによって、動作クロックBCLKの周波数を切り換えることができる。また、動作クロック生成装置1では、セレクタによってではなく、カウンタ7の前記所定数を設定することによって動作クロックBCLKの周波数を切り換えている。このため、グリッジによって余分な動作クロックが出力されるのを良好に抑制することができる。なお、セレクタによって動作クロックBCLKの周波数を切り換える参考例は、後に詳述する。   Therefore, the operation clock generator 1 can switch the frequency of the operation clock BCLK by inputting a switching value and changing the predetermined number. Further, in the operation clock generation device 1, the frequency of the operation clock BCLK is switched by setting the predetermined number of the counter 7, not by the selector. For this reason, it is possible to satisfactorily suppress the output of an extra operation clock due to the glitch. A reference example for switching the frequency of the operation clock BCLK by the selector will be described in detail later.

(処理装置への応用)
図4は、前述の動作クロック生成装置1を応用した処理装置21の構成を表すブロック図である。図4に示すように、この処理装置21は、タイマ23と、CPU25(回路の一例)と、メモリコントローラ27(回路の一例)とを備えている。タイマ23には、前述の48MHzの基準クロックPS0が常時入力される。
(Application to processing equipment)
FIG. 4 is a block diagram showing a configuration of a processing device 21 to which the above-described operation clock generation device 1 is applied. As shown in FIG. 4, the processing device 21 includes a timer 23, a CPU 25 (an example of a circuit), and a memory controller 27 (an example of a circuit). The above-described 48 MHz reference clock PS0 is constantly input to the timer 23.

これに対して、CPU25,メモリコントローラ27には、前述のカウンタ7,クロックゲーティングセル9が個々に設けられ、対応するクロックゲーティングセル9からの動作クロックBCLKが入力される。このため、切換値として「0」を入力すれば、Hレベルのキャリー信号C−SELが常時出力され、クロックゲーティングセル9からは基準クロックPS0と同様の48MHzの動作クロックBCLKが出力される。一方、切換値として「1」を入力すれば、Hレベルのキャリー信号C−SELが基準クロックPS0の1周期置きに出力され、クロックゲーティングセル9からは24MHzの動作クロックBCLKが出力される。   In contrast, the CPU 25 and the memory controller 27 are each provided with the counter 7 and the clock gating cell 9 described above, and the operation clock BCLK from the corresponding clock gating cell 9 is input thereto. Therefore, if “0” is input as the switching value, an H-level carry signal C-SEL is always output, and the clock gating cell 9 outputs a 48 MHz operation clock BCLK similar to the reference clock PS0. On the other hand, if “1” is input as the switching value, an H-level carry signal C-SEL is output every other cycle of the reference clock PS 0, and a 24 MHz operation clock BCLK is output from the clock gating cell 9.

CPU25は、図示省略したインタフェースを介してデータの読み出し命令または書き込み命令を受信した場合、メモリコントローラ27と互いに通信(メモリアクセス)を行い、そのメモリコントローラ27を介して図示省略したメモリにデータの読み出しまたは書き込みを行う。この処理装置21が、画像形成装置,画像読取装置等に内蔵されてそれらの制御を行うものである場合、画像の形成や読取が長い間実行されない場合はスリープモードへ移行し、前述のようなデータの読み出し,書き込みも実行されなくなる。そこで、そのような場合には、前述のように動作クロックBCLKの周波数を稼働時の48MHzから24MHzに切り換えて、処理装置21の全体としての消費電力を低減するのが望ましい。   When the CPU 25 receives a data read command or write command via an interface (not shown), the CPU 25 communicates (memory access) with the memory controller 27 and reads data to the memory (not shown) via the memory controller 27. Or write. When the processing device 21 is built in an image forming device, an image reading device, or the like and controls them, when the image formation or reading is not executed for a long time, the processing device 21 shifts to the sleep mode, as described above. Data is neither read nor written. Therefore, in such a case, it is desirable to reduce the power consumption of the entire processing device 21 by switching the frequency of the operation clock BCLK from 48 MHz during operation to 24 MHz as described above.

処理装置21は、前述のようにグリッジによる余分な動作クロックの出力を抑制可能な動作クロック生成装置1を応用している。このため、切換値を各カウンタ7に同時に入力すれば、前記周波数の切換時にもCPU25とメモリコントローラ27とに入力される動作クロックBCLKの数が良好に一致する。従って、前記周波数の切換時にも、CPU25とメモリコントローラ27との通信を良好に行うことができる。   As described above, the processing device 21 uses the operation clock generation device 1 that can suppress the output of an extra operation clock due to glitches. For this reason, if the switching value is input to each counter 7 at the same time, the number of operation clocks BCLK input to the CPU 25 and the memory controller 27 agree well even when the frequency is switched. Therefore, communication between the CPU 25 and the memory controller 27 can be satisfactorily performed even when the frequency is switched.

すなわち、CPU25とメモリコントローラ27との間では頻繁に通信が行われるが、本実施の形態では各々に入力される動作クロックBCLKが同様に変更されるので、その周波数を変更しても殆ど動作に影響がない。   That is, although frequent communication is performed between the CPU 25 and the memory controller 27, in the present embodiment, the operation clock BCLK input to each is similarly changed. There is no effect.

(従来技術との効果の比較)
これに対して、前述の特許文献1に開示された構成を応用して処理装置21と同様の処理装置を構成すると、次のような課題が生じる。図5は、そのような構成を応用した参考例としての処理装置51の構成を表すブロック図である。図5に示すように、処理装置51は、前述の発振回路3,PLL回路5と同様の発振回路53,PLL回路55を備えており、PLL回路55は前述のように基準クロックPS0(図5の例では48MHz)を出力する。
(Comparison of effects with conventional technology)
On the other hand, when the processing apparatus similar to the processing apparatus 21 is configured by applying the configuration disclosed in Patent Document 1, the following problem occurs. FIG. 5 is a block diagram showing a configuration of a processing apparatus 51 as a reference example to which such a configuration is applied. As shown in FIG. 5, the processing device 51 includes an oscillation circuit 53 and a PLL circuit 55 similar to the oscillation circuit 3 and the PLL circuit 5 described above, and the PLL circuit 55 includes the reference clock PS0 (FIG. 5) as described above. In this example, 48 MHz) is output.

この基準クロックPS0は、回路Aに直接入力されると共に、一対のカウンタ57に入力されている。各カウンタ57は、バイナリ・カウンタとして構成され、下位の桁から上位の桁に対して桁上がりが発生する場合にHレベルとなるキャリー信号CT1,CT2,…,CTxを出力する。各カウンタ57に対して、セレクタ58がそれぞれ設けられており、各カウンタ57が出力する各キャリー信号CTは、常時Hレベルである信号VDDと共に、対応するセレクタ58に入力されている。   The reference clock PS0 is directly input to the circuit A and is input to the pair of counters 57. Each counter 57 is configured as a binary counter and outputs carry signals CT1, CT2,..., CTx that become H level when a carry occurs from a lower digit to an upper digit. Each counter 57 is provided with a selector 58, and each carry signal CT output from each counter 57 is input to the corresponding selector 58 together with the signal VDD which is always at the H level.

各セレクタ58は、図示省略した制御部から入力される切換信号に基づいて前記いずれかの入力を選択し、信号C−SELとして出力する。各セレクタ58に対して、クロックゲート59がそれぞれ設けられており、そのクロックゲート59には基準クロックPS0も入力されている。各クロックゲート59は、信号C−SELがHレベルであるときに立ち上がった基準クロックPS0を動作クロックBCLKとして通過させ、他の基準クロックPS0を間引く。   Each selector 58 selects one of the inputs based on a switching signal input from a control unit (not shown) and outputs it as a signal C-SEL. A clock gate 59 is provided for each selector 58, and a reference clock PS0 is also input to the clock gate 59. Each clock gate 59 passes the reference clock PS0 that has risen when the signal C-SEL is at the H level as the operation clock BCLK, and thins out the other reference clock PS0.

その結果、例えば、信号C−SELとして信号VDDが選択されている場合は、基準クロックPS0(図5の例では48MHz)がそのまま動作クロックBCLKとしてクロックゲート59から出力される。また、信号C−SELとしてキャリー信号CT1が選択されている場合は、基準クロックPS0が1つ置きにクロックゲート59を通過し、図5の例では24MHzの動作クロックBCLKとして出力される。図5の例では、各クロックゲート59が出力する動作クロックBCLKを、前述の回路Aとは別体に設けられた回路B,Cに入力している。   As a result, for example, when the signal VDD is selected as the signal C-SEL, the reference clock PS0 (48 MHz in the example of FIG. 5) is directly output from the clock gate 59 as the operation clock BCLK. When the carry signal CT1 is selected as the signal C-SEL, every other reference clock PS0 passes through the clock gate 59 and is output as the 24 MHz operation clock BCLK in the example of FIG. In the example of FIG. 5, the operation clock BCLK output from each clock gate 59 is input to circuits B and C provided separately from the circuit A described above.

ところが、図5に示した処理装置51では、動作クロックBCLKの周波数をセレクタ58を用いて切り換えているため、次のようにグリッジの影響が出る場合があった。図6は、その処理装置51の動作及び課題を表すタイムチャートである。図6に示すように、切換信号がキャリー信号CT2を指示しているときには、基準クロックPS0の4クロック毎に当該基準クロックPS0の1周期分のパルス幅を有するキャリー信号CT2が信号C−SELとして出力される。また、切換信号がキャリー信号CT3を指示しているときには、基準クロックPS0の8クロック毎に当該基準クロックPS0の1周期分のパルス幅を有するキャリー信号CT3が信号C−SELとして出力される。そして、図6に破線の矢印で示すように、信号C−SELがHレベルであるときに立ち上がった基準クロックPS0が動作クロックBCLKとして出力される。   However, in the processing device 51 shown in FIG. 5, since the frequency of the operation clock BCLK is switched using the selector 58, the influence of glitches may occur as follows. FIG. 6 is a time chart showing the operation and problem of the processing device 51. As shown in FIG. 6, when the switching signal indicates the carry signal CT2, the carry signal CT2 having a pulse width corresponding to one cycle of the reference clock PS0 is provided as the signal C-SEL every four clocks of the reference clock PS0. Is output. When the switching signal indicates the carry signal CT3, a carry signal CT3 having a pulse width corresponding to one cycle of the reference clock PS0 is output as a signal C-SEL every 8 clocks of the reference clock PS0. Then, as indicated by the dashed arrow in FIG. 6, the reference clock PS0 that rises when the signal C-SEL is at the H level is output as the operation clock BCLK.

ところが、前述のようにセレクタ58を用いて切換を行う場合、その切換時に、図6に示すようにグリッジGが信号C−SELに重畳する場合がある。すると、そのグリッジGの発生タイミングによっては、当該グリッジGに同期して立ち上がった基準クロックPS0が余分な動作クロックBCLKgとして出力されてしまう。   However, when switching is performed using the selector 58 as described above, the glitch G may be superimposed on the signal C-SEL as shown in FIG. Then, depending on the generation timing of the glitch G, the reference clock PS0 rising in synchronization with the glitch G is output as an extra operation clock BCLKg.

これに対して、本実施の形態の動作クロック生成装置1では、前述のように、セレクタ58によってではなく、切換値を入力してカウンタ7の所定数を設定することによって動作クロックBCLKの周波数を切り換えている。このため、グリッジによって余分な動作クロックが出力されるのを良好に抑制することができ、ひいては、CPU25とメモリコントローラ27との通信を良好に行うことができる。   On the other hand, in the operation clock generation device 1 of the present embodiment, as described above, the frequency of the operation clock BCLK is set by inputting a switching value and setting a predetermined number of counters 7 instead of by the selector 58. Switching. For this reason, it is possible to satisfactorily suppress the output of an extra operation clock due to the glitch, and as a result, communication between the CPU 25 and the memory controller 27 can be favorably performed.

なお、本発明は前記実施の形態に何ら限定されるものではなく、本発明の要旨を逸脱しない範囲で種々の形態で実施することができる。例えば、前記実施の形態では、各信号を正論理で構成したが、各信号を負論理で構成してもよいことは言うまでもない。また、カウンタ部としては、計数値が0に設定された後、前記基準クロックを1つ計数する毎に1つ計数値を加算し、当該計数値が前記所定数になるとキャリー信号を出力すると共に計数値を0にリセットするものなど、種々のものが使用できる。   In addition, this invention is not limited to the said embodiment at all, It can implement with a various form in the range which does not deviate from the summary of this invention. For example, in the above embodiment, each signal is configured with positive logic, but it goes without saying that each signal may be configured with negative logic. The counter unit adds one count value every time the reference clock is counted after the count value is set to 0, and outputs a carry signal when the count value reaches the predetermined number. Various devices such as a device that resets the count value to 0 can be used.

1…動作クロック生成装置 3…発振回路 5…PLL回路
7…カウンタ 7a…clk端子 7b…count端子
7c…val_max端子 7d…carry端子 9…クロックゲーティングセル
21…処理装置 23…タイマ 27…メモリコントローラ
DESCRIPTION OF SYMBOLS 1 ... Operation clock generator 3 ... Oscillator circuit 5 ... PLL circuit 7 ... Counter 7a ... clk terminal 7b ... count terminal 7c ... val_max terminal 7d ... carry terminal 9 ... Clock gating cell 21 ... Processing device 23 ... Timer 27 ... Memory controller

Claims (6)

基準クロックを計数し、所定数の前記基準クロックを計数する毎にキャリー信号を出力するカウンタ部と、
前記カウンタ部の前記所定数を設定する設定部と、
前記基準クロック及び前記キャリー信号が入力され、前記キャリー信号に同期した前記基準クロックを通過させて他の前記基準クロックを間引くことにより動作クロックを生成するクロックゲーティングセルと、
を備えたことを特徴とする動作クロック生成装置。
A counter unit that counts a reference clock and outputs a carry signal each time a predetermined number of the reference clocks are counted;
A setting unit for setting the predetermined number of the counter unit;
A clock gating cell that receives the reference clock and the carry signal and generates an operation clock by passing the reference clock synchronized with the carry signal and thinning out the other reference clock;
An operation clock generation device comprising:
前記カウンタ部は、計数値が前記所定数に設定された後、前記基準クロックを1つ計数する毎に1つ計数値を減算し、当該計数値が0になると、前記キャリー信号を出力すると共に前記計数値を前記所定数にリセットすることを特徴とする請求項1に記載の動作クロック生成装置。   The counter unit subtracts one count value every time the reference clock is counted after the count value is set to the predetermined number, and outputs the carry signal when the count value becomes zero. The operation clock generation device according to claim 1, wherein the count value is reset to the predetermined number. 前記クロックゲーティングセルは、前記キャリー信号の出力中に立ち上がった前記基準クロック、または、前記キャリー信号の出力中に立ち下がった前記基準クロックを通過させ、他の前記基準クロックを間引くことを特徴とする請求項1または2に記載の動作クロック生成装置。   The clock gating cell passes the reference clock that rises during the output of the carry signal or the reference clock that falls during the output of the carry signal, and thins out the other reference clocks. The operation clock generation device according to claim 1 or 2. 複数の回路を備えた処理装置であって、
請求項1〜3のいずれか1項に記載の動作クロック生成装置が前記各回路毎に設けられ、
前記各回路は、自身に対して設けられた前記動作クロック生成装置が生成する動作クロックによって動作することを特徴とする処理装置。
A processing apparatus having a plurality of circuits,
The operation clock generation device according to any one of claims 1 to 3 is provided for each circuit,
Each of the circuits is operated by an operation clock generated by the operation clock generation device provided for the circuit.
前記複数の回路のうちの少なくとも2つが、互いに通信を行うことを特徴とする請求項4に記載の処理装置。   The processing apparatus according to claim 4, wherein at least two of the plurality of circuits communicate with each other. 前記2つの回路のうちの一方がCPUで、他方がメモリコントローラであることを特徴とする請求項5に記載の処理装置。   6. The processing apparatus according to claim 5, wherein one of the two circuits is a CPU and the other is a memory controller.
JP2010293344A 2010-12-28 2010-12-28 Operating clock generation device and processor Pending JP2012141730A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010293344A JP2012141730A (en) 2010-12-28 2010-12-28 Operating clock generation device and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010293344A JP2012141730A (en) 2010-12-28 2010-12-28 Operating clock generation device and processor

Publications (1)

Publication Number Publication Date
JP2012141730A true JP2012141730A (en) 2012-07-26

Family

ID=46677981

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010293344A Pending JP2012141730A (en) 2010-12-28 2010-12-28 Operating clock generation device and processor

Country Status (1)

Country Link
JP (1) JP2012141730A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017049972A (en) * 2015-09-04 2017-03-09 聯發科技股▲ふん▼有限公司Mediatek Inc. Electronic system and related clock management method
JP6158449B1 (en) * 2014-06-09 2017-07-05 クゥアルコム・インコーポレイテッドQualcomm Incorporated Clock swallow device to reduce voltage noise
US9778676B2 (en) 2015-08-03 2017-10-03 Qualcomm Incorporated Power distribution network (PDN) droop/overshoot mitigation in dynamic frequency scaling
US11134189B2 (en) 2019-06-17 2021-09-28 Samsung Electronics Co., Ltd. Image device and operating method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000099188A (en) * 1998-09-18 2000-04-07 Fujitsu Ltd Clock switching circuit
JP2004180078A (en) * 2002-11-28 2004-06-24 Renesas Technology Corp Clock generation integrated circuit and system board
JP2007133527A (en) * 2005-11-09 2007-05-31 Fujifilm Corp Clock signal generation circuit, semiconductor integrated circuit, and frequency-division rate control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000099188A (en) * 1998-09-18 2000-04-07 Fujitsu Ltd Clock switching circuit
JP2004180078A (en) * 2002-11-28 2004-06-24 Renesas Technology Corp Clock generation integrated circuit and system board
JP2007133527A (en) * 2005-11-09 2007-05-31 Fujifilm Corp Clock signal generation circuit, semiconductor integrated circuit, and frequency-division rate control method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6158449B1 (en) * 2014-06-09 2017-07-05 クゥアルコム・インコーポレイテッドQualcomm Incorporated Clock swallow device to reduce voltage noise
JP2017525014A (en) * 2014-06-09 2017-08-31 クゥアルコム・インコーポレイテッドQualcomm Incorporated Clock swallow device to reduce voltage noise
US9778676B2 (en) 2015-08-03 2017-10-03 Qualcomm Incorporated Power distribution network (PDN) droop/overshoot mitigation in dynamic frequency scaling
JP2017049972A (en) * 2015-09-04 2017-03-09 聯發科技股▲ふん▼有限公司Mediatek Inc. Electronic system and related clock management method
US9996138B2 (en) 2015-09-04 2018-06-12 Mediatek Inc. Electronic system and related clock managing method
US11134189B2 (en) 2019-06-17 2021-09-28 Samsung Electronics Co., Ltd. Image device and operating method thereof

Similar Documents

Publication Publication Date Title
JP5734518B2 (en) Multi-clock real-time counter
KR20100063665A (en) Delay circuit
JP2008059193A (en) Clock switching circuit
JP2012141730A (en) Operating clock generation device and processor
US8427252B2 (en) Oscillators with low power mode of operation
US8819401B2 (en) Semiconductor device and reset control method in semiconductor device
JP2007086960A (en) Clock switching circuit
JP6438429B2 (en) Frequency lock loop based on oscillator
JP2004054350A (en) Clock switching circuit
JP2005338619A (en) Dot clock synchronous generating circuit
JP2010225057A (en) Clock switching circuit, integrated circuit device, and electronic device
JP6219118B2 (en) Oscillator
JP2013183403A (en) Clock phase synchronization device and clock phase synchronization method
US8760197B2 (en) Robust glitch-free clock switch with an unate clock network
JP2011166232A (en) Phase detection circuit and pll circuit
JP2006072777A (en) Clock distribution circuit in semiconductor logic circuit, and method therefor
JP2014002456A (en) Input signal processing device
JP2007251603A (en) Semiconductor integrated circuit
JP2014090381A (en) Duty correction circuit
JP4691791B2 (en) Data processing system
JP2022156708A (en) Clock synchronization circuit, semiconductor device, and clock synchronization method
US7253673B2 (en) Multi-phase clock generator and generating method for network controller
JP2006201856A (en) Semiconductor integrated circuit
CN113504809A (en) Dynamic switching method, device and system of multi-channel clock
JP2005026757A (en) Clock switching circuit and image processing apparatus employing the same

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130314

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130730

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130731

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130930

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140311

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140512

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20140924