JP5890998B2 - Semiconductor device and power supply method - Google Patents

Semiconductor device and power supply method Download PDF

Info

Publication number
JP5890998B2
JP5890998B2 JP2011228012A JP2011228012A JP5890998B2 JP 5890998 B2 JP5890998 B2 JP 5890998B2 JP 2011228012 A JP2011228012 A JP 2011228012A JP 2011228012 A JP2011228012 A JP 2011228012A JP 5890998 B2 JP5890998 B2 JP 5890998B2
Authority
JP
Japan
Prior art keywords
value
monitor
comparison
semiconductor device
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2011228012A
Other languages
Japanese (ja)
Other versions
JP2013089725A (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.)
Renesas Electronics Corp
Original Assignee
Renesas Electronics Corp
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 Renesas Electronics Corp filed Critical Renesas Electronics Corp
Priority to JP2011228012A priority Critical patent/JP5890998B2/en
Publication of JP2013089725A publication Critical patent/JP2013089725A/en
Application granted granted Critical
Publication of JP5890998B2 publication Critical patent/JP5890998B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は半導体装置および電源供給方法に関し、特に消費電力を低減することができる半導体装置および電源供給方法に関する。   The present invention relates to a semiconductor device and a power supply method, and more particularly, to a semiconductor device and a power supply method that can reduce power consumption.

CMOS論理ゲートを用いた半導体装置の消費電力を低減する技術として、要求される速度に応じて電源電圧を制御するDVFS(Dynamic Voltage and Frequency Scaling)技術がある。DVFS技術を用いて電源電圧を制御する場合は、半導体装置の複数の箇所に遅延モニタを設け、この遅延モニタで測定された値に基づき半導体装置に供給される電源電圧を制御することができる。   As a technique for reducing power consumption of a semiconductor device using a CMOS logic gate, there is a DVFS (Dynamic Voltage and Frequency Scaling) technique for controlling a power supply voltage according to a required speed. When the power supply voltage is controlled using the DVFS technique, delay monitors are provided at a plurality of locations of the semiconductor device, and the power supply voltage supplied to the semiconductor device can be controlled based on values measured by the delay monitor.

また、特許文献1には、電圧制御機能を搭載した半導体装置の設計に関する技術が開示されている。特許文献2には、信頼性が高くフレキシブルに効率良くレプリカ回路を構成することができる半導体装置に関する技術が開示されている。特許文献3には、素子の電気的特性がばらつく場合であっても、半導体回路上に形成される回路の動作マージンの低下を最小限にすることができる技術が開示されている。特許文献4および特許文献5には、LSIの経時劣化マージン量を簡便に求めることができる技術が開示されている。特許文献6には、内部回路に好適な電源電圧を供給することが可能な半導体集積回路に関する技術が開示されている。また、非特許文献1には、遅延モニタにおける測定結果に応じて半導体回路に供給される電源電圧を制御する技術が開示されている。   Patent Document 1 discloses a technique related to the design of a semiconductor device equipped with a voltage control function. Patent Document 2 discloses a technology related to a semiconductor device that can form a replica circuit with high reliability and flexibility. Patent Document 3 discloses a technique that can minimize a decrease in an operation margin of a circuit formed over a semiconductor circuit even when the electrical characteristics of the element vary. Patent Documents 4 and 5 disclose techniques that can easily determine the amount of time-lapse deterioration margin of an LSI. Patent Document 6 discloses a technique related to a semiconductor integrated circuit capable of supplying a power supply voltage suitable for an internal circuit. Non-Patent Document 1 discloses a technique for controlling a power supply voltage supplied to a semiconductor circuit according to a measurement result in a delay monitor.

特開2011−91277号公報JP 2011-91277 A 特開2000−295084号公報JP 2000-295084 A 特開2008−186931号公報JP 2008-186931 A 特開2001−331545号公報JP 2001-331545 A 特開2005−100458号公報JP 2005-1000045 A 特開2009−10344号公報JP 2009-10344 A

M. Nomura, Y. Ikenaga, K. Takeda, Y. Nakazawa, Y. Aimoto, and Y. Hagihara, "Delay and power monitoring schemes for minimizing power consumption by means of supply and threshold voltage control in active and standby modes," IEEE Journal of Solid-State Circuits, vol. 41, pp. 805 - 814, April 2006.M. Nomura, Y. Ikenaga, K. Takeda, Y. Nakazawa, Y. Aimoto, and Y. Hagihara, "Delay and power monitoring schemes for minimizing power consumption by means of supply and threshold voltage control in active and standby modes," IEEE Journal of Solid-State Circuits, vol. 41, pp. 805-814, April 2006.

半導体装置が備える内部回路に供給される電源電圧を制御する場合、内部回路の複数の箇所にモニタを設け、このモニタで測定された値に基づき電源電圧を制御することができる。しかしながら、内部回路の特性にはばらつきがあるため、内部回路に供給される電源電圧はこのばらつきを考慮して設定する必要がある。すなわち、内部回路に供給される電源電圧に所定のマージンを設ける必要がある。この所定のマージンは、ばらつきの少ない内部回路にとっては不要なマージンとなる。よって、この場合、ばらつきの少ない内部回路に、実際に必要な電源電圧よりも高い電源電圧が供給されることになり、内部回路を含む半導体装置の消費電力を低減することができないという問題があった。   When the power supply voltage supplied to the internal circuit included in the semiconductor device is controlled, monitors can be provided at a plurality of locations in the internal circuit, and the power supply voltage can be controlled based on values measured by the monitor. However, since the characteristics of the internal circuit vary, the power supply voltage supplied to the internal circuit needs to be set in consideration of this variation. That is, it is necessary to provide a predetermined margin for the power supply voltage supplied to the internal circuit. This predetermined margin is an unnecessary margin for an internal circuit with little variation. Therefore, in this case, a power supply voltage higher than the actually required power supply voltage is supplied to the internal circuit with little variation, and there is a problem in that the power consumption of the semiconductor device including the internal circuit cannot be reduced. It was.

本発明の一態様にかかる半導体装置は、内部回路に電源を供給する電源供給部と、前記内部回路の複数の場所における特性をモニタする複数のモニタ部と、前記複数のモニタ部から出力された信号に基づき算出されたモニタ値と、設定された比較値との比較結果に応じて前記電源供給部を制御する制御部と、を備え、前記制御部は、前記複数のモニタ部における特性のばらつきに応じて前記比較値を設定する。   A semiconductor device according to an aspect of the present invention is output from a power supply unit that supplies power to an internal circuit, a plurality of monitor units that monitor characteristics at a plurality of locations of the internal circuit, and the plurality of monitor units A control unit that controls the power supply unit according to a comparison result between a monitor value calculated based on the signal and a set comparison value, and the control unit has characteristic variation among the plurality of monitor units The comparison value is set according to.

本発明の一態様にかかる半導体装置では、内部回路に設けられた複数のモニタ部における特性のばらつきに応じて比較値を設定している。よって、比較値に無駄なマージンを設ける必要がなく最適な比較値を設定することができるので、半導体装置の消費電力を低減することができる。   In the semiconductor device according to one embodiment of the present invention, the comparison value is set in accordance with the variation in characteristics in the plurality of monitor units provided in the internal circuit. Therefore, it is not necessary to provide a useless margin for the comparison value, and an optimum comparison value can be set, so that the power consumption of the semiconductor device can be reduced.

本発明の他の態様にかかる電源供給方法は、内部回路への電源供給方法であって、前記内部回路の複数の場所における特性をモニタし、前記複数の場所におけるモニタ結果に基づきモニタ値を算出し、前記複数の場所におけるモニタ結果のばらつきに応じて比較値を設定し、前記モニタ値と前記設定された比較値との比較結果に応じて前記内部回路に供給される電源を制御する。   A power supply method according to another aspect of the present invention is a method of supplying power to an internal circuit, wherein characteristics of the internal circuit at a plurality of locations are monitored, and a monitor value is calculated based on the monitoring results at the plurality of locations. Then, a comparison value is set according to the variation in the monitoring results at the plurality of locations, and the power supplied to the internal circuit is controlled according to the comparison result between the monitoring value and the set comparison value.

本発明の他の態様にかかる電源供給方法では、内部回路の複数の場所における特性をモニタし、当該複数の場所における特性のばらつきに応じて比較値を設定している。よって、比較値に無駄なマージンを設ける必要がなく最適な比較値を設定することができるので、半導体装置の消費電力を低減することができる。   In the power supply method according to another aspect of the present invention, the characteristics of the internal circuit at a plurality of locations are monitored, and the comparison value is set according to the variation in the characteristics at the plurality of locations. Therefore, it is not necessary to provide a useless margin for the comparison value, and an optimum comparison value can be set, so that the power consumption of the semiconductor device can be reduced.

本発明により、消費電力を低減することが可能な半導体装置および電源供給方法を提供することができる。   According to the present invention, a semiconductor device and a power supply method capable of reducing power consumption can be provided.

実施の形態1にかかる半導体装置を示すブロック図である。1 is a block diagram showing a semiconductor device according to a first embodiment; 実施の形態1にかかる半導体装置が備えるモニタ部の一例を示すブロック図である。2 is a block diagram illustrating an example of a monitor unit included in the semiconductor device according to the first embodiment; FIG. 実施の形態1にかかる半導体装置が備える制御部の一例を示すブロック図である。3 is a block diagram illustrating an example of a control unit included in the semiconductor device according to the first embodiment; FIG. 図3に示すモニタ値算出部の一例を示すブロック図である。It is a block diagram which shows an example of the monitor value calculation part shown in FIG. 図3に示すばらつき値算出部の一例を示すブロック図である。It is a block diagram which shows an example of the variation value calculation part shown in FIG. 図3に示すレジスタに格納されている比較値の一例を示す図である。It is a figure which shows an example of the comparison value stored in the register | resistor shown in FIG. 本発明の効果を説明するための図である。It is a figure for demonstrating the effect of this invention. 本発明の効果を説明するための図である。It is a figure for demonstrating the effect of this invention. 実施の形態2にかかる半導体装置が備えるばらつき値算出部を示すブロック図である。FIG. 6 is a block diagram illustrating a variation value calculation unit included in a semiconductor device according to a second embodiment; 実施の形態2にかかる半導体装置が備えるばらつき値算出部の他の例を示すブロック図である。FIG. 10 is a block diagram illustrating another example of a variation value calculation unit included in the semiconductor device according to the second embodiment; 図9、図10に示す最大値算出部の一例を示すブロック図である。It is a block diagram which shows an example of the maximum value calculation part shown in FIG. 9, FIG. 図9、図10に示す最小値算出部の一例を示すブロック図である。It is a block diagram which shows an example of the minimum value calculation part shown in FIG. 9, FIG. 図11に示す比較器の一例を示すブロック図である。It is a block diagram which shows an example of the comparator shown in FIG. 図12に示す比較器の一例を示すブロック図である。It is a block diagram which shows an example of the comparator shown in FIG. 実施の形態3にかかる半導体装置が備えるモニタ部の一例を示すブロック図である。FIG. 6 is a block diagram illustrating an example of a monitor unit included in a semiconductor device according to a third embodiment; 図15に示すモニタ部の動作を説明するためのタイミングチャートである。It is a timing chart for demonstrating operation | movement of the monitor part shown in FIG. 実施の形態4にかかる半導体装置が備えるモニタ部の一例を示すブロック図である。FIG. 10 is a block diagram illustrating an example of a monitor unit included in a semiconductor device according to a fourth embodiment; 実施の形態5にかかる半導体装置が備える制御部の一例を示すブロック図である。FIG. 10 is a block diagram illustrating an example of a control unit included in a semiconductor device according to a fifth embodiment; 図18に示す制御部の動作を説明するためのタイミングチャートである。It is a timing chart for demonstrating operation | movement of the control part shown in FIG. 図18に示す制御部の動作を説明するためのタイミングチャートである。It is a timing chart for demonstrating operation | movement of the control part shown in FIG. 実施の形態5にかかる半導体装置の動作を説明するためのフローチャートである。10 is a flowchart for explaining an operation of the semiconductor device according to the fifth embodiment; 実施の形態6にかかる半導体装置が備える制御部の一例を示すブロック図である。FIG. 10 is a block diagram illustrating an example of a control unit included in a semiconductor device according to a sixth embodiment; 図21に示す制御部の動作を説明するためのタイミングチャートである。It is a timing chart for demonstrating operation | movement of the control part shown in FIG. 実施の形態7にかかる半導体装置が備える制御部の一例を示すブロック図である。FIG. 10 is a block diagram illustrating an example of a control unit included in a semiconductor device according to a seventh embodiment; 実施の形態7にかかる半導体装置が備えるモニタ部の配置を説明するための図である。FIG. 10 is a diagram for explaining an arrangement of monitor units included in a semiconductor device according to a seventh embodiment; 実施の形態7にかかる半導体装置が備えるモニタ部の配置を説明するための図である。FIG. 10 is a diagram for explaining an arrangement of monitor units included in a semiconductor device according to a seventh embodiment; 実施の形態8にかかる半導体装置が備えるモニタ部の一例を示すブロック図である。FIG. 10 is a block diagram illustrating an example of a monitor unit included in a semiconductor device according to an eighth embodiment; 実施の形態8にかかる半導体装置の動作を説明するための図である。FIG. 10 is a diagram for explaining the operation of the semiconductor device according to the eighth embodiment;

<実施の形態1>
以下、図面を参照して本発明の実施の形態について説明する。
図1は、本発明の実施の形態1にかかる半導体装置を示すブロック図である。図1に示す半導体装置は、モニタ部1_1〜1_Nおよび制御部2を備える内部回路3と、電源供給部4と有する(Nは正の整数である。以下、同様。)。なお、図1に示す内部回路3は一つの電源制御単位であり、モニタ部1_1〜1_Nおよび制御部2は電源制御単位毎に設けられている。また、図1では内部回路3と電源供給部4を別に設けているが、内部回路3と電源供給部4を一体として構成してもよい。また、図1では内部回路3に制御部2を設けているが、制御部2を内部回路3と別に設けるようにしてもよい。
<Embodiment 1>
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a block diagram showing a semiconductor device according to the first embodiment of the present invention. The semiconductor device shown in FIG. 1 includes an internal circuit 3 including monitor units 1_1 to 1_N and a control unit 2, and a power supply unit 4 (N is a positive integer. The same applies hereinafter). The internal circuit 3 shown in FIG. 1 is one power control unit, and the monitor units 1_1 to 1_N and the control unit 2 are provided for each power control unit. In FIG. 1, the internal circuit 3 and the power supply unit 4 are provided separately, but the internal circuit 3 and the power supply unit 4 may be integrated. In FIG. 1, the control unit 2 is provided in the internal circuit 3, but the control unit 2 may be provided separately from the internal circuit 3.

モニタ部1_1〜1_Nは、内部回路3の複数の箇所に設けられている。モニタ部1_1〜1_Nは内部回路3の特性をモニタするために設けられている。このため、モニタ部1_1〜1_Nは内部回路3に均等に配置されていることが好ましい。各モニタ部1_1〜1_Nから出力された信号C_1〜C_Nは、制御部2に供給される。   The monitor units 1_1 to 1_N are provided at a plurality of locations in the internal circuit 3. The monitor units 1_1 to 1_N are provided for monitoring the characteristics of the internal circuit 3. For this reason, it is preferable that the monitor units 1_1 to 1_N are equally arranged in the internal circuit 3. Signals C_1 to C_N output from the monitor units 1_1 to 1_N are supplied to the control unit 2.

図2は、本実施の形態にかかる半導体装置が備えるモニタ部1_Nの一例を示すブロック図である。モニタ部1_Nは、リングオシレータ11とカウンタ12とを備える。リングオシレータ11は、NAND1と遅延素子13とを有する。遅延素子13としては、例えばバッファ回路や、直列に接続された偶数個のインバータ(NOTゲート)を用いることができる。また、遅延素子13として直列に接続された奇数個のインバータを用いてもよいが、この場合はNAND1をAND回路に替える必要がある。   FIG. 2 is a block diagram illustrating an example of the monitor unit 1_N included in the semiconductor device according to the present embodiment. The monitor unit 1_N includes a ring oscillator 11 and a counter 12. The ring oscillator 11 includes a NAND 1 and a delay element 13. As the delay element 13, for example, a buffer circuit or an even number of inverters (NOT gates) connected in series can be used. In addition, although an odd number of inverters connected in series may be used as the delay element 13, in this case, it is necessary to replace NAND1 with an AND circuit.

NAND1の一方の入力には制御部2から出力されたイネーブル信号EN_Nが供給される。NAND1の出力は遅延素子13に供給される。また、遅延素子13の出力はNAND1の他方の入力およびカウンタ12に供給される。カウンタ12には制御部2から出力されたリセット信号が供給される。カウンタ12のカウント値C_Nは、モニタ部1_Nが設けられた場所の特性を示す信号として制御部2に出力される。   An enable signal EN_N output from the control unit 2 is supplied to one input of the NAND 1. The output of the NAND 1 is supplied to the delay element 13. The output of the delay element 13 is supplied to the other input of the NAND 1 and the counter 12. The counter 12 is supplied with a reset signal output from the control unit 2. The count value C_N of the counter 12 is output to the control unit 2 as a signal indicating the characteristics of the place where the monitor unit 1_N is provided.

リングオシレータ11は、イネーブル信号EN_Nが非活性状態(つまり、ロウレベル"0")の場合は発振しない。一方、リングオシレータ11は、イネーブル信号EN_Nがハイレベル(つまり、活性状態"1")の場合は所定の周期で発振する。よって、リングオシレータ11は、イネーブル信号EN_Nがハイレベルの期間、カウンタ12に対してロウレベルの信号とハイレベルの信号を繰り返して出力する。カウンタ12は、イネーブル信号EN_Nがハイレベルの期間、リングオシレータ11が発振した回数(つまり、リングオシレータ11から出力されたパルス数)を測定する。制御部2は、リングオシレータ11が発振した回数を測定する前に、カウンタ12にリセット信号を出力してカウンタの値をリセットしておく。   The ring oscillator 11 does not oscillate when the enable signal EN_N is in an inactive state (that is, low level “0”). On the other hand, the ring oscillator 11 oscillates at a predetermined cycle when the enable signal EN_N is at a high level (that is, the active state “1”). Therefore, the ring oscillator 11 repeatedly outputs a low level signal and a high level signal to the counter 12 while the enable signal EN_N is at a high level. The counter 12 measures the number of times that the ring oscillator 11 has oscillated (that is, the number of pulses output from the ring oscillator 11) while the enable signal EN_N is at a high level. The controller 2 outputs a reset signal to the counter 12 to reset the counter value before measuring the number of times the ring oscillator 11 has oscillated.

このときカウンタ12から出力されるカウント値C_Nは、モニタ部1_Nが配置されている場所の内部回路3の特性を示している。つまり、カウント値C_Nが大きい程、リングオシレータ11の発振周波数が高いため、リングオシレータ11を構成する素子の速度が速いといえる。逆に、カウント値C_Nが小さい程、リングオシレータ11の発振周波数が低いため、リングオシレータ11を構成する素子の速度が遅いといえる。   The count value C_N output from the counter 12 at this time indicates the characteristics of the internal circuit 3 where the monitor unit 1_N is disposed. That is, it can be said that the higher the count value C_N, the higher the oscillation frequency of the ring oscillator 11, and thus the faster the elements constituting the ring oscillator 11. Conversely, it can be said that the smaller the count value C_N, the lower the oscillation frequency of the ring oscillator 11, and thus the slower the elements constituting the ring oscillator 11.

制御部2は、複数のモニタ部1_1〜1_Nから出力された信号C_1〜C_Nに基づき電源供給部4を制御するための制御信号CTRLを生成し、この制御信号CTRLを電源供給部4に出力する。つまり、制御部2は、複数のモニタ部1_1〜1_Nから出力された信号C_1〜C_Nに基づき算出されたモニタ値と、設定された比較値との比較結果に応じて電源供給部4を制御する。このとき、制御部2は、複数のモニタ部1_1〜1_Nにおける特性のばらつきに応じて比較値を設定することができる。   The control unit 2 generates a control signal CTRL for controlling the power supply unit 4 based on the signals C_1 to C_N output from the plurality of monitor units 1_1 to 1_N, and outputs the control signal CTRL to the power supply unit 4 . That is, the control unit 2 controls the power supply unit 4 according to the comparison result between the monitor value calculated based on the signals C_1 to C_N output from the plurality of monitor units 1_1 to 1_N and the set comparison value. . At this time, the control part 2 can set a comparison value according to the dispersion | variation in the characteristic in several monitor part 1_1-1_N.

図3は、本実施の形態にかかる半導体装置が備える制御部の一例を示すブロック図である。図3に示すように、制御部2は、ばらつき値算出部21、モニタ値算出部22、レジスタ23、および比較部24を備える。   FIG. 3 is a block diagram illustrating an example of a control unit included in the semiconductor device according to the present embodiment. As shown in FIG. 3, the control unit 2 includes a variation value calculation unit 21, a monitor value calculation unit 22, a register 23, and a comparison unit 24.

モニタ値算出部22は、複数のモニタ部1_1〜1_Nから出力された信号(つまり、カウント値)C_1〜C_Nに基づき、比較部24において比較値COMPと比較するためのモニタ値C_AVEを算出する。例えば、モニタ値C_AVEとして、複数のモニタ部1_1〜1_Nにおけるカウント値C_1〜C_Nの平均値を用いることができる。しかし、モニタ値C_AVEは、カウント値C_1〜C_Nの平均値に限定されることはなく、例えば、カウント値C_1〜C_Nの中から選択された1つの値を用いてもよく、また、これ以外の方法で決定された値を用いることもできる。   The monitor value calculation unit 22 calculates a monitor value C_AVE for comparison with the comparison value COMP in the comparison unit 24 based on signals (that is, count values) C_1 to C_N output from the plurality of monitor units 1_1 to 1_N. For example, as the monitor value C_AVE, an average value of the count values C_1 to C_N in the plurality of monitor units 1_1 to 1_N can be used. However, the monitor value C_AVE is not limited to the average value of the count values C_1 to C_N. For example, one value selected from the count values C_1 to C_N may be used. Values determined by the method can also be used.

図4は、図3に示すモニタ値算出部22の一例を示すブロック図である。図4に示すモニタ値算出部22は、モニタ値C_AVEとしてカウント値C_1〜C_Nの平均値を算出する回路である。なお、図4では、例として、モニタ値算出部22が4つのカウント値C_1〜C_4を用いてモニタ値C_AVEを算出する場合を示している。   FIG. 4 is a block diagram illustrating an example of the monitor value calculation unit 22 illustrated in FIG. The monitor value calculation unit 22 illustrated in FIG. 4 is a circuit that calculates an average value of the count values C_1 to C_N as the monitor value C_AVE. FIG. 4 shows a case where the monitor value calculation unit 22 calculates the monitor value C_AVE using the four count values C_1 to C_4 as an example.

図4に示すモニタ値算出部22は、加算器30_1〜30_3と平均化回路31とを備える。加算器30_1は、カウント値C_1とカウント値C_2とを入力し、これらの値を加算した値を加算器30_3に出力する。加算器30_2は、カウント値C_3とカウント値C_4とを入力し、これらの値を加算した値を加算器30_3に出力する。加算器30_3は、加算器30_1から出力された値と加算器30_2から出力された値とを入力し、これらの値を加算した値を平均化回路31に出力する。すなわち、平均化回路31に入力される値は、カウント値C_1〜C_4を全て加算した値である。平均化回路31は、カウント値C_1〜C_4を全て加算した値を、カウント値の数(この場合は、"4")で除算して、除算後の値をモニタ値C_AVEとして出力する。例えば、平均化回路31は、カウント値が2進数で表現されている場合、2ビット右シフトする。   The monitor value calculation unit 22 illustrated in FIG. 4 includes adders 30_1 to 30_3 and an averaging circuit 31. The adder 30_1 receives the count value C_1 and the count value C_2, and outputs a value obtained by adding these values to the adder 30_3. The adder 30_2 receives the count value C_3 and the count value C_4, and outputs a value obtained by adding these values to the adder 30_3. The adder 30_3 inputs the value output from the adder 30_1 and the value output from the adder 30_2, and outputs a value obtained by adding these values to the averaging circuit 31. That is, the value input to the averaging circuit 31 is a value obtained by adding all the count values C_1 to C_4. The averaging circuit 31 divides the value obtained by adding all the count values C_1 to C_4 by the number of count values (in this case, “4”), and outputs the value after the division as the monitor value C_AVE. For example, when the count value is expressed in binary, the averaging circuit 31 shifts right by 2 bits.

なお、上記例ではカウント値が4つの場合を例として示したが、カウント値が4つ以上の場合であっても同様に回路を構成することができる。つまり、カウント値C_1〜C_Nを全て加算する複数の加算器を設ける。そして、カウント値C_1〜C_Nを全て加算した値を、平均化回路31において、カウント値の数(N)で除算することでモニタ値C_AVEを算出することができる。   In the above example, the case where the count value is four is shown as an example, but the circuit can be similarly configured even when the count value is four or more. That is, a plurality of adders for adding all the count values C_1 to C_N are provided. Then, the monitor value C_AVE can be calculated by dividing the value obtained by adding all the count values C_1 to C_N by the number (N) of the count values in the averaging circuit 31.

図3に示すばらつき値算出部21は、例えば、複数のモニタ部1_1〜1_Nにおけるカウント値C_1〜C_Nの標準偏差(σ)をばらつき値C_VARとして算出することができる。図5は、ばらつき値算出部21の一例を示すブロック図である。図5に示すばらつき値算出部21は、ばらつき値C_VARとしてカウント値C_1〜C_Nの標準偏差(σ)を算出する回路である。なお、図5では、例として、ばらつき値算出部21が4つのカウント値C_1〜C_4を用いてばらつき値C_VARを算出する場合を示している。   The variation value calculation unit 21 illustrated in FIG. 3 can calculate, for example, the standard deviation (σ) of the count values C_1 to C_N in the plurality of monitor units 1_1 to 1_N as the variation value C_VAR. FIG. 5 is a block diagram illustrating an example of the variation value calculation unit 21. The variation value calculation unit 21 illustrated in FIG. 5 is a circuit that calculates the standard deviation (σ) of the count values C_1 to C_N as the variation value C_VAR. FIG. 5 shows an example in which the variation value calculation unit 21 calculates the variation value C_VAR using the four count values C_1 to C_4.

図5に示すばらつき値算出部21は、減算器32_1〜32_4、乗算器33_1〜33_4、加算器34_1〜34_3、除算器35、および平方根演算器36を備える。減算器32_1は、カウント値C_1と、カウント値C_1〜C_4の平均値C_AVEとを入力し、これらの値を減算した値(C_1−C_AVE)を乗算器33_1に出力する。ここで、カウント値C_1〜C_4の平均値C_AVEは、例えば図4に示したモニタ値算出部22を用いて求めることができる。以降、減算器32_2〜32_4についても同様の動作をする。   The variation value calculation unit 21 illustrated in FIG. 5 includes subtractors 32_1 to 32_4, multipliers 33_1 to 33_4, adders 34_1 to 34_3, a divider 35, and a square root calculator 36. The subtractor 32_1 receives the count value C_1 and the average value C_AVE of the count values C_1 to C_4, and outputs a value (C_1-C_AVE) obtained by subtracting these values to the multiplier 33_1. Here, the average value C_AVE of the count values C_1 to C_4 can be obtained by using, for example, the monitor value calculation unit 22 shown in FIG. Thereafter, the same operation is performed for the subtractors 32_2 to 32_4.

乗算器33_1は、減算器32_1から出力された値(C_1−C_AVE)を入力し、この値を自乗した値(C_1−C_AVE)を加算器34_1に出力する。乗算器33_2は、減算器32_2から出力された値(C_2−C_AVE)を入力し、この値を自乗した値(C_2−C_AVE)を加算器34_1に出力する。以降、乗算器33_3〜33_4についても同様の動作をする。 The multiplier 33_1 receives the value (C_1-C_AVE) output from the subtractor 32_1 and outputs a value (C_1-C_AVE) 2 obtained by squaring this value to the adder 34_1. The multiplier 33_2 receives the value (C_2-C_AVE) output from the subtractor 32_2, and outputs a value (C_2-C_AVE) 2 obtained by squaring the value to the adder 34_1. Thereafter, the same operation is performed for the multipliers 33_3 to 33_4.

加算器34_1は、乗算器33_1から出力された値(C_1−C_AVE)と乗算器33_2から出力された値(C_2−C_AVE)とを入力し、これらの値を加算した値を加算器34_3に出力する。加算器34_2は、乗算器33_3から出力された値(C_3−C_AVE)と乗算器33_4から出力された値(C_4−C_AVE)とを入力し、これらの値を加算した値を加算器34_3に出力する。加算器34_3は、加算器34_1から出力された値と加算器34_2から出力された値とを加算した値(つまり、(C_1−C_AVE)+(C_2−C_AVE)+(C_3−C_AVE)+(C_4−C_AVE))を除算器35に出力する。 The adder 34_1 receives the value (C_1-C_AVE) 2 output from the multiplier 33_1 and the value (C_2-C_AVE) 2 output from the multiplier 33_2, and adds the value obtained by adding these values to the adder 34_3. Output to. The adder 34_2 receives the value (C_3-C_AVE) 2 output from the multiplier 33_3 and the value (C_4-C_AVE) 2 output from the multiplier 33_4, and adds the value obtained by adding these values to the adder 34_3. Output to. The adder 34_3 is a value obtained by adding the value output from the adder 34_1 and the value output from the adder 34_2 (that is, (C_1−C_AVE) 2 + (C_2−C_AVE) 2 + (C_3−C_AVE) 2. + (C_4−C_AVE) 2 ) is output to the divider 35.

除算器35は、加算器34_3から出力された値をカウント値の数"4"で除算する。例えば、カウント値が2進数で表現されている場合、2ビット右シフトする。除算器35で得られた値は、カウント値C_1〜C_4の分散値(σ)である。平方根演算器36は、除算器35から出力された分散値(σ)の平方根を演算することで、標準偏差(σ)を算出する。得られた標準偏差(σ)は、ばらつき値C_VARとして比較部24に出力される。 The divider 35 divides the value output from the adder 34_3 by the number of count values “4”. For example, when the count value is expressed in binary, it is shifted right by 2 bits. The value obtained by the divider 35 is a dispersion value (σ 2 ) of the count values C_1 to C_4. The square root calculator 36 calculates the standard deviation (σ) by calculating the square root of the variance (σ 2 ) output from the divider 35. The obtained standard deviation (σ) is output to the comparison unit 24 as the variation value C_VAR.

図3に示すレジスタ23は、複数の比較値A(26_1)、比較値B(26_2)、比較値C(26_3)を格納している。レジスタ23に格納する比較値の数は任意に決定することができる。比較値は、モニタ値C_AVEの上限値に対応した設定値(第1の設定値)とモニタ値C_AVEの下限値に対応した設定値(第2の設定値)を含んでいる。図6は、レジスタ23に格納されている比較値の一例を示している。   The register 23 illustrated in FIG. 3 stores a plurality of comparison values A (26_1), a comparison value B (26_2), and a comparison value C (26_3). The number of comparison values stored in the register 23 can be arbitrarily determined. The comparison value includes a set value (first set value) corresponding to the upper limit value of the monitor value C_AVE and a set value (second set value) corresponding to the lower limit value of the monitor value C_AVE. FIG. 6 shows an example of the comparison value stored in the register 23.

図6に示すように、レジスタ23は、例えば比較値Aとして、下限の設定値C_L_set_1と上限の設定値C_H_set_1を格納している。ここで、下限の設定値C_L_set_1は、モニタ値C_AVEがこの値よりも低くならないようにするために設定された値である。また、上限の設定値C_H_set_1は、モニタ値C_AVEがこの値よりも高くならないようにするために設定された値である。すなわち、制御部2は、モニタ値C_AVEが設定値C_L_set_1と設定値C_H_set_1の間となるような制御信号CTRLを生成する。   As illustrated in FIG. 6, the register 23 stores, for example, as a comparison value A, a lower limit set value C_L_set_1 and an upper limit set value C_H_set_1. Here, the lower limit set value C_L_set_1 is a value set to prevent the monitor value C_AVE from becoming lower than this value. The upper limit set value C_H_set_1 is a value set to prevent the monitor value C_AVE from becoming higher than this value. That is, the control unit 2 generates the control signal CTRL such that the monitor value C_AVE is between the set value C_L_set_1 and the set value C_H_set_1.

同様に、レジスタ23は、比較値Bとして、下限の設定値C_L_set_2と上限の設定値C_H_set_2を格納している。また、レジスタ23は、比較値Cとして、下限の設定値C_L_set_3と上限の設定値C_H_set_3を格納している。   Similarly, the register 23 stores a lower limit set value C_L_set_2 and an upper limit set value C_H_set_2 as the comparison value B. The register 23 stores a lower limit set value C_L_set_3 and an upper limit set value C_H_set_3 as the comparison value C.

そして、レジスタ23は、複数のモニタ部1_1〜1_Nにおける特性のばらつきに応じて比較値COMPを設定する。つまり、レジスタ23は、ばらつき値算出部21から出力されたカウント値C_1〜C_Nのばらつき値C_VARに応じて、比較値COMPを設定する。設定された比較値COMPは、比較部24に出力される。   Then, the register 23 sets the comparison value COMP according to the characteristic variation in the plurality of monitor units 1_1 to 1_N. That is, the register 23 sets the comparison value COMP according to the variation value C_VAR of the count values C_1 to C_N output from the variation value calculation unit 21. The set comparison value COMP is output to the comparison unit 24.

ここで、例えば、比較値Aの上限の設定値C_H_set_1と下限の設定値C_L_set_1との間隔は、比較値Bの上限の設定値C_H_set_2と下限の設定値C_L_set_2との間隔よりも広く設定されているものとする。また、比較値Bの上限の設定値C_H_set_2と下限の設定値C_L_set_2との間隔は、比較値Cの上限の設定値C_H_set_3と下限の設定値C_L_set_3との間隔よりも広く設定されているものとする。   Here, for example, the interval between the upper limit set value C_H_set_1 of the comparison value A and the lower limit set value C_L_set_1 is set wider than the interval between the upper limit set value C_H_set_2 of the comparison value B and the lower limit set value C_L_set_2. Shall. The interval between the upper limit set value C_H_set_2 of the comparison value B and the lower limit set value C_L_set_2 is set to be wider than the interval between the upper limit set value C_H_set_3 of the comparison value C and the lower limit set value C_L_set_3. .

更に、比較値Aの上限の設定値C_H_set_1は比較値Bの上限の設定値C_H_set_2よりも大きく、比較値Bの上限の設定値C_H_set_2は比較値Cの上限の設定値C_H_set_3よりも大きくなるように設定されているものとする。また、比較値Aの下限の設定値C_L_set_1は比較値Bの下限の設定値C_L_set_2よりも大きく、比較値Bの下限の設定値C_L_set_2は比較値Cの下限の設定値C_L_set_3よりも大きくなるように設定されているものとする。   Further, the upper limit set value C_H_set_1 of the comparison value A is larger than the upper limit set value C_H_set_2 of the comparison value B, and the upper limit set value C_H_set_2 of the comparison value B is larger than the upper limit set value C_H_set_3 of the comparison value C. It is assumed that it is set. The lower limit setting value C_L_set_1 of the comparison value A is larger than the lower limit setting value C_L_set_2 of the comparison value B, and the lower limit setting value C_L_set_2 of the comparison value B is larger than the lower limit setting value C_L_set_3 of the comparison value C. It is assumed that it is set.

本実施の形態にかかる半導体装置では、レジスタ23は、ばらつき値算出部21から出力されたカウント値C_1〜C_Nのばらつきが小さくなるにつれて、つまり、ばらつき値(標準偏差)C_VARが小さくなるにつれて、比較値COMPの上限の設定値が小さくなるように、且つ比較値COMPの上限の設定値と下限の設定値の間隔が狭くなるように、比較値COMPを設定している。   In the semiconductor device according to the present embodiment, the register 23 compares as the variation of the count values C_1 to C_N output from the variation value calculation unit 21 decreases, that is, as the variation value (standard deviation) C_VAR decreases. The comparison value COMP is set so that the upper limit setting value of the value COMP is reduced and the interval between the upper limit setting value and the lower limit setting value of the comparison value COMP is narrowed.

図6を用いて説明すると、a>b>c>dの関係がある場合、ばらつき値(標準偏差)C_VARが大きい場合(a>C_VAR≧b)、レジスタ23は比較値Aを比較値COMPとして出力する。また、ばらつき値(標準偏差)C_VARが比較的大きい場合(b>C_VAR≧c)、レジスタ23は比較値Bを比較値COMPとして出力する。また、ばらつき値(標準偏差)C_VARが比較的小さい場合(c>C_VAR≧d)、レジスタ23は比較値Cを比較値COMPとして出力する。   Referring to FIG. 6, when there is a relationship of a> b> c> d, and when the variation value (standard deviation) C_VAR is large (a> C_VAR ≧ b), the register 23 sets the comparison value A as the comparison value COMP. Output. When the variation value (standard deviation) C_VAR is relatively large (b> C_VAR ≧ c), the register 23 outputs the comparison value B as the comparison value COMP. When the variation value (standard deviation) C_VAR is relatively small (c> C_VAR ≧ d), the register 23 outputs the comparison value C as the comparison value COMP.

比較部24は、レジスタ23から出力された比較値COMPとモニタ値算出部22から出力されたモニタ値C_AVEとを比較し、モニタ値C_AVEが比較値COMPの上限の設定値と下限の設定値との間となるような制御信号CTRLを生成し、電源供給部4に出力する。制御信号CTRLは、電源供給部4の仕様に対応した信号であり、例えば、符号化された信号などである。   The comparison unit 24 compares the comparison value COMP output from the register 23 with the monitor value C_AVE output from the monitor value calculation unit 22, and the monitor value C_AVE determines the upper limit set value and the lower limit set value of the comparison value COMP. A control signal CTRL is generated so as to be between and is output to the power supply unit 4. The control signal CTRL is a signal corresponding to the specification of the power supply unit 4, and is, for example, an encoded signal.

電源供給部4は、制御部2の比較部24から出力された制御信号CTRLに応じて、内部回路3に供給する電源電圧Vddを制御する。具体的には、モニタ値C_AVEが比較値COMPの上限の設定値よりも大きくなった場合は、モニタ部における動作周波数が高いので、制御部2は供給される電源電圧Vddが低くなるように電源供給部4を制御する。逆に、モニタ値C_AVEが比較値COMPの下限の設定値よりも小さくなった場合は、モニタ部における動作周波数が低いので、制御部2は供給される電源電圧Vddが高くなるように電源供給部4を制御する。   The power supply unit 4 controls the power supply voltage Vdd supplied to the internal circuit 3 according to the control signal CTRL output from the comparison unit 24 of the control unit 2. Specifically, when the monitor value C_AVE becomes larger than the upper limit set value of the comparison value COMP, the operating frequency in the monitor unit is high, so that the control unit 2 supplies power so that the supplied power supply voltage Vdd is low. The supply unit 4 is controlled. On the contrary, when the monitor value C_AVE is smaller than the lower limit set value of the comparison value COMP, the operating frequency in the monitor unit is low, so that the control unit 2 supplies the power supply unit so that the supplied power supply voltage Vdd becomes high. 4 is controlled.

図7、図8は本実施の形態にかかる発明の効果を説明するための図である。まず、図7を用いて、本実施の形態にかかる発明の効果を説明する。内部回路3に形成された所定の回路において、所定の性能を実現するための電圧の設計値をV_nomとする。このとき、内部回路3の特性(チップ性能)にはばらつきがあるため、図7の上図に示すように、内部回路3に形成された所定の回路において、所定の性能を実現するための電圧値はV_min_s(最小値)からV_max_s(最大値)となる。つまり、所定の性能を実現するための電圧値は、V_nomを中心として分散する。このときの標準偏差をσ1とする。   7 and 8 are diagrams for explaining the effects of the invention according to the present embodiment. First, the effect of the invention according to the present embodiment will be described with reference to FIG. In a predetermined circuit formed in the internal circuit 3, a design value of a voltage for realizing a predetermined performance is V_nom. At this time, since the characteristics (chip performance) of the internal circuit 3 vary, as shown in the upper diagram of FIG. 7, the voltage for realizing the predetermined performance in the predetermined circuit formed in the internal circuit 3 The value is V_min_s (minimum value) to V_max_s (maximum value). That is, the voltage value for realizing the predetermined performance is distributed around V_nom. The standard deviation at this time is σ1.

このとき、電源供給部4は、内部回路3に形成された所定の回路において、所定の性能を実現するために、V_min_s〜V_max_sの電源電圧Vddを供給する必要がある。内部回路3の特性のばらつきが大きい場合(図7の上図)は、モニタ値と内部回路3の性能にずれが生じることから電源電圧にマージンを与える必要があり、電圧の最大値V_max_sを大きくする必要がある。   At this time, the power supply unit 4 needs to supply the power supply voltage Vdd of V_min_s to V_max_s in order to achieve a predetermined performance in a predetermined circuit formed in the internal circuit 3. When the variation in the characteristics of the internal circuit 3 is large (the upper diagram in FIG. 7), the monitor value and the performance of the internal circuit 3 are different from each other. Therefore, it is necessary to provide a margin for the power supply voltage, and the maximum voltage value V_max_s is increased There is a need to.

一方、図7の下図に示すように、内部回路3の特性(チップ性能)のばらつきが小さい場合は、所定の性能を実現するための電圧値V_min_s〜V_max_s'の標準偏差は小さくなる(このときの標準偏差をσ2とする)。このとき、図7に示すように、所定の性能を実現するための最低電圧V_min_sは、標準偏差がσ1の場合とσ2の場合とで同一とすることができる。よって、図7の下図に示したように、標準偏差がσ2の場合は、内部回路3の特性のばらつきが小さいので、電圧の最大値V_max_s'は、標準偏差がσ1の場合の電圧の最大値V_max_sよりも、符号52で示す分だけ小さくすることができる。   On the other hand, as shown in the lower diagram of FIG. 7, when the variation in the characteristics (chip performance) of the internal circuit 3 is small, the standard deviation of the voltage values V_min_s to V_max_s ′ for realizing the predetermined performance is small (at this time) Is standard deviation). At this time, as shown in FIG. 7, the minimum voltage V_min_s for realizing the predetermined performance can be made the same in the case where the standard deviation is σ1 and in the case of σ2. Therefore, as shown in the lower diagram of FIG. 7, when the standard deviation is σ2, the variation in the characteristics of the internal circuit 3 is small, so the maximum voltage value V_max_s ′ is the maximum voltage value when the standard deviation is σ1. It can be made smaller than V_max_s by the amount indicated by reference numeral 52.

換言すると、内部回路3の特性のばらつきが小さい場合(標準偏差σ2)は、設定電圧の最大値をV_max_s'とすることができる。一方、内部回路3の特性のばらつきが大きい場合(標準偏差σ1)は、設定電圧の最大値を、ばらつきが小さい場合の最大値V_max_s'に符号52に示すマージンを設けた電圧V_max_sとする必要がある。   In other words, when the variation in the characteristics of the internal circuit 3 is small (standard deviation σ2), the maximum value of the set voltage can be set to V_max_s ′. On the other hand, when the variation in the characteristics of the internal circuit 3 is large (standard deviation σ1), the maximum value of the set voltage needs to be the voltage V_max_s provided with a margin indicated by reference numeral 52 in the maximum value V_max_s ′ when the variation is small. is there.

従来、モニタ値C_AVEと比較される比較値は固定値であったため、内部回路3の特性のばらつきが大きい場合を想定して、所定の性能を実現するための電圧の最大値V_maxsを高めに設定する必要があった。このため、本来であれば、内部回路3の特性のばらつきが小さく、所定の性能を実現するための電圧の最大値を低めに設定することができる場合であっても、電圧の最大値が高めに設定されるため、半導体装置の消費電力が増加するという問題があった。   Conventionally, since the comparison value to be compared with the monitor value C_AVE is a fixed value, the maximum value V_maxs of the voltage for realizing the predetermined performance is set high, assuming that the variation in the characteristics of the internal circuit 3 is large. There was a need to do. Therefore, originally, even when the variation in the characteristics of the internal circuit 3 is small and the maximum voltage value for realizing the predetermined performance can be set low, the maximum voltage value is increased. Therefore, there is a problem that the power consumption of the semiconductor device increases.

これに対して本実施の形態にかかる半導体装置では、ばらつき値算出部21において、複数のモニタ部1_1〜1_Nにおけるカウント値C_1〜C_Nのばらつき値C_VARを算出し、このばらつき値C_VARに応じて比較部24で用いる比較値COMPを決定している。つまり、内部回路3の特性のばらつきが大きい場合は、比較値COMPとして、比較値の上限の設定値が大きく、且つ比較値の上限値と下限値の間隔が広い比較値を用いることができる(図7の上図参照)。一方、内部回路3の特性のばらつきが小さい場合は、比較値COMPとして、比較値の上限の設定値が小さく、且つ比較値の上限値と下限値の間隔が狭い比較値を用いることができる(図7の下図参照)。   On the other hand, in the semiconductor device according to the present embodiment, the variation value calculation unit 21 calculates the variation values C_VAR of the count values C_1 to C_N in the plurality of monitor units 1_1 to 1_N, and compares them according to the variation values C_VAR. The comparison value COMP used in the unit 24 is determined. That is, when the variation in the characteristics of the internal circuit 3 is large, a comparison value with a large set value for the upper limit of the comparison value and a wide interval between the upper limit value and the lower limit value of the comparison value can be used as the comparison value COMP ( (See the upper diagram in FIG. 7). On the other hand, when the variation in the characteristics of the internal circuit 3 is small, a comparison value having a small comparison value upper limit setting value and a narrow interval between the comparison value upper limit value and lower limit value can be used as the comparison value COMP ( (See the lower diagram in FIG. 7).

このように、本実施の形態にかかる半導体装置では、内部回路3の特性のばらつきに応じて比較部24で用いる比較値COMPを変更することができるので、内部回路3の特性のばらつきに応じて最適な比較値を用いることができる。よって、比較値に無駄なマージンを設ける必要がないため、半導体装置の消費電力を低減することができる。   As described above, in the semiconductor device according to the present embodiment, the comparison value COMP used in the comparison unit 24 can be changed in accordance with the variation in the characteristics of the internal circuit 3. An optimal comparison value can be used. Therefore, it is not necessary to provide a useless margin for the comparison value, so that power consumption of the semiconductor device can be reduced.

図8は、本実施の形態にかかる発明の効果を説明するための図であり、図7における電圧が図8に示す速度(カウント値)に対応している。図8に示すように、内部回路3の特性のばらつきが大きい場合は、比較値COMPとして比較値A(図6参照)を用いている。つまり、比較値COMPとして、上限の設定値がC_H_set_1、下限の設定値がC_L_set_1の比較値を用いている。   FIG. 8 is a diagram for explaining the effect of the invention according to the present embodiment. The voltage in FIG. 7 corresponds to the speed (count value) shown in FIG. As shown in FIG. 8, when the variation in the characteristics of the internal circuit 3 is large, the comparison value A (see FIG. 6) is used as the comparison value COMP. That is, as the comparison value COMP, a comparison value having an upper limit set value of C_H_set_1 and a lower limit set value of C_L_set_1 is used.

制御部2は、モニタ値C_AVEが上限の設定値C_H_set_1よりも大きくなった場合は、電源供給部4から供給される電源電圧Vddを低くし、モニタ値C_AVEが下限の設定値C_L_set_1よりも小さくなった場合は、電源供給部4から供給される電源電圧Vddを高くする。このような制御により、モニタ値C_AVEを下限の設定値C_L_set_1と上限の設定値C_H_set_1との間に収めることができる。   When the monitor value C_AVE becomes larger than the upper limit set value C_H_set_1, the control unit 2 lowers the power supply voltage Vdd supplied from the power supply unit 4, and the monitor value C_AVE becomes smaller than the lower limit set value C_L_set_1. If this happens, the power supply voltage Vdd supplied from the power supply unit 4 is increased. By such control, the monitor value C_AVE can be kept between the lower limit set value C_L_set_1 and the upper limit set value C_H_set_1.

図8の上図に示す場合は内部回路3の特性のばらつきが大きいので、比較値COMPとして、上限の設定値C_H_set_1が大きく、且つ比較値の上限の設定値C_H_set_1と下限の設定値C_L_set_1の間隔53が広い比較値を用いている。一方、図8の下図に示す場合は内部回路3の特性のばらつきが小さいので、比較値COMPとして、上限の設定値C_H_set_2が設定値C_H_set_1よりも小さく、且つ比較値の上限の設定値C_H_set_2と下限の設定値C_L_set_2の間隔54が狭い比較値を用いることができる。   In the case shown in the upper diagram of FIG. 8, since the characteristic variation of the internal circuit 3 is large, the upper limit set value C_H_set_1 is large as the comparison value COMP, and the interval between the upper limit set value C_H_set_1 and the lower limit set value C_L_set_1 53 uses a wide comparison value. On the other hand, since the variation in the characteristics of the internal circuit 3 is small in the case shown in the lower part of FIG. 8, the upper limit set value C_H_set_2 is smaller than the set value C_H_set_1 as the comparison value COMP and the upper limit set value C_H_set_2 and the lower limit of the comparison value A comparison value with a narrow interval 54 of the set value C_L_set_2 can be used.

例えば、内部回路3の特性のばらつきが大きい場合(図8の上図)は、モニタ値C_AVEが符号55の位置となるように制御する必要がある。しかし、内部回路3の特性のばらつきが小さい場合(図8の下図)は、比較値COMPの上限の設定値C_H_set_2を低く設定することができるので、モニタ値C_AVEがより小さな値となるように、電源電圧Vddを制御することができる(つまり、電源電圧Vddを低くすることができる)。   For example, when the variation in the characteristics of the internal circuit 3 is large (the upper diagram in FIG. 8), it is necessary to perform control so that the monitor value C_AVE is at the position of reference numeral 55. However, when the variation in the characteristics of the internal circuit 3 is small (the lower diagram in FIG. 8), the upper limit set value C_H_set_2 of the comparison value COMP can be set low, so that the monitor value C_AVE becomes a smaller value. The power supply voltage Vdd can be controlled (that is, the power supply voltage Vdd can be lowered).

以上で説明したように、本実施の形態にかかる半導体装置では、内部回路3の特性のばらつきに応じて比較部24で用いる比較値COMPを変更することができるので、内部回路3の特性のばらつきに応じて最適な比較値を用いることができる。よって、比較値に無駄なマージンを設ける必要がないため、半導体装置の消費電力を低減することができる。   As described above, in the semiconductor device according to the present embodiment, the comparison value COMP used in the comparison unit 24 can be changed in accordance with the variation in the characteristics of the internal circuit 3, so that the variation in the characteristics of the internal circuit 3 can be changed. The optimum comparison value can be used according to the above. Therefore, it is not necessary to provide a useless margin for the comparison value, so that power consumption of the semiconductor device can be reduced.

したがって、本実施の形態にかかる発明により、消費電力を低減することが可能な半導体装置および電源供給方法を提供することができる。   Therefore, the invention according to this embodiment can provide a semiconductor device and a power supply method capable of reducing power consumption.

<実施の形態2>
次に、本発明の実施の形態2について説明する。実施の形態2にかかる半導体装置では、ばらつき値算出部の構成が実施の形態1で説明したばらつき値算出部21と異なる。これ以外は実施の形態1と同様であるので、同一の構成要素には同一の符号を付し重複した説明は省略する。
<Embodiment 2>
Next, a second embodiment of the present invention will be described. In the semiconductor device according to the second embodiment, the configuration of the variation value calculation unit is different from that of the variation value calculation unit 21 described in the first embodiment. Since other than this is the same as that of the first embodiment, the same components are denoted by the same reference numerals, and redundant description is omitted.

図9は、本実施の形態にかかる半導体装置が備えるばらつき値算出部21'を示すブロック図である。図9に示すばらつき値算出部21'は、最大値算出部37、最小値算出部38、および減算器39を有する。図9では、例として、ばらつき値算出部21'が4つのカウント値C_1〜C_4を用いてばらつき値C_VARを算出する場合を示している。   FIG. 9 is a block diagram showing a variation value calculation unit 21 ′ included in the semiconductor device according to the present embodiment. The variation value calculation unit 21 ′ illustrated in FIG. 9 includes a maximum value calculation unit 37, a minimum value calculation unit 38, and a subtractor 39. FIG. 9 shows a case where the variation value calculation unit 21 ′ calculates the variation value C_VAR using four count values C_1 to C_4 as an example.

最大値算出部37は、カウント値C_1〜C_4の中から最大値を抽出し、この最大値C_MAXを減算器39に出力する。図11は、最大値算出部37の一例を示すブロック図である。最大値算出部37は、比較器41_1〜41_3で構成されている。比較器41_1は、カウント値C_1、C_2を入力し、これらのうちカウント値が大きい方のカウント値を比較器41_3に出力する。比較器41_2は、カウント値C_3、C_4を入力し、これらのうちカウント値が大きい方のカウント値を比較器41_3に出力する。比較器41_3は、比較器41_1から出力されたカウント値と比較器41_2から出力されたカウント値のうち、大きい方のカウント値を最大値C_MAXとして出力する。   The maximum value calculation unit 37 extracts the maximum value from the count values C_1 to C_4 and outputs the maximum value C_MAX to the subtractor 39. FIG. 11 is a block diagram illustrating an example of the maximum value calculation unit 37. The maximum value calculation unit 37 includes comparators 41_1 to 41_3. The comparator 41_1 receives the count values C_1 and C_2, and outputs the count value with the larger count value to the comparator 41_3. The comparator 41_2 receives the count values C_3 and C_4, and outputs the count value having the larger count value to the comparator 41_3. The comparator 41_3 outputs the larger count value of the count value output from the comparator 41_1 and the count value output from the comparator 41_2 as the maximum value C_MAX.

図13は、比較器41_1の一例を示すブロック図である(比較器41_2、比較器41_2についても同様の構成である)。比較器41_1は、減算器43と判定部44とを有する。減算器43は、カウント値C_1とカウント値C_2とを入力し、カウント値C_1からカウント値C_2を減算した値を判定部44に出力する。判定部44は、入力された値が正の値である場合はカウント値C_1を出力し、入力された値が負の値である場合はカウント値C_2を出力する。カウント値が2ビットで表現されている場合、判定部44は、入力された値のMSB(Most Significant Bit)が"0"の場合はカウント値C_1を出力し、入力された値のMSBが"1"の場合はカウント値C_2を出力する。このとき、負の整数を2の補数で表すとMSBは"1"となる。   FIG. 13 is a block diagram illustrating an example of the comparator 41_1 (the comparator 41_2 and the comparator 41_2 have the same configuration). The comparator 41_1 includes a subtractor 43 and a determination unit 44. The subtractor 43 receives the count value C_1 and the count value C_2, and outputs a value obtained by subtracting the count value C_2 from the count value C_1 to the determination unit 44. The determination unit 44 outputs the count value C_1 when the input value is a positive value, and outputs the count value C_2 when the input value is a negative value. When the count value is expressed in 2 bits, the determination unit 44 outputs the count value C_1 when the MSB (Most Significant Bit) of the input value is “0”, and the MSB of the input value is “ In the case of 1 ", the count value C_2 is output. At this time, when the negative integer is represented by 2's complement, the MSB is “1”.

図9に示す最小値算出部38は、カウント値C_1〜C_4の中から最小値を抽出し、この最小値C_MINを減算器39に出力する。図12は、最小値算出部38の一例を示すブロック図である。最小値算出部38は、比較器42_1〜42_3で構成されている。比較器42_1は、カウント値C_1、C_2を入力し、これらのうちカウント値が小さい方のカウント値を比較器42_3に出力する。比較器42_2は、カウント値C_3、C_4を入力し、これらのうちカウント値が小さい方のカウント値を比較器42_3に出力する。比較器42_3は、比較器42_1から出力されたカウント値と比較器42_2から出力されたカウント値のうち、小さい方のカウント値を最小値C_MINとして出力する。   The minimum value calculation unit 38 illustrated in FIG. 9 extracts the minimum value from the count values C_1 to C_4 and outputs the minimum value C_MIN to the subtractor 39. FIG. 12 is a block diagram illustrating an example of the minimum value calculation unit 38. The minimum value calculation unit 38 includes comparators 42_1 to 42_3. The comparator 42_1 receives the count values C_1 and C_2, and outputs the count value having the smaller count value to the comparator 42_3. The comparator 42_2 receives the count values C_3 and C_4, and outputs the count value having the smaller count value to the comparator 42_3. The comparator 42_3 outputs the smaller count value of the count value output from the comparator 42_1 and the count value output from the comparator 42_2 as the minimum value C_MIN.

図14は、比較器42_1の一例を示すブロック図である(比較器42_2、比較器42_2についても同様の構成である)。比較器42_1は、減算器45と判定部46とを有する。減算器45は、カウント値C_1とカウント値C_2とを入力し、カウント値C_1からカウント値C_2を減算した値を判定部46に出力する。判定部46は、入力された値が正の値である場合はカウント値C_2を出力し、入力された値が負の値である場合はカウント値C_1を出力する。カウント値が2ビットで表現されている場合、判定部46は、入力された値のMSB(Most Significant Bit)が"0"の場合はカウント値C_2を出力し、入力された値のMSBが"1"の場合はカウント値C_1を出力する。このとき、負の整数を2の補数で表すとMSBは"1"となる。   FIG. 14 is a block diagram illustrating an example of the comparator 42_1 (the comparator 42_2 and the comparator 42_2 have the same configuration). The comparator 42_1 includes a subtracter 45 and a determination unit 46. The subtracter 45 receives the count value C_1 and the count value C_2, and outputs a value obtained by subtracting the count value C_2 from the count value C_1 to the determination unit 46. The determination unit 46 outputs the count value C_2 when the input value is a positive value, and outputs the count value C_1 when the input value is a negative value. When the count value is expressed by 2 bits, the determination unit 46 outputs the count value C_2 when the MSB (Most Significant Bit) of the input value is “0”, and the MSB of the input value is “ In the case of 1 ", the count value C_1 is output. At this time, when the negative integer is represented by 2's complement, the MSB is “1”.

図9に示す減算器39は、最大値算出部37から出力された最大値C_MAXと最小値算出部38から出力された最小値C_MINとを入力し、最大値C_MAXから最小値C_MINを減算した値をばらつき値C_VARとして出力する。つまり、本実施の形態では、カウント値の最大値C_MAXとカウント値の最小値C_MINの差が大きい程、ばらつき値C_VARが大きくなる。一方、カウント値の最大値C_MAXとカウント値の最小値C_MINの差が小さい程、ばらつき値C_VARが小さくなる。   9 receives the maximum value C_MAX output from the maximum value calculator 37 and the minimum value C_MIN output from the minimum value calculator 38, and subtracts the minimum value C_MIN from the maximum value C_MAX. Is output as a variation value C_VAR. That is, in this embodiment, the variation value C_VAR increases as the difference between the maximum count value C_MAX and the minimum count value C_MIN increases. On the other hand, the smaller the difference between the maximum count value C_MAX and the minimum count value C_MIN, the smaller the variation value C_VAR.

なお、本実施の形態では、図10に示すばらつき値算出部21''を用いてもよい。図10に示すばらつき値算出部21''は、図9に示したばらつき値算出部21'に除算器40を加えている。つまり、本実施の形態では、カウント値の最大値C_MAXからカウント値の最小値C_MINを引いた値を、更にカウント値の平均値で除算した値((C_MAX−C_MIN)/C_AVE)をばらつき値として用いてもよい。   In the present embodiment, a variation value calculation unit 21 ″ shown in FIG. 10 may be used. The variation value calculation unit 21 ″ illustrated in FIG. 10 adds a divider 40 to the variation value calculation unit 21 ′ illustrated in FIG. That is, in this embodiment, a value obtained by subtracting the minimum value C_MIN of the count value from the maximum value C_MAX of the count value and further dividing by the average value of the count value ((C_MAX−C_MIN) / C_AVE) is used as the variation value. It may be used.

実施の形態1で説明したばらつき値算出部21では、ばらつき値として標準偏差を求めていた。このとき、自乗や平方根の演算を実施する必要があるため、ばらつき値算出部21の構成が比較的複雑となっていた(図5参照)。よって、カウント値C_1〜C_Nからばらつき値C_VARを算出する際の演算量が多くなり、演算に時間がかかる場合があった。   In the variation value calculation unit 21 described in the first embodiment, the standard deviation is obtained as the variation value. At this time, since it is necessary to calculate squares and square roots, the configuration of the variation value calculation unit 21 is relatively complicated (see FIG. 5). Therefore, the amount of calculation when calculating the variation value C_VAR from the count values C_1 to C_N increases, and the calculation sometimes takes time.

これに対して本実施の形態では、図9〜図14に示すように、比較的簡単な構成でばらつき値算出部21'を構成することができる。よって、カウント値C_1〜C_Nからばらつき値C_VARを算出する際の演算量を少なくすることができ、ばらつき値C_VARの算出にかかる時間を短縮することができる。   On the other hand, in this embodiment, as shown in FIGS. 9 to 14, the variation value calculation unit 21 ′ can be configured with a relatively simple configuration. Therefore, the amount of calculation when calculating the variation value C_VAR from the count values C_1 to C_N can be reduced, and the time required for calculating the variation value C_VAR can be shortened.

<実施の形態3>
次に、本発明の実施の形態3について説明する。実施の形態3にかかる半導体装置では、モニタ部の構成が実施の形態1で説明したモニタ部1_N(図2参照)と異なる。これ以外は実施の形態1と同様であるので、同一の構成要素には同一の符号を付し重複した説明は省略する。
<Embodiment 3>
Next, a third embodiment of the present invention will be described. In the semiconductor device according to the third embodiment, the configuration of the monitor unit is different from the monitor unit 1_N (see FIG. 2) described in the first embodiment. Since other than this is the same as that of the first embodiment, the same components are denoted by the same reference numerals, and redundant description is omitted.

図15は、本実施の形態にかかる半導体装置が備えるモニタ部60を示すブロック図である。図15に示すモニタ部60は、図1に示すモニタ部1_1〜1_Nの各々に対応している。すなわち、複数のモニタ部60が、内部回路3の複数の箇所に設けられている。図15に示すモニタ部60は、モニタ素子61(第1のモニタ素子)とモニタ素子62(第2のモニタ素子)とを有する。ここで、モニタ素子61、62は同一段数のリングオシレータを備える。   FIG. 15 is a block diagram showing a monitor unit 60 provided in the semiconductor device according to the present embodiment. A monitor unit 60 illustrated in FIG. 15 corresponds to each of the monitor units 1_1 to 1_N illustrated in FIG. That is, a plurality of monitor units 60 are provided at a plurality of locations in the internal circuit 3. The monitor unit 60 illustrated in FIG. 15 includes a monitor element 61 (first monitor element) and a monitor element 62 (second monitor element). Here, the monitor elements 61 and 62 include the same number of ring oscillators.

モニタ素子61は、NAND11と、複数のインバータINV11_1〜INV11_Nと、カウンタ63とを備える。ここで、NAND11および複数のインバータINV11_1〜INV11_Nはリングオシレータを構成し、偶数個のインバータINV11_1〜INV11_Nが直列に接続されている。   The monitor element 61 includes a NAND 11, a plurality of inverters INV11_1 to INV11_N, and a counter 63. Here, the NAND 11 and the plurality of inverters INV11_1 to INV11_N constitute a ring oscillator, and an even number of inverters INV11_1 to INV11_N are connected in series.

NAND11の一方の入力には制御部2から出力されたイネーブル信号EN_aが供給される。また、インバータINV11_Nの出力は、NAND11の他方の入力およびカウンタ63に出力される。カウンタ63には制御部2から出力されたリセット信号が供給される。カウンタ63のカウント値C_N_aは、モニタ部60が設けられた場所の特性を示す信号として制御部2に出力される。   An enable signal EN_a output from the control unit 2 is supplied to one input of the NAND 11. The output of the inverter INV11_N is output to the other input of the NAND 11 and the counter 63. A reset signal output from the control unit 2 is supplied to the counter 63. The count value C_N_a of the counter 63 is output to the control unit 2 as a signal indicating the characteristics of the place where the monitor unit 60 is provided.

モニタ素子62は、NAND12と、複数のインバータINV12_1〜INV12_Nと、カウンタ64とを備える。ここで、NAND12および複数のインバータINV12_1〜INV12_Nはリングオシレータを構成し、偶数個のインバータINV12_1〜INV12_Nが直列に接続されている。   The monitor element 62 includes a NAND 12, a plurality of inverters INV12_1 to INV12_N, and a counter 64. Here, the NAND 12 and the plurality of inverters INV12_1 to INV12_N constitute a ring oscillator, and an even number of inverters INV12_1 to INV12_N are connected in series.

NAND12の一方の入力には制御部2から出力されたイネーブル信号EN_bが供給される。また、インバータINV12_Nの出力は、NAND12の他方の入力およびカウンタ64に出力される。カウンタ64には制御部2から出力されたリセット信号が供給される。カウンタ64のカウント値C_N_bは、モニタ部60が設けられた場所の特性を示す信号として制御部2に出力される。   An enable signal EN_b output from the control unit 2 is supplied to one input of the NAND 12. The output of the inverter INV12_N is output to the other input of the NAND 12 and the counter 64. The counter 64 is supplied with a reset signal output from the control unit 2. The count value C_N_b of the counter 64 is output to the control unit 2 as a signal indicating the characteristics of the place where the monitor unit 60 is provided.

図16は、モニタ部60の動作を説明するためのタイミングチャートであり、モニタ素子61に供給されるイネーブル信号EN_aと、モニタ素子62に供給されるイネーブル信号EN_bの波形を示している。図16に示すように、モニタ素子61に供給されるイネーブル信号EN_aは、内部回路3の特性をモニタするモニタ期間にのみハイレベルとなる。つまり、モニタ素子61は、実施の形態1で説明したモニタ部1_Nと同様の動作をする。   FIG. 16 is a timing chart for explaining the operation of the monitor unit 60, and shows the waveforms of the enable signal EN_a supplied to the monitor element 61 and the enable signal EN_b supplied to the monitor element 62. As shown in FIG. 16, the enable signal EN_a supplied to the monitor element 61 is at a high level only during the monitoring period for monitoring the characteristics of the internal circuit 3. That is, the monitor element 61 operates in the same manner as the monitor unit 1_N described in the first embodiment.

これに対して、モニタ素子62に供給されるイネーブル信号EN_bは、モニタ期間以外においてもハイレベルとなっている。イネーブル信号EN_bがハイレベルとなっている期間、NAND12および複数のインバータINV12_1〜INV12_Nで構成されるリングオシレータは発振する。モニタ素子62が備えるリングオシレータは、モニタ素子61が備えるリングオシレータよりも発振している時間が長いため、モニタ素子62はモニタ素子61よりも早く劣化する。   On the other hand, the enable signal EN_b supplied to the monitor element 62 is at a high level even outside the monitoring period. During the period when the enable signal EN_b is at the high level, the ring oscillator composed of the NAND 12 and the plurality of inverters INV12_1 to INV12_N oscillates. Since the ring oscillator included in the monitor element 62 oscillates longer than the ring oscillator included in the monitor element 61, the monitor element 62 deteriorates faster than the monitor element 61.

このとき、イネーブル信号EN_bがハイレベルとなる期間を、内部回路3が備える回路の動作期間と近似させることで、内部回路3が備える回路の劣化状態を反映したカウント値C_N_bを出力することができる。   At this time, the count value C_N_b reflecting the deterioration state of the circuit included in the internal circuit 3 can be output by approximating the period during which the enable signal EN_b is at the high level to the operation period of the circuit included in the internal circuit 3. .

すなわち、内部回路3が備える回路の経時劣化が進んでいない場合は、同一のモニタ期間において、モニタ素子61のカウント値C_N_aとモニタ素子62のカウント値C_N_bはほぼ同一の値となる。一方、内部回路3が備える回路の経時劣化が進んでいる場合は、内部回路3が備える回路の劣化状態を反映したモニタ素子62のカウント値C_N_bと、モニタ期間のみ動作をするモニタ素子61のカウント値C_N_aとで、差異が生じる。よって、制御部2は、モニタ素子61のカウント値C_N_aとモニタ素子62のカウント値C_N_bとで差異が生じた場合は、モニタ素子62のカウント値C_N_bを用いることで、内部回路3が備える回路の経年劣化を反映した制御をすることができる。   That is, when the deterioration of the circuit included in the internal circuit 3 has not progressed with time, the count value C_N_a of the monitor element 61 and the count value C_N_b of the monitor element 62 are substantially the same value in the same monitoring period. On the other hand, when the deterioration of the circuit included in the internal circuit 3 is progressing, the count value C_N_b of the monitor element 62 reflecting the deterioration state of the circuit included in the internal circuit 3 and the count of the monitor element 61 that operates only during the monitoring period. There is a difference between the value C_N_a. Therefore, when there is a difference between the count value C_N_a of the monitor element 61 and the count value C_N_b of the monitor element 62, the control unit 2 uses the count value C_N_b of the monitor element 62, thereby Control reflecting aging deterioration can be performed.

例えば、内部回路3が備える回路の経時劣化によって回路素子の動作速度が遅くなった場合、モニタ素子62のカウント値C_N_bはモニタ素子61のカウント値C_N_aよりも小さくなる。この場合、制御部2は、モニタ素子62のカウント値C_N_bを用いることで、内部回路3に供給する電源電圧Vddを適切に制御することができる。換言すると、制御部2は、モニタ素子61に対してのモニタ素子62の遅延量が所定の値以上大きくなった場合、モニタ素子62のモニタ結果であるカウント値C_N_bを用いて比較値を設定することができる。   For example, when the operation speed of the circuit element becomes slow due to deterioration of the circuit included in the internal circuit 3, the count value C_N_b of the monitor element 62 becomes smaller than the count value C_N_a of the monitor element 61. In this case, the control unit 2 can appropriately control the power supply voltage Vdd supplied to the internal circuit 3 by using the count value C_N_b of the monitor element 62. In other words, when the delay amount of the monitor element 62 with respect to the monitor element 61 becomes larger than a predetermined value, the control unit 2 sets a comparison value using the count value C_N_b that is the monitor result of the monitor element 62. be able to.

以上で説明したように、本実施の形態にかかる半導体装置では、モニタ部60に、モニタ期間のみ動作するモニタ素子61と、モニタ期間以外にも動作するモニタ素子62とを設けている。そして、モニタ素子61のカウント値C_N_aとモニタ素子62のカウント値C_N_bとで差異が生じた場合、モニタ素子62のカウント値C_N_bを用いることで、内部回路3が備える回路の経年劣化を反映した制御をすることができる。   As described above, in the semiconductor device according to the present embodiment, the monitor unit 60 is provided with the monitor element 61 that operates only during the monitor period and the monitor element 62 that operates outside the monitor period. When there is a difference between the count value C_N_a of the monitor element 61 and the count value C_N_b of the monitor element 62, the control reflecting the aging of the circuit included in the internal circuit 3 by using the count value C_N_b of the monitor element 62 Can do.

<実施の形態4>
次に、本発明の実施の形態4について説明する。実施の形態4にかかる半導体装置では、モニタ部の構成が実施の形態1で説明したモニタ部1_N(図2参照)と異なる。これ以外は実施の形態1と同様であるので、同一の構成要素には同一の符号を付し重複した説明は省略する。
<Embodiment 4>
Next, a fourth embodiment of the present invention will be described. In the semiconductor device according to the fourth embodiment, the configuration of the monitor unit is different from the monitor unit 1_N (see FIG. 2) described in the first embodiment. Since other than this is the same as that of the first embodiment, the same components are denoted by the same reference numerals, and redundant description is omitted.

図17は、本実施の形態にかかる半導体装置が備えるモニタ部70を示すブロック図である。図17に示すモニタ部70は、図1に示すモニタ部1_1〜1_Nの各々に対応している。すなわち、複数のモニタ部70が、内部回路3の複数の箇所に設けられている。図15に示すモニタ部70は、モニタ素子71(第3のモニタ素子)とモニタ素子72(第4のモニタ素子)とを有する。   FIG. 17 is a block diagram showing a monitor unit 70 provided in the semiconductor device according to the present embodiment. A monitor unit 70 illustrated in FIG. 17 corresponds to each of the monitor units 1_1 to 1_N illustrated in FIG. That is, a plurality of monitor units 70 are provided at a plurality of locations in the internal circuit 3. The monitor unit 70 illustrated in FIG. 15 includes a monitor element 71 (third monitor element) and a monitor element 72 (fourth monitor element).

モニタ素子71は、NAND21と、複数のインバータINV21_1〜INV21_Nと、カウンタ73とを備える。ここで、NAND21および複数のインバータINV21_1〜INV21_Nはリングオシレータを構成し、偶数個のインバータINV21_1〜INV21_Nが直列に接続されている。   The monitor element 71 includes a NAND 21, a plurality of inverters INV21_1 to INV21_N, and a counter 73. Here, the NAND 21 and the plurality of inverters INV21_1 to INV21_N constitute a ring oscillator, and an even number of inverters INV21_1 to INV21_N are connected in series.

NAND21の一方の入力には制御部2から出力されたイネーブル信号EN_cが供給される。また、インバータINV21_Nの出力は、NAND21の他方の入力およびカウンタ73に出力される。カウンタ73には制御部2から出力されたリセット信号が供給される。カウンタ73のカウント値C_N_cは、モニタ部70が設けられた場所の特性を示す信号として制御部2に出力される。   An enable signal EN_c output from the control unit 2 is supplied to one input of the NAND 21. The output of the inverter INV21_N is output to the other input of the NAND 21 and the counter 73. The counter 73 is supplied with a reset signal output from the control unit 2. The count value C_N_c of the counter 73 is output to the control unit 2 as a signal indicating the characteristics of the place where the monitor unit 70 is provided.

モニタ素子72は、NAND22と、複数のインバータINV22_1〜INV22_Mと、カウンタ74とを備える。ここで、NAND22および複数のインバータINV22_1〜INV22_Mはリングオシレータを構成し、偶数個のインバータINV22_1〜INV22_Mが直列に接続されている。なお、MはNよりも大きい整数である。   The monitor element 72 includes a NAND 22, a plurality of inverters INV22_1 to INV22_M, and a counter 74. Here, the NAND 22 and the plurality of inverters INV22_1 to INV22_M constitute a ring oscillator, and an even number of inverters INV22_1 to INV22_M are connected in series. M is an integer larger than N.

NAND22の一方の入力には制御部2から出力されたイネーブル信号EN_dが供給される。また、インバータINV22_Mの出力は、NAND22の他方の入力およびカウンタ74に出力される。カウンタ74には制御部2から出力されたリセット信号が供給される。カウンタ74のカウント値C_N_dは、モニタ部70が設けられた場所の特性を示す信号として制御部2に出力される。   An enable signal EN_d output from the control unit 2 is supplied to one input of the NAND 22. The output of the inverter INV22_M is output to the other input of the NAND 22 and the counter 74. The counter 74 is supplied with a reset signal output from the control unit 2. The count value C_N_d of the counter 74 is output to the control unit 2 as a signal indicating the characteristics of the place where the monitor unit 70 is provided.

本実施の形態では、モニタ素子71に供給されるイネーブル信号EN_cとモニタ素子72に供給されるイネーブル信号EN_dは、同一の信号である。すなわち、モニタ素子71とモニタ素子72とが動作をするモニタ期間は同一の期間となる。しかし、モニタ素子71が備えるインバータの個数とモニタ素子72が備えるインバータの個数は異なるので、モニタ素子71から出力されるカウント値C_N_cとモニタ素子72から出力されるカウント値C_N_dは異なる。   In the present embodiment, the enable signal EN_c supplied to the monitor element 71 and the enable signal EN_d supplied to the monitor element 72 are the same signal. That is, the monitoring period during which the monitor element 71 and the monitor element 72 operate is the same period. However, since the number of inverters included in the monitor element 71 and the number of inverters included in the monitor element 72 are different, the count value C_N_c output from the monitor element 71 and the count value C_N_d output from the monitor element 72 are different.

ここで、内部回路3のばらつきの種類には、主に、システマティックばらつきとランダムばらつきがある。システマティックばらつきは比較的広い範囲におけるばらつきであり、例えば内部回路3の複数の箇所に設けられたモニタ部を用いて検出することができる。一方、ランダムばらつきは比較的狭い範囲におけるばらつきである。   Here, the types of variations of the internal circuit 3 mainly include systematic variations and random variations. The systematic variation is a variation in a relatively wide range, and can be detected using, for example, monitor units provided at a plurality of locations in the internal circuit 3. On the other hand, random variation is variation in a relatively narrow range.

本実施の形態では、モニタ部70に複数のモニタ素子71、72を設けることで、ランダムばらつきを検出することを可能にしている。すなわち、図17に示すように、本実施の形態では、インバータの個数が異なるモニタ素子を2つ設けている。具体的には、モニタ素子72のインバータINV22_1〜INV22_Mの個数を、モニタ素子71のインバータINV21_1〜INV21_Nの個数よりも多くしている。そして、モニタ素子72のカウント値C_N_dにインバータの段数比(N/M)を乗算した値と、モニタ素子71のカウント値C_N_cと、を比較することで、モニタ部におけるランダムばらつきを検出することができる。   In the present embodiment, by providing a plurality of monitor elements 71 and 72 in the monitor unit 70, it is possible to detect random variations. That is, as shown in FIG. 17, in this embodiment, two monitor elements having different numbers of inverters are provided. Specifically, the number of inverters INV22_1 to INV22_M of the monitor element 72 is made larger than the number of inverters INV21_1 to INV21_N of the monitor element 71. A random variation in the monitor unit can be detected by comparing a value obtained by multiplying the count value C_N_d of the monitor element 72 by the inverter stage number ratio (N / M) with the count value C_N_c of the monitor element 71. it can.

つまり、インバータの段数が多いモニタ素子72のカウント値C_N_dは、モニタ素子71が形成されているゲート数よりも多数のゲートのばらつきを反映したカウント値であるため、モニタ素子71のカウント値C_N_cよりも、ランダムばらつきの影響が少ない(ランダムばらつきはゲート段数の平方根の逆数に比例する)。よって、モニタ素子72のカウント値C_N_dにインバータの段数比(N/M)を乗算した値と、モニタ素子71のカウント値C_N_cとのばらつきの差が小さい場合は、ランダムばらつきが小さいと判断することができる。逆に、モニタ素子72のカウント値C_N_dにインバータの段数比(N/M)を乗算した値と、モニタ素子71のカウント値C_N_cとのばらつきの差が大きい場合は、ランダムばらつきが大きいと判断することができる。   In other words, the count value C_N_d of the monitor element 72 having a large number of inverter stages is a count value reflecting the variation of a larger number of gates than the number of gates on which the monitor element 71 is formed, and therefore the count value C_N_c of the monitor element 71. However, the influence of random variation is small (random variation is proportional to the reciprocal of the square root of the number of gate stages). Therefore, when the difference between the value obtained by multiplying the count value C_N_d of the monitor element 72 by the inverter stage number ratio (N / M) and the count value C_N_c of the monitor element 71 is small, it is determined that the random variation is small. Can do. Conversely, if the difference between the value obtained by multiplying the count value C_N_d of the monitor element 72 by the inverter stage number ratio (N / M) and the count value C_N_c of the monitor element 71 is large, it is determined that the random variation is large. be able to.

制御部2は、モニタ部におけるランダムばらつきも考慮して、比較部で使用される比較値COMPを決定することができる。つまり、複数のモニタ部のカウント値から得られたシステマティックばらつきと、各モニタ部の2つのモニタ素子から得られたランダムばらつきとを考慮して、比較部24で使用される比較値COMPを決定することができる。換言すると、制御部2は、モニタ素子71のモニタ結果とモニタ素子72のモニタ結果に基づき、モニタ部70における特性のばらつきを検出し、当該ばらつきに応じて比較値COMPを設定することができる。   The control unit 2 can determine the comparison value COMP used in the comparison unit in consideration of random variations in the monitor unit. That is, the comparison value COMP used in the comparison unit 24 is determined in consideration of the systematic variation obtained from the count values of the plurality of monitor units and the random variation obtained from the two monitor elements of each monitor unit. be able to. In other words, the control unit 2 can detect variation in characteristics in the monitor unit 70 based on the monitoring result of the monitoring element 71 and the monitoring result of the monitoring element 72, and set the comparison value COMP according to the variation.

本実施の形態にかかる半導体装置では、システマティックばらつきに加えて、ランダムばらつきも考慮して、比較部24で使用される比較値COMPを決定することができるので、内部回路に供給される電源電圧Vddをより適切に制御することができる。   In the semiconductor device according to the present embodiment, the comparison value COMP used in the comparison unit 24 can be determined in consideration of random variation in addition to systematic variation, and therefore the power supply voltage Vdd supplied to the internal circuit. Can be controlled more appropriately.

<実施の形態5>
次に、本発明の実施の形態5について説明する。実施の形態5にかかる半導体装置では、制御部の構成が実施の形態1で説明した制御部3(図3参照)と異なる。これ以外は実施の形態1と同様であるので、同一の構成要素には同一の符号を付し重複した説明は省略する。
<Embodiment 5>
Next, a fifth embodiment of the present invention will be described. In the semiconductor device according to the fifth embodiment, the configuration of the control unit is different from that of the control unit 3 (see FIG. 3) described in the first embodiment. Since other than this is the same as that of the first embodiment, the same components are denoted by the same reference numerals, and redundant description is omitted.

図18は、本実施の形態にかかる半導体装置が備える制御部80の一例を示すブロック図である。図18に示すように、制御部80は、比較値生成部81、モニタ値算出部22、レジスタ83、セレクタ84、および比較部24を備える。   FIG. 18 is a block diagram illustrating an example of the control unit 80 included in the semiconductor device according to the present embodiment. As illustrated in FIG. 18, the control unit 80 includes a comparison value generation unit 81, a monitor value calculation unit 22, a register 83, a selector 84, and a comparison unit 24.

比較値生成部81は、複数のモニタ部1_1〜1_Nにおけるカウント値C_1〜C_Nを入力し、これらのばらつき値(例えば、標準偏差(σ))に応じて、比較値を生成する。また、比較値生成部81には、内部回路に電源が供給されたタイミングを示すパワーオン信号PWR_ONが供給される。比較値生成部81は、例えば、パワーオン信号PWR_ONが入力されたタイミングで比較値を生成する。パワーオン信号PWR_ONは、例えば端子を介して外部から供給される。   The comparison value generation unit 81 receives the count values C_1 to C_N in the plurality of monitor units 1_1 to 1_N, and generates a comparison value according to these variation values (for example, standard deviation (σ)). Further, the comparison value generation unit 81 is supplied with a power-on signal PWR_ON indicating the timing when power is supplied to the internal circuit. The comparison value generator 81 generates a comparison value at the timing when the power-on signal PWR_ON is input, for example. The power-on signal PWR_ON is supplied from the outside through, for example, a terminal.

比較値生成部81で生成される比較値は、基本的には実施の形態1にかかる比較値A、比較値B、比較値C、・・・、と同様である。このとき、比較値生成部81は、内部回路の経年劣化を考慮して比較値を生成してもよく(実施の形態3参照)、また、システマティックばらつきに加えて、ランダムばらつきも考慮して比較値を生成してもよい(実施の形態4参照)。比較値生成部81で生成された比較値はセレクタ84に出力される。   The comparison value generated by the comparison value generation unit 81 is basically the same as the comparison value A, comparison value B, comparison value C,... According to the first embodiment. At this time, the comparison value generation unit 81 may generate a comparison value in consideration of the aging of the internal circuit (see Embodiment 3), and in addition to the systematic variation, the comparison value is also considered in consideration of random variation. A value may be generated (see Embodiment 4). The comparison value generated by the comparison value generation unit 81 is output to the selector 84.

レジスタ83には比較値(固定値)が格納されている。レジスタ83に格納されている比較値は、汎用的に使用できる比較値である。例えば、内部回路3の特性のばらつきが大きい場合を想定して、所定の性能を実現するための電圧の最大値V_maxsを高めに設定してある比較値である(図7の上図、図8の上図参照)。つまり、レジスタ83に格納されている比較値は、内部回路3の特性のばらつきが大きい場合を想定して、マージンを多めに確保している比較値である。レジスタ83に格納されている比較値(固定値)は、セレクタ84に出力される。   The register 83 stores a comparison value (fixed value). The comparison value stored in the register 83 is a comparison value that can be used for general purposes. For example, assuming that the variation in the characteristics of the internal circuit 3 is large, a comparison value in which the maximum value V_maxs of the voltage for realizing the predetermined performance is set higher (FIG. 7, upper diagram, FIG. 8). (See the above figure). That is, the comparison value stored in the register 83 is a comparison value that secures a large margin on the assumption that the variation in the characteristics of the internal circuit 3 is large. The comparison value (fixed value) stored in the register 83 is output to the selector 84.

セレクタ84は、選択信号SELに応じて、比較値生成部81で生成された比較値(可変値)またはレジスタ83に格納されている比較値(固定値)を選択し、選択された比較値COMPを比較部24に出力する。選択信号SELは、例えば端子を介して外部から供給されてもよく、また設定レジスタ(不図示)から供給されるようにしてもよい。   The selector 84 selects the comparison value (variable value) generated by the comparison value generation unit 81 or the comparison value (fixed value) stored in the register 83 according to the selection signal SEL, and selects the selected comparison value COMP. Is output to the comparator 24. The selection signal SEL may be supplied from the outside via, for example, a terminal, or may be supplied from a setting register (not shown).

図19A、図19Bは、本実施の形態にかかる制御部80の動作を説明するためのタイミングチャートである。図19Aに示すタイミングチャートでは、選択信号SELがハイレベルになった後に、パワーオン信号PWR_ONがハイレベルになる場合の動作を示している。また、図19Bに示すタイミングチャートでは、選択信号SELがハイレベルになる前に、パワーオン信号PWR_ONがハイレベルになる場合の動作を示している。   19A and 19B are timing charts for explaining the operation of the control unit 80 according to the present embodiment. The timing chart shown in FIG. 19A shows an operation when the power-on signal PWR_ON becomes high level after the selection signal SEL becomes high level. In the timing chart shown in FIG. 19B, an operation in the case where the power-on signal PWR_ON becomes high level before the selection signal SEL becomes high level is shown.

まず、図19Aに示すタイミングチャートについて説明する。初期状態において、選択信号SELおよびパワーオン信号PWR_ONはロウレベルとなっている。選択信号SELがロウレベルであるので、セレクタ84はレジスタ83に格納されている比較値(固定値)を選択している。タイミングt1において選択信号SELがロウレベルからハイレベルに遷移すると、セレクタ84は、比較値生成部81で生成された比較値(可変値)を選択する。このとき、セレクタ84から比較部24に比較値COMP1(比較値生成部81で更新される前の比較値)が出力される。その後、タイミングt2においてパワーオン信号PWR_ONがロウレベルからハイレベルに遷移すると、比較値生成部81は、カウント値C_1〜C_Nに基づき比較値を生成する。生成された比較値COMP2は、セレクタ84を介して比較部24に供給される。   First, the timing chart shown in FIG. 19A will be described. In the initial state, the selection signal SEL and the power-on signal PWR_ON are at a low level. Since the selection signal SEL is at the low level, the selector 84 selects the comparison value (fixed value) stored in the register 83. When the selection signal SEL transitions from the low level to the high level at the timing t1, the selector 84 selects the comparison value (variable value) generated by the comparison value generation unit 81. At this time, the selector 84 outputs the comparison value COMP1 (the comparison value before being updated by the comparison value generation unit 81) to the comparison unit 24. Thereafter, when the power-on signal PWR_ON transitions from the low level to the high level at timing t2, the comparison value generation unit 81 generates a comparison value based on the count values C_1 to C_N. The generated comparison value COMP2 is supplied to the comparison unit 24 via the selector 84.

次に、図19Bに示すタイミングチャートについて説明する。初期状態において、選択信号SELおよびパワーオン信号PWR_ONはロウレベルとなっている。選択信号SELがロウレベルであるので、セレクタ84はレジスタ83に格納されている比較値(固定値)を選択している。タイミングt11においてパワーオン信号PWR_ONがロウレベルからハイレベルに遷移すると、比較値生成部81は、カウント値C_1〜C_Nに基づき比較値を生成する。生成された比較値COMP2は、セレクタ84に出力される。その後、タイミングt12において選択信号SELがロウレベルからハイレベルに遷移すると、セレクタ84は比較値生成部81で生成された比較値COMP2を選択し、比較部24に比較値COMP2を出力する。   Next, the timing chart shown in FIG. 19B will be described. In the initial state, the selection signal SEL and the power-on signal PWR_ON are at a low level. Since the selection signal SEL is at the low level, the selector 84 selects the comparison value (fixed value) stored in the register 83. When the power-on signal PWR_ON transitions from the low level to the high level at timing t11, the comparison value generation unit 81 generates a comparison value based on the count values C_1 to C_N. The generated comparison value COMP2 is output to the selector 84. Thereafter, when the selection signal SEL transitions from the low level to the high level at the timing t12, the selector 84 selects the comparison value COMP2 generated by the comparison value generation unit 81 and outputs the comparison value COMP2 to the comparison unit 24.

図20は、本実施の形態にかかる半導体装置の動作を説明するためのフローチャートである。まず、制御部80は、割り込みがあったか否かを判断する(ステップS1)。つまり、パワーオン信号PWR_ONがハイレベルとなった場合に割り込みがあったと判断する。割り込みがあった場合(ステップS1:Yes)、制御部80は、モニタ結果を集計する(ステップS2)。つまり、制御部80は、各モニタ部1_1〜1_Nにおけるカウント値C_1〜C_Nを取得して集計する。その後、制御部80の比較値生成部81は、カウント値C_1〜C_Nを用いてばらつき値を計算し(ステップS3)、算出されたばらつき値に応じた比較値を生成する。このようにして比較値生成部81は比較値を更新する(ステップS4)。   FIG. 20 is a flowchart for explaining the operation of the semiconductor device according to the present embodiment. First, the control unit 80 determines whether or not an interrupt has occurred (step S1). That is, it is determined that an interrupt has occurred when the power-on signal PWR_ON is at a high level. When there is an interruption (step S1: Yes), the control unit 80 adds up the monitor results (step S2). That is, the control unit 80 acquires and counts the count values C_1 to C_N in the monitor units 1_1 to 1_N. Thereafter, the comparison value generation unit 81 of the control unit 80 calculates a variation value using the count values C_1 to C_N (step S3), and generates a comparison value corresponding to the calculated variation value. In this way, the comparison value generation unit 81 updates the comparison value (step S4).

比較部24は、比較値生成部81で生成(更新)された比較値COMPと、モニタ値算出部22で算出されたモニタ値C_AVEとを比較する(ステップS5)。モニタ値C_AVEが、比較値COMPの範囲内である場合(ステップS6:Yes)、電圧制御動作を終了して通常動作に復帰する。一方、モニタ値C_AVEが、比較値COMPの範囲外である場合(ステップS6:No)、比較部24は、モニタ値C_AVEが比較値COMPの範囲内となるように電源供給部4を制御する。   The comparison unit 24 compares the comparison value COMP generated (updated) by the comparison value generation unit 81 with the monitor value C_AVE calculated by the monitor value calculation unit 22 (step S5). When the monitor value C_AVE is within the range of the comparison value COMP (step S6: Yes), the voltage control operation is terminated and the normal operation is resumed. On the other hand, when the monitor value C_AVE is outside the range of the comparison value COMP (step S6: No), the comparison unit 24 controls the power supply unit 4 so that the monitor value C_AVE is within the range of the comparison value COMP.

以上で説明したように、本実施の形態にかかる半導体装置では、比較値生成部81において、フレキシブルに比較値を生成することができるので、内部回路に供給される電源電圧Vddをより適切に制御することができる。   As described above, in the semiconductor device according to the present embodiment, the comparison value generation unit 81 can flexibly generate a comparison value, so that the power supply voltage Vdd supplied to the internal circuit is more appropriately controlled. can do.

<実施の形態6>
次に、本発明の実施の形態6について説明する。実施の形態6にかかる半導体装置では、図21に示すように制御部80'にタイマ88を設けた点が実施の形態5で説明した制御部80と異なる。これ以外は実施の形態5と同様であるので、同一の構成要素には同一の符号を付し重複した説明は省略する。
<Embodiment 6>
Next, a sixth embodiment of the present invention will be described. The semiconductor device according to the sixth embodiment differs from the control unit 80 described in the fifth embodiment in that a timer 88 is provided in the control unit 80 ′ as shown in FIG. Since other than this is the same as that of the fifth embodiment, the same components are denoted by the same reference numerals, and redundant description is omitted.

内部回路3に搭載されている回路が使用時に起動する場合は、使用されるタイミング、つまり電源が供給されるタイミングにおいて、比較値を更新することができる。このとき、内部回路3に電源が供給されるタイミングを示すパワーオン信号PWR_ONを用いることで、比較値の更新のタイミングを設定することができる。   When the circuit mounted on the internal circuit 3 is activated during use, the comparison value can be updated at the timing of use, that is, the timing of power supply. At this time, the update timing of the comparison value can be set by using the power-on signal PWR_ON indicating the timing at which power is supplied to the internal circuit 3.

しかし、内部回路3に搭載されている回路の中には、一度電源が供給された後、電源を落とすことなく常に電源が供給され続ける回路もある。このような回路では、パワーオン信号PWR_ONを用いて比較値の更新のタイミングを設定することができない。   However, among the circuits mounted on the internal circuit 3, there is a circuit in which the power is continuously supplied without being turned off after the power is once supplied. In such a circuit, the timing for updating the comparison value cannot be set using the power-on signal PWR_ON.

そこで本実施の形態にかかる半導体装置では、制御部80'にタイマ88を設け、比較値の更新のタイミングを示す更新タイミング信号RNWを比較値生成部81に出力している。タイマ88は、例えばクロック信号が供給されるカウンタで構成することができる。   Therefore, in the semiconductor device according to the present embodiment, a timer 88 is provided in the control unit 80 ′, and an update timing signal RNW indicating the update timing of the comparison value is output to the comparison value generation unit 81. The timer 88 can be composed of a counter to which a clock signal is supplied, for example.

図22は、本実施の形態にかかる半導体装置の動作を説明するためのタイミングチャートである。初期状態では、選択信号SELがロウレベルであるので、セレクタ84はレジスタ83に格納されている比較値(固定値)を選択している。その後、タイミングt21において、選択信号SELがロウレベルからハイレベルに遷移する。これにより、セレクタ84は、比較値生成部81で生成された比較値(可変値)を選択する。このとき、セレクタ84から比較部24に比較値COMP1が出力される。   FIG. 22 is a timing chart for explaining the operation of the semiconductor device according to the present embodiment. Since the selection signal SEL is at the low level in the initial state, the selector 84 selects the comparison value (fixed value) stored in the register 83. Thereafter, at timing t21, the selection signal SEL transitions from the low level to the high level. Accordingly, the selector 84 selects the comparison value (variable value) generated by the comparison value generation unit 81. At this time, the comparison value COMP1 is output from the selector 84 to the comparison unit 24.

その後、タイミングt22において更新タイミング信号RNWがハイレベルになると、比較値生成部81は比較値を更新する。このとき、セレクタ84から比較部24に出力される比較値は比較値COMP1から比較値COMP2に更新される。更に、タイミングt23において更新タイミング信号RNWがハイレベルになると、比較値生成部81は比較値を更新する。このとき、セレクタ84から比較部24に出力される比較値は比較値COMP2から比較値COMP3に更新される。このように、比較値生成部81は、更新タイミング信号RNWがハイレベルになる毎に比較値を更新する。これ以外の動作は、実施の形態5の場合と同様である。   Thereafter, when the update timing signal RNW becomes high level at timing t22, the comparison value generation unit 81 updates the comparison value. At this time, the comparison value output from the selector 84 to the comparison unit 24 is updated from the comparison value COMP1 to the comparison value COMP2. Further, when the update timing signal RNW becomes high level at timing t23, the comparison value generation unit 81 updates the comparison value. At this time, the comparison value output from the selector 84 to the comparison unit 24 is updated from the comparison value COMP2 to the comparison value COMP3. In this way, the comparison value generation unit 81 updates the comparison value every time the update timing signal RNW becomes high level. Other operations are the same as those in the fifth embodiment.

<実施の形態7>
次に、本発明の実施の形態7について説明する。実施の形態7にかかる半導体装置では、制御部の構成が実施の形態1で説明した制御部3(図3参照)と異なる。これ以外は実施の形態1と同様であるので、同一の構成要素には同一の符号を付し重複した説明は省略する。
<Embodiment 7>
Next, a seventh embodiment of the present invention will be described. In the semiconductor device according to the seventh embodiment, the configuration of the control unit is different from that of the control unit 3 (see FIG. 3) described in the first embodiment. Since other than this is the same as that of the first embodiment, the same components are denoted by the same reference numerals, and redundant description is omitted.

図23は、本実施の形態にかかる半導体装置が備える制御部90を示す図である。本実施の形態では、制御部90にモニタ選択部93を新たに設けている。モニタ選択部93は、モニタ選択信号M_SELに応じて、モニタ部1_1〜1_Nの中から使用するモニタ部を選択する。すなわち、モニタ選択部93は、使用するモニタ部に対してハイレベルのイネーブル信号を出力することで、使用するモニタ部を選択することができる。ここで、モニタ選択信号M_SELは、例えば端子を介して外部から供給されてもよく、また設定レジスタ(不図示)から供給されるようにしてもよい。   FIG. 23 is a diagram illustrating the control unit 90 included in the semiconductor device according to the present embodiment. In the present embodiment, a monitor selection unit 93 is newly provided in the control unit 90. The monitor selection unit 93 selects a monitor unit to be used from the monitor units 1_1 to 1_N according to the monitor selection signal M_SEL. That is, the monitor selection unit 93 can select a monitor unit to be used by outputting a high-level enable signal to the monitor unit to be used. Here, the monitor selection signal M_SEL may be supplied from the outside via, for example, a terminal, or may be supplied from a setting register (not shown).

図24A、図24Bは、モニタ部の配置を説明するための図である。図24Aに示すモニタ部95、96は、図24Bに示すモニタ部97、98よりも多く配置されている。すなわち、図24Aに示すモニタ部95、96を用いることで、より正確に内部回路の特性をモニタすることができる。一方、モニタ部が多い場合は、モニタ部で得られたカウント値の演算処理に時間がかかるという問題がある。また、図24Bに示すモニタ部97、98の数は、図24Aに示すモニタ部95、96の数よりも少ないので、モニタ部で得られたカウント値の演算処理に比較的時間がかからないという利点がある。一方、モニタ部の数が少ないので、モニタの精度は図24Aに示す場合よりは劣る。   24A and 24B are diagrams for explaining the arrangement of the monitor units. The monitor units 95 and 96 shown in FIG. 24A are arranged more than the monitor units 97 and 98 shown in FIG. 24B. That is, the characteristics of the internal circuit can be monitored more accurately by using the monitor units 95 and 96 shown in FIG. 24A. On the other hand, when there are many monitor units, there is a problem that it takes time to calculate the count value obtained by the monitor units. In addition, since the number of the monitor units 97 and 98 shown in FIG. 24B is smaller than the number of the monitor units 95 and 96 shown in FIG. 24A, the calculation processing of the count value obtained by the monitor unit takes relatively long time. There is. On the other hand, since the number of monitor units is small, the accuracy of the monitor is inferior to that shown in FIG. 24A.

本実施の形態では、モニタ部の数が多い図24Aに示す組み合わせと、モニタ部の数が少ない図24Bに示す組み合わせとを、モニタ選択信号M_SELを用いて選択できるように構成することができる。よって、半導体装置を使用する使用者のニーズに応じて、モニタ部の組み合わせを変更することができる。   In this embodiment, the combination shown in FIG. 24A with a large number of monitor units and the combination shown in FIG. 24B with a small number of monitor units can be selected using the monitor selection signal M_SEL. Therefore, the combination of the monitor units can be changed according to the needs of the user who uses the semiconductor device.

また、本実施の形態では、ばらつき値算出部21で用いられるカウント値の数と、モニタ値算出部22で用いられるカウント値の数を、適宜変更することができる。すなわち、ばらつき値算出部21で算出されるばらつき値は比較値を決定するために用いられる。よって、より多くのモニタ部のカウント値を用いてばらつき値を算出したほうがより正確に比較値を決定することができる。一方、モニタ値算出部22で算出されるモニタ値は、内部回路における特性の変化をモニタするために用いられるため、モニタ値算出部22で用いられるカウント値の数は、ばらつき値算出部21で用いられるカウント値の数よりも少なくすることができる。   In the present embodiment, the number of count values used in the variation value calculation unit 21 and the number of count values used in the monitor value calculation unit 22 can be changed as appropriate. That is, the variation value calculated by the variation value calculation unit 21 is used to determine the comparison value. Therefore, the comparison value can be determined more accurately by calculating the variation value using the count values of more monitor units. On the other hand, since the monitor value calculated by the monitor value calculation unit 22 is used to monitor the change in characteristics in the internal circuit, the number of count values used by the monitor value calculation unit 22 is the variation value calculation unit 21. It can be less than the number of count values used.

よって、例えば図24Aに示す組み合わせのモニタ部を用いる場合は、ばらつき値算出部21でばらつき値を算出する際にモニタ部95およびモニタ部96(全てのモニタ部)を使用し、モニタ値算出部22でモニタ値を算出する際にモニタ部95のみ(斜線で示すモニタ部)を使用することができる。同様に、図24Bに示す組み合わせのモニタ部を用いる場合は、ばらつき値算出部21でばらつき値を算出する際にモニタ部97およびモニタ部98(全てのモニタ部)を使用し、モニタ値算出部22でモニタ値を算出する際にモニタ部97のみ(斜線で示すモニタ部)を使用することができる。   Therefore, for example, when using the combination of monitor units shown in FIG. 24A, the monitor unit 95 and the monitor unit 96 (all monitor units) are used when the variation value calculation unit 21 calculates the variation value, and the monitor value calculation unit When the monitor value is calculated at 22, only the monitor unit 95 (monitor unit indicated by oblique lines) can be used. Similarly, when the combination of monitor units shown in FIG. 24B is used, the monitor unit 97 and the monitor unit 98 (all monitor units) are used when the variation value calculation unit 21 calculates the variation value, and the monitor value calculation unit When the monitor value is calculated at 22, only the monitor unit 97 (the monitor unit indicated by oblique lines) can be used.

このように、本実施の形態では、制御部90にモニタ選択部93を設けることで、使用するモニタ部を使用状況等に応じて適宜選択することが可能になる。   As described above, in the present embodiment, the monitor selection unit 93 is provided in the control unit 90, so that the monitor unit to be used can be appropriately selected according to the use situation or the like.

<実施の形態8>
次に、本発明の実施の形態8について説明する。実施の形態8にかかる半導体装置では、モニタ部の構成が実施の形態1で説明したモニタ部1_N(図2参照)と異なる。これ以外は実施の形態1と同様であるので、同一の構成要素には同一の符号を付し重複した説明は省略する。
<Eighth embodiment>
Next, an eighth embodiment of the present invention will be described. In the semiconductor device according to the eighth embodiment, the configuration of the monitor unit is different from the monitor unit 1_N (see FIG. 2) described in the first embodiment. Since other than this is the same as that of the first embodiment, the same components are denoted by the same reference numerals, and redundant description is omitted.

図25は、本実施の形態にかかる半導体装置が備えるモニタ部の一例を示すブロック図である。図25に示すように、モニタ部101_Nは、フリップフロップFF1〜FF4と、クリティカルパスレプリカtcritと、遅延素子ta、tbとを有する。フリップフロップFF1は、クロック信号Tclkに応じて、入力されたデータをクリティカルパスレプリカtcritに出力する。クリティカルパスレプリカtcritは、内部回路3が備える回路における最も遅延の大きいパスを反映した遅延素子である。遅延素子ta、tbは所定の遅延値を備える遅延素子である。クリティカルパスレプリカtcrit、遅延素子ta、tbはそれぞれ互いに直列に接続されている。   FIG. 25 is a block diagram illustrating an example of a monitor unit included in the semiconductor device according to the present embodiment. As illustrated in FIG. 25, the monitor unit 101_N includes flip-flops FF1 to FF4, a critical path replica tcrit, and delay elements ta and tb. The flip-flop FF1 outputs the input data to the critical path replica tcrit according to the clock signal Tclk. The critical path replica tcrit is a delay element reflecting the path with the longest delay in the circuit included in the internal circuit 3. The delay elements ta and tb are delay elements having a predetermined delay value. The critical path replica tcrit and the delay elements ta and tb are connected to each other in series.

フリップフロップFF2は、クロック信号Tclkに応じて、遅延素子tbから出力されたデータを格納すると共に、制御部2に信号F_OUT_N_1を出力する。フリップフロップFF3は、クロック信号Tclkに応じて、遅延素子taから出力されたデータを格納すると共に、制御部2に信号F_OUT_N_2を出力する。フリップフロップFF2は、クロック信号Tclkに応じて、クリティカルパスレプリカtcritから出力されたデータを格納すると共に、制御部2に信号F_OUT_N_3を出力する。ここで、各フリップフロップから出力される信号F_OUT_N_1〜F_OUT_N_3は、モニタ部101_Nにおけるモニタ結果を示す信号である。   The flip-flop FF2 stores the data output from the delay element tb according to the clock signal Tclk, and outputs a signal F_OUT_N_1 to the control unit 2. The flip-flop FF3 stores the data output from the delay element ta according to the clock signal Tclk, and outputs a signal F_OUT_N_2 to the control unit 2. The flip-flop FF2 stores the data output from the critical path replica tcrit according to the clock signal Tclk, and outputs a signal F_OUT_N_3 to the control unit 2. Here, the signals F_OUT_N_1 to F_OUT_N_3 output from the flip-flops are signals indicating monitoring results in the monitor unit 101_N.

例えばクロックTclkが立ち上がる第1のタイミングで、フリップフロップFF1がデータ"1"を出力したとする。このとき、データ"1"は、クリティカルパスレプリカtcrit、遅延素子ta、tbを経由してフリップフロップFF2に到達する。そして、次にクロックTclkが立ち上がる第2のタイミングで、フリップフロップFF2にデータ"1"が格納される。この場合は、制御部2に信号F_OUT_N_1として"1"が出力される。しかし、クリティカルパスレプリカtcrit、遅延素子ta、tbにおける遅延が大きすぎる場合は、フリップフロップFF2にデータ"1"が到達する前に、クロックTclkが第2のタイミングで立ち上がるためフリップフロップFF2に格納されるデータは"0"となる。   For example, it is assumed that the flip-flop FF1 outputs data “1” at the first timing when the clock Tclk rises. At this time, the data “1” reaches the flip-flop FF2 via the critical path replica tcrit and the delay elements ta and tb. Then, at the second timing when the clock Tclk rises next, the data “1” is stored in the flip-flop FF2. In this case, “1” is output to the control unit 2 as the signal F_OUT_N_1. However, if the delay at the critical path replica tcrit and the delay elements ta and tb is too large, the clock Tclk rises at the second timing before the data “1” arrives at the flip-flop FF2, and is stored in the flip-flop FF2. Data becomes “0”.

同様に、クロックTclkが立ち上がる第1のタイミングで、フリップフロップFF1がデータ"1"を出力したとする。このとき、データ"1"は、クリティカルパスレプリカtcrit、遅延素子taを経由してフリップフロップFF3に到達する。そして、次にクロックTclkが立ち上がる第2のタイミングで、フリップフロップFF3にデータ"1"が格納される。この場合は、制御部2に信号F_OUT_N_2として"1"が出力される。しかし、クリティカルパスレプリカtcrit、遅延素子taにおける遅延が大きすぎる場合は、フリップフロップFF3にデータ"1"が到達する前に、クロックTclkが第2のタイミングで立ち上がるためフリップフロップFF3に格納されるデータは"0"となる。   Similarly, it is assumed that the flip-flop FF1 outputs data “1” at the first timing when the clock Tclk rises. At this time, the data “1” reaches the flip-flop FF3 via the critical path replica tcrit and the delay element ta. Then, at the second timing when the clock Tclk rises next, data “1” is stored in the flip-flop FF3. In this case, “1” is output to the control unit 2 as the signal F_OUT_N_2. However, when the delay at the critical path replica tcrit and the delay element ta is too large, the data stored in the flip-flop FF3 because the clock Tclk rises at the second timing before the data “1” arrives at the flip-flop FF3. Becomes "0".

同様に、クロックTclkが立ち上がる第1のタイミングで、フリップフロップFF1がデータ"1"を出力したとする。このとき、データ"1"は、クリティカルパスレプリカtcritを経由してフリップフロップFF4に到達する。そして、次にクロックTclkが立ち上がる第2のタイミングで、フリップフロップFF4にデータ"1"が格納される。この場合は、制御部2に信号F_OUT_N_3として"1"が出力される。しかし、クリティカルパスレプリカtcritにおける遅延が大きすぎる場合は、フリップフロップFF4にデータ"1"が到達する前に、クロックTclkが第2のタイミングで立ち上がるためフリップフロップFF4に格納されるデータは"0"となる。   Similarly, it is assumed that the flip-flop FF1 outputs data “1” at the first timing when the clock Tclk rises. At this time, the data “1” reaches the flip-flop FF4 via the critical path replica tcrit. Then, at the second timing when the clock Tclk rises next, the data “1” is stored in the flip-flop FF4. In this case, “1” is output to the control unit 2 as the signal F_OUT_N_3. However, if the delay in the critical path replica tcrit is too large, the data stored in the flip-flop FF4 is “0” because the clock Tclk rises at the second timing before the data “1” arrives at the flip-flop FF4. It becomes.

本実施の形態にかかる半導体装置では、各モニタ部101_Nから出力される信号F_OUT_N_1〜F_OUT_N_3の値(つまり、"0"または"1")を用いて、各モニタ部101_Nにおける遅延を検出することができる。具体的には、モニタ部101_Nから出力される各信号の値が(F_OUT_N_1、F_OUT_N_2、F_OUT_N_3)=(1、1、1)の場合、モニタ部101_Nにおける遅延が最も小さい。つまり、この場合は、クリティカルパスレプリカtcrit、遅延素子ta、tbを含むパス(遅延が最も大きいパス)を経由した場合であっても、データ"1"がフリップフロップFF2に到達しているので、モニタ部101_Nにおける遅延が小さいといえる。   In the semiconductor device according to this embodiment, the delay in each monitor unit 101_N can be detected using the values of signals F_OUT_N_1 to F_OUT_N_3 (that is, “0” or “1”) output from each monitor unit 101_N. it can. Specifically, when the value of each signal output from the monitor unit 101_N is (F_OUT_N_1, F_OUT_N_2, F_OUT_N_3) = (1, 1, 1), the delay in the monitor unit 101_N is the smallest. That is, in this case, even when the path includes the critical path replica tcrit and the delay elements ta and tb (path having the longest delay), the data “1” has reached the flip-flop FF2. It can be said that the delay in the monitor unit 101_N is small.

以降、モニタ部101_Nから出力される各信号の値が(F_OUT_N_1、F_OUT_N_2、F_OUT_N_3)=(0、1、1)、(F_OUT_N_1、F_OUT_N_2、F_OUT_N_3)=(0、0、1)、(F_OUT_N_1、F_OUT_N_2、F_OUT_N_3)=(0、0、0)となるにつれて、モニタ部101_Nにおける遅延が大きいといえる。   Thereafter, the values of the signals output from the monitor unit 101_N are (F_OUT_N_1, F_OUT_N_2, F_OUT_N_3) = (0, 1, 1), (F_OUT_N_1, F_OUT_N_2, F_OUT_N_3) = (0, 0, 1), (F_OUT_N_1, F_OUT_N_2) , F_OUT_N_3) = (0, 0, 0), it can be said that the delay in the monitor unit 101_N increases.

また、本実施の形態では、各モニタ部101_Nにおいて内部回路3の遅延を測定する際に、適宜、クロックTclkの周波数を変更してもよい。例えば、モニタ部101_Nから出力される各信号の値が(F_OUT_N_1、F_OUT_N_2、F_OUT_N_3)=(1、1、1)の場合、クロックTclkの周波数を高くすることで、(F_OUT_N_1、F_OUT_N_2、F_OUT_N_3)=(1、1、1)と(F_OUT_N_1、F_OUT_N_2、F_OUT_N_3)=(0、1、1)との境界を検出することができる。また、例えば、モニタ部101_Nから出力される各信号の値が(F_OUT_N_1、F_OUT_N_2、F_OUT_N_3)=(0、0、0)の場合、クロックTclkの周波数を低くすることで、(F_OUT_N_1、F_OUT_N_2、F_OUT_N_3)=(0、0、0)と(F_OUT_N_1、F_OUT_N_2、F_OUT_N_3)=(0、0、1)との境界を検出することができる。   In the present embodiment, when measuring the delay of the internal circuit 3 in each monitor unit 101_N, the frequency of the clock Tclk may be changed as appropriate. For example, when the value of each signal output from the monitor unit 101_N is (F_OUT_N_1, F_OUT_N_2, F_OUT_N_3) = (1, 1, 1), by increasing the frequency of the clock Tclk, (F_OUT_N_1, F_OUT_N_2, F_OUT_N_3) = A boundary between (1, 1, 1) and (F_OUT_N_1, F_OUT_N_2, F_OUT_N_3) = (0, 1, 1) can be detected. For example, when the value of each signal output from the monitor unit 101_N is (F_OUT_N_1, F_OUT_N_2, F_OUT_N_3) = (0, 0, 0), by reducing the frequency of the clock Tclk, (F_OUT_N_1, F_OUT_N_2, F_OUT_N_3) ) = (0, 0, 0) and (F_OUT_N_1, F_OUT_N_2, F_OUT_N_3) = (0, 0, 1) can be detected.

実施の形態1にかかる半導体装置と同様に、制御部2が備えるばらつき値算出部21は、モニタ部101_Nから出力された各信号の値(F_OUT_N_1、F_OUT_N_2、F_OUT_N_3)を用いて、ばらつき値C_VARを求めることができる。   Similar to the semiconductor device according to the first embodiment, the variation value calculation unit 21 included in the control unit 2 uses the values (F_OUT_N_1, F_OUT_N_2, F_OUT_N_3) of the signals output from the monitor unit 101_N to calculate the variation value C_VAR. Can be sought.

図26は、本実施の形態にかかる半導体装置の動作を説明するための図である。図26に示すように、制御部2は、クロック信号Tclkが上限の設定値tcrit+ta'+tb'よりも大きい場合は、電源供給部4から供給される電源電圧Vddを低くし、クロック信号Tclkが下限の設定値tcrit+ta'よりも小さい場合は、電源供給部4から供給される電源電圧Vddを高くする。このような制御により、クロック信号Tclkを下限の設定値tcrit+ta'と上限の設定値tcrit+ta'+tb'との間に収めることができる。   FIG. 26 is a diagram for explaining the operation of the semiconductor device according to the present embodiment. As shown in FIG. 26, when the clock signal Tclk is larger than the upper limit set value tcrit + ta ′ + tb ′, the control unit 2 lowers the power supply voltage Vdd supplied from the power supply unit 4 and the clock signal Tclk is lower than the lower limit. Is smaller than the set value tcrit + ta ′, the power supply voltage Vdd supplied from the power supply unit 4 is increased. By such control, the clock signal Tclk can be kept between the lower limit set value tcrit + ta ′ and the upper limit set value tcrit + ta ′ + tb ′.

ここで、設定値tcrit+ta'、設定値tcrit+ta'+tb'は制御目標となる遅延値である。遅延値ta'は遅延値taをばらつき値C_VARに応じて補正した値である。また、遅延値tb'は遅延値tbをばらつき値C_VARに応じて補正した値である。つまり、各モニタ部におけるばらつき値C_VARが大きい場合は、遅延値tb'として遅延値tbよりも大きな値を設定する。これにより、上限の設定値tcrit+ta'+tb'にマージンを持たせることができるので、より遅延が大きい場合であっても、適切に電源電圧を設定することができる。   Here, the set value tcrit + ta ′ and the set value tcrit + ta ′ + tb ′ are delay values that are control targets. The delay value ta ′ is a value obtained by correcting the delay value ta according to the variation value C_VAR. The delay value tb ′ is a value obtained by correcting the delay value tb according to the variation value C_VAR. That is, when the variation value C_VAR in each monitor unit is large, a value larger than the delay value tb is set as the delay value tb ′. Thus, since the upper limit set value tcrit + ta ′ + tb ′ can have a margin, the power supply voltage can be appropriately set even when the delay is larger.

一方、各モニタ部におけるばらつき値C_VARが小さい場合は、遅延値ta'として遅延値taに近い値を、また、遅延値tb'として遅延値tbに近い値を設定することができる。つまり、各モニタ部におけるばらつき値C_VARが小さい場合は、比較値に大きなマージンを設ける必要がないので、遅延値ta、tbに近い値を遅延値として設定することができる。よって、上限の設定値tcrit+ta'+tb'を小さくすることができるので、半導体装置の消費電力を低減することができる。   On the other hand, when the variation value C_VAR in each monitor unit is small, a value close to the delay value ta can be set as the delay value ta ′, and a value close to the delay value tb can be set as the delay value tb ′. That is, when the variation value C_VAR in each monitor unit is small, it is not necessary to provide a large margin for the comparison value, so that values close to the delay values ta and tb can be set as the delay value. Therefore, since the upper limit set value tcrit + ta ′ + tb ′ can be reduced, the power consumption of the semiconductor device can be reduced.

なお、本実施の形態にかかる半導体装置では、遅延素子として2つの遅延素子ta、tbを設けた場合について説明したが、遅延素子は3つ以上備えていてもよい。この場合、各遅延素子から出力されるデータを格納するためのフリップフロップを、それぞれの遅延素子に対応して設ける必要がある。   In the semiconductor device according to the present embodiment, the case where two delay elements ta and tb are provided as delay elements has been described, but three or more delay elements may be provided. In this case, it is necessary to provide a flip-flop for storing data output from each delay element corresponding to each delay element.

また、本実施の形態にかかる半導体装置では、モニタ部101_Nがクリティカルパスレプリカtcritを備える構成について説明した。しかし、本実施の形態にかかる半導体装置では、内部回路3の特性のばらつきをモニタするモニタ部として実施の形態1で説明したリングオシレータを備えるモニタ部を用い、内部回路3が備える回路の性能(遅延特性)をモニタするモニタ部として、本実施の形態で説明したクリティカルパスレプリカtcritを備えるモニタ部を用いてもよい。このように、内部回路3が備える回路の性能を検出するモニタ部として、クリティカルパスレプリカtcritを備えるモニタ部を用いることで、実際の回路に近い遅延特性を検出することができる。   In the semiconductor device according to the present embodiment, the configuration in which the monitor unit 101_N includes the critical path replica tcrit has been described. However, in the semiconductor device according to the present embodiment, the monitoring unit including the ring oscillator described in the first embodiment is used as a monitoring unit that monitors the variation in characteristics of the internal circuit 3, and the performance of the circuit included in the internal circuit 3 ( As a monitoring unit that monitors (delay characteristics), a monitoring unit including the critical path replica tcrit described in the present embodiment may be used. As described above, by using the monitor unit including the critical path replica tcrit as the monitor unit that detects the performance of the circuit included in the internal circuit 3, it is possible to detect delay characteristics close to those of the actual circuit.

以上、本発明を上記実施形態に即して説明したが、上記実施形態の構成にのみ限定されるものではなく、本願特許請求の範囲の請求項の発明の範囲内で当業者であればなし得る各種変形、修正、組み合わせを含むことは勿論である。   The present invention has been described with reference to the above embodiment, but is not limited to the configuration of the above embodiment, and can be made by those skilled in the art within the scope of the invention of the claims of the present application. It goes without saying that various modifications, corrections, and combinations are included.

1_1〜1_N モニタ部
2 制御部
3 内部回路
4 電源供給部
11 リングオシレータ
12 カウンタ
13 遅延素子
21 ばらつき値算出部
22 モニタ値算出部
23 レジスタ
24 比較部
26_1〜26_3 比較値
1_1 to 1_N Monitor unit 2 Control unit 3 Internal circuit 4 Power supply unit 11 Ring oscillator 12 Counter 13 Delay element 21 Variation value calculation unit 22 Monitor value calculation unit 23 Register 24 Comparison unit 26_1 to 26_3 Comparison value

Claims (16)

内部回路に電源を供給する電源供給部と、
前記内部回路の複数の場所における特性をモニタする複数のモニタ部と、
前記複数のモニタ部から出力された信号に基づき算出されたモニタ値と、設定された比較値との比較結果に応じて前記電源供給部を制御する制御部と、を備え、
前記比較値は、前記モニタ値の上限値に対応した第1の設定値と前記モニタ値の下限値に対応した第2の設定値とを含み、
前記制御部は、前記複数のモニタ部における特性のばらつきが小さくなるにつれて、前記第1の設定値が小さくなるように、且つ前記第1の設定値と前記第2の設定値との間隔が狭くなるように前記第1および第2の設定値を設定する、
半導体装置。
A power supply for supplying power to the internal circuit;
A plurality of monitoring units for monitoring characteristics at a plurality of locations of the internal circuit;
A control unit that controls the power supply unit according to a comparison result between a monitor value calculated based on signals output from the plurality of monitor units and a set comparison value;
The comparison value includes a first set value corresponding to the upper limit value of the monitor value and a second set value corresponding to the lower limit value of the monitor value;
The controller is configured such that the first set value is reduced and the interval between the first set value and the second set value is narrowed as the variation in characteristics of the plurality of monitor units is reduced. Setting the first and second set values to be
Semiconductor device.
前記モニタ部の各々は、リングオシレータと、当該リングオシレータが所定の期間内に発振する回数を測定するカウンタと、を備え、
前記制御部は、前記複数のモニタ部におけるカウント値のばらつきに応じて前記比較値を設定すると共に、当該設定された比較値と前記複数のモニタ部から出力された前記カウント値に基づき算出されたモニタ値との比較結果に応じて前記電源供給部を制御する、
請求項1に記載の半導体装置。
Each of the monitor units includes a ring oscillator and a counter that measures the number of times that the ring oscillator oscillates within a predetermined period.
The control unit sets the comparison value according to variations in count values in the plurality of monitor units, and is calculated based on the set comparison value and the count values output from the plurality of monitor units. Controlling the power supply unit according to the comparison result with the monitor value;
The semiconductor device according to claim 1 .
前記比較値は、前記モニタ値の上限値に対応した第1のカウント値と前記モニタ値の下限値に対応した第2のカウント値とを含み、
前記制御部は、前記複数のモニタ部におけるカウント値のばらつきが小さくなるにつれて、前記第1のカウント値が小さくなるように、且つ前記1のカウント値と前記第2のカウント値の間隔が狭くなるように前記1および第2のカウント値を設定する、
請求項に記載の半導体装置。
The comparison value includes a first count value corresponding to the upper limit value of the monitor value and a second count value corresponding to the lower limit value of the monitor value,
The control unit reduces the first count value and decreases the interval between the first count value and the second count value as the variation of the count values in the plurality of monitor units decreases. Setting the first and second count values to be
The semiconductor device according to claim 2 .
前記モニタ値は、前記複数のモニタ部におけるカウント値の平均値である、請求項2または3に記載の半導体装置。 The semiconductor device according to claim 2 , wherein the monitor value is an average value of count values in the plurality of monitor units. 前記複数のモニタ部におけるカウント値のばらつきは、前記複数のモニタ部におけるカウント値の標準偏差に基づき決定される、請求項2または3に記載の半導体装置。 4. The semiconductor device according to claim 2 , wherein variation in the count values in the plurality of monitor units is determined based on a standard deviation of the count values in the plurality of monitor units. 前記複数のモニタ部におけるカウント値のばらつきは、前記複数のモニタ部におけるカウント値の最大値と最小値の差に基づき決定される、請求項2または3に記載の半導体装置。 4. The semiconductor device according to claim 2 , wherein variations in the count values in the plurality of monitor units are determined based on a difference between a maximum value and a minimum value of the count values in the plurality of monitor units. 前記複数のモニタ部におけるカウント値のばらつきは、前記複数のモニタ部におけるカウント値の最大値と最小値の差を前記複数のモニタ部におけるカウント値の平均値で除算した値に基づき決定される、請求項2または3に記載の半導体装置。 The variation of the count values in the plurality of monitor units is determined based on a value obtained by dividing the difference between the maximum value and the minimum value of the count values in the plurality of monitor units by the average value of the count values in the plurality of monitor units. The semiconductor device according to claim 2 . 前記モニタ部は各々、同一段数のリングオシレータを含む第1および第2のモニタ素子を備え、
前記第1のモニタ素子は前記内部回路の特性をモニタするモニタ期間においてのみ動作をし、前記第2のモニタ素子は前記モニタ期間以外にも動作をし、
前記制御部は、前記第1のモニタ素子のモニタ結果と前記第2のモニタ素子のモニタ結果とに基づき前記内部回路の経年劣化を検出する、
請求項1乃至のいずれか一項に記載の半導体装置。
Each of the monitor units includes first and second monitor elements including the same number of ring oscillators,
The first monitor element operates only in a monitor period for monitoring the characteristics of the internal circuit, and the second monitor element operates in a period other than the monitor period,
The controller detects aged deterioration of the internal circuit based on a monitoring result of the first monitoring element and a monitoring result of the second monitoring element;
The semiconductor device according to any one of claims 1 to 7.
前記制御部は、前記第1のモニタ素子に対しての前記第2のモニタ素子の遅延量が所定の値以上大きくなった場合、前記第2のモニタ素子のモニタ結果を用いて前記比較値を設定する、請求項に記載の半導体装置。 When the delay amount of the second monitor element with respect to the first monitor element is larger than a predetermined value, the control unit uses the monitor result of the second monitor element to calculate the comparison value. The semiconductor device according to claim 8, which is set. 前記モニタ部は各々、所定の段数のリングオシレータを備える第3のモニタ素子と、当該第3のモニタ素子が備えるリングオシレータよりも段数の多いリングオシレータを備える第4のモニタ素子とを有し、
前記制御部は、前記第3のモニタ素子のモニタ結果と前記第4のモニタ素子のモニタ結果とに基づき前記モニタ部における特性のばらつきを検出し、当該ばらつきに応じて前記比較値を設定する、
請求項1乃至のいずれか一項に記載の半導体装置。
Each of the monitor units includes a third monitor element including a ring oscillator having a predetermined number of stages, and a fourth monitor element including a ring oscillator having more stages than the ring oscillator included in the third monitor element,
The control unit detects a variation in characteristics in the monitor unit based on a monitoring result of the third monitoring element and a monitoring result of the fourth monitoring element, and sets the comparison value according to the variation.
The semiconductor device according to any one of claims 1 to 7.
前記制御部は、前記内部回路の電源がオン状態となる度に前記比較値を更新する、請求項1乃至10のいずれか一項に記載の半導体装置。 Wherein the control unit, the power supply of the internal circuit updates the comparison value every time the ON state, the semiconductor device according to any one of claims 1 to 10. 前記制御部は、前記内部回路の電源がオン状態となった後、所定の時間が経過する度に前記比較値を更新する、請求項1乃至10のいずれか一項に記載の半導体装置。 Wherein, after the power of the internal circuit is turned on, and updates the comparison value every time a predetermined time passes, the semiconductor device according to any one of claims 1 to 10. 前記制御部は、前記複数のモニタ部の中から使用するモニタ部を選択するモニタ選択部を更に備える、請求項1乃至12のいずれか一項に記載の半導体装置。 Wherein the control unit further comprises a monitor selector for selecting a monitor unit to be used from among the plurality of monitor portions, the semiconductor device according to any one of claims 1 to 12. 前記制御部は、前記モニタ値を算出する際に用いられるモニタ部の数が前記比較値を設定する際に用いられるモニタ部の数よりも少なくなるように前記モニタ部を選択する、請求項13に記載の半導体装置。 Wherein the control unit, the monitoring unit is selected to be less than the number of the monitor unit to be used when the number of monitor sets the comparison value used in calculating the monitor value, claim 13 A semiconductor device according to 1. 前記モニタ部の各々は、
所定のクロック信号に応じて動作する第1のフリップフロップと、
前記第1のフリップフロップから出力されたデータに遅延を与えるクリティカルパスレプリカおよび複数の遅延素子と、
前記クリティカルパスレプリカから出力されたデータ、および前記複数の遅延素子の各々から出力されたデータをそれぞれ格納する、前記所定のクロック信号に応じて動作する複数の第2のフリップフロップと、を備え、
前記制御部は、前記複数の第2のフリップフロップから出力される各々のデータに応じて前記内部回路の特性をモニタする、
請求項1に記載の半導体装置。
Each of the monitor units
A first flip-flop that operates in response to a predetermined clock signal;
A critical path replica for delaying data output from the first flip-flop and a plurality of delay elements;
A plurality of second flip-flops that operate in response to the predetermined clock signal, each storing data output from the critical path replica and data output from each of the plurality of delay elements,
The control unit monitors the characteristics of the internal circuit according to each data output from the plurality of second flip-flops.
The semiconductor device according to claim 1 .
内部回路への電源供給方法であって、
前記内部回路の複数の場所における特性をモニタし、
前記複数の場所におけるモニタ結果に基づきモニタ値を算出し、
前記複数の場所におけるモニタ結果のばらつきに応じて比較値を設定し、
前記モニタ値と前記設定された比較値との比較結果に応じて前記内部回路に供給される電源を制御
前記比較値は、前記モニタ値の上限値に対応した第1の設定値と前記モニタ値の下限値に対応した第2の設定値とを含み、
前記比較値を設定する際、前記複数のモニタ部における特性のばらつきが小さくなるにつれて、前記第1の設定値が小さくなるように、且つ前記第1の設定値と前記第2の設定値との間隔が狭くなるように前記第1および第2の設定値を設定する、
電源供給方法。
A method of supplying power to an internal circuit,
Monitor the characteristics of the internal circuit at multiple locations;
Calculate monitor values based on the monitor results at the plurality of locations,
Set a comparison value according to the variation in the monitoring results in the plurality of locations,
Controls the power supply to be supplied to the internal circuit in response to a result of comparison between the set comparison value and the monitor value,
The comparison value includes a first set value corresponding to the upper limit value of the monitor value and a second set value corresponding to the lower limit value of the monitor value;
When setting the comparison value, the first setting value and the second setting value are reduced so that the first setting value decreases as the variation in characteristics of the plurality of monitor units decreases. Setting the first and second set values so that the interval is narrow;
Power supply method.
JP2011228012A 2011-10-17 2011-10-17 Semiconductor device and power supply method Expired - Fee Related JP5890998B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011228012A JP5890998B2 (en) 2011-10-17 2011-10-17 Semiconductor device and power supply method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011228012A JP5890998B2 (en) 2011-10-17 2011-10-17 Semiconductor device and power supply method

Publications (2)

Publication Number Publication Date
JP2013089725A JP2013089725A (en) 2013-05-13
JP5890998B2 true JP5890998B2 (en) 2016-03-22

Family

ID=48533355

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011228012A Expired - Fee Related JP5890998B2 (en) 2011-10-17 2011-10-17 Semiconductor device and power supply method

Country Status (1)

Country Link
JP (1) JP5890998B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10659014B2 (en) * 2017-10-13 2020-05-19 Samsung Electronics Co., Ltd. Clock control in semiconductor system
KR102376653B1 (en) * 2017-10-13 2022-03-21 삼성전자주식회사 Semiconductor device and semiconductor system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008099032A (en) * 2006-10-12 2008-04-24 Matsushita Electric Ind Co Ltd Semiconductor integrated circuit device
JP2008141013A (en) * 2006-12-01 2008-06-19 Matsushita Electric Ind Co Ltd Semiconductor device
US8281158B2 (en) * 2007-05-30 2012-10-02 Lapis Semiconductor Co., Ltd. Semiconductor integrated circuit
JP2010087275A (en) * 2008-09-30 2010-04-15 Panasonic Corp Semiconductor integrated circuit and electronic device
JP5524568B2 (en) * 2009-10-23 2014-06-18 ルネサスエレクトロニクス株式会社 Semiconductor device and method for designing semiconductor device
JP5529555B2 (en) * 2010-01-20 2014-06-25 ルネサスエレクトロニクス株式会社 Semiconductor integrated circuit and operating voltage control method
JP5442471B2 (en) * 2010-01-25 2014-03-12 ルネサスエレクトロニクス株式会社 Semiconductor integrated circuit and electronic equipment

Also Published As

Publication number Publication date
JP2013089725A (en) 2013-05-13

Similar Documents

Publication Publication Date Title
US9939839B2 (en) Low power automatic calibration method for high frequency oscillators
EP3127239B1 (en) Aging sensor for an integrated circuit
US9628089B1 (en) Supply voltage tracking clock generator in adaptive clock distribution systems
US8368457B2 (en) Semiconductor integrated circuit device and method for controlling power supply voltage
US8994447B2 (en) Voltage regulation method and corresponding HPM, chip, and chip system
US9182768B2 (en) Voltage optimization circuit and managing voltage margins of an integrated circuit
US20180232033A1 (en) System and method for dynamically adjusting voltage frequency
JP2014509018A (en) Semiconductor device with on-chip voltage regulator
US11309898B2 (en) Semiconductor integrated circuit
US8937511B2 (en) Frequency scaling of variable speed systems for fast response and power reduction
JP2014052969A (en) Clock frequency controller and semiconductor device
TW201205262A (en) Method and system for controlling a supply voltage
US10411683B2 (en) Information processing device, information processing method, and computer-readable recording medium
JP5890998B2 (en) Semiconductor device and power supply method
US10461721B2 (en) Semiconductor apparatus, degradation value determination system and processing system
JP2013012003A (en) Data processing device and data processing system
US9685965B2 (en) Electronic circuit for controlling an oscillator, and related method
KR101297413B1 (en) Adaptive clock generating apparatus and method thereof
US9383759B2 (en) Voltage monitoring system
KR20070099181A (en) Power management system and method thereof
TW202213947A (en) Clock circuit and methof for clocking a cpu
US9455708B2 (en) Dynamically adjustable circuit with circuit of characterized-path and method for generating circuit of characterized-path
JP2017017671A (en) Electronic circuit, and method of controlling oscillator
De Energy efficient computing in nanoscale CMOS: Challenges and opportunities
JP2008520014A (en) Apparatus and method for controlling voltage and frequency using a plurality of reference circuits

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140822

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151023

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151027

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151126

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160222

R150 Certificate of patent or registration of utility model

Ref document number: 5890998

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees