Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6623745B2 - Control method of electronic circuit and oscillator - Google Patents
[go: Go Back, main page]

JP6623745B2 - Control method of electronic circuit and oscillator - Google Patents

Control method of electronic circuit and oscillator Download PDF

Info

Publication number
JP6623745B2
JP6623745B2 JP2015252354A JP2015252354A JP6623745B2 JP 6623745 B2 JP6623745 B2 JP 6623745B2 JP 2015252354 A JP2015252354 A JP 2015252354A JP 2015252354 A JP2015252354 A JP 2015252354A JP 6623745 B2 JP6623745 B2 JP 6623745B2
Authority
JP
Japan
Prior art keywords
circuit
signal
delay
oscillation
power supply
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
JP2015252354A
Other languages
Japanese (ja)
Other versions
JP2017017671A (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 Ltd
Original Assignee
Fujitsu 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 Ltd filed Critical Fujitsu Ltd
Priority to US15/155,471 priority Critical patent/US9685965B2/en
Publication of JP2017017671A publication Critical patent/JP2017017671A/en
Application granted granted Critical
Publication of JP6623745B2 publication Critical patent/JP6623745B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Description

本願開示は、電子回路及び発振器の制御方法に関する。   The present disclosure relates to a control method for an electronic circuit and an oscillator.

LSI(大規模集積回路)のデジタル回路はクロック信号に同期して動作するため、回路規模が大きい場合には、クロックの遷移タイミングで大電流が消費され、電源電圧にIRドロップと呼ばれる電源ノイズが発生する。このIRドロップにより、電源電圧は、電源配線及び安定化容量等のインピーダンスにより定まる周波数帯域の電圧変化を示す。一般にこの変動は50MHzから150MHz程度の周波数帯域を有する。   Since a digital circuit of an LSI (Large Scale Integrated Circuit) operates in synchronization with a clock signal, when a circuit scale is large, a large current is consumed at a clock transition timing, and power supply noise called IR drop occurs in a power supply voltage. appear. Due to the IR drop, the power supply voltage shows a voltage change in a frequency band determined by the impedance of the power supply wiring and the stabilizing capacitance. Generally, this variation has a frequency band on the order of 50 MHz to 150 MHz.

電源電圧が低下すると、LSI中の信号経路を伝搬する信号の変化速度が低下し、信号伝搬のタイミング余裕が小さいクリティカルパス等において、適切にデータが転送されない場合がある。そのようなタイミングエラーを回避するために、プロセッサ等のLSIでは、電圧低下に応じて適応的に動作周波数を制御するものがある。具体的には、電圧を測定し、電圧低下に起因するデータパスの遅延の増加量を見積もり、当該遅延増加量を相殺するようにクロック周期を長くする。   When the power supply voltage decreases, the change speed of a signal propagating through a signal path in an LSI decreases, and data may not be transferred properly on a critical path or the like having a small signal transmission timing margin. In order to avoid such timing errors, some LSIs such as processors control the operating frequency adaptively according to the voltage drop. More specifically, the voltage is measured, an increase in the delay of the data path due to the voltage drop is estimated, and the clock cycle is lengthened so as to offset the increase in the delay.

クロック周期を変化させる方法として、PLL(Phase Locked Loop)回路の分周比を切替える方法が一般的に知られている。この方法では、電圧低下によるタイミングへの影響を測定し、その測定値に基づいてPLL回路の分周比を変更し、PLL回路の発振周波数を下げることにより適応的周波数制御を実現する。   As a method of changing a clock cycle, a method of switching a frequency division ratio of a PLL (Phase Locked Loop) circuit is generally known. In this method, the influence of the voltage drop on the timing is measured, the frequency division ratio of the PLL circuit is changed based on the measured value, and the adaptive frequency control is realized by lowering the oscillation frequency of the PLL circuit.

上記の適応的周波数制御では、PLL回路の制御系を用いて発振周波数を変更するので、分周比を切り替えてからPLL回路の発振周波数が目標値になる迄に非常に時間がかかる。具体的には、リファレンスクロックのサイクル数換算で例えば200サイクル以上の時間が必要になる。電圧低下が遅い変化(周波数にして数十kHz程度の変化)であれば、上記の制御でも、クロック周波数の変化は十分に電圧低下に追従できる。   In the above adaptive frequency control, since the oscillation frequency is changed using the control system of the PLL circuit, it takes a very long time until the oscillation frequency of the PLL circuit reaches the target value after switching the frequency division ratio. Specifically, a time of, for example, 200 cycles or more in terms of the number of cycles of the reference clock is required. If the voltage drop is a slow change (change of about several tens of kHz in frequency), even with the above control, the change in the clock frequency can sufficiently follow the voltage drop.

しかし、例えばプロセッサで動作率が上がったとき等に発生するIRドロップは、前述のように50MHzから150MHz程度の周波数帯域を有する高速な変化である。そのため、PLL回路において分周比を変更する適応的周波数制御では、クロック周波数の変化が電圧低下の速度に間に合わず、タイミングエラーを回避できない。   However, the IR drop that occurs when, for example, the operation rate increases in the processor is a high-speed change having a frequency band of about 50 MHz to 150 MHz as described above. Therefore, in the adaptive frequency control in which the frequency division ratio is changed in the PLL circuit, the change in the clock frequency cannot keep up with the speed of the voltage drop, and the timing error cannot be avoided.

特開平11−288325号公報JP-A-11-288325 特開2002−202829号公報JP-A-2002-202829

Dong Jiao, Bongjin Kim, and Chris H. Kim, "Design, Modeling, and Test of a Programmable Adaptive Phase-Shifting PLL for Enhancing Clock Data Compensation," The Journal of Solid-state Circuits, VOL. 47, NO. 10, October 2012, pp 2505 - 2012Dong Jiao, Bongjin Kim, and Chris H. Kim, "Design, Modeling, and Test of a Programmable Adaptive Phase-Shifting PLL for Enhancing Clock Data Compensation," The Journal of Solid-state Circuits, VOL. 47, NO. 10, October 2012, pp 2505-2012 M. S. Floyd, et al., "Runtime power reduction capability of the IBM POWER7+ chip," IBM J. RES. & DEV. VOL. 57, NO. 6, PAPER 2, November/December 2013, pp 2:1 - 2:17MS Floyd, et al., "Runtime power reduction capability of the IBM POWER7 + chip," IBM J. RES. & DEV. VOL. 57, NO. 6, PAPER 2, November / December 2013, pp 2: 1-2: 17

以上を鑑みると、電源ノイズに追従して高速に発振周波数を変化可能な電子回路が望まれる。   In view of the above, an electronic circuit capable of changing the oscillation frequency at high speed following power supply noise is desired.

電子回路は、入力信号に応じた周期の発振信号を生成する発振器と、電源電圧に応じた検出信号を出力する電圧検出器と、前記検出信号を時間平均した信号に応じた分周率で前記発振信号を分周して分周信号を生成する分周器と、前記分周信号と参照信号との位相差に応じた第1の信号と前記検出信号に応じた第2の信号との和を求め、前記和に応じた信号を前記入力信号として前記発振器に供給する加算器とを含む。

The electronic circuit includes an oscillator that generates an oscillation signal having a cycle corresponding to the input signal, a voltage detector that outputs a detection signal corresponding to a power supply voltage, and a frequency division ratio corresponding to a signal obtained by time-averaging the detection signal. A frequency divider for dividing the oscillation signal to generate a frequency-divided signal; a sum of a first signal corresponding to a phase difference between the frequency-divided signal and a reference signal and a second signal corresponding to the detection signal And an adder that supplies a signal corresponding to the sum to the oscillator as the input signal.

少なくとも1つの実施例によれば、電子回路において、電源ノイズに追従して高速に発振周波数を変化させることができる。   According to at least one embodiment, in an electronic circuit, an oscillation frequency can be changed at a high speed following power supply noise.

電源ノイズに追従して発振周波数を変化可能な電子回路の実施例の一例を示す図である。FIG. 9 is a diagram illustrating an example of an embodiment of an electronic circuit that can change an oscillation frequency according to power supply noise. 電源電圧VDDの急激な変動に対する図1に示すPLL回路の動作の一例を示す図である。FIG. 2 is a diagram illustrating an example of an operation of the PLL circuit illustrated in FIG. 1 with respect to a rapid change in a power supply voltage VDD. 電源電圧VDDの継続的な変動に対する図1に示すPLL回路の動作の一例を示す図である。FIG. 2 is a diagram illustrating an example of an operation of the PLL circuit illustrated in FIG. 1 with respect to a continuous fluctuation of a power supply voltage VDD. 電源電圧VDDの継続的な変動に対する図1に示すPLL回路の動作を説明するための図である。FIG. 2 is a diagram for explaining an operation of the PLL circuit shown in FIG. 1 with respect to a continuous fluctuation of a power supply voltage VDD. 電源電圧VDDの継続的な変動に対する図1に示すPLL回路の動作を説明するための図である。FIG. 2 is a diagram for explaining an operation of the PLL circuit shown in FIG. 1 with respect to a continuous fluctuation of a power supply voltage VDD. 回路遅延測定に基づいて電源ノイズに追従して発振周波数を変化可能な電子回路の実施例の一例を示す図である。FIG. 9 is a diagram illustrating an example of an embodiment of an electronic circuit capable of changing an oscillation frequency following a power supply noise based on a circuit delay measurement. 図6に示す電子回路の変形例を示す図である。FIG. 7 is a diagram showing a modification of the electronic circuit shown in FIG. 6. ディレイモニタ回路の構成の一例を示す図である。FIG. 3 is a diagram illustrating an example of a configuration of a delay monitor circuit. 可変ディレイラインの構成の一例を示す図である。FIG. 3 is a diagram illustrating an example of a configuration of a variable delay line. 可変ディレイラインのためのコード変換を行うコード変換部を示す図である。FIG. 4 is a diagram illustrating a code conversion unit that performs code conversion for a variable delay line. マスク回路の構成の一例を示す図である。FIG. 3 is a diagram illustrating an example of a configuration of a mask circuit. 制御回路による設定動作の一例を示すフローチャートである。4 is a flowchart illustrating an example of a setting operation by a control circuit. 回路遅延測定に基づいて電源ノイズに追従して発振周波数を変化可能な電子回路の実施例の別の一例を示す図である。FIG. 9 is a diagram illustrating another example of an electronic circuit according to an embodiment in which the oscillation frequency can be changed according to power supply noise based on a circuit delay measurement. 図13に示す電子回路の変形例を示す図である。FIG. 14 is a diagram illustrating a modification of the electronic circuit illustrated in FIG. 13. クリティカルパスモニタ&ディレイモニタ回路の構成の一例を示す図である。FIG. 3 is a diagram illustrating an example of a configuration of a critical path monitor & delay monitor circuit. 疑似クリティカルパス回路の構成の一例を示す図である。FIG. 3 is a diagram illustrating an example of a configuration of a pseudo critical path circuit. 疑似クリティカルパス回路の構成の別の一例を示す図である。FIG. 9 is a diagram illustrating another example of the configuration of the pseudo critical path circuit. 疑似クリティカルパス回路の構成の別の一例を示す図である。FIG. 9 is a diagram illustrating another example of the configuration of the pseudo critical path circuit. 疑似クリティカルパス回路の構成の別の一例を示す図である。FIG. 9 is a diagram illustrating another example of the configuration of the pseudo critical path circuit. 制御回路による設定動作の一例を示すフローチャートである。4 is a flowchart illustrating an example of a setting operation by a control circuit. 制御回路による設定動作の一例を示すタイミング図である。FIG. 4 is a timing chart illustrating an example of a setting operation by a control circuit.

以下に、本発明の実施例を添付の図面を用いて詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

図1は、電源ノイズに追従して発振周波数を変化可能な電子回路の実施例の一例を示す図である。図1に示す電子回路は、PLL回路10、AD変換器11、平均化部12、コード変換部13、及び論理回路14を含む。PLL回路10は、デジタル制御発振器(DCO)20、分周器21、位相比較器22、ループフィルタ23、正規化部24、及び加算器25を含む。論理回路14はデータパス30を含み、データパス30はフリップフロップ31及び32、及び回路素子群33を含む。フリップフロップ31及び32のクロック入力端子には、PLL回路10が生成する発振信号(クロック信号)が印加される。   FIG. 1 is a diagram illustrating an example of an embodiment of an electronic circuit capable of changing an oscillation frequency according to power supply noise. The electronic circuit shown in FIG. 1 includes a PLL circuit 10, an AD converter 11, an averaging unit 12, a code conversion unit 13, and a logic circuit 14. The PLL circuit 10 includes a digitally controlled oscillator (DCO) 20, a frequency divider 21, a phase comparator 22, a loop filter 23, a normalizing unit 24, and an adder 25. The logic circuit 14 includes a data path 30, and the data path 30 includes flip-flops 31 and 32 and a circuit element group 33. Oscillation signals (clock signals) generated by the PLL circuit 10 are applied to clock input terminals of the flip-flops 31 and 32.

図1において、各ボックスで示される各回路又は機能ブロックと他の回路又は機能ブロックとの境界は、基本的には機能的な境界を示すものであり、物理的な位置の分離、電気的な信号の分離、制御論理的な分離等に対応するとは限らない。各回路又は機能ブロックは、他のブロックと物理的にある程度分離された1つのハードウェアモジュールであってもよいし、或いは他のブロックと物理的に一体となったハードウェアモジュール中の1つの機能を示したものであってもよい。   In FIG. 1, the boundary between each circuit or function block indicated by each box and another circuit or function block basically indicates a functional boundary, such as separation of physical positions, electrical It does not always correspond to signal separation, control logical separation, and the like. Each circuit or function block may be a single hardware module physically separated to some extent from another block, or one function in a hardware module physically integrated with another block. May be indicated.

電源電圧VDDは論理回路14に供給され、論理回路14内の各回路素子は電源電圧VDDを電源として駆動される。電源電圧VDDは更に、AD変換器11に印加される。AD変換器11は、電圧検出器として機能して、印加される電源電圧に応じた検出信号Qを生成する。検出信号Qは、例えば、各ビットが0又は1の値をとる複数ビットで表現されたデジタルコードであってよい。AD変換器11の出力する検出信号Qは、平均化部12に供給されると共に、PLL回路10の加算器25に供給される。   The power supply voltage VDD is supplied to the logic circuit 14, and each circuit element in the logic circuit 14 is driven using the power supply voltage VDD as a power supply. The power supply voltage VDD is further applied to the AD converter 11. The AD converter 11 functions as a voltage detector and generates a detection signal Q corresponding to the applied power supply voltage. The detection signal Q may be, for example, a digital code represented by a plurality of bits in which each bit takes a value of 0 or 1. The detection signal Q output from the AD converter 11 is supplied to the averaging unit 12 and also to the adder 25 of the PLL circuit 10.

平均化部12は、検出信号Qの時間平均をとり、平均値信号Qavrを生成する。検出信号Qがデジタルコードの場合、2以上の所定の数のクロックサイクルに亘り検出信号Qの値を加算し、加算結果を当該所定の数で除算することにより、平均値信号Qavrを生成してよい。平均化部12が生成した平均値信号Qavrは、コード変換部13に供給される。 The averaging unit 12 takes the time average of the detection signal Q and generates an average signal Q avr . When the detection signal Q is a digital code, the average value signal Q avr is generated by adding the value of the detection signal Q over a predetermined number of clock cycles of 2 or more and dividing the addition result by the predetermined number. May be. The average signal Q avr generated by the averaging unit 12 is supplied to the code conversion unit 13.

コード変換部13は、平均値信号Qavrに応じた分周率設定コードを生成する。コード変換部13が生成した分周率設定コードは、分周率を設定するための制御信号としてPLL回路10の分周器21に供給される。 The code conversion unit 13 generates a frequency division ratio setting code according to the average signal Qavr . The frequency division ratio setting code generated by the code conversion unit 13 is supplied to the frequency divider 21 of the PLL circuit 10 as a control signal for setting the frequency division ratio.

PLL回路10のデジタル制御発振器20は、デジタル制御発振器20への入力信号に応じた周期(又は周波数)の発振信号を生成する。デジタル制御発振器20の発振する発振信号は分周器21に供給され、分周器21が、前記分周率設定コードに応じた分周率(即ち検出信号Qに応じた分周率)で発振信号を分周して分周信号を生成する。   The digital control oscillator 20 of the PLL circuit 10 generates an oscillation signal having a cycle (or frequency) according to an input signal to the digital control oscillator 20. The oscillation signal oscillated by the digitally controlled oscillator 20 is supplied to a frequency divider 21 which oscillates at a frequency division rate corresponding to the frequency division rate setting code (that is, a frequency division rate corresponding to the detection signal Q). The signal is divided to generate a divided signal.

位相比較器22は、分周器21から出力される分周信号と参照信号REFとの位相差に応じた位相検出信号を生成する。位相検出信号は、分周信号の位相が参照信号REFの位相より遅い場合には例えばマイナス値(或いは所定の基準値より小さい値)となり、分周信号の位相が参照信号REFの位相より早い場合には例えばプラス値(或いは所定の基準値より大きい値)となってよい。また位相検出信号は、その値の大きさ(或いは所定の基準値からの差の大きさ)が、分周信号の位相と参照信号REFの位相との差に応じたものであってよい。位相検出信号は、例えば、各ビットが0又は1の値をとる複数ビットで表現されたデジタルコードであってよい。   The phase comparator 22 generates a phase detection signal corresponding to the phase difference between the frequency-divided signal output from the frequency divider 21 and the reference signal REF. When the phase of the divided signal is later than the phase of the reference signal REF, the phase detection signal becomes, for example, a negative value (or a value smaller than a predetermined reference value), and when the phase of the divided signal is earlier than the phase of the reference signal REF. May be, for example, a plus value (or a value larger than a predetermined reference value). The phase detection signal may have a value (or a difference from a predetermined reference value) corresponding to a difference between the phase of the frequency-divided signal and the phase of the reference signal REF. The phase detection signal may be, for example, a digital code represented by a plurality of bits in which each bit takes a value of 0 or 1.

ループフィルタ23は、位相比較器22から出力される位相検出信号の低周波成分を通過させ高周波成分を遮断又は抑制する低域通過フィルタであり、例えばデジタルフィルタにより実現されてよい。ループフィルタ23は、位相検出信号を低域通過フィルタ処理することにより、一時的な細かい変動に影響されずにある程度長い期間に亘る位相差の傾向を示す位相差情報を生成し、生成した位相差情報を正規化部24に供給する。位相差情報は、例えば、各ビットが0又は1の値をとる複数ビットで表現されたデジタルコードであってよい。   The loop filter 23 is a low-pass filter that passes a low-frequency component of the phase detection signal output from the phase comparator 22 and blocks or suppresses a high-frequency component, and may be implemented by, for example, a digital filter. The loop filter 23 performs low-pass filtering on the phase detection signal to generate phase difference information indicating a tendency of the phase difference over a relatively long period of time without being affected by temporary small fluctuations. The information is supplied to the normalization unit 24. The phase difference information may be, for example, a digital code represented by a plurality of bits in which each bit takes a value of 0 or 1.

正規化部24は、供給された位相差情報に所定の係数を乗算することにより、デジタル制御発振器20の入力信号として適切な値を有する位相差コードを生成する。デジタル制御発振器20において、入力信号のLSB(Least Significant Bit)の1ビット変化に対する発振周波数の変化の大きさ(感度)は、発振周波数によって異なる。正規化部24により、デジタル制御発振器20の発振周波数に応じた感度の違いを相殺するような係数を位相差情報に乗算することで、デジタル制御発振器20の感度の周波数依存の影響をなくすことができる。デジタル制御発振器20の感度の周波数依存の影響を無視してよい場合には、正規化部24は設けなくともよい。正規化部24により生成された位相差コードは、加算器25に供給される。位相差コードは、例えば、各ビットが0又は1の値をとる複数ビットで表現されたデジタルコードであってよい。   The normalizing unit 24 generates a phase difference code having an appropriate value as an input signal of the digitally controlled oscillator 20 by multiplying the supplied phase difference information by a predetermined coefficient. In the digitally controlled oscillator 20, the magnitude (sensitivity) of the change of the oscillation frequency with respect to one bit change of the LSB (Least Significant Bit) of the input signal differs depending on the oscillation frequency. By multiplying the phase difference information by a coefficient that cancels out the difference in sensitivity according to the oscillation frequency of the digitally controlled oscillator 20 by the normalization unit 24, it is possible to eliminate the frequency-dependent influence of the sensitivity of the digitally controlled oscillator 20. it can. If the influence of the frequency dependence of the sensitivity of the digitally controlled oscillator 20 can be neglected, the normalizing unit 24 need not be provided. The phase difference code generated by the normalization unit 24 is supplied to the adder 25. The phase difference code may be, for example, a digital code represented by a plurality of bits in which each bit takes a value of 0 or 1.

加算器25は、分周信号と参照信号REFとの位相差に応じた信号である上記位相差コードとAD変換器11の出力である検出信号Qに応じた信号との和を求め、当該和に応じた信号をデジタル制御発振器20に入力信号として供給する。加算器25により位相差コードと加算される信号は、AD変換器11の出力である検出信号Qそのものであってもよいし、デジタル制御発振器20の入力として適切なサイズとなるよう検出信号Qを定数倍して正規化した信号であってもよい。   The adder 25 calculates the sum of the phase difference code corresponding to the phase difference between the frequency-divided signal and the reference signal REF and the signal corresponding to the detection signal Q output from the AD converter 11, and calculates the sum. Is supplied to the digitally controlled oscillator 20 as an input signal. The signal to be added to the phase difference code by the adder 25 may be the detection signal Q itself, which is the output of the AD converter 11, or the detection signal Q may be appropriately sized as an input to the digitally controlled oscillator 20. The signal may be normalized by multiplying by a constant.

また或いは、例えば電源電圧VDDの低下に応答して検出信号Qの値が大きくなる設計であれば、所定値以下の検出信号Qを切り捨てることにより、当該所定値以上では検出信号Qに等しく、最小値が当該所定値となるように調整した信号を用いてもよい。このように調整した信号を用いることにより、例えば、電源電圧VDDが所望の値より大きくなった場合には、PLL回路10による周波数調整動作を実行しないような制御動作を実現することができる。即ち、所望のレベルからの電源電圧VDDの低下に対しては周波数調整を行うが、所望のレベル以上への電源電圧VDDの上昇に対しては周波数調整を行わないようにしてもよい。   Alternatively, for example, if the design is such that the value of the detection signal Q increases in response to a decrease in the power supply voltage VDD, the detection signal Q equal to or less than the predetermined value is discarded by cutting off the detection signal Q equal to or less than the predetermined value. A signal adjusted so that the value becomes the predetermined value may be used. By using the signal adjusted in this way, for example, when the power supply voltage VDD becomes higher than a desired value, a control operation that does not execute the frequency adjustment operation by the PLL circuit 10 can be realized. That is, the frequency may be adjusted for a decrease in the power supply voltage VDD from a desired level, but the frequency adjustment may not be performed for a rise in the power supply voltage VDD to a desired level or higher.

図1に示す例では、正規化部24の出力である位相差コードと加算器25により加算される信号は、AD変換器11の出力である検出信号Qそのものである。但し、例えばAD変換器11の出力自体に下限値を設けておくことにより、上記のように、所望のレベルからの電源電圧VDDの低下に対しては周波数調整を行うが、所望のレベル以上への電源電圧VDDの上昇に対しては周波数調整を行わないようにしてもよい。   In the example illustrated in FIG. 1, the signal added by the adder 25 to the phase difference code output from the normalization unit 24 is the detection signal Q itself output from the AD converter 11. However, by providing a lower limit value to the output of the AD converter 11, for example, as described above, the frequency is adjusted with respect to a decrease in the power supply voltage VDD from a desired level, but is adjusted to a desired level or more. The frequency adjustment may not be performed for the rise of the power supply voltage VDD.

デジタル制御発振器20の入力信号は、例えば、各ビットが0又は1の値をとる複数ビットで表現されたデジタルコードであってよい。デジタル制御発振器20は例えばLC発振器でよい。複数個のバラクタ等の可変容量素子が並列に接続されることで並列容量を形成し、それら複数の可変容量素子の制御端子のそれぞれに入力信号の対応するビットが印加されてよい。入力信号の各ビットを0又は1に設定することにより並列容量の大きさを制御し、制御された並列容量に応じた周期(又は周波数)でデジタル制御発振器20が発振してよい。   The input signal of the digitally controlled oscillator 20 may be, for example, a digital code represented by a plurality of bits in which each bit takes a value of 0 or 1. The digitally controlled oscillator 20 may be, for example, an LC oscillator. A plurality of variable capacitance elements such as varactors may be connected in parallel to form a parallel capacitance, and a corresponding bit of the input signal may be applied to each of the control terminals of the plurality of variable capacitance elements. The magnitude of the parallel capacitance may be controlled by setting each bit of the input signal to 0 or 1, and the digital control oscillator 20 may oscillate at a cycle (or frequency) according to the controlled parallel capacitance.

PLL回路10のデジタル制御発振器20が発振する発振信号は、クロック信号として論理回路14に供給される。前述のように、論理回路14は電源電圧VDDで駆動する。クロック信号は、論理回路14中のフリップフロップのクロック端子に印加される。   The oscillation signal oscillated by the digital control oscillator 20 of the PLL circuit 10 is supplied to the logic circuit 14 as a clock signal. As described above, the logic circuit 14 is driven by the power supply voltage VDD. The clock signal is applied to a clock terminal of a flip-flop in the logic circuit 14.

図1に示す電子回路において、デジタル制御発振器20の入力信号の値が増加すると、デジタル制御発振器20の発振信号の周期の長さが増加してよい。逆に、デジタル制御発振器20の入力信号の値が減少すると、デジタル制御発振器20の発振信号の周期の長さが減少してよい。この場合、電源電圧VDDが下降するとAD変換器11の出力である検出信号Qの値が大きくなってよい。仮にデジタル制御発振器20の入力信号の値の増減とデジタル制御発振器20の発振信号の周期の長さの増減との関係が上記とは逆であれば、電源電圧VDDの下降に応答して、AD変換器11の出力である検出信号Qの値が小さくなってよい。   In the electronic circuit shown in FIG. 1, when the value of the input signal of the digitally controlled oscillator 20 increases, the length of the period of the oscillation signal of the digitally controlled oscillator 20 may increase. Conversely, when the value of the input signal of the digitally controlled oscillator 20 decreases, the length of the cycle of the oscillation signal of the digitally controlled oscillator 20 may decrease. In this case, when the power supply voltage VDD decreases, the value of the detection signal Q that is the output of the AD converter 11 may increase. If the relationship between the increase and decrease in the value of the input signal of the digitally controlled oscillator 20 and the increase and decrease in the cycle length of the oscillation signal of the digitally controlled oscillator 20 is opposite to the above, the AD is responded to the fall of the power supply voltage VDD. The value of the detection signal Q output from the converter 11 may be small.

電源電圧VDDの下降に応答して検出信号Qの値が大きくなり、その状態がある程度長い時間継続すると、平均化部12の出力である平均値信号Qavrの値も大きくなる。コード変換部13は、平均値信号Qavrの値が大きくなると、分周率が小さくなるように分周率設定コードを変化させる。その結果、PLL回路10の発振周波数は低くなり、発振信号の発振周期が長くなる。このように、長い時間の平均で判断して電源電圧VDDが低下している場合は、平均化部12の出力である平均値信号Qavrの値が大きくなり、PLL回路10の発振するクロック信号の周期が長くなる。 The value of the detection signal Q increases in response to the fall of the power supply voltage VDD, and when this state continues for a long time, the value of the average signal Q avr output from the averaging unit 12 also increases. The code conversion unit 13 changes the frequency division ratio setting code so that the frequency division ratio decreases when the value of the average signal Qavr increases. As a result, the oscillation frequency of the PLL circuit 10 becomes lower, and the oscillation cycle of the oscillation signal becomes longer. As described above, when the power supply voltage VDD is lowered as determined by averaging over a long period of time, the value of the average value signal Q avr output from the averaging unit 12 increases, and the clock signal Becomes longer.

電源電圧VDDで駆動する論理回路14においては、電源電圧VDDが低下すると、各回路素子の出力信号を変化させる駆動力が低下し、回路素子間の信号伝搬速度、ひいてはフリップフロップ間の信号伝搬速度が低下する。例えば、図1に示す論理回路14において、論理回路14に含まれるデータパスの中でも例えばデータパス30がタイミング余裕の小さいクリティカルなパスであるとする。データパス30では、フリップフロップ31から出力されたデータが、回路素子群33中を伝搬して、フリップフロップ32に取り込まれる。フリップフロップ32によるデータ取り込みは、PLL回路10が生成するクロック信号(発振信号)に同期して行われる。電源電圧VDDの低下に起因してデータパス30のフリップフロップ31及び32の間の信号伝搬にかかる時間が増大すると、受信側のフリップフロップ32におけるデータ取り込みに失敗してしまう可能性がある。   In the logic circuit 14 driven by the power supply voltage VDD, when the power supply voltage VDD decreases, the driving force for changing the output signal of each circuit element decreases, and the signal propagation speed between the circuit elements, and thus the signal propagation speed between the flip-flops. Decreases. For example, in the logic circuit 14 shown in FIG. 1, for example, among the data paths included in the logic circuit 14, the data path 30 is a critical path having a small timing margin. In the data path 30, data output from the flip-flop 31 propagates through the circuit element group 33 and is taken into the flip-flop 32. The data capture by the flip-flop 32 is performed in synchronization with a clock signal (oscillation signal) generated by the PLL circuit 10. If the time required for signal propagation between the flip-flops 31 and 32 of the data path 30 increases due to a decrease in the power supply voltage VDD, the reception-side flip-flop 32 may fail to capture data.

上述のように、長い時間の平均で判断して電源電圧VDDが低下している場合は、分周率が小さく設定されることにより、PLL回路10の発振するクロック信号の周期が長くなる。これにより、論理回路14に含まれるデータパス30等のデータパスにおいて、データ転送の失敗を回避することができる。   As described above, when the power supply voltage VDD is reduced based on an average over a long period of time, the frequency of the clock signal oscillated by the PLL circuit 10 is increased by setting the frequency division ratio small. As a result, it is possible to avoid data transfer failure in a data path such as the data path 30 included in the logic circuit 14.

論理回路14がPLL回路10のクロック信号に同期して動作すると、クロックの遷移タイミングで電流が消費され、電源電圧VDDにIRドロップが発生する可能性がある。通常の論理回路14の動作時には顕著なIRドロップは発生しないが、論理回路14が例えばプロセッサであり、その動作モードに遷移が発生した場合等に発生するIRドロップは、無視できない程の大きさになる。この場合、前述のように50MHzから150MHz程度の周波数帯域を有する電源電圧VDDの急激な変動が発生する。   When the logic circuit 14 operates in synchronization with the clock signal of the PLL circuit 10, a current is consumed at a clock transition timing, and an IR drop may occur in the power supply voltage VDD. A remarkable IR drop does not occur when the normal logic circuit 14 operates, but the IR drop that occurs when the logic circuit 14 is, for example, a processor and a transition occurs in the operation mode thereof is not negligible. Become. In this case, as described above, the power supply voltage VDD having a frequency band of about 50 MHz to 150 MHz fluctuates sharply.

このような急激な電源電圧VDDの変動が発生した場合、上記のようにコード変換部13により分周器21の分周率を変化させるだけでは、デジタル制御発振器20の発振するクロック信号の周期は十分な速さで変化しない。そもそも平均化部12による平均化動作により瞬時的な電源電圧VDDの変動は無視されるが、仮に平均化部12を設けずに、瞬時的な電源電圧VDDの変動に応じて分周器21の分周率を変化させても、クロック信号の周期は十分な速さで変化しない。何故なら、前述のように、PLL回路の制御系を用いて発振周波数を変更する場合には、分周率を切り替えてからPLL回路の発振周波数が目標値に到達する迄に長い時間がかかるからである。   When such a rapid fluctuation of the power supply voltage VDD occurs, the cycle of the clock signal oscillated by the digitally controlled oscillator 20 can be obtained simply by changing the frequency division ratio of the frequency divider 21 by the code conversion unit 13 as described above. Does not change fast enough. In the first place, the instantaneous fluctuation of the power supply voltage VDD is ignored by the averaging operation by the averaging unit 12, but the averaging unit 12 is not provided, and the frequency divider 21 is changed according to the instantaneous fluctuation of the power supply voltage VDD. Even if the division ratio is changed, the cycle of the clock signal does not change at a sufficient speed. This is because, as described above, when changing the oscillation frequency using the control system of the PLL circuit, it takes a long time until the oscillation frequency of the PLL circuit reaches the target value after switching the frequency division ratio. It is.

図1に示す電子回路では、AD変換器11の出力信号である検出信号Qを、デジタル制御発振器20への入力信号に加算器25を介して加算することにより、急激な電源電圧VDDの変動に対して瞬時にPLL回路10の発振周波数を変化させることができる。即ち、PLL回路10では、デジタル制御発振器20へのデジタルコード入力に対して検出信号Qに相当するデジタルコードを加算しているので、電源電圧VDDの低下により検出信号Qの値が大きくなると、デジタル制御発振器20への入力値が大きくなる。デジタル制御発振器20は、入力値に応じた発振周期で発振するように設計されており、入力値が大きくなると発振周期の長さが増大する。この発振周期の制御は、デジタル制御発振器20の入力を直接に調整して実現しているので、電源電圧VDDの変動に直ぐに反応して迅速に発振周期が変動する。即ち、電源電圧VDDの変動に追従する発振周期の変化を実現することが可能となる。   In the electronic circuit shown in FIG. 1, the detection signal Q, which is the output signal of the AD converter 11, is added to the input signal to the digitally controlled oscillator 20 via the adder 25, so that the power supply voltage VDD can be rapidly changed. On the other hand, the oscillation frequency of the PLL circuit 10 can be changed instantaneously. That is, in the PLL circuit 10, since the digital code corresponding to the detection signal Q is added to the digital code input to the digital control oscillator 20, when the value of the detection signal Q increases due to the decrease in the power supply voltage VDD, the digital The input value to the control oscillator 20 increases. The digitally controlled oscillator 20 is designed to oscillate at an oscillation cycle corresponding to an input value. As the input value increases, the length of the oscillation cycle increases. Since the control of the oscillation cycle is realized by directly adjusting the input of the digitally controlled oscillator 20, the oscillation cycle fluctuates quickly in response to the fluctuation of the power supply voltage VDD. That is, it is possible to realize a change in the oscillation cycle that follows the change in the power supply voltage VDD.

図2は、電源電圧VDDの急激な変動に対する図1に示すPLL回路の動作の一例を示す図である。図2において、(a)は電源電圧VDDの電圧値を示す。(b)はPLL回路10の発振周期を示す。(c)はPLL回路10の発振周期の平均値を示す。(d)は論理回路14のクリティカルパスであるデータパス30のタイミング余裕を示す。各波形図における横軸は時間である。電圧V1は、図1に示される電子回路に供給される電源電圧VDDの所望の電圧レベルである。発振周期T1は、電源電圧VDDに対応するPLL回路10の所望の発振周期である。   FIG. 2 is a diagram illustrating an example of the operation of the PLL circuit illustrated in FIG. 1 with respect to a rapid change in the power supply voltage VDD. 2A shows the voltage value of the power supply voltage VDD. (B) shows the oscillation cycle of the PLL circuit 10. (C) shows the average value of the oscillation cycle of the PLL circuit 10. (D) shows a timing margin of the data path 30 which is a critical path of the logic circuit 14. The horizontal axis in each waveform diagram is time. Voltage V1 is a desired voltage level of power supply voltage VDD supplied to the electronic circuit shown in FIG. The oscillation cycle T1 is a desired oscillation cycle of the PLL circuit 10 corresponding to the power supply voltage VDD.

まず図2(a)に示すように、例えばIRドロップにより、電源電圧VDDにおいて波形41で示す変動が発生する。この電圧変動は、50MHzから150MHz程度の周波数帯域を有する高速な変化である。IRドロップにより電源電圧VDDが所望の電圧V1から低下し、その後、安定化容量や電源配線を介しての電流供給により電圧が回復し、回復時の電流供給により電圧のオーバーシュートが発生し、電源電圧VDDは一時的に所望の電圧V1よりも高くなっている。   First, as shown in FIG. 2A, a fluctuation shown by a waveform 41 occurs in the power supply voltage VDD due to, for example, an IR drop. This voltage fluctuation is a high-speed change having a frequency band of about 50 MHz to 150 MHz. The power supply voltage VDD drops from the desired voltage V1 due to the IR drop, and then the voltage is recovered by the current supply through the stabilizing capacitor or the power supply wiring. Voltage VDD is temporarily higher than desired voltage V1.

波形41の電圧低下に応答してデジタル制御発振器20へのデジタルコード入力が増大し、デジタル制御発振器20の発振周期が、図2(b)に波形42として示すように変化する。PLLの制御ループ(位相同期ループ)のループフィルタ23による平均化或いは積分機能を考慮した発振周期の平均値は、図2(c)に波形43として示すように変化する。   The digital code input to the digitally controlled oscillator 20 increases in response to the voltage drop of the waveform 41, and the oscillation cycle of the digitally controlled oscillator 20 changes as shown by the waveform 42 in FIG. The average value of the oscillation cycle in consideration of the averaging or integration function of the PLL control loop (phase locked loop) by the loop filter 23 changes as shown by a waveform 43 in FIG.

データパス30のタイミング余裕における電源電圧VDDの変動の寄与分は、図2(a)に示す電源電圧VDDの変動の波形41と同様に変化する。また、データパス30のタイミング余裕におけるクロック周期の調整の寄与分は、図2(b)に示すクロック周期の変化の波形42と同様に変化する。従って、電源電圧VDDの変動分をクロック周期の調整分で相殺したタイミング余裕は、図2(a)の波形41と図2(b)の波形42とをサイズを適宜合わせて合算したものとなり、例えば図2(d)に示す波形44のようになる。図2(d)の波形44に示されるように、タイミング余裕がゼロであるレベル以上の状態(即ちある程度のタイミング余裕が存在する状態)が維持されており、論理回路14はタイミングエラーなく適切に動作することができる。   The contribution of the fluctuation of the power supply voltage VDD in the timing margin of the data path 30 changes similarly to the waveform 41 of the fluctuation of the power supply voltage VDD shown in FIG. The contribution of the adjustment of the clock cycle to the timing margin of the data path 30 changes in the same manner as the clock cycle change waveform 42 shown in FIG. 2B. Accordingly, the timing margin in which the fluctuation of the power supply voltage VDD is offset by the adjustment of the clock cycle is the sum of the waveform 41 of FIG. 2A and the waveform 42 of FIG. For example, a waveform 44 shown in FIG. As shown by a waveform 44 in FIG. 2D, a state where the timing margin is equal to or higher than zero (that is, a state in which a certain timing margin exists) is maintained, and the logic circuit 14 appropriately operates without a timing error. Can work.

図3は、電源電圧VDDの継続的な変動に対する図1に示すPLL回路の動作の一例を示す図である。図3において、(a)は電源電圧VDDの電圧値を示す。(b)はPLLの制御ループの目標となる発振周期であり、分周器21に設定される分周率に応じた発振周期を示す。(c)はPLL回路10の発振周期を示す。(d)はPLL回路10の発振周期の平均値を示す。(e)は論理回路14のクリティカルパスであるデータパス30のタイミング余裕を示す。各波形図における横軸は時間である。電圧V1は、図1に示される電子回路に供給される電源電圧VDDの所望の電圧レベルである。発振周期C1は、電源電圧VDDに対応するPLL回路10の目標の発振周期である。発振周期T1は、電源電圧VDDに対応するPLL回路10の所望の発振周期である。   FIG. 3 is a diagram illustrating an example of an operation of the PLL circuit illustrated in FIG. 1 with respect to a continuous fluctuation of the power supply voltage VDD. FIG. 3A shows the voltage value of the power supply voltage VDD. (B) is an oscillation cycle that is a target of the control loop of the PLL, and indicates an oscillation cycle corresponding to the frequency division ratio set in the frequency divider 21. (C) shows the oscillation cycle of the PLL circuit 10. (D) shows the average value of the oscillation cycle of the PLL circuit 10. (E) shows a timing margin of the data path 30 which is a critical path of the logic circuit 14. The horizontal axis in each waveform diagram is time. Voltage V1 is a desired voltage level of power supply voltage VDD supplied to the electronic circuit shown in FIG. The oscillation cycle C1 is a target oscillation cycle of the PLL circuit 10 corresponding to the power supply voltage VDD. The oscillation cycle T1 is a desired oscillation cycle of the PLL circuit 10 corresponding to the power supply voltage VDD.

図3(a)に示す例では、IRドロップにより、電源電圧VDDに波形51で示す周期的な変動が発生している。この電圧変動は、50MHzから150MHz程度の周波数帯域を有する高速な変化である。例えばプロセッサ等のLSIの動作モードが周期的にスタンバイモードから動作モードに遷移する場合等に、図3(a)に示すような電源電圧VDDの変動が発生する。なお図3(a)の波形51では、所望の電圧V1の上側の波形と電圧V1の下側の波形とが略同一振幅のように示されている。しかしながら、実際には、IRドロップによる電源電圧VDDの低下とその後のオーバーシュートによる電源電圧VDDの上昇とにより波形51が形成されるので、電圧V1の上側の波形は電圧V1の下側の波形よりも小さな振幅となる。   In the example shown in FIG. 3A, a periodic change shown by a waveform 51 occurs in the power supply voltage VDD due to the IR drop. This voltage fluctuation is a high-speed change having a frequency band of about 50 MHz to 150 MHz. For example, when the operation mode of an LSI such as a processor periodically transitions from the standby mode to the operation mode, the power supply voltage VDD changes as shown in FIG. In the waveform 51 of FIG. 3A, the upper waveform of the desired voltage V1 and the lower waveform of the voltage V1 are shown as having substantially the same amplitude. However, actually, the waveform 51 is formed by the decrease in the power supply voltage VDD due to the IR drop and the subsequent increase in the power supply voltage VDD due to the overshoot, so that the upper waveform of the voltage V1 is larger than the lower waveform of the voltage V1. Also have a small amplitude.

図3(a)に示される電源電圧VDDの波形51では、電源電圧VDDが平均的に所望の電圧V1よりも低下している状態が持続するので、PLLの制御ループの目標発振周期、即ち、分周器21に設定される分周率に対応する発振周期の長さが増大する。従って、図3(b)に波形52として示されるように、PLLの制御ループの目標となる発振周期は増大する。   In the waveform 51 of the power supply voltage VDD shown in FIG. 3A, the state where the power supply voltage VDD is lower than the desired voltage V1 on average continues, so that the target oscillation cycle of the PLL control loop, that is, the target oscillation cycle, The length of the oscillation cycle corresponding to the frequency division ratio set in frequency divider 21 increases. Therefore, as shown by the waveform 52 in FIG. 3B, the oscillation cycle that is the target of the PLL control loop increases.

また、図3(a)に示される波形41の電圧低下に応答してデジタル制御発振器20へのデジタルコード入力が増大し、デジタル制御発振器20の発振周期が、図3(c)に波形53として示すように変化する。更に、PLLの制御ループ(位相同期ループ)のループフィルタ23による平均化或いは積分機能を考慮した発振周期の平均値は、図3(d)に波形54として示すように変化する。   In addition, the digital code input to the digitally controlled oscillator 20 increases in response to the voltage drop of the waveform 41 shown in FIG. 3A, and the oscillation cycle of the digitally controlled oscillator 20 is changed to a waveform 53 in FIG. Changes as shown. Further, the average value of the oscillation period in consideration of the averaging or integration function of the PLL control loop (phase locked loop) by the loop filter 23 changes as shown by a waveform 54 in FIG.

更に、電源電圧VDDの変動分をクロック周期の調整分で相殺したタイミング余裕は、図3(a)の波形51と図3(c)の波形53とをサイズを適宜合わせて合算したものとなり、例えば図3(e)に示す波形55のようになる。図3(e)の波形55に示されるように、タイミング余裕がゼロであるレベル以上の状態(即ちある程度のタイミング余裕が存在する状態)が維持されており、論理回路14はタイミングエラーなく適切に動作することができる。   Further, the timing margin in which the fluctuation of the power supply voltage VDD is offset by the adjustment of the clock cycle is the sum of the waveform 51 of FIG. 3A and the waveform 53 of FIG. For example, a waveform 55 shown in FIG. As shown by the waveform 55 in FIG. 3E, the state where the timing margin is equal to or higher than zero (that is, a state where a certain timing margin exists) is maintained, and the logic circuit 14 appropriately operates without the timing error. Can work.

図3(a)乃至(e)に示す動作例では、PLLの制御ループのループフィルタ23による平均化或いは積分機能を考慮した発振周期の平均値(図3(d))は、PLLの制御ループの目標発振周期(図3(b))と略一致している。これは、PLLの制御ループの動作により発振周期の平均値が目標発振周期に追従しているというよりは、寧ろ、デジタル制御発振器20の入力への検出信号Qの加算による発振周期の平均値の増加が、目標発振周期の増加に一致した結果である。検出信号Qの加算による発振周期の平均値の増加が、目標発振周期の増加に一致した結果、PLLの制御ループの安定状態(位相ロックした状態)が実現され、図3(b)の波形52と図3(d)の波形54とは一致する状態が保たれている。   In the operation examples shown in FIGS. 3A to 3E, the average value of the oscillation period (FIG. 3D) in consideration of the averaging or integration function of the PLL control loop by the loop filter 23 is shown in FIG. 3 (FIG. 3B). This is because the average value of the oscillation period does not follow the target oscillation period due to the operation of the control loop of the PLL, but rather the average value of the oscillation period obtained by adding the detection signal Q to the input of the digital control oscillator 20. The increase corresponds to the result of the increase of the target oscillation period. The increase in the average value of the oscillation period due to the addition of the detection signal Q coincides with the increase in the target oscillation period. As a result, a stable state (phase locked state) of the PLL control loop is realized, and the waveform 52 in FIG. And the waveform 54 in FIG. 3D is kept in agreement.

図4は、電源電圧VDDの継続的な変動に対する図1に示すPLL回路の動作を説明するための図である。図4に示す各波形は、図1に示すPLL回路において、デジタル制御発振器20の入力信号に対してAD変換器11の検出信号Qを加算する加算器25の加算動作を停止した場合に、電源電圧VDDの継続的な変動に対してどのようにPLL回路が動作するかを示す。図4(a)乃至(e)に示される信号は、図3(a)乃至(e)に示される信号と同様である。   FIG. 4 is a diagram for explaining an operation of the PLL circuit shown in FIG. 1 with respect to a continuous fluctuation of the power supply voltage VDD. When the addition operation of the adder 25 for adding the detection signal Q of the AD converter 11 to the input signal of the digital control oscillator 20 is stopped in the PLL circuit shown in FIG. It shows how the PLL circuit operates in response to the continuous fluctuation of the voltage VDD. The signals shown in FIGS. 4A to 4E are the same as the signals shown in FIGS. 3A to 3E.

図4(a)に示される電源電圧VDDの波形61では、電源電圧VDDが平均的に所望の電圧V1よりも低下している状態が持続するので、PLLの制御ループの目標発振周期、即ち、分周器21に設定される分周率に対応する発振周期の長さが増大する。従って、図4(b)に波形62として示されるように、PLLの制御ループの目標となる発振周期は増大する。   In the power supply voltage VDD waveform 61 shown in FIG. 4A, the state in which the power supply voltage VDD is lower than the desired voltage V1 on average continues, so the target oscillation period of the control loop of the PLL, that is, The length of the oscillation cycle corresponding to the frequency division ratio set in frequency divider 21 increases. Therefore, as shown by the waveform 62 in FIG. 4B, the oscillation cycle that is the target of the PLL control loop increases.

PLLの制御ループの目標発振周期が図4(b)に示されるように増大することにより、デジタル制御発振器20の発振周期が、図4(c)に波形63として示すように変化する。更に、PLLの制御ループ(位相同期ループ)のループフィルタ23による平均化或いは積分機能を考慮した発振周期の平均値は、図4(d)に波形64として示すように変化する。   By increasing the target oscillation cycle of the PLL control loop as shown in FIG. 4B, the oscillation cycle of the digitally controlled oscillator 20 changes as shown by a waveform 63 in FIG. Further, the average value of the oscillation period in consideration of the averaging or integration function of the PLL control loop (phase locked loop) by the loop filter 23 changes as shown by a waveform 64 in FIG.

この動作例では、PLLの制御ループのループフィルタ23による平均化或いは積分機能を考慮した発振周期の平均値(図4(d))は、PLLの制御ループの目標発振周期(図4(b))の増大に追従するように、徐々に増大している。これは、発振周期の平均値が目標発振周期に追従するように、PLLの制御ループの動作により発振周期が変化するためである。前述のように、図4(a)乃至(e)に示す動作例は、デジタル制御発振器20の入力信号に対してAD変換器11の検出信号Qを加算する加算器25の加算動作を停止した場合に、PLL回路がどのように動作するのかを示す例である。図4(c)に示すPLL回路10の発振周期は、図3(c)に示す発振周期とは異なり、急峻な電源電圧変化に応答した高速な変化は示さない。   In this operation example, the average value of the oscillation period (FIG. 4D) in consideration of the averaging or integration function of the PLL control loop by the loop filter 23 is the target oscillation period of the PLL control loop (FIG. 4B). ) To gradually increase. This is because the oscillation cycle changes by the operation of the control loop of the PLL such that the average value of the oscillation cycle follows the target oscillation cycle. As described above, in the operation examples shown in FIGS. 4A to 4E, the addition operation of the adder 25 that adds the detection signal Q of the AD converter 11 to the input signal of the digitally controlled oscillator 20 is stopped. This is an example showing how the PLL circuit operates in such a case. The oscillation cycle of the PLL circuit 10 shown in FIG. 4C does not show a fast change in response to a steep power supply voltage change, unlike the oscillation cycle shown in FIG.

電源電圧VDDの変動分をクロック周期の調整分で相殺したタイミング余裕は、図4(a)の波形61と図4(c)の波形63とをサイズを適宜合わせて合算したものとなり、例えば図4(e)に示す波形65のようになる。図4(e)の波形65に示されるように、電源電圧VDDが変動を開始してからしばらくの間は、電源電圧VDDの変動に発振周期が高速に応答することができず、タイミング余裕がゼロ以下にまで低下する状態が発生してしまう。そのため、図1に示す電子回路の論理回路14は、タイミングエラーにより適切に動作できない可能性がある。その後、PLLの制御ループによる制御動作により、PLL回路10の発振周期が徐々に増大すると、タイミング余裕も徐々に増大し、タイミング余裕がゼロであるレベル以上の状態が維持されるようになる。   The timing margin in which the fluctuation of the power supply voltage VDD is offset by the adjustment of the clock cycle is the sum of the waveform 61 in FIG. 4A and the waveform 63 in FIG. A waveform 65 shown in FIG. As shown by the waveform 65 in FIG. 4E, for a while after the power supply voltage VDD starts to fluctuate, the oscillation cycle cannot respond to the fluctuation of the power supply voltage VDD at high speed, and the timing margin is increased. A state of dropping below zero occurs. Therefore, the logic circuit 14 of the electronic circuit illustrated in FIG. 1 may not be able to operate properly due to a timing error. Thereafter, when the oscillation cycle of the PLL circuit 10 gradually increases due to the control operation of the PLL control loop, the timing margin also gradually increases, and the state where the timing margin is equal to or higher than zero is maintained.

図4(a)乃至(e)に示されるように、AD変換器11の出力である検出信号Qに応じて分周器21の分周率を変化させるだけでは、電源電圧VDDに急激な変動があった場合に、当該変動に応じて高速に発振周期を変化させることができない。その結果、タイミング余裕がなくなり、論理回路14のデータパスにおいてタイミングエラーが発生してしまう。従って、図1に示されるPLL回路10のように、分周率を制御する動作に加え、更に、デジタル制御発振器20の入力信号に対してAD変換器11の検出信号Qを加算器25により加算し、直接にデジタル制御発振器20の発振周期を変化させることが好ましい。   As shown in FIGS. 4A to 4E, a sharp change in the power supply voltage VDD is caused only by changing the frequency division ratio of the frequency divider 21 in accordance with the detection signal Q output from the AD converter 11. When there is, the oscillation cycle cannot be changed at high speed in accordance with the fluctuation. As a result, there is no timing margin, and a timing error occurs in the data path of the logic circuit 14. Therefore, as in the PLL circuit 10 shown in FIG. 1, in addition to the operation of controlling the frequency division ratio, the detection signal Q of the AD converter 11 is further added to the input signal of the digitally controlled oscillator 20 by the adder 25. Preferably, the oscillation cycle of the digitally controlled oscillator 20 is directly changed.

図5は、電源電圧VDDの継続的な変動に対する図1に示すPLL回路の動作を説明するための図である。図5に示す各波形は、図1に示すPLL回路において、分周器21の分周率をAD変換器11の検出信号Qに応じて調整する動作を停止した場合に、電源電圧VDDの継続的な変動に対してどのようにPLL回路が動作するかを示す。図5(a)乃至(e)に示される信号は、図3(a)乃至(e)に示される信号と同様である。   FIG. 5 is a diagram for explaining an operation of the PLL circuit shown in FIG. 1 with respect to a continuous fluctuation of the power supply voltage VDD. Each waveform shown in FIG. 5 indicates the continuation of the power supply voltage VDD when the operation of adjusting the frequency division ratio of the frequency divider 21 in accordance with the detection signal Q of the AD converter 11 is stopped in the PLL circuit shown in FIG. It shows how the PLL circuit operates in response to a typical fluctuation. The signals shown in FIGS. 5A to 5E are the same as the signals shown in FIGS. 3A to 3E.

図5(a)に示される電源電圧VDDの波形71では、電源電圧VDDが平均的に所望の電圧V1よりも低下している状態が持続する。但し、図5(a)乃至(e)に示される動作においては、PLLの制御ループの目標発振周期を調整する動作を停止した場合を想定しているので、図5(b)に波形72として示されるように、PLLの制御ループの目標となる発振周期は同一の値C1を維持する。   In the waveform 71 of the power supply voltage VDD shown in FIG. 5A, the state where the power supply voltage VDD is lower than the desired voltage V1 on average is maintained. However, in the operation shown in FIGS. 5A to 5E, it is assumed that the operation of adjusting the target oscillation cycle of the control loop of the PLL is stopped, so that the waveform 72 is shown in FIG. As shown, the target oscillation cycle of the PLL control loop maintains the same value C1.

また、図5(a)に示される波形71の電圧低下に応答してデジタル制御発振器20へのデジタルコード入力が加算器25の加算動作により増大し、デジタル制御発振器20の発振周期が、図5(c)に波形73として示すように変化する。更に、PLLの制御ループ(位相同期ループ)のループフィルタ23による平均化或いは積分機能を考慮した発振周期の平均値は、図5(d)に波形74として示すように変化する。   In addition, in response to the voltage drop of the waveform 71 shown in FIG. 5A, the digital code input to the digitally controlled oscillator 20 is increased by the addition operation of the adder 25, and the oscillation cycle of the digitally controlled oscillator 20 is increased. The waveform changes as shown as a waveform 73 in FIG. Furthermore, the average value of the oscillation cycle in consideration of the averaging or integration function of the PLL control loop (phase locked loop) by the loop filter 23 changes as shown by a waveform 74 in FIG.

この動作例では、図5(c)に波形73として示すように発振周期が電源変動に高速に応答して増大するので、PLLの制御ループのループフィルタ23による平均化或いは積分機能を考慮した発振周期の平均値(図5(d))も最初に増加を示す。しかしその後、図5(d)に波形74として示されるように、PLLの制御ループの目標発振周期(図5(b))の一定値C1に相当する周期T1に近づくように、発振周期の平均値は徐々に減少している。これは、発振周期の平均値が目標発振周期に近づくように、PLLの制御ループの動作により発振周期が変化するためである。   In this operation example, the oscillation period increases in response to the power supply fluctuation at a high speed as shown by a waveform 73 in FIG. 5C, so that the oscillation in consideration of the averaging or integration function by the loop filter 23 of the PLL control loop is performed. The average value of the period (FIG. 5 (d)) also initially shows an increase. However, thereafter, as shown as a waveform 74 in FIG. 5D, the average of the oscillation periods is approximated to approach a period T1 corresponding to a constant value C1 of the target oscillation period (FIG. 5B) of the PLL control loop. The value is gradually decreasing. This is because the oscillation cycle changes by the operation of the control loop of the PLL so that the average value of the oscillation cycle approaches the target oscillation cycle.

電源電圧VDDの変動分をクロック周期の調整分で相殺したタイミング余裕は、図5(a)の波形71と図5(c)の波形73とをサイズを適宜合わせて合算したものとなり、例えば図5(e)に示す波形75のようになる。図5(e)の波形75に示されるように、電源電圧VDDが変動を開始してからしばらくの間は、電源電圧VDDの変動に発振周期が高速に応答しているので、タイミング余裕がゼロレベル以上である状態が維持される。しかしながら、その後、PLLの制御ループによる制御動作により、PLL回路10の発振周期が徐々に減少すると、タイミング余裕も徐々に減少し、タイミング余裕がゼロであるレベル以下の状態が発生してしまう。従って、図1に示す電子回路の論理回路14は、タイミングエラーにより適切に動作できない可能性がある。   The timing margin in which the fluctuation of the power supply voltage VDD is offset by the adjustment of the clock cycle is the sum of the waveform 71 in FIG. 5A and the waveform 73 in FIG. A waveform 75 shown in FIG. As shown by the waveform 75 in FIG. 5E, for a while after the power supply voltage VDD starts to fluctuate, the oscillation cycle responds to the fluctuation of the power supply voltage VDD at high speed, so that the timing margin is zero. The state that is equal to or higher than the level is maintained. However, thereafter, when the oscillation cycle of the PLL circuit 10 gradually decreases due to the control operation of the PLL control loop, the timing margin also gradually decreases, and a state below the level where the timing margin is zero occurs. Therefore, the logic circuit 14 of the electronic circuit shown in FIG. 1 may not operate properly due to a timing error.

図5(a)乃至(e)に示されるように、デジタル制御発振器20の入力信号に対してPLLループ外部から信号加算して直接にデジタル制御発振器20の発振周期を変化させるだけでは、目標発振周期と平均発振周期とが異なってしまう。その結果、図5(a)に示すような電源電圧VDDの変動が発生する場合、ある程度以上の長い時間が変動発生から経過すると、PLLの制御ループの動作による発振周期の減少により、タイミングエラーが発生する可能性がある。従って、図1に示されるPLL回路10のように、デジタル制御発振器20の入力信号に対してPLLループ外部から信号加算して直接にデジタル制御発振器20の発振周期を変化させる動作に加え、更に、分周率を制御する動作を実行することが好ましい。   As shown in FIGS. 5A to 5E, the target oscillation is not obtained only by directly adding the signal to the input signal of the digitally controlled oscillator 20 from the outside of the PLL loop to directly change the oscillation cycle of the digitally controlled oscillator 20. The period and the average oscillation period are different. As a result, in the case where the power supply voltage VDD fluctuates as shown in FIG. 5A, if a long time equal to or more than a certain period elapses after the fluctuation has occurred, a timing error occurs due to a decrease in the oscillation cycle due to the operation of the PLL control loop. Can occur. Therefore, in addition to the operation of adding the signal to the input signal of the digitally controlled oscillator 20 from the outside of the PLL loop and directly changing the oscillation cycle of the digitally controlled oscillator 20 as in the PLL circuit 10 shown in FIG. It is preferable to execute an operation for controlling the frequency division ratio.

これまでの説明のように、図1に示される電子回路においては、電源電圧VDDの低下によりAD変換器11の出力である検出信号Qのデジタルコードの値が大きくなると、デジタル制御発振器20の発振周期の長さが増大する。このとき、電源電圧VDDのΔVの低下に対して、AD変換器11の出力である検出信号Qのデジタルコードが1LSB増大し、発振周期の長さがΔTo長くなるとする。また、電源電圧VDDのΔVの低下により、論理回路14のデータパス30における信号の伝搬時間がΔTp増大するとする。この場合、検出信号Qの1LSBの増大に応答する発振周期の増大ΔToが、データパス30の信号伝搬時間の増大ΔTpよりも大きいか等しいことが好ましい。またタイミングエラーを回避しつつ最速の動作速度を実現するためには、検出信号Qの1LSBの増大に応答する発振周期の増大ΔToが、データパス30の信号伝搬時間の増大ΔTpと等しいことが好ましい。従って、これらの条件を満たすように、入力デジタルコードの1LSB変化に対するデジタル制御発振器20の発振周期の変化(即ち発振周期制御の感度)を調整することが好ましい。   As described above, in the electronic circuit shown in FIG. 1, when the value of the digital code of the detection signal Q output from the AD converter 11 increases due to a decrease in the power supply voltage VDD, the oscillation of the digital control oscillator 20 increases. The period length increases. At this time, it is assumed that the digital code of the detection signal Q, which is the output of the AD converter 11, increases by 1 LSB and the oscillation cycle length increases by ΔTo with respect to the decrease of ΔV of the power supply voltage VDD. It is also assumed that the signal propagation time in the data path 30 of the logic circuit 14 increases by ΔTp due to the decrease in ΔV of the power supply voltage VDD. In this case, it is preferable that the increase ΔTo of the oscillation cycle in response to the increase of 1 LSB of the detection signal Q is greater than or equal to the increase ΔTp of the signal propagation time of the data path 30. In order to realize the fastest operation speed while avoiding the timing error, it is preferable that the increase ΔTo of the oscillation cycle in response to the increase of 1 LSB of the detection signal Q is equal to the increase ΔTp of the signal propagation time of the data path 30. . Therefore, it is preferable to adjust the change in the oscillation cycle of the digitally controlled oscillator 20 (that is, the sensitivity of the oscillation cycle control) with respect to a 1 LSB change in the input digital code so as to satisfy these conditions.

図1に示す構成では、電圧検出器として機能するAD変換器11が検出信号Qを出力しているが、検出信号Qを生成する電圧検出器としては、アナログの電源電圧をデジタルの検出信号Qに変換するAD変換機能に基づくものに限られない。電圧検出器は、電源電圧の電圧変化に起因する回路遅延を測定して、当該回路遅延を示す測定値を検出信号Qとして出力してもよい。   In the configuration shown in FIG. 1, the AD converter 11 functioning as a voltage detector outputs the detection signal Q. However, as the voltage detector for generating the detection signal Q, an analog power supply voltage is converted to a digital detection signal Q The conversion is not limited to the one based on the AD conversion function. The voltage detector may measure a circuit delay caused by a voltage change of the power supply voltage and output a measured value indicating the circuit delay as the detection signal Q.

図6は、回路遅延測定に基づいて検出信号Qを生成する電圧検出器を用いることにより、電源ノイズに追従して発振周波数を変化可能な電子回路の実施例の一例を示す図である。図6において、図1と同一又は対応する構成要素は同一又は対応する番号で参照し、その説明は適宜省略する。   FIG. 6 is a diagram illustrating an example of an electronic circuit according to an embodiment in which an oscillation frequency can be changed by following a power supply noise by using a voltage detector that generates a detection signal Q based on a circuit delay measurement. 6, the same or corresponding components as those of FIG. 1 are referred to by the same or corresponding numerals, and a description thereof will be omitted as appropriate.

図6に示す電子回路は、図1に示すおけるAD変換器11の代わりに、制御回路80、ディレイモニタ回路(DDM)81、マスク回路(MASK)82、及びPLL回路83を含む。制御回路80、ディレイモニタ回路81、及びマスク回路82が、電圧検出器に相当する。   The electronic circuit shown in FIG. 6 includes a control circuit 80, a delay monitor circuit (DDM) 81, a mask circuit (MASK) 82, and a PLL circuit 83 instead of the AD converter 11 shown in FIG. The control circuit 80, the delay monitor circuit 81, and the mask circuit 82 correspond to a voltage detector.

制御回路80は、ディレイモニタ回路81及びマスク回路82を制御する回路である。制御回路80は、それぞれkビット(kは2以上の整数)の第1の制御信号C及び第2の制御信号Rをディレイモニタ回路81に供給すると共に、2nビット(nは1以上の整数)のマスク信号Mをマスク回路82に供給する。ディレイモニタ回路81は、前記第1及び第2の制御信号C及びRによりそれぞれ遅延時間が設定される2つの可変ディレイラインの回路遅延差を、クロック信号に基づいて測定し、当該測定の結果を回路遅延測定値として出力する。これら2つの可変ディレイラインはそれぞれ電源電圧VDD及び基準電圧VREFにより駆動し、2つの可変ディレイラインの回路遅延差の変化が電源電圧VDDの変化を示すことになる。マスク回路82は、ディレイモニタ回路81が出力する2nビットの回路遅延測定値を、マスク信号Mに基づいてビット毎にマスクし、2nビットのマスク後の回路遅延測定値を出力する。このマスク後の回路遅延測定値は、検出信号Qとして、PLL回路10及び平均化部12に供給される。   The control circuit 80 is a circuit that controls the delay monitor circuit 81 and the mask circuit 82. The control circuit 80 supplies the first control signal C and the second control signal R of k bits (k is an integer of 2 or more) to the delay monitor circuit 81, and 2n bits (n is an integer of 1 or more). Is supplied to the mask circuit 82. The delay monitor circuit 81 measures, based on a clock signal, a circuit delay difference between two variable delay lines whose delay times are set by the first and second control signals C and R, respectively, and determines a result of the measurement. Output as circuit delay measurement value. These two variable delay lines are driven by the power supply voltage VDD and the reference voltage VREF, respectively, and a change in the circuit delay difference between the two variable delay lines indicates a change in the power supply voltage VDD. The mask circuit 82 masks the 2n-bit circuit delay measurement value output from the delay monitor circuit 81 for each bit based on the mask signal M, and outputs the 2n-bit masked circuit delay measurement value. The measured circuit delay value after the masking is supplied to the PLL circuit 10 and the averaging unit 12 as a detection signal Q.

ディレイモニタ回路81が使用するクロック信号は、PLL回路83からディレイモニタ回路81のクロック入力端子CKに供給されてよい。以降、このクロック信号をクロック信号CKと表記する。ディレイモニタ回路81は、1つのクロックパルスが上記2つの可変ディレイラインを通過する際の時間差に基づいて回路遅延を測定する。この際、クロック信号CK中の一連の複数のクロックパルスのうち、回路遅延を一回測定するためには1つのクロックパルスのみが用いられ、回路遅延を一回のみ測定するのであれば単発のパルス信号をディレイモニタ回路81に供給すればよい。複数のクロックパルスを継続的にディレイモニタ回路81に供給することによって、複数回の回路遅延測定が継続的に行われることになる。従って、回路遅延測定値そのものはクロック信号CKの周波数に依存することはなく、クロック信号CKの周波数は、回路遅延を測定するサンプリング周期を規定するものとして、適宜設定されればよい。   The clock signal used by the delay monitor circuit 81 may be supplied from the PLL circuit 83 to the clock input terminal CK of the delay monitor circuit 81. Hereinafter, this clock signal is referred to as a clock signal CK. The delay monitor circuit 81 measures a circuit delay based on a time difference when one clock pulse passes through the two variable delay lines. At this time, of the series of clock pulses in the clock signal CK, only one clock pulse is used to measure the circuit delay once, and if the circuit delay is measured only once, a single pulse is used. A signal may be supplied to the delay monitor circuit 81. By continuously supplying a plurality of clock pulses to the delay monitor circuit 81, a plurality of circuit delay measurements are continuously performed. Therefore, the circuit delay measurement value itself does not depend on the frequency of the clock signal CK, and the frequency of the clock signal CK may be set as appropriate as defining the sampling period for measuring the circuit delay.

図7は、図6に示す電子回路の変形例である。図7に示す電子回路においては、ディレイモニタ回路81が使用するクロック信号CKはPLL回路10から供給される。即ち、PLL回路10のデジタル制御発振器20が生成して論理回路14に供給されるクロック信号が、ディレイモニタ回路81のクロック入力端子CKにも印加される。前述のように、ディレイモニタ回路81が出力する回路遅延測定値は、クロック入力端子CKに印加されるクロック信号の周波数には依存しない。従って、制御対象として周波数が変化するPLL回路10の発振周波数をクロック入力端子CKに印加する構成としても、ディレイモニタ回路81による回路遅延測定結果が、PLL回路10の制御に伴い変化してしまうことはない。即ち、ディレイモニタ回路81は、PLL回路10の発振周波数の変化に影響を受けることなく、電源電圧VDDの変化のみを検出することができる。図7の電子回路の構成とすることにより、図6の電子回路の構成に比較して、PLL回路の数を削減することが可能となる。   FIG. 7 is a modification of the electronic circuit shown in FIG. In the electronic circuit shown in FIG. 7, the clock signal CK used by the delay monitor circuit 81 is supplied from the PLL circuit 10. That is, the clock signal generated by the digitally controlled oscillator 20 of the PLL circuit 10 and supplied to the logic circuit 14 is also applied to the clock input terminal CK of the delay monitor circuit 81. As described above, the measured circuit delay value output by the delay monitor circuit 81 does not depend on the frequency of the clock signal applied to the clock input terminal CK. Therefore, even when the oscillation frequency of the PLL circuit 10 whose frequency changes as the control target is applied to the clock input terminal CK, the result of the circuit delay measurement by the delay monitor circuit 81 may change with the control of the PLL circuit 10. There is no. That is, the delay monitor circuit 81 can detect only a change in the power supply voltage VDD without being affected by a change in the oscillation frequency of the PLL circuit 10. With the configuration of the electronic circuit in FIG. 7, the number of PLL circuits can be reduced as compared with the configuration of the electronic circuit in FIG.

図8は、ディレイモニタ回路81の構成の一例を示す図である。図8に示すディレイモニタ回路81は、第1の可変ディレイライン90、第2の可変ディレイライン91、及び時間差測定回路92を含む。   FIG. 8 is a diagram illustrating an example of the configuration of the delay monitor circuit 81. The delay monitor circuit 81 shown in FIG. 8 includes a first variable delay line 90, a second variable delay line 91, and a time difference measurement circuit 92.

第1の可変ディレイライン90は、電源電圧VDDが印加されるとともに、クロック信号CKを第1の制御信号Cに基づいて遅延させた第1の遅延発振信号を出力する。第2の可変ディレイライン91は、基準電圧VREFが印加されるとともに、クロック信号CKを第2の制御信号Rに基づいて遅延させた第2の遅延発振信号を出力する。   The first variable delay line 90 receives the power supply voltage VDD and outputs a first delayed oscillation signal obtained by delaying the clock signal CK based on the first control signal C. The second variable delay line 91 receives the reference voltage VREF and outputs a second delayed oscillation signal obtained by delaying the clock signal CK based on the second control signal R.

時間差測定回路92は、複数の遅延回路101、複数の遅延回路102、n個の第1のフリップフロップ103、及びn個の第2のフリップフロップ104を含む。第1のフリップフロップ103においては、第2の可変ディレイライン91の出力する第2の遅延発振信号が各クロック端子に供給される。また、前段の第1のフリップフロップ103のデータ入力から遅延回路101によりそれぞれ第1の所定ディレイ分遅延させた、第1の可変ディレイライン90の出力である第1の遅延発振信号が、それぞれのデータ入力端子に入力される。   The time difference measurement circuit 92 includes a plurality of delay circuits 101, a plurality of delay circuits 102, n first flip-flops 103, and n second flip-flops 104. In the first flip-flop 103, a second delayed oscillation signal output from the second variable delay line 91 is supplied to each clock terminal. Further, a first delayed oscillation signal output from the first variable delay line 90, which is delayed by a first predetermined delay from the data input of the first flip-flop 103 in the preceding stage by the delay circuit 101, is output to each of the respective circuits. Input to the data input terminal.

第2のフリップフロップ104においては、第1の可変ディレイライン90の出力する第1の遅延発振信号がそれぞれのデータ入力端子に入力される。また、前段の第2のフリップフロップ104のクロック入力から遅延回路102によりそれぞれ第2の所定ディレイ分遅延させた、第2の可変ディレイライン91の出力である第2の遅延発振信号が各クロック端子に供給される。なお遅延回路101の各々の遅延時間(ディレイ)と遅延回路102の各々の遅延時間(ディレイ)とは等しくてよい。即ち、上記の第1の所定ディレイと第2の所定ディレイとは等しくてよい。   In the second flip-flop 104, the first delayed oscillation signal output from the first variable delay line 90 is input to each data input terminal. Further, a second delayed oscillation signal output from the second variable delay line 91, which is delayed by a second predetermined delay from the clock input of the second flip-flop 104 in the preceding stage by the delay circuit 102, is applied to each clock terminal. Supplied to Note that each delay time (delay) of the delay circuit 101 and each delay time (delay) of the delay circuit 102 may be equal. That is, the first predetermined delay and the second predetermined delay may be equal.

時間差測定回路92の出力する2nビットの回路遅延測定値Q[2n−1:0]は、n個の第2のフリップフロップ104のnビットの出力データを下位nビットとし、n個の第2のフリップフロップ104のnビットの出力データを下位nビットとする。第1の可変ディレイライン90と第2の可変ディレイライン91との遅延時間が等しい場合、回路遅延測定値Q[2n−1:0]は、上位nビットが全て0であり、下位nビットが全て1となる。この値を有する回路遅延測定値Q[2n−1:0]を、{n'b00・・・00,n'b11・・・11}と表記する。nが例えば4の場合、回路遅延測定値Q[7:0]は"00001111"となる。   The 2n-bit circuit delay measurement value Q [2n-1: 0] output from the time difference measurement circuit 92 is based on the n-bit output data of the n second flip-flops 104 as lower n bits and the n second The output data of n bits of the flip-flop 104 is the lower n bits. When the delay time of the first variable delay line 90 is equal to the delay time of the second variable delay line 91, the circuit delay measurement value Q [2n-1: 0] is such that the upper n bits are all 0 and the lower n bits are 0. All become 1. The circuit delay measurement value Q [2n-1: 0] having this value is expressed as {n′b00... 00, n′b11. When n is 4, for example, the circuit delay measurement value Q [7: 0] is “000011111”.

第1の可変ディレイライン90の回路遅延が第2の可変ディレイライン91の回路遅延よりも長い場合には、第1の可変ディレイライン90の出力する第1の遅延発振信号が第2の可変ディレイライン91の発信する第2の遅延発振信号よりも遅れることになる。この場合、n個の第2のフリップフロップ104のうちで例えば図面の一番左に位置する第2のフリップフロップ104は、第1の遅延発振信号がHIGHになる前に第1の遅延発振信号をデータ入力として取り込むことになる。その結果、n個の第2のフリップフロップ104のnビットの出力データのうちの何ビットかは、1ではなく0になる。第1の可変ディレイライン90と第2の可変ディレイライン91との回路遅延差が、前記の所定ディレイの例えば3個分と4個分との間に相当する場合、n=4の場合の回路遅延測定値Q[7:0]は"00000001"となる。また、第1の可変ディレイライン90と第2の可変ディレイライン91との回路遅延差が、前記の所定ディレイの例えば2個分と3個分との間に相当する場合、n=4の場合の回路遅延測定値Q[7:0]は"00000011"となる。   When the circuit delay of the first variable delay line 90 is longer than the circuit delay of the second variable delay line 91, the first delayed oscillation signal output from the first variable delay line 90 is changed to the second variable delay line. This is behind the second delayed oscillation signal transmitted by the line 91. In this case, of the n second flip-flops 104, for example, the second flip-flop 104 located at the leftmost position in the drawing is the first delayed oscillation signal before the first delayed oscillation signal becomes HIGH. As data input. As a result, some of the n-bit output data of the n second flip-flops 104 become 0 instead of 1. When the circuit delay difference between the first variable delay line 90 and the second variable delay line 91 corresponds to, for example, three or four of the predetermined delays, a circuit in the case of n = 4 The measured delay value Q [7: 0] is “00000001”. Further, when the circuit delay difference between the first variable delay line 90 and the second variable delay line 91 corresponds to, for example, between two and three of the predetermined delays, n = 4 Circuit delay measurement value Q [7: 0] is “00000011”.

第1の可変ディレイライン90の回路遅延が第2の可変ディレイライン91の回路遅延よりも短い場合には、第1の可変ディレイライン90の出力する第1の遅延発振信号が第2の可変ディレイライン91の発信する第2の遅延発振信号よりも早まることになる。この場合、n個の第1のフリップフロップ103のうちで例えば図面の一番左に位置する第2のフリップフロップ104は、第1の遅延発振信号がHIGHになった後に第1の遅延発振信号をデータ入力として取り込むことになる。その結果、n個の第1のフリップフロップ103のnビットの出力データのうちの何ビットかは、0ではなく1になる。第1の可変ディレイライン90と第2の可変ディレイライン91との回路遅延差が、前記の所定ディレイの例えば3個分と4個分との間に相当する場合、n=4の場合の回路遅延測定値Q[7:0]は"01111111"となる。また、第1の可変ディレイライン90と第2の可変ディレイライン91との回路遅延差が、前記の所定ディレイの例えば2個分と3個分との間に相当する場合、n=4の場合の回路遅延測定値Q[7:0]は"00111111"となる。   When the circuit delay of the first variable delay line 90 is shorter than the circuit delay of the second variable delay line 91, the first delayed oscillation signal output from the first variable delay line 90 is changed to the second variable delay line. This is earlier than the second delayed oscillation signal transmitted by the line 91. In this case, of the n first flip-flops 103, for example, the second flip-flop 104 located at the leftmost position in the drawing is the first delayed oscillation signal after the first delayed oscillation signal becomes HIGH. As data input. As a result, some bits of the n-bit output data of the n first flip-flops 103 become 1 instead of 0. When the circuit delay difference between the first variable delay line 90 and the second variable delay line 91 corresponds to, for example, three or four of the predetermined delays, a circuit in the case of n = 4 The delay measurement value Q [7: 0] is “01111111”. Further, when the circuit delay difference between the first variable delay line 90 and the second variable delay line 91 corresponds to, for example, between two and three of the predetermined delays, n = 4 Circuit delay measurement value Q [7: 0] is “00111111”.

なお図8に示す回路構成では、第1の可変ディレイライン90の出力がフリップフロップ103及び104のデータ入力端子に印加され、第2の可変ディレイライン91の出力がフリップフロップ103及び104のクロック端子に印加される。この逆に、第1の可変ディレイライン90の出力がフリップフロップ103及び104のクロック端子に印加され、第2の可変ディレイライン91の出力がフリップフロップ103及び104のデータ入力端子に印加されてもよい。この場合、第1の可変ディレイライン90と第2の可変ディレイライン91との回路遅延差の変化に応じた回路遅延測定値Q[2n−1:0]の増減が上記とは逆になるが、それを考慮に入れて、回路遅延測定値Qに基づく制御動作を適宜設計すればよい。   In the circuit configuration shown in FIG. 8, the output of the first variable delay line 90 is applied to the data input terminals of the flip-flops 103 and 104, and the output of the second variable delay line 91 is applied to the clock terminals of the flip-flops 103 and 104. Is applied. Conversely, the output of the first variable delay line 90 is applied to the clock terminals of the flip-flops 103 and 104, and the output of the second variable delay line 91 is applied to the data input terminals of the flip-flops 103 and 104. Good. In this case, the increase or decrease of the circuit delay measurement value Q [2n−1: 0] according to the change in the circuit delay difference between the first variable delay line 90 and the second variable delay line 91 is opposite to the above. In consideration of this, the control operation based on the measured circuit delay value Q may be appropriately designed.

このようにしてディレイモニタ回路81は、第1の可変ディレイライン90と第2の可変ディレイライン91との回路遅延差を示すサーモメータコードである回路遅延測定値Q[2n−1:0]を出力する。第1の可変ディレイライン90は電源電圧VDDにより駆動し、第2の可変ディレイライン91は基準電圧VREFにより駆動する。ここで基準電圧VREFは、電源電圧VDDとは別個に外部から供給される電源電圧であり、図6又は図7に示す電子回路の他の回路部分で使用されることはなく、雑音の混じっていない、変動のない、一定電圧に維持される電圧である。従って、第1の可変ディレイライン90と第2の可変ディレイライン91との回路遅延差を示す回路遅延測定値Q[2n−1:0]は、電源電圧VDDの値を一義的に反映したものとなる。電源電圧VDDが低下すると、第1の可変ディレイライン90の回路遅延は長くなり、電源電圧VDDが上昇すると、第1の可変ディレイライン90の回路遅延は短くなる。従って、電源電圧VDDが低下すると、回路遅延測定値Q[2n−1:0]中の値0のビット数が多くなり、電源電圧VDDが上昇すると、回路遅延測定値Q[2n−1:0]中の値1のビット数が多くなる。   In this way, the delay monitor circuit 81 outputs the circuit delay measurement value Q [2n-1: 0] which is a thermometer code indicating the circuit delay difference between the first variable delay line 90 and the second variable delay line 91. Output. The first variable delay line 90 is driven by the power supply voltage VDD, and the second variable delay line 91 is driven by the reference voltage VREF. Here, the reference voltage VREF is a power supply voltage supplied from outside separately from the power supply voltage VDD, and is not used in other circuit parts of the electronic circuit shown in FIG. 6 or FIG. 7 and is mixed with noise. It is a voltage that does not fluctuate and is maintained at a constant voltage. Therefore, the measured circuit delay value Q [2n-1: 0] indicating the circuit delay difference between the first variable delay line 90 and the second variable delay line 91 uniquely reflects the value of the power supply voltage VDD. It becomes. When the power supply voltage VDD decreases, the circuit delay of the first variable delay line 90 increases, and when the power supply voltage VDD increases, the circuit delay of the first variable delay line 90 decreases. Therefore, when the power supply voltage VDD decreases, the number of bits of the value 0 in the circuit delay measurement value Q [2n-1: 0] increases, and when the power supply voltage VDD increases, the circuit delay measurement value Q [2n-1: 0]. ] Has more bits.

第1の可変ディレイライン90の回路遅延と第2の可変ディレイライン91の回路遅延とが同一長となるように回路を製造したくとも、プロセスばらつきや配線ばらつきの影響により、同一長にすることは困難である。従って、予め実行する初期化作業により、第1の可変ディレイライン90の回路遅延と第2の可変ディレイライン91の回路遅延とが同一長となるように設定しておくことが望ましい。この初期設定の作業については、後ほど説明する。   Even if it is desired to manufacture a circuit so that the circuit delay of the first variable delay line 90 and the circuit delay of the second variable delay line 91 have the same length, the circuit delay must be the same due to the effects of process variations and wiring variations. It is difficult. Therefore, it is desirable to set the circuit delay of the first variable delay line 90 and the circuit delay of the second variable delay line 91 to have the same length by the initialization operation performed in advance. This initial setting operation will be described later.

図9は、可変ディレイラインの構成の一例を示す図である。図8に示す第1の可変ディレイライン90及び第2の可変ディレイライン91の各々は、図9に示す可変ディレイラインの回路構成を含んでよい。図9に示す可変ディレイラインは、複数個のインバータ111、2個のスイッチ回路112、及び複数個の容量素子113を含む。インバータ111が縦続接続され、ディレイラインを形成する。2個のスイッチ回路112のそれぞれには、スイッチ制御コードT[0]乃至T[2−1]が印加される。スイッチ回路112の各々は、印加されるスイッチ制御コードの対応ビット値が1の場合にオンになり(導通され)、当該スイッチ回路112に直列に接続される容量素子113がインバータ111の出力に接続される。スイッチ回路112の各々は更に、印加されるスイッチ制御コードの対応ビット値が0の場合にオフになり(遮断され)、当該スイッチ回路112に直列に接続される容量素子113がインバータ111の出力から分離される。 FIG. 9 is a diagram illustrating an example of the configuration of the variable delay line. Each of the first variable delay line 90 and the second variable delay line 91 shown in FIG. 8 may include the circuit configuration of the variable delay line shown in FIG. Variable delay line shown in FIG. 9 includes a plurality of inverters 111,2 k-number of switching circuits 112 and a plurality of capacitive elements 113,. Inverters 111 are cascaded to form a delay line. Switch control codes T [0] to T [2 k -1] are applied to each of the 2 k switch circuits 112. Each of the switch circuits 112 is turned on (conducted) when the corresponding bit value of the applied switch control code is 1, and the capacitance element 113 connected in series to the switch circuit 112 is connected to the output of the inverter 111. Is done. Each of the switch circuits 112 is further turned off (cut off) when the corresponding bit value of the applied switch control code is 0, and the capacitance element 113 connected in series to the switch circuit 112 is connected to the output of the inverter 111 from the output of the inverter 111. Separated.

スイッチ制御コードT[0]乃至T[2−1]の値1のビット数が多いほど、図9に示すディレイラインに接続される容量素子113の個数が多くなり、遅延時間が長くなる。またスイッチ制御コードT[0]乃至T[2−1]の値0のビット数が多いほど、図9に示すディレイラインに接続される容量素子113の個数が小さくなり、遅延時間が短くなる。 As the number of bits of the value 1 of the switch control codes T [0] to T [2 k -1] increases, the number of the capacitive elements 113 connected to the delay line illustrated in FIG. 9 increases, and the delay time increases. Further, as the number of bits of the value 0 of the switch control codes T [0] to T [2 k -1] increases, the number of the capacitive elements 113 connected to the delay line illustrated in FIG. 9 decreases, and the delay time decreases. .

図10は、可変ディレイラインのためのコード変換を行うコード変換部を示す図である。図8に示す第1の可変ディレイライン90及び第2の可変ディレイライン91の各々は、図10に示すコード変換部を含んでよい。図10に示すコード変換部115には、例えば第1の可変ディレイライン90に対応してkビットの第1の制御信号C[k−1:0]が供給される。コード変換部115は、第1の制御信号C[k−1:0]が示す0乃至2−1のうちの1つの値に等しい数のビットが値1であるような2ビットのサーモメータコードを生成する。即ち例えば、第1の制御信号C[3:0]が"1011"で十進数値11を示す場合、コード変換部115の出力T[0]乃至T[15]は、全16ビットのうち11個のビットが値1であるサーモメータコード"1111111111100000"となる。第2の可変ディレイライン91については、同様のコード変換部が、第2の制御信号R[k−1:0]を同様に2ビットのサーモメータコードに変換してよい。 FIG. 10 is a diagram illustrating a code conversion unit that performs code conversion for a variable delay line. Each of the first variable delay line 90 and the second variable delay line 91 shown in FIG. 8 may include the code conversion unit shown in FIG. For example, a k-bit first control signal C [k−1: 0] corresponding to the first variable delay line 90 is supplied to the code conversion unit 115 illustrated in FIG. The code conversion unit 115 generates a thermocouple of 2 k bits such that the number of bits equal to one of the values of 0 to 2 k -1 indicated by the first control signal C [k-1: 0] is the value 1. Generate a meter code. That is, for example, when the first control signal C [3: 0] indicates “1011” and indicates the decimal value 11, the outputs T [0] to T [15] of the code conversion unit 115 are 11 out of all 16 bits. The number of bits becomes the thermometer code "1111111111100000" having the value 1. The second variable delay line 91, similar code conversion unit, a second control signal R [k-1: 0] and may be similarly converted to the thermometer code of 2 k bits.

図11は、図6又は図7に示すマスク回路82の構成の一例を示す図である。図6又は図7に示すマスク回路82は、ディレイモニタ回路81からの2n−1ビットの回路遅延測定値Q[2n−1:0]をA入力に受け取り、制御回路80からの2n−1ビットのマスク信号MをB入力に受け取る。図11では、A入力に受け取る2n−1ビットの信号がA[0]乃至A[2n−1]として示され、B入力に受け取る2n−1ビットの信号がB[0]乃至B[2n−1]として示される。   FIG. 11 is a diagram showing an example of the configuration of the mask circuit 82 shown in FIG. 6 or FIG. 6 or 7 receives the 2n-1 bit circuit delay measurement value Q [2n-1: 0] from the delay monitor circuit 81 at the A input, and receives the 2n-1 bit from the control circuit 80. At the B input. In FIG. 11, 2n-1 bit signals received at the A input are shown as A [0] to A [2n-1], and 2n-1 bit signals received at the B input are B [0] to B [2n- 1].

図11に示すマスク回路は、2n−1個のOR回路120を含む。2n−1個のOR回路120の出力X[0]乃至X[2n−1]が、2n−1ビットのマスク後の回路遅延測定値としてマスク回路から出力される。各OR回路120は、A[0]乃至A[2n−1]のうちの対応する1ビットとB[0]乃至B[2n−1]のうちの対応する1ビットとのOR演算を実行し、OR演算の結果をX[0]乃至X[2n−1]のうちの対応する1ビットとして出力する。このようにして、2n−1ビットの回路遅延測定値Q[2n−1:0]のうち、2n−1ビットのマスク信号Mの値1のビットに対応するビットがマスクされ、マスク後の回路遅延測定値が出力される。   The mask circuit illustrated in FIG. 11 includes 2n−1 OR circuits 120. Outputs X [0] to X [2n-1] of the 2n-1 OR circuits 120 are output from the mask circuit as masked circuit delay values of 2n-1 bits. Each OR circuit 120 performs an OR operation on the corresponding one bit of A [0] to A [2n-1] and the corresponding one bit of B [0] to B [2n-1]. , OR operation result is output as a corresponding one bit of X [0] to X [2n-1]. In this way, of the 2n-1 bit circuit delay measurement values Q [2n-1: 0], the bit corresponding to the value 1 bit of the 2n-1 bit mask signal M is masked, and the masked circuit The delay measurement is output.

図12は、制御回路による設定動作の一例を示すフローチャートである。図6又は図7に示される電子回路が、その本来の意図されるルーチン処理の実行を開始する前に、図12のフローチャートに示す初期設定手順を実行する。例えば電子回路が通信回路である場合には、電子回路による通信処理の実行が開始される前に、図12のフローチャートに示す初期設定手順が実行される。当該初期設定が行われた後に、電子回路がルーチン処理を実行すると共に、電源電圧VDDの変化に応じてPLL回路10の発振周波数を制御する適応的周波数制御が実行される。   FIG. 12 is a flowchart illustrating an example of the setting operation by the control circuit. Before the electronic circuit shown in FIG. 6 or 7 starts execution of the original intended routine processing, the electronic circuit performs the initial setting procedure shown in the flowchart of FIG. For example, when the electronic circuit is a communication circuit, before the execution of the communication processing by the electronic circuit is started, the initial setting procedure shown in the flowchart of FIG. 12 is executed. After the initialization is performed, the electronic circuit executes the routine processing, and the adaptive frequency control that controls the oscillation frequency of the PLL circuit 10 according to the change in the power supply voltage VDD is executed.

ステップS1において、基準電圧VREF及び電源電圧VDDを同一の電圧に設定すると共に、制御回路80によりマスク信号Mの全ビットを1に設定する。電圧設定については、例えば制御回路80が外部の電圧源に対して電圧設定命令を送信することにより、上記の電圧設定を実行するようにしてよい。ここで基準電圧VREF及び電源電圧VDDを設定する同一の設定電圧は、電子回路がルーチン処理を実行する際に電源電圧VDDが設定される定格電圧よりも低い電圧であり、適応的周波数制御のトリガ電圧であってよい。即ち、ルーチン処理を実行中に電源電圧VDDが定格電圧から低下して所定の電圧に到達したときに、適応的周波数制御によるPLL回路10の発振周波数を低くする動作を開始させたい場合(トリガしたい場合)に、上記の設定電圧は当該所定の電圧に等しくてよい。またマスク信号Mの全ビットが1に設定されることにより、マスク回路82の出力の全ビットが値1に固定され、PLL回路10及び平均化部12に供給される検出信号Qの全ビットが値1に固定される。これにより、PLL回路10の発振周波数を制御する適応的周波数制御が停止状態とされる。   In step S1, the reference voltage VREF and the power supply voltage VDD are set to the same voltage, and all bits of the mask signal M are set to 1 by the control circuit 80. As for the voltage setting, the above-described voltage setting may be performed by, for example, transmitting a voltage setting command to the external voltage source by the control circuit 80. Here, the same set voltage for setting the reference voltage VREF and the power supply voltage VDD is a voltage lower than the rated voltage at which the power supply voltage VDD is set when the electronic circuit executes the routine processing, and triggers the adaptive frequency control. It may be a voltage. That is, when the power supply voltage VDD decreases from the rated voltage and reaches a predetermined voltage during execution of the routine processing, an operation of lowering the oscillation frequency of the PLL circuit 10 by the adaptive frequency control is desired to be started (triggering is desired). Case), the set voltage may be equal to the predetermined voltage. Also, by setting all bits of the mask signal M to 1, all bits of the output of the mask circuit 82 are fixed to the value 1, and all bits of the detection signal Q supplied to the PLL circuit 10 and the averaging unit 12 The value is fixed at 1. Thereby, the adaptive frequency control for controlling the oscillation frequency of the PLL circuit 10 is stopped.

ステップS2において、制御回路80は、第1の制御信号C及び第2の制御信号Rの各々を2k−1−1に設定する。これにより、ディレイモニタ回路81の第1の可変ディレイライン90及び第2の可変ディレイライン91の各々は、最大遅延長と最小遅延長との中間の遅延長に設定される。ステップS3において、制御回路80は、ディレイモニタ回路81が出力する回路遅延測定値Qを取得する。 In step S2, the control circuit 80 sets each of the first control signal C and the second control signal R to 2 k−1 −1. As a result, each of the first variable delay line 90 and the second variable delay line 91 of the delay monitor circuit 81 is set to an intermediate delay length between the maximum delay length and the minimum delay length. In step S3, the control circuit 80 acquires the circuit delay measurement value Q output from the delay monitor circuit 81.

ステップS4において、制御回路80は、ステップS3で取得した回路遅延測定値Qが{n'b00・・・00,n'b11・・・11}よりも小さいか否かを判定する。即ち、第1の可変ディレイライン90の回路遅延が第2の可変ディレイライン91の回路遅延よりも大きいか否かを判定する。判定結果がYesの場合には処理手順はステップS5に進み、判定結果がNoの場合には処理手順はステップS7に進む。   In step S4, the control circuit 80 determines whether the circuit delay measurement value Q acquired in step S3 is smaller than {n'b00 ... 00, n'b11 ... 11}. That is, it is determined whether the circuit delay of the first variable delay line 90 is greater than the circuit delay of the second variable delay line 91. When the determination result is Yes, the processing procedure proceeds to Step S5, and when the determination result is No, the processing procedure proceeds to Step S7.

ステップS5において、制御回路80は、第1の制御信号Cが0の場合には第2の制御信号Rを1だけ増加させ、第1の制御信号Cが0でない場合には第1の制御信号Cを1だけ減少させる。即ち、制御回路80はまず第1の可変ディレイライン90の回路遅延を短くするように制御信号を変化させ、第1の可変ディレイライン90の回路遅延が最短になった後は、第2の可変ディレイライン91の回路遅延を長くするように制御信号を変化させる。ステップS6において、制御回路80は変化後の第1及び第2の制御信号C及びRをディレイモニタ回路81に対して出力する。その後、処理手順はステップS3に戻り以降の処理を繰り返す。   In step S5, the control circuit 80 increases the second control signal R by 1 when the first control signal C is 0, and increases the first control signal R when the first control signal C is not 0. Decrease C by one. That is, the control circuit 80 first changes the control signal so as to shorten the circuit delay of the first variable delay line 90, and after the circuit delay of the first variable delay line 90 becomes the shortest, the second variable delay line The control signal is changed so as to increase the circuit delay of the delay line 91. In step S6, the control circuit 80 outputs the changed first and second control signals C and R to the delay monitor circuit 81. Thereafter, the processing procedure returns to step S3, and the subsequent processing is repeated.

ステップS7において、制御回路80は、ステップS3で取得した回路遅延測定値Qが{n'b00・・・00,n'b11・・・11}よりも大きいか否かを判定する。即ち、第1の可変ディレイライン90の回路遅延が第2の可変ディレイライン91の回路遅延よりも小さいか否かを判定する。判定結果がYesの場合には処理手順はステップS8に進み、判定結果がNoの場合には処理手順はステップS9に進む。   In step S7, the control circuit 80 determines whether the circuit delay measurement value Q acquired in step S3 is larger than {n'b00 ... 00, n'b11 ... 11}. That is, it is determined whether the circuit delay of the first variable delay line 90 is smaller than the circuit delay of the second variable delay line 91. When the determination result is Yes, the processing procedure proceeds to Step S8, and when the determination result is No, the processing procedure proceeds to Step S9.

ステップS8において、制御回路80は、第1の制御信号Cが2−1の場合には第2の制御信号Rを1だけ減少させ、第1の制御信号Cが2−1でない場合には第1の制御信号Cを1だけ増加させる。即ち、制御回路80はまず第1の可変ディレイライン90の回路遅延を長くするように制御信号を変化させ、第1の可変ディレイライン90の回路遅延が最短になった後は、第2の可変ディレイライン91の回路遅延を短くするように制御信号を変化させる。その後ステップS6において、制御回路80は変化後の第1及び第2の制御信号C及びRをディレイモニタ回路81に対して出力する。その後、処理手順はステップS3に戻り以降の処理を繰り返す。 In step S8, the control circuit 80, when the first control signal C is 2 k -1 reduces the second control signal R by one, when the first control signal C is not a 2 k -1 Increases the first control signal C by one. That is, the control circuit 80 first changes the control signal so as to lengthen the circuit delay of the first variable delay line 90, and after the circuit delay of the first variable delay line 90 becomes the shortest, the second variable delay line The control signal is changed so as to shorten the circuit delay of the delay line 91. Thereafter, in step S6, the control circuit 80 outputs the changed first and second control signals C and R to the delay monitor circuit 81. Thereafter, the processing procedure returns to step S3 and repeats the subsequent processing.

処理手順がステップS9に到達したとき、回路遅延測定値Qは{n'b00・・・00,n'b11・・・11}に等しくなっている。即ち、第1の可変ディレイライン90の回路遅延と第2の可変ディレイライン91の回路遅延とは等しい状態となっている。この状態において、ステップS9において、電源電圧VDDを定格電圧に設定する。電圧設定については、例えば制御回路80が外部の電圧源に対して電圧設定命令を送信することにより、上記の電圧設定を実行するようにしてよい。   When the processing procedure reaches step S9, the measured circuit delay value Q is equal to {n′b00... 00, n′b11. That is, the circuit delay of the first variable delay line 90 is equal to the circuit delay of the second variable delay line 91. In this state, in step S9, the power supply voltage VDD is set to the rated voltage. As for the voltage setting, the above-described voltage setting may be performed by, for example, transmitting a voltage setting command to the external voltage source by the control circuit 80.

ステップS10において、制御回路80は全ビットが1ではないマスク信号Mを出力し、適応的周波数制御を開始する。ここで、マスク信号Mの値は、{n'b11・・・11,n'b00・・・00}を左にTHビットだけシフトさせた値である。   In step S10, the control circuit 80 outputs a mask signal M in which all the bits are not 1, and starts adaptive frequency control. Here, the value of the mask signal M is a value obtained by shifting {n′b11... 11, n′b00.

ここでTHは、適応的周波数制御によりPLL回路10の発振周波数が実際に変化するまでにかかる時間を見越して、時間的余裕を設けるために設定される閾値である。時間的余裕を考えない場合にはTHは0に等しくてよい。即ち、マスク信号Mの値は、{n'b11・・・11,n'b00・・・00}に等しくてよい。上述の図12の初期設定動作により、電源電圧VDDが基準電圧VREF(=トリガ電圧)に等しいときに、第1の可変ディレイライン90と第2の可変ディレイライン91とで回路遅延が等しくなる。このとき、回路遅延測定値Qは、{n'b00・・・00,n'b11・・・11}に等しくなる。従って、定格電圧(>トリガ電圧)に設定された電源電圧VDDが基準電圧VREF(=トリガ電圧)まで低下したときに、回路遅延測定値Qは{n'b00・・・00,n'b11・・・11}となる。マスク信号Mの値が{n'b11・・・11,n'b00・・・00}である場合、回路遅延測定値Qが{n'b00・・・00,n'b11・・・11}より小さくなったときに、マスク回路82の出力する検出信号Qが初めて変化する。図6又は図7に示す電子回路において、デジタル制御発振器20の入力信号の値が減少すると、デジタル制御発振器20の発振信号の周期の長さが増加してよい。逆に、デジタル制御発振器20の入力信号の値が増大すると、デジタル制御発振器20の発振信号の周期の長さが減少してよい。上記のようにして生成された検出信号Qの値の変化に応じてPLL回路10による周波数調整動作が実行されるので、定格電圧に設定された電源電圧VDDが基準電圧VREFより低下したときに、PLL回路10による周波数調整動作が開始されることになる。   Here, TH is a threshold value set to provide a time margin in anticipation of the time required for the oscillation frequency of the PLL circuit 10 to actually change by the adaptive frequency control. If no time margin is considered, TH may be equal to zero. That is, the value of the mask signal M may be equal to {n'b11 ... 11, n'b00 ... 00}. When the power supply voltage VDD is equal to the reference voltage VREF (= trigger voltage), the circuit delays of the first variable delay line 90 and the second variable delay line 91 become equal by the above-described initial setting operation of FIG. At this time, the measured circuit delay value Q becomes equal to {n′b00... 00, n′b11. Therefore, when the power supply voltage VDD set to the rated voltage (> trigger voltage) decreases to the reference voltage VREF (= trigger voltage), the circuit delay measurement value Q becomes {n′b00... 00, n′b11 ·・ ・ It becomes 11}. If the value of the mask signal M is {n′b11... 11, n′b00... 00}, the circuit delay measurement value Q is {n′b00... 00, n′b11. When it becomes smaller, the detection signal Q output from the mask circuit 82 changes for the first time. In the electronic circuit shown in FIG. 6 or FIG. 7, when the value of the input signal of the digitally controlled oscillator 20 decreases, the length of the period of the oscillation signal of the digitally controlled oscillator 20 may increase. Conversely, when the value of the input signal of the digitally controlled oscillator 20 increases, the period of the oscillation signal of the digitally controlled oscillator 20 may decrease. Since the frequency adjustment operation is performed by the PLL circuit 10 according to the change in the value of the detection signal Q generated as described above, when the power supply voltage VDD set to the rated voltage falls below the reference voltage VREF, The frequency adjustment operation by the PLL circuit 10 is started.

しかしPLL回路10による周波数調整動作が開始されてからクロック周波数が適切な周波数に到達するまでには、通常、ある程度の時間がかかる。クロック周波数が適切な周波数に到達するまでに時間がかかると、論理回路14のクリティカルパスにおいてデータ転送エラーが発生してしまう可能性がある。従って実際には、制御にかかる時間を見越して、時間的余裕を設けておくことが好ましい。以上を考慮して、マスク信号Mを左にTHビットだけシフトさせることにより、マスクする上位ビット数を少なくし、早めに検出信号Qの値が変化するようにする。制御遅延をDc[nsec]、電圧降下の勾配をSn[mV/nsec]、ディレイモニタ回路81の出力の1LSBの変化に相当する電源電圧VDDの変化をh[mV]とすれば、THは以下の式を満たせばよい。   However, it usually takes some time from the start of the frequency adjustment operation by the PLL circuit 10 until the clock frequency reaches an appropriate frequency. If it takes time for the clock frequency to reach an appropriate frequency, a data transfer error may occur in the critical path of the logic circuit 14. Therefore, in practice, it is preferable to provide a time margin in anticipation of the time required for the control. In consideration of the above, by shifting the mask signal M to the left by TH bits, the number of upper bits to be masked is reduced, and the value of the detection signal Q is changed earlier. Assuming that the control delay is Dc [nsec], the gradient of the voltage drop is Sn [mV / nsec], and the change of the power supply voltage VDD corresponding to the change of 1 LSB of the output of the delay monitor circuit 81 is h [mV], TH is as follows. It suffices to satisfy the equation.

Dc(h/Sn)・TH
従ってTHは、以下の式を満たす正の整数となる。
Dc < (h / Sn) .TH
Therefore, TH is a positive integer satisfying the following equation.

TH(Dc・Sn)/h
なおこの閾値THは、電子回路のメモリに格納されており、当該メモリから制御回路80に供給されてよい。
TH > (Dc · Sn) / h
The threshold value TH is stored in a memory of the electronic circuit, and may be supplied to the control circuit 80 from the memory.

図13は、回路遅延測定に基づいて電源ノイズに追従して発振周波数を変化可能な電子回路の実施例の別の一例を示す図である。図13において、図6と同一又は対応する構成要素は同一又は対応する番号で参照し、その説明は適宜省略する。   FIG. 13 is a diagram showing another example of the embodiment of the electronic circuit capable of changing the oscillation frequency following the power supply noise based on the circuit delay measurement. 13, the same or corresponding components as those in FIG. 6 are referred to by the same or corresponding numerals, and a description thereof will be omitted as appropriate.

図13に示す電子回路では、図6に示す制御回路80の代わりに制御回路80Aが設けられ、図6に示すおけるディレイモニタ回路81の代わりにクリティカルパスモニタ&ディレイモニタ回路(CPM/DDM)81Aが設けられている。制御回路80Aは、レジスタQM及びステートマシンFSMを含む。レジスタQMは、クリティカルパスモニタ&ディレイモニタ回路81Aが測定した疑似クリティカルパス回路の回路遅延測定値Qを格納する。ステートマシンFSMは、制御回路80Aの実行する動作を制御する。クリティカルパスモニタ&ディレイモニタ回路81Aは、疑似クリティカルパスをモニタする機能と回路遅延をモニタする機能との両方の機能を有する回路であり、以降、簡略化してディレイモニタ回路81Aと呼ぶ。制御回路80A、ディレイモニタ回路81A、及びマスク回路82が、電圧検出器に相当する。   In the electronic circuit shown in FIG. 13, a control circuit 80A is provided instead of the control circuit 80 shown in FIG. 6, and a critical path monitor & delay monitor circuit (CPM / DDM) 81A instead of the delay monitor circuit 81 shown in FIG. Is provided. Control circuit 80A includes a register QM and a state machine FSM. The register QM stores a circuit delay measurement value Q of the pseudo critical path circuit measured by the critical path monitor & delay monitor circuit 81A. The state machine FSM controls the operation performed by the control circuit 80A. The critical path monitor & delay monitor circuit 81A is a circuit having both a function of monitoring a pseudo critical path and a function of monitoring a circuit delay, and is hereinafter simply referred to as a delay monitor circuit 81A. The control circuit 80A, the delay monitor circuit 81A, and the mask circuit 82 correspond to a voltage detector.

ディレイモニタ回路81Aは、制御信号Rにより遅延時間が設定される可変ディレイラインと疑似クリティカルパスとの回路遅延差を、クロック信号CKに基づいて測定し、当該測定の結果を回路遅延測定値として出力する。疑似クリティカルパス及び可変ディレイラインはそれぞれ電源電圧VDD及び基準電圧VREFにより駆動し、疑似クリティカルパスと可変ディレイラインとの間の回路遅延差の変化が電源電圧VDDの変化を示すことになる。このディレイモニタ回路81Aの構成及び動作については後ほど説明する。ディレイモニタ回路81Aにおいては、ディレイモニタ回路81の場合と同様に、回路遅延測定値そのものはクロック信号CKの周波数に依存することはない。   The delay monitor circuit 81A measures a circuit delay difference between the variable delay line whose delay time is set by the control signal R and the pseudo critical path based on the clock signal CK, and outputs a result of the measurement as a circuit delay measurement value. I do. The pseudo critical path and the variable delay line are driven by the power supply voltage VDD and the reference voltage VREF, respectively, and a change in a circuit delay difference between the pseudo critical path and the variable delay line indicates a change in the power supply voltage VDD. The configuration and operation of the delay monitor circuit 81A will be described later. In the delay monitor circuit 81A, similarly to the case of the delay monitor circuit 81, the measured circuit delay value itself does not depend on the frequency of the clock signal CK.

図14は、図13に示す電子回路の変形例を示す図である。図14に示す電子回路においては、ディレイモニタ回路81Aが使用するクロック信号CKはPLL回路10から供給される。前述のように、ディレイモニタ回路81Aが出力する回路遅延測定値は、クロック入力端子CKに印加されるクロック信号の周波数には依存しない。従って、制御対象として周波数が変化するPLL回路10の発振周波数をクロック入力端子CKに印加する構成としても、ディレイモニタ回路81Aによる回路遅延測定結果が、PLL回路10の制御に伴い変化してしまうことはない。即ち、ディレイモニタ回路81Aは、PLL回路10の発振周波数の変化に影響を受けることなく、電源電圧VDDの変化のみを検出することができる。図14の電子回路の構成とすることにより、図13の電子回路の構成に比較して、PLL回路の数を削減することが可能となる。   FIG. 14 is a diagram showing a modification of the electronic circuit shown in FIG. In the electronic circuit shown in FIG. 14, the clock signal CK used by the delay monitor circuit 81A is supplied from the PLL circuit 10. As described above, the circuit delay measurement value output from the delay monitor circuit 81A does not depend on the frequency of the clock signal applied to the clock input terminal CK. Therefore, even when the oscillation frequency of the PLL circuit 10 whose frequency changes as a control target is applied to the clock input terminal CK, the result of the circuit delay measurement by the delay monitor circuit 81A may change with the control of the PLL circuit 10. There is no. That is, the delay monitor circuit 81A can detect only a change in the power supply voltage VDD without being affected by a change in the oscillation frequency of the PLL circuit 10. With the configuration of the electronic circuit in FIG. 14, the number of PLL circuits can be reduced as compared with the configuration of the electronic circuit in FIG.

図15は、ディレイモニタ回路81Aの構成の一例を示す図である。図15に示すディレイモニタ回路81Aは、疑似クリティカルパス回路131、ディレイ制御回路132、及び時間差測定回路92を含む。ディレイ制御回路132は、可変ディレイライン141及び選択回路142を含む。   FIG. 15 is a diagram illustrating an example of the configuration of the delay monitor circuit 81A. The delay monitor circuit 81A shown in FIG. 15 includes a pseudo critical path circuit 131, a delay control circuit 132, and a time difference measurement circuit 92. The delay control circuit 132 includes a variable delay line 141 and a selection circuit 142.

疑似クリティカルパス回路131は、電源電圧VDDが印加されるとともに、クロック信号CKを遅延させた第1の遅延発振信号を出力する。可変ディレイライン141は、基準電圧VREFが印加されるとともに、クロック信号CKを制御信号Rに基づいて遅延させた第2の遅延発振信号を出力する。選択回路142は、入力される選択信号Sに基づきクロック信号CK又は第2の遅延発振信号の何れかである第3の遅延発振信号を選択して出力する。   The pseudo critical path circuit 131 receives the power supply voltage VDD and outputs a first delayed oscillation signal obtained by delaying the clock signal CK. The variable delay line 141 receives the reference voltage VREF and outputs a second delayed oscillation signal obtained by delaying the clock signal CK based on the control signal R. The selection circuit 142 selects and outputs a third delayed oscillation signal, which is either the clock signal CK or the second delayed oscillation signal, based on the input selection signal S.

時間差測定回路92に含まれる第1のフリップフロップ103においては、選択回路142の出力する第3の遅延発振信号が、各第1入力端子(本例ではクロック端子)に供給される。また前段の第1のフリップフロップ103の第2入力端子(本例ではデータ入力端子)から遅延回路101によりそれぞれ第1の所定ディレイ分遅延させた、疑似クリティカルパス回路131の出力である第1の遅延発振信号が、それぞれの第2入力端子に入力される。   In the first flip-flop 103 included in the time difference measurement circuit 92, the third delayed oscillation signal output from the selection circuit 142 is supplied to each first input terminal (a clock terminal in this example). The first output, which is the output of the pseudo critical path circuit 131, is delayed by the delay circuit 101 from the second input terminal (data input terminal in this example) of the preceding first flip-flop 103 by the first predetermined delay. The delayed oscillation signal is input to each second input terminal.

第2のフリップフロップ104においては、疑似クリティカルパス回路131の出力する第1の遅延発振信号がそれぞれの第2入力端子(本例ではデータ入力端子)に入力される。また、前段の第2のフリップフロップ104の第1入力端子(本例ではクロック入力端子)からそれぞれ遅延回路102により第2の所定ディレイ分遅延させた、選択回路142の出力する第3の遅延発振信号がそれぞれ各第1入力端子に供給される。なお遅延回路101の各々の遅延時間(ディレイ)と遅延回路102の各々の遅延時間(ディレイ)とは等しくてよい。即ち、上記の第1の所定ディレイと第2の所定ディレイとは等しくてよい。   In the second flip-flop 104, the first delayed oscillation signal output from the pseudo critical path circuit 131 is input to each second input terminal (data input terminal in this example). Further, a third delayed oscillation output from the selection circuit 142, which is delayed from the first input terminal (the clock input terminal in this example) of the second flip-flop 104 at the preceding stage by the second predetermined delay by the delay circuit 102, respectively. A signal is supplied to each first input terminal. Note that each delay time (delay) of the delay circuit 101 and each delay time (delay) of the delay circuit 102 may be equal. That is, the first predetermined delay and the second predetermined delay may be equal.

適応的周波数制御を活性化するルーチン処理時においては、選択回路142は可変ディレイライン141の出力を選択して出力する。この状態において、疑似クリティカルパス回路131と可変ディレイライン141との遅延時間が等しい場合、回路遅延測定値Q[2n−1:0]は、上位nビットが全て0であり、下位nビットが全て1となる。即ち、回路遅延測定値Q[2n−1:0]は、{n'b00・・・00,n'b11・・・11}となる。   During a routine process for activating the adaptive frequency control, the selection circuit 142 selects and outputs the output of the variable delay line 141. In this state, when the delay times of the pseudo critical path circuit 131 and the variable delay line 141 are equal, the upper n bits of the circuit delay measurement value Q [2n-1: 0] are all 0 and the lower n bits are all It becomes 1. That is, the measured circuit delay value Q [2n−1: 0] is {n′b00... 00, n′b11.

疑似クリティカルパス回路131の回路遅延が可変ディレイライン141の回路遅延よりも長い場合には、n個の第2のフリップフロップ104のnビットの出力データのうちの何ビットかは、1ではなく0になる。即ち、回路遅延測定値Q[2n−1:0]は、{n'b00・・・00,n'b11・・・11}よりも小さくなる。   When the circuit delay of the pseudo critical path circuit 131 is longer than the circuit delay of the variable delay line 141, some of the n-bit output data of the n second flip-flops 104 are not 1, but 0. become. That is, the measured circuit delay value Q [2n−1: 0] is smaller than {n′b00... 00, n′b11.

疑似クリティカルパス回路131の回路遅延が可変ディレイライン141の回路遅延よりも短い場合には、n個の第1のフリップフロップ103のnビットの出力データのうちの何ビットかは、0ではなく1になる。即ち、回路遅延測定値Q[2n−1:0]は、{n'b00・・・00,n'b11・・・11}よりも大きくなる。   When the circuit delay of the pseudo critical path circuit 131 is shorter than the circuit delay of the variable delay line 141, some bits of the n-bit output data of the n first flip-flops 103 are not 0 but 1 instead of 0. become. That is, the measured circuit delay value Q [2n−1: 0] is larger than {n′b00... 00, n′b11.

このようにしてディレイモニタ回路81Aは、疑似クリティカルパス回路131と可変ディレイライン141との回路遅延差を示すサーモメータコードである回路遅延測定値Q[2n−1:0]を出力する。疑似クリティカルパス回路131は電源電圧VDDにより駆動し、可変ディレイライン141は基準電圧VREFにより駆動する。ここで基準電圧VREFは、電源電圧VDDとは別個に外部から供給される電源電圧であり、図6又は図7に示す電子回路の他の回路部分で使用されることはなく、雑音の混じっていない、変動のない、一定電圧に維持される電圧である。   In this way, the delay monitor circuit 81A outputs a circuit delay measurement value Q [2n-1: 0] which is a thermometer code indicating a circuit delay difference between the pseudo critical path circuit 131 and the variable delay line 141. The pseudo critical path circuit 131 is driven by the power supply voltage VDD, and the variable delay line 141 is driven by the reference voltage VREF. Here, the reference voltage VREF is a power supply voltage supplied from outside separately from the power supply voltage VDD, and is not used in other circuit parts of the electronic circuit shown in FIG. 6 or FIG. 7 and is mixed with noise. It is a voltage that does not fluctuate and is maintained at a constant voltage.

電子回路のルーチン処理時の動作クロック信号の1クロックサイクルと同等の長さの遅延時間となるよう可変ディレイライン141を設計し、論理回路14中のクリティカルパスと同等の遅延時間長を有するように疑似クリティカルパス回路131を設計しておく。このように設計しておけば、疑似クリティカルパス回路131の回路遅延が1クロックサイクルよりも短かければ、回路遅延測定値Qは{n'b00・・・00,n'b11・・・11}よりも大きい状態である。一方、疑似クリティカルパス回路131の回路遅延が1クロックサイクルよりも長くなると、回路遅延測定値Qは{n'b00・・・00,n'b11・・・11}よりも小さくなる。従って、マスク信号Mの値を{n'b11・・・11,n'b00・・・00}にしておけば、疑似クリティカルパス回路131の回路遅延が1クロックサイクルよりも長くなったときに、マスク回路82の出力する検出信号Qが初めて変化(減少)することになる。この変化に応じてPLL回路10の周波数調整動作が実行される。実際には、制御にかかる時間を見越して、時間的余裕を設けておくことが好ましい。従って、マスク信号Mを左にTHビットだけシフトさせることにより、マスクする上位ビット数を少なくし、早めに検出信号Qの値が変化するようにする。   The variable delay line 141 is designed to have a delay time equivalent to one clock cycle of an operation clock signal at the time of routine processing of an electronic circuit, and to have a delay time length equivalent to a critical path in the logic circuit 14. The pseudo critical path circuit 131 is designed. With this design, if the circuit delay of the pseudo critical path circuit 131 is shorter than one clock cycle, the circuit delay measurement value Q becomes {n′b00... 00, n′b11. It is a state larger than. On the other hand, when the circuit delay of the pseudo critical path circuit 131 is longer than one clock cycle, the measured circuit delay Q becomes smaller than {n′b00... 00, n′b11. Therefore, if the value of the mask signal M is set to {n′b11... 11, n′b00... 00}, when the circuit delay of the pseudo critical path circuit 131 becomes longer than one clock cycle, The detection signal Q output from the mask circuit 82 changes (decreases) for the first time. The frequency adjustment operation of the PLL circuit 10 is performed according to this change. Actually, it is preferable to provide a time margin in anticipation of the time required for the control. Therefore, by shifting the mask signal M to the left by TH bits, the number of upper bits to be masked is reduced, and the value of the detection signal Q changes earlier.

可変ディレイライン141の回路遅延が1クロックサイクルと等しくなるように回路を製造したくとも、プロセスばらつきや配線ばらつきの影響により、1クロックサイクルに等しい回路遅延を実現することは困難である。従って、予め実行する初期化作業により、可変ディレイライン141の回路遅延が1クロックサイクルと等しくなるように設定しておくことが望ましい。この初期設定の作業については、後ほど説明する。   Even if it is desired to manufacture a circuit so that the circuit delay of the variable delay line 141 is equal to one clock cycle, it is difficult to realize a circuit delay equal to one clock cycle due to the influence of process variations and wiring variations. Therefore, it is desirable to set the circuit delay of the variable delay line 141 to be equal to one clock cycle by an initialization operation performed in advance. This initial setting operation will be described later.

図16は、疑似クリティカルパス回路の構成の一例を示す図である。図16に示す疑似クリティカルパス回路は、複数偶数個のインバータ151が縦続接続されることにより、所望の遅延時間を実現する。この回路構成では、比較的単純な回路により、ゲート遅延が支配的な疑似クリティカルパス回路を実現することができる。   FIG. 16 is a diagram illustrating an example of the configuration of the pseudo critical path circuit. The pseudo critical path circuit shown in FIG. 16 realizes a desired delay time by cascading a plurality of even-numbered inverters 151. In this circuit configuration, a pseudo-critical path circuit in which gate delay is dominant can be realized by a relatively simple circuit.

図17は、疑似クリティカルパス回路の構成の別の一例を示す図である。図17に示す疑似クリティカルパス回路は、インバータ152、複数個のNOR回路153、複数個のAND回路154、複数個のNAND回路155を含む。ここで1個のNOR回路153と2個のAND回路154とで形成される論理回路は、2AND−2ORインバータ出力の複合論理回路である。これらの論理ゲートが適宜組み合わされ縦続接続されることにより、所望の遅延時間を実現する。この回路構成では、実際のクリティカルパス同様に様々な論理ゲートを組み合わせてゲート遅延が支配的な疑似クリティカルパス回路を実現しており、実際のクリティカルパスの回路遅延により近い振る舞いを示す回路遅延を実現することができる。   FIG. 17 is a diagram illustrating another example of the configuration of the pseudo critical path circuit. The pseudo critical path circuit shown in FIG. 17 includes an inverter 152, a plurality of NOR circuits 153, a plurality of AND circuits 154, and a plurality of NAND circuits 155. Here, the logic circuit formed by one NOR circuit 153 and two AND circuits 154 is a composite logic circuit of 2AND-2OR inverter output. These logic gates are appropriately combined and cascade-connected to realize a desired delay time. In this circuit configuration, a pseudo-critical path circuit in which gate delay is dominant is realized by combining various logic gates as in the actual critical path, and a circuit delay that behaves closer to the actual critical path circuit delay is realized. can do.

図18は、疑似クリティカルパス回路の構成の別の一例を示す図である。図18に示す疑似クリティカルパス回路は、複数偶数個のインバータ156と複数の抵抗素子157とが交互に縦続接続されることにより、所望の遅延時間を実現する。この回路構成では、比較的単純な回路により、配線遅延が支配的な疑似クリティカルパス回路を実現することができる。   FIG. 18 is a diagram showing another example of the configuration of the pseudo critical path circuit. The pseudo critical path circuit shown in FIG. 18 realizes a desired delay time by alternately cascading a plurality of even-numbered inverters 156 and a plurality of resistance elements 157. In this circuit configuration, a pseudo-critical path circuit in which wiring delay is dominant can be realized by a relatively simple circuit.

図19は、疑似クリティカルパス回路の構成の別の一例を示す図である。図19に示す疑似クリティカルパス回路は、インバータ158、複数個のNOR回路159、複数個のAND回路160、NAND回路161、及び複数個の抵抗素子162を含む。ここで1個のNOR回路159と2個のAND回路160とで形成される論理回路は、2AND−2ORインバータ出力の複合論理回路である。これらの論理ゲート及び抵抗素子が適宜組み合わされ縦続接続されることにより、所望の遅延時間を実現する。この回路構成では、実際のクリティカルパス同様に様々な論理ゲートを組み合わせて配線遅延が支配的な疑似クリティカルパス回路を実現しており、実際のクリティカルパスの回路遅延により近い振る舞いを示す回路遅延を実現することができる。   FIG. 19 is a diagram showing another example of the configuration of the pseudo critical path circuit. The pseudo critical path circuit shown in FIG. 19 includes an inverter 158, a plurality of NOR circuits 159, a plurality of AND circuits 160, a NAND circuit 161, and a plurality of resistance elements 162. Here, the logic circuit formed by one NOR circuit 159 and two AND circuits 160 is a composite logic circuit of 2AND-2OR inverter output. A desired delay time is realized by appropriately combining these logic gates and resistance elements and cascade-connecting them. In this circuit configuration, a pseudo-critical path circuit where the wiring delay is dominant is realized by combining various logic gates like the actual critical path, and a circuit delay that shows behavior closer to the actual critical path circuit delay is realized. can do.

図20は、制御回路による設定動作の一例を示すフローチャートである。図13又は図14に示される電子回路が、その本来の意図されるルーチン処理の実行を開始する前に、図20のフローチャートに示す初期設定手順を実行する。例えば電子回路が通信回路である場合には、電子回路による通信処理の実行が開始される前に、図12のフローチャートに示す初期設定手順が実行される。当該初期設定が行われた後に、電子回路がルーチン処理を実行すると共に、電源電圧VDDの変化に応じてPLL回路10の発振周波数を制御する適応的周波数制御が実行される。   FIG. 20 is a flowchart illustrating an example of a setting operation by the control circuit. Before the electronic circuit shown in FIG. 13 or FIG. 14 starts execution of the original intended routine processing, the electronic circuit performs the initialization procedure shown in the flowchart of FIG. For example, when the electronic circuit is a communication circuit, before the execution of the communication processing by the electronic circuit is started, the initial setting procedure shown in the flowchart of FIG. 12 is executed. After the initialization is performed, the electronic circuit executes the routine processing, and the adaptive frequency control that controls the oscillation frequency of the PLL circuit 10 according to the change in the power supply voltage VDD is executed.

ステップS21において、制御回路80Aによりマスク信号Mの全ビットを1に設定するとともに、選択信号S及び制御信号Rを0に設定する。マスク信号Mの全ビットが1に設定されることにより、マスク回路82の出力の全ビットが値1に固定され、PLL回路10及び平均化部12に供給される検出信号Qの全ビットが値1に固定される。これにより、PLL回路10の発振周波数を制御する適応的周波数制御が停止状態とされる。   In step S21, all bits of the mask signal M are set to 1 by the control circuit 80A, and the selection signal S and the control signal R are set to 0. By setting all the bits of the mask signal M to 1, all the bits of the output of the mask circuit 82 are fixed at the value 1, and all the bits of the detection signal Q supplied to the PLL circuit 10 and the averaging unit 12 are set to the values. Fixed to 1. Thereby, the adaptive frequency control for controlling the oscillation frequency of the PLL circuit 10 is stopped.

ステップS22において、制御回路80Aは、ディレイモニタ回路81Aが出力する回路遅延測定値Qを取得する。このとき、選択信号Sは0であるので図15に示される選択回路142は、可変ディレイライン141を介さず直接入力されるクロック信号CKを選択して出力している。従って、ディレイモニタ回路81Aが出力する回路遅延測定値Qは、遅延無しのクロック信号CKと疑似クリティカルパス回路131により遅延されたクロック信号CKとの時間差を示す値となり、疑似クリティカルパス回路131の回路遅延そのものを表す値となる。なお疑似クリティカルパス回路131の遅延時間長を論理回路14のクリティカルパスの遅延時間長と略等しい長さに設定してある場合には、クロック信号CKとしては、電子回路のルーチン処理実行時の動作クロック信号と同じ周波数とすることが好ましい。疑似クリティカルパス回路131の遅延時間長は、クロック信号の1クロックサイクルよりも僅かに短い時間長に通常は設計されている。回路遅延測定値Qは、クロック信号CKのあるパルスが疑似クリティカルパス回路131により遅延されたパルスと、クロック信号CKのその次のパルスがそのまま選択回路142から出力されたパルスとの間で、時間差が測定された値となる。なお疑似クリティカルパス回路131の遅延時間長を論理回路14のクリティカルパスの遅延時間長の例えばN倍に設定してある場合には、クロック信号CKとしては、電子回路のルーチン処理実行時の動作クロック信号のN倍の周波数とすることが好ましい。   In step S22, the control circuit 80A acquires the circuit delay measurement value Q output from the delay monitor circuit 81A. At this time, since the selection signal S is 0, the selection circuit 142 shown in FIG. 15 selects and outputs the clock signal CK directly input without passing through the variable delay line 141. Therefore, the circuit delay measurement value Q output from the delay monitor circuit 81A is a value indicating the time difference between the clock signal CK without delay and the clock signal CK delayed by the pseudo critical path circuit 131, and the circuit of the pseudo critical path circuit 131 The value represents the delay itself. If the delay time length of the pseudo critical path circuit 131 is set to be substantially equal to the delay time length of the critical path of the logic circuit 14, the clock signal CK is used when the electronic circuit performs routine processing. Preferably, the frequency is the same as that of the clock signal. The delay time length of the pseudo critical path circuit 131 is usually designed to be slightly shorter than one clock cycle of the clock signal. The circuit delay measurement value Q is a time difference between a pulse in which a certain pulse of the clock signal CK is delayed by the pseudo critical path circuit 131 and a pulse in which the next pulse of the clock signal CK is output from the selection circuit 142 as it is. Is the measured value. If the delay time length of the pseudo critical path circuit 131 is set to, for example, N times the delay time length of the critical path of the logic circuit 14, the clock signal CK is used as an operation clock during execution of a routine process of the electronic circuit. Preferably, the frequency is N times the frequency of the signal.

ステップS23において、制御回路80Aは、回路遅延測定値QをレジスタQMに格納する。ステップS24において、制御回路80Aは、選択信号Sを1に設定すると共に、制御信号Rを0に設定する。制御信号Rが0であるので、ディレイモニタ回路81Aの可変ディレイライン141は、遅延時間が最も短い状態となる。   In step S23, the control circuit 80A stores the measured circuit delay value Q in the register QM. In step S24, the control circuit 80A sets the selection signal S to 1 and sets the control signal R to 0. Since the control signal R is 0, the variable delay line 141 of the delay monitor circuit 81A has the shortest delay time.

ステップS25において、制御回路80Aは、ディレイモニタ回路81Aが出力する回路遅延測定値Qを取得する。このとき、選択信号1は0であるので図15に示される選択回路142は、可変ディレイライン141により遅延されたクロック信号CKを選択して出力している。従って、ディレイモニタ回路81Aが出力する回路遅延測定値Qは、可変ディレイライン141により遅延されたクロック信号CKと疑似クリティカルパス回路131により遅延されたクロック信号CKとの時間差を示す値となる。即ち、回路遅延測定値Qは、クロック信号CKのあるパルスが疑似クリティカルパス回路131により遅延されたパルスと、クロック信号CKの当該パルスが可変ディレイライン141により遅延されたパルスとの間で、時間差が測定された値となる。   In step S25, the control circuit 80A acquires the circuit delay measurement value Q output from the delay monitor circuit 81A. At this time, since the selection signal 1 is 0, the selection circuit 142 shown in FIG. 15 selects and outputs the clock signal CK delayed by the variable delay line 141. Therefore, the circuit delay measurement value Q output from the delay monitor circuit 81A is a value indicating the time difference between the clock signal CK delayed by the variable delay line 141 and the clock signal CK delayed by the pseudo critical path circuit 131. That is, the circuit delay measurement value Q is a time difference between a pulse in which a certain pulse of the clock signal CK is delayed by the pseudo critical path circuit 131 and a pulse in which the pulse of the clock signal CK is delayed by the variable delay line 141. Is the measured value.

ステップS26において、制御回路80Aは、ステップS3で取得した回路遅延測定値QがレジスタQMの格納値である回路遅延測定値Q(即ちステップS22で取得した回路遅延測定値)よりも小さいか否かを判定する。判定結果がYesの場合には処理手順はステップS27に進み、判定結果がNoの場合には処理手順はステップS28に進む。   In step S26, the control circuit 80A determines whether the circuit delay measurement value Q acquired in step S3 is smaller than the circuit delay measurement value Q stored in the register QM (that is, the circuit delay measurement value acquired in step S22). Is determined. When the determination result is Yes, the processing procedure proceeds to Step S27, and when the determination result is No, the processing procedure proceeds to Step S28.

ステップS27において、制御回路80Aは、制御信号Rを1だけ増加させ、ディレイモニタ回路81Aに対して増加後の制御信号Rを出力する。即ち、制御回路80Aは、ディレイモニタ回路81Aの可変ディレイライン141の遅延時間長を最小変化分だけ増大させる。その後、処理手順はステップS25に戻り以降の処理を繰り返す。   In step S27, the control circuit 80A increases the control signal R by 1 and outputs the increased control signal R to the delay monitor circuit 81A. That is, the control circuit 80A increases the delay time length of the variable delay line 141 of the delay monitor circuit 81A by the minimum change. Thereafter, the processing procedure returns to step S25, and the subsequent processing is repeated.

処理手順がステップS28に到達したとき、現在の制御信号Rに応じた回路遅延測定値Qは、レジスタQMの格納値である回路遅延測定値Qに等しくなっている。即ち、疑似クリティカルパス回路131により遅延されたクロックパルスと遅延無しのその次のサイクルのクロックパルスとの時間差が、疑似クリティカルパス回路131の遅延時間と可変ディレイライン141の遅延時間との差と等しくなっている。このことは、この状態における可変ディレイライン141の遅延時間長が、クロック信号CKの1クロックサイクルに等しくなっていることを意味する。この状態において、ステップS28において、制御回路80Aは、制御信号Rを確定し、ディレイモニタ回路81Aに対して確定後の制御信号Rを出力する。   When the processing procedure reaches step S28, the measured circuit delay value Q according to the current control signal R is equal to the measured circuit delay value Q stored in the register QM. That is, the time difference between the clock pulse delayed by the pseudo critical path circuit 131 and the clock pulse in the next cycle without delay is equal to the difference between the delay time of the pseudo critical path circuit 131 and the delay time of the variable delay line 141. Has become. This means that the delay time length of the variable delay line 141 in this state is equal to one clock cycle of the clock signal CK. In this state, in step S28, the control circuit 80A determines the control signal R and outputs the determined control signal R to the delay monitor circuit 81A.

ステップS29において、制御回路80Aは全ビットが1ではないマスク信号Mを出力し、適応的周波数制御を開始する。ここで、マスク信号Mの値は、{n'b11・・・11,n'b00・・・00}を左にTHビットだけシフトさせた値である。   In step S29, the control circuit 80A outputs a mask signal M in which all the bits are not 1, and starts adaptive frequency control. Here, the value of the mask signal M is a value obtained by shifting {n′b11... 11, n′b00.

以上のようにして、図20に示す初期設定動作により、電子回路のルーチン処理時の動作クロック信号の1クロックサイクルに等しい遅延時間長を有するように可変ディレイライン141を設定することができる。この設定により、疑似クリティカルパス回路131の回路遅延が1クロックサイクルよりも長くなると、回路遅延測定値Qは{n'b00・・・00,n'b11・・・11}よりも小さくなる。従って、マスク信号Mの値を{n'b11・・・11,n'b00・・・00}にしておけば、疑似クリティカルパス回路131の回路遅延が1クロックサイクルよりも長くなったときに、マスク回路82の出力する検出信号Qが初めて変化(減少)することになる。但し、制御にかかる時間を見越して、マスク信号Mを左にTHビットだけシフトさせることにより、マスクする上位ビット数を少なくし、早めに検出信号Qの値が変化するようにする。   As described above, by the initial setting operation shown in FIG. 20, the variable delay line 141 can be set to have a delay time length equal to one clock cycle of the operation clock signal at the time of the routine processing of the electronic circuit. With this setting, when the circuit delay of the pseudo critical path circuit 131 becomes longer than one clock cycle, the measured circuit delay value Q becomes smaller than {n′b00... 00, n′b11. Therefore, if the value of the mask signal M is set to {n′b11... 11, n′b00... 00}, when the circuit delay of the pseudo critical path circuit 131 becomes longer than one clock cycle, The detection signal Q output from the mask circuit 82 changes (decreases) for the first time. However, by shifting the mask signal M to the left by TH bits in anticipation of the time required for the control, the number of upper bits to be masked is reduced, and the value of the detection signal Q is changed earlier.

なお図6又は図7に示される電子回路に対して図12に示される初期化動作により初期設定を行う場合には、電源電圧VDDを変化される動作が実行される。それに対して、図13又は図14に示される電子回路に対して図20に示される初期化動作により初期設定を行う場合には、電源電圧を変化させる動作が含まれない。これら初期化動作は、通常、電子回路の電源投入直後の立ち上がり動作時に実行されるが、そのような立ち上がり動作時に上記のような電源電圧を変化させる動作を実行することは避けたい場合がある。図13又は図14に示される電子回路においては、初期化動作時に電源電圧を変化させる必要がないので、その点において好ましいと言える。   In the case where initialization is performed on the electronic circuit shown in FIG. 6 or 7 by the initialization operation shown in FIG. 12, an operation of changing the power supply voltage VDD is performed. On the other hand, in the case where the electronic circuit shown in FIG. 13 or FIG. 14 is initialized by the initialization operation shown in FIG. 20, the operation of changing the power supply voltage is not included. These initialization operations are usually performed at the time of the rising operation immediately after the power supply of the electronic circuit is turned on. However, there are cases where it is desired to avoid performing the operation of changing the power supply voltage at the time of such a rising operation. The electronic circuit shown in FIG. 13 or FIG. 14 is preferable in that point because it is not necessary to change the power supply voltage during the initialization operation.

図21は、制御回路による設定動作の一例を示すタイミング図である。例えばn=4の場合について、図20に示す初期設定動作を実行する場合の各信号値の変化の一例が、図21に示されている。この例においては、TH=2に固定である。また初期状態において、図20に示されるステップS21が実行されることにより、選択信号Sは0に設定され、マスク信号Mの全ビットは値1に設定され、制御信号Rは0に設定されている。   FIG. 21 is a timing chart showing an example of the setting operation by the control circuit. For example, FIG. 21 shows an example of a change in each signal value when the initial setting operation shown in FIG. 20 is executed when n = 4. In this example, TH = 2 is fixed. In the initial state, by executing step S21 shown in FIG. 20, the selection signal S is set to 0, all bits of the mask signal M are set to the value 1, and the control signal R is set to 0. I have.

図21に示されるタイミングT1において、図20に示されるステップS22及びS23の動作が実行され、選択信号S=0の状態でディレイモニタ回路81Aの出力する回路遅延測定値QがレジスタQMに格納される。この例において、レジスタQMに格納される回路遅延測定値Qは、8b'0111_1111である。即ち、回路遅延測定値Qは8ビットのデータであり、その値は"01111111"である。   At the timing T1 shown in FIG. 21, the operations of steps S22 and S23 shown in FIG. 20 are executed, and the circuit delay measurement value Q output from the delay monitor circuit 81A with the selection signal S = 0 is stored in the register QM. You. In this example, the circuit delay measurement value Q stored in the register QM is 8b'0111_1111. That is, the measured circuit delay value Q is 8-bit data, and its value is “01111111”.

その後タイミングT2において、図20に示されるステップS24及びS25の動作が実行される。これにより、選択信号S=1の状態で、可変ディレイライン141により遅延されたクロック信号CKと疑似クリティカルパス回路131により遅延されたクロック信号CKとの時間差を示す回路遅延測定値Qが得られる。この例において、最初に得られる回路遅延測定値Qは8b'0000_0111であり、レジスタQMの格納値8b'0111_1111よりも小さい値となっている。従って、図20に示されるステップS27の動作により制御信号Rが増加されていく。制御信号Rが順次増加されていくにつれ、ディレイモニタ回路81Aが出力する回路遅延測定値Qも徐々に増加していく。   Thereafter, at timing T2, the operations of steps S24 and S25 shown in FIG. 20 are performed. Thus, a circuit delay measurement value Q indicating the time difference between the clock signal CK delayed by the variable delay line 141 and the clock signal CK delayed by the pseudo critical path circuit 131 is obtained with the selection signal S = 1. In this example, the circuit delay measurement value Q obtained first is 8b′0000 — 0111, which is smaller than the stored value 8b′0111 — 1111 of the register QM. Therefore, the control signal R is increased by the operation of step S27 shown in FIG. As the control signal R is sequentially increased, the measured circuit delay value Q output from the delay monitor circuit 81A is also gradually increased.

その後、回路遅延測定値QがレジスタQMの格納値に等しくなったことに応答し、タイミングT3において、図28に示されるステップS28の動作が実行され、制御信号Rの値が15に確定される。更にタイミングT4において、8b'1111_0000を左にTHビット(即ち2ビット)シフトして得られる値8b'1100_0000をマスク信号Mとして出力し、適応的周波数制御を開始する。   Thereafter, in response to the fact that the measured circuit delay value Q has become equal to the value stored in the register QM, the operation of step S28 shown in FIG. 28 is executed at timing T3, and the value of the control signal R is fixed at 15. . Further, at a timing T4, a value 8b'1100_0000 obtained by shifting 8b'1111_0000 to the left by TH bits (that is, 2 bits) is output as a mask signal M, and adaptive frequency control is started.

以上、本発明を実施例に基づいて説明したが、本発明は上記実施例に限定されるものではなく、特許請求の範囲に記載の範囲内で様々な変形が可能である。   As described above, the present invention has been described based on the embodiments. However, the present invention is not limited to the above embodiments, and various modifications can be made within the scope of the claims.

10 PLL回路
11 AD変換器
12 平均化部
13 コード変換部
14 論理回路
20 デジタル制御発振器(DCO)
21 分周器
22 位相比較器
23 ループフィルタ
24 正規化部
25 加算器
30 データパス
31,32 フリップフロップ
33 回路素子群
Reference Signs List 10 PLL circuit 11 AD converter 12 Averaging unit 13 Code conversion unit 14 Logic circuit 20 Digitally controlled oscillator (DCO)
Reference Signs List 21 frequency divider 22 phase comparator 23 loop filter 24 normalizer 25 adder 30 data paths 31, 32 flip-flop 33 circuit element group

Claims (11)

入力信号に応じた周期の発振信号を生成する発振器と、
電源電圧に応じた検出信号を出力する電圧検出器と、
前記検出信号を時間平均した信号に応じた分周率で前記発振信号を分周して分周信号を生成する分周器と、
前記分周信号と参照信号との位相差に応じた第1の信号と前記検出信号に応じた第2の信号との和を求め、前記和に応じた信号を前記入力信号として前記発振器に供給する加算器と
を含む電子回路。
An oscillator for generating an oscillation signal having a cycle according to the input signal;
A voltage detector that outputs a detection signal according to the power supply voltage,
A frequency divider that generates a frequency-divided signal by dividing the frequency of the oscillation signal at a frequency division ratio corresponding to a signal obtained by time-averaging the detection signal;
A sum of a first signal corresponding to the phase difference between the frequency-divided signal and the reference signal and a second signal corresponding to the detection signal are obtained, and a signal corresponding to the sum is supplied to the oscillator as the input signal. An electronic circuit including an adder.
前記検出信号及び前記入力信号は複数ビットで表現されたデジタルコードであり、前記発振器はデジタル制御発振器である請求項1記載の電子回路。   2. The electronic circuit according to claim 1, wherein the detection signal and the input signal are a digital code represented by a plurality of bits, and the oscillator is a digitally controlled oscillator. 前記電源電圧で駆動する論理回路を更に含み、前記論理回路中のフリップフロップのクロック入力端に前記発振信号が印加される請求項1記載の電子回路。   2. The electronic circuit according to claim 1, further comprising a logic circuit driven by the power supply voltage, wherein the oscillation signal is applied to a clock input terminal of a flip-flop in the logic circuit. 前記電圧検出器は、
第1の電圧が印加されるとともに前記発振信号を第1の制御信号に基づいて遅延させた第1の遅延発振信号を出力する第1の可変ディレイラインと、第2の電圧が印加されるとともに前記発振信号を第2の制御信号に基づいて遅延させた第2の遅延発振信号を出力する第2の可変ディレイラインと、前記第2の遅延発振信号が各クロック端子に供給されるとともに前段の第1のフリップフロップのデータ入力からそれぞれ第1の所定ディレイ分遅延させた第1の遅延発振信号がそれぞれデータ入力に入力されるn個の第1のフリップフロップと、前段の第2のフリップフロップのクロック入力からそれぞれ第2の所定ディレイ分遅延させた第2の遅延発振信号がそれぞれ各クロック端子に供給されるとともに前記第1の遅延発振信号がそれぞれデータ入力に入力されるn個の第2のフリップフロップとを備えるディレイモニタ回路と、
前記ディレイモニタ回路が出力する2n個の出力信号を、入力される2n個のマスク信号に基づいてマスクした2n個のマスク後出力信号を前記検出信号として出力するマスク回路と、
前記検出信号に基づき前記第1の制御信号と前記第2の制御信号とを出力するとともに、前記2n個のマスク信号を出力する制御回路
を含む請求項1乃至いずれか一項記載の電子回路。
The voltage detector,
A first variable delay line for outputting a first delayed oscillation signal obtained by applying a first voltage and delaying the oscillation signal based on a first control signal, and applying a second voltage; A second variable delay line that outputs a second delayed oscillation signal obtained by delaying the oscillation signal based on a second control signal; and a second delay oscillation signal that is supplied to each clock terminal and is connected to a preceding stage. N first flip-flops, each of which receives a first delayed oscillation signal delayed by a first predetermined delay from the data input of the first flip-flop, and inputs the first delayed oscillation signal to the data input; Are respectively supplied to respective clock terminals, and the first delayed oscillation signal is respectively delayed by a second predetermined delay. A delay monitor circuit comprising n number of the second flip-flop input to the data input,
A mask circuit for outputting 2n masked output signals obtained by masking the 2n output signals output from the delay monitor circuit based on the input 2n mask signals as the detection signal;
The outputs said first control signal and a second control signal based on the detection signal, the 2n pieces of claims 1 to 3 electronic circuit according to any one claim comprises a control circuit for outputting a mask signal .
前記電圧検出器は、
前記電源電圧が印加されるとともに前記発振信号を遅延させた第1の遅延発振信号を出力する擬似クリティカルパス回路と、基準電圧が印加されるとともに前記発振信号を制御信号に基づいて遅延させた第2の遅延発振信号を出力する可変ディレイラインと、入力される選択信号に基づき前記発振信号又は前記第2の遅延発振信号の何れかである第3の遅延発振信号を選択して出力する選択部と、前記第3の遅延発振信号が各第1入力端子に供給されるとともに前段の第1のフリップフロップの第2入力端子からそれぞれ第1の所定ディレイ分遅延させた第1の遅延発振信号がそれぞれ第2入力端子に入力されるn個の第1のフリップフロップと、前段の第2のフリップフロップの第1入力端子からそれぞれ第2の所定ディレイ分遅延させた第3の遅延発振信号がそれぞれ各第1入力端子に供給されるとともに前記第1の遅延発振信号がそれぞれ第2入力端子に入力されるn個の第2のフリップフロップとを備えるディレイモニタ回路と、
前記ディレイモニタ回路が出力する2n個の出力信号を、入力される2n個のマスク信号に基づいてマスクした2n個のマスク後出力信号を前記検出信号として出力するマスク回路と、
前記検出信号に基づき前記制御信号を出力するとともに、前記2n個のマスク信号を出力する制御回路
を含む請求項1乃至いずれか一項記載の電子回路。
The voltage detector,
A pseudo critical path circuit for applying the power supply voltage and outputting a first delayed oscillation signal obtained by delaying the oscillation signal, and a pseudo critical path circuit for applying a reference voltage and delaying the oscillation signal based on a control signal; A variable delay line that outputs a second delayed oscillation signal, and a selector that selects and outputs a third delayed oscillation signal that is either the oscillation signal or the second delayed oscillation signal based on an input selection signal. The first delayed oscillation signal is supplied to each first input terminal and the first delayed oscillation signal is delayed by a first predetermined delay from the second input terminal of the preceding first flip-flop. Delayed by a second predetermined delay from each of the n first flip-flops input to the second input terminal and the first input terminal of the preceding second flip-flop. A delay monitor circuit delays the oscillation signal of 3 and an n-number of the second flip-flop in which the first delay oscillation signal is input to the second input terminal respectively is supplied to the first input terminal, respectively,
A mask circuit for outputting 2n masked output signals obtained by masking the 2n output signals output from the delay monitor circuit based on the input 2n mask signals as the detection signal;
The outputs of the control signal based on the detection signal, the 2n pieces of claims 1 to 3 electronic circuit according to any one claim comprises a control circuit for outputting a mask signal.
前記擬似クリティカルパス回路は、前記電子回路の最大動作周波数に対応するディレイを有する請求項記載の電子回路。 6. The electronic circuit according to claim 5 , wherein the pseudo critical path circuit has a delay corresponding to a maximum operating frequency of the electronic circuit. 発振器への入力信号に応じた周期の発振信号を前記発振器により生成し、
電源電圧に応じた検出信号を生成し、
前記検出信号を時間平均した信号に応じた分周率で前記発振信号を分周して分周信号を生成する分周信号生成処理を実行し、
前記分周信号と参照信号との位相差に応じた第1の信号と前記検出信号に応じた第2の信号との和を求め、前記和に応じた信号を前記入力信号として前記発振器に供給する入力信号供給処理を実行する、
各段階を含む発振器の制御方法。
An oscillation signal having a cycle according to the input signal to the oscillator is generated by the oscillator,
Generates a detection signal according to the power supply voltage,
Performing a frequency-divided signal generation process of generating a frequency-divided signal by frequency-dividing the oscillation signal at a frequency division ratio corresponding to a signal obtained by time-averaging the detection signal;
A sum of a first signal corresponding to the phase difference between the frequency-divided signal and the reference signal and a second signal corresponding to the detection signal are obtained, and a signal corresponding to the sum is supplied to the oscillator as the input signal. Execute input signal supply processing;
An oscillator control method including each step.
第1の可変ディレイラインに印加される第1の駆動電圧と第2の可変ディレイラインに印加される第2の駆動電圧とを等しい電圧に設定し、
前記第1の駆動電圧と前記第2の駆動電圧とが等しい状態で、前記第1の可変ディレイラインの回路遅延と前記第2の可変ディレイラインの回路遅延との回路遅延差がゼロになるように調整する処理を実行し、
前記調整する処理を実行後に前記電源電圧を前記第1の可変ディレイラインに印加する
各段階を更に含み、前記第1の可変ディレイラインが前記電源電圧で駆動し且つ前記第2の可変ディレイラインが前記第2の駆動電圧で駆動している状態で前記回路遅延差に応じた信号を前記検出信号として生成して前記分周信号生成処理及び前記入力信号供給処理を実行する請求項記載の発振器の制御方法。
Setting the first drive voltage applied to the first variable delay line and the second drive voltage applied to the second variable delay line to be equal;
With the first drive voltage and the second drive voltage being equal, a circuit delay difference between the circuit delay of the first variable delay line and the circuit delay of the second variable delay line becomes zero. Execute the adjustment process to
Applying the power supply voltage to the first variable delay line after performing the adjusting process, wherein the first variable delay line is driven by the power supply voltage and the second variable delay line is 8. The oscillator according to claim 7 , wherein a signal corresponding to said circuit delay difference is generated as said detection signal while driving with said second drive voltage to execute said divided signal generation processing and said input signal supply processing. Control method.
疑似クリティカルパス回路及び可変ディレイラインにそれぞれ前記電源電圧及び所定の駆動電圧を印加し、
前記可変ディレイラインの遅延時間長をクロック信号の1サイクルに等しい長さに調整する処理を実行し、
前記調整する処理を実行後に前記疑似クリティカルパス回路の回路遅延と前記可変ディレイラインの回路遅延との回路遅延差を測定する
各段階を更に含み、前記回路遅延差に応じた信号を前記検出信号として生成して前記分周信号生成処理及び前記入力信号供給処理を実行する請求項記載の発振器の制御方法。
Apply the power supply voltage and a predetermined drive voltage to the pseudo critical path circuit and the variable delay line, respectively,
Performing a process of adjusting a delay time length of the variable delay line to a length equal to one cycle of a clock signal;
Each step of measuring a circuit delay difference between the circuit delay of the pseudo critical path circuit and the circuit delay of the variable delay line after performing the adjusting process, and using a signal corresponding to the circuit delay difference as the detection signal. 8. The method of controlling an oscillator according to claim 7 , wherein the oscillator generates the divided signal and performs the input signal supply processing.
前記調整する処理は、
前記疑似クリティカルパス回路に前記クロック信号を入力し、
前記疑似クリティカルパス回路により遅延された前記クロック信号の第1のパルスと前記クロック信号の前記第1のパルスの直後の第2のパルスとの時間差を測定し、
前記疑似クリティカルパス回路の回路遅延と前記可変ディレイラインの回路遅延との回路遅延差が前記時間差に等しくなるように前記可変ディレイラインの遅延時間長を調整する
各段階を含む請求項記載の発振器の制御方法。
The adjusting process includes:
Inputting the clock signal to the pseudo critical path circuit ,
Measuring a time difference between a first pulse of the clock signal delayed by the pseudo critical path circuit and a second pulse immediately after the first pulse of the clock signal;
10. The oscillator according to claim 9 , further comprising adjusting a delay time length of the variable delay line such that a circuit delay difference between a circuit delay of the pseudo critical path circuit and a circuit delay of the variable delay line is equal to the time difference. Control method.
前記クロック信号は前記発振信号である請求項又は10記載の発振器の制御方法。 Said clock signal control method of an oscillator according to claim 9 or 10 wherein said oscillation signal.
JP2015252354A 2015-06-29 2015-12-24 Control method of electronic circuit and oscillator Expired - Fee Related JP6623745B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/155,471 US9685965B2 (en) 2015-06-29 2016-05-16 Electronic circuit for controlling an oscillator, and related method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2015129838 2015-06-29
JP2015129838 2015-06-29

Publications (2)

Publication Number Publication Date
JP2017017671A JP2017017671A (en) 2017-01-19
JP6623745B2 true JP6623745B2 (en) 2019-12-25

Family

ID=57829419

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015252354A Expired - Fee Related JP6623745B2 (en) 2015-06-29 2015-12-24 Control method of electronic circuit and oscillator

Country Status (1)

Country Link
JP (1) JP6623745B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7193718B2 (en) 2018-12-19 2022-12-21 富士通株式会社 Control program, information processing device and control method
JP7111970B2 (en) 2018-12-20 2022-08-03 富士通株式会社 Control circuit, control method and control program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11288325A (en) * 1998-04-02 1999-10-19 Mitsubishi Electric Corp Clock signal controller
JP2002152036A (en) * 2000-11-10 2002-05-24 Techno Togo:Kk Reference signal generator
MX368013B (en) * 2001-02-19 2019-09-13 Novartis Ag Cancer treatment.
US10020931B2 (en) * 2013-03-07 2018-07-10 Intel Corporation Apparatus for dynamically adapting a clock generator with respect to changes in power supply

Also Published As

Publication number Publication date
JP2017017671A (en) 2017-01-19

Similar Documents

Publication Publication Date Title
US6225840B1 (en) Clock generation circuit which reduces a transition time period and semiconductor device using the same
KR101068432B1 (en) Delay circuit
US6882196B2 (en) Duty cycle corrector
JP2011066791A (en) Semiconductor integrated circuit device, and power supply voltage control method
KR20200091876A (en) Master/Slave Frequency Fixed Loop
US9685965B2 (en) Electronic circuit for controlling an oscillator, and related method
JP4655683B2 (en) Slew rate adjustment circuit and slew rate adjustment method
US20240030904A1 (en) Measuring pin-to-pin delays between clock routes
CN115037297A (en) Clock selector circuit
JP3795884B2 (en) PLL circuit
JP4071604B2 (en) Information processing apparatus provided with clock generation circuit and information processing apparatus provided with clock delay circuit
JP6623745B2 (en) Control method of electronic circuit and oscillator
JP6859695B2 (en) Information processing equipment, information processing methods and information processing programs
CN107645288B (en) Electronic circuit, method and electronic device for generating pulses
US7561651B1 (en) Synchronization of a data output signal to a clock input
JP2005252447A (en) Lock detection circuit and method
JP2007267364A (en) Correcting device for correcting duty cycle of clock signal
KR101297413B1 (en) Adaptive clock generating apparatus and method thereof
US7863990B2 (en) Oscillation circuit, test apparatus and electronic device
JP7255790B2 (en) semiconductor equipment
JP5303830B2 (en) Period jitter cancellation circuit, static phase difference cancellation circuit, period jitter measurement circuit, static phase difference measurement circuit, and phase difference adjustment circuit
US8754685B1 (en) Delay locked loop
US20240319761A1 (en) Semiconductor device performing clock gating and operating method thereof
JP4894327B2 (en) Jitter measurement circuit
CN114531151B (en) Phase-locked loop, method for generating periodic output waveform and clock generating circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180912

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190626

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190709

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190904

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: 20191029

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20191111

R150 Certificate of patent or registration of utility model

Ref document number: 6623745

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees