# Patent

## Title
Circuit for sensing on-die temperature at multiple locations

## Abstract

A circuit for sensing on-die temperature at multiple locations using a minimum number of pins is described. Thermal diodes coupled to pins are placed on a die to measure the temperature at various die locations. Voltage is applied to the pins to determine the temperature at each given diode location. The polarity of the voltage applied across the pins determines what diodes are selected for measurement.

## Background
FIELD OF THE INVENTION
The present invention pertains to the field of integrated circuit design. More particularly, the present invention relates to a circuit for sensing temperature at multiple locations on a silicon die using a minimum number of integrated circuit terminals.
BACKGROUND OF THE INVENTION
An integrated circuit (IC) is a device consisting of a number of connected circuit elements, such as transistors and resistors, fabricated on a single chip of silicon crystal or other semiconductor material. During operation, an IC burns power causing the temperature of the IC to increase. An overheated IC can potentially result in reduced performance and even failure.
ICs, however, are typically packaged in such a way that it is difficult to directly measure the temperature at the active part of the die using a thermocouple or other external measuring device. As a result, the standard method for measuring the die temperature of an IC is to incorporate a thermal diode with known thermal characteristics into the design of the IC.
Thermal diodes are typically the base-emitter junction of a substrate connected PNP transistor. This junction may be modeled using the ideal diode equation. The equation of an ideal diode is: 



  
    
      
        i
        =
        
          
            I
            s
          
          ⁡
          
            (
            
              
                e
                
                  vq
                  nkT
                
              
              -
              1
            
            )
          
        
      
    
    
      
        (
        
          equation
          ⁢
          
            
          
          ⁢
          1
        
        )
      
    
  




where i is the forward biased current through the diode, Is is the saturation current of the diode, v is the voltage drop across the diode, q is the charge of an electron, n is an ideality factor, k is Boltzmann's Constant, and T is the temperature in Kelvin. The ideality factor n is constant for a given process technology. A range for this number is typically available in its product data sheet.

To measure the die temperature using a diode, the terminals of the diode are coupled to IC terminals. By applying a current i to the diode, the voltage drop v across the diode is measured at the terminals. For this measurement, the IC may or may not be running. By measuring the voltage drop at two different currents, i1 and i2, at constant temperature T, the value Is is cancelled out as shown in the equation: 



  
    
      
        
          
            i
            1
          
          
            i
            2
          
        
        =
        
          
            
              
                I
                s
              
              ⁡
              
                (
                
                  
                    e
                    
                      
                        
                          v
                          1
                        
                        ⁢
                        q
                      
                      knT
                    
                  
                  -
                  1
                
                )
              
            
            
              
                I
                s
              
              ⁡
              
                (
                
                  
                    e
                    
                      
                        
                          v
                          2
                        
                        ⁢
                        q
                      
                      knT
                    
                  
                  -
                  1
                
                )
              
            
          
          =
          
            
              
                
                  e
                  
                    
                      
                        v
                        1
                      
                      ⁢
                      q
                    
                    knT
                  
                
                -
                1
              
              
                
                  e
                  
                    
                      
                        v
                        2
                      
                      ⁢
                      q
                    
                    knT
                  
                
                -
                1
              
            
            .
          
        
      
    
    
      
        (
        
          equation
          ⁢
          
            
          
          ⁢
          2
        
        )
      
    
  




Equation 2 may be simplified by removing the 1's since they are negligible. Thus, the equation becomes: 



  
    
      
        
          
            i
            1
          
          
            i
            2
          
        
        =
        
          
            
              e
              
                
                  
                    v
                    1
                  
                  ⁢
                  q
                
                knT
              
            
            
              e
              
                
                  
                    v
                    2
                  
                  ⁢
                  q
                
                knT
              
            
          
          .
        
      
    
    
      
        (
        
          equation
          ⁢
          
            
          
          ⁢
          3
        
        )
      
    
  




Given that the ratio of the currents is constant, the temperature is directly proportional to the difference in the two measured voltage drops, v1 and v2: 



  
    ln
    ⁡
    
      (
      
        
          i
          1
        
        
          i
          2
        
      
      )
    
  
  =
  
    
      ln
      ⁡
      
        (
        
          
            e
            
              
                
                  v
                  1
                
                ⁢
                q
              
              knT
            
          
          
            e
            
              
                
                  v
                  2
                
                ⁢
                q
              
              knT
            
          
        
        )
      
    
    =
    
      
        
          ln
          ⁡
          
            (
            
              e
              
                
                  
                    v
                    1
                  
                  ⁢
                  q
                
                knT
              
            
            )
          
        
        -
        
          ln
          ⁡
          
            (
            
              e
              
                
                  
                    v
                    2
                  
                  ⁢
                  q
                
                knT
              
            
            )
          
        
      
      =
      
        
          
            
              v
              1
            
            ⁢
            q
          
          knT
        
        -
        
          
            
              v
              2
            
            ⁢
            q
          
          knT
        
      
    
  




Solving for T: 



  
    
      
        T
        =
        
          
            (
            
              q
              
                kn
                ⁢
                
                  
                
                ⁢
                
                  ln
                  ⁡
                  
                    (
                    
                      
                        i
                        1
                      
                      
                        i
                        2
                      
                    
                    )
                  
                
              
            
            )
          
          ⁢
          
            
              (
              
                
                  v
                  1
                
                -
                
                  v
                  2
                
              
              )
            
            .
          
        
      
    
    
      
        (
        
          equation
          ⁢
          
            
          
          ⁢
          4
        
        )
      
    
  




Equation 4, however, does not include the effective series resistance, Rs, of the diode. Typically, long traces are a primary source of effective series resistance. Placing the diode near IC terminals would help to reduce series resistance. In reality, however, the diode is often a distance from the IC terminals due to area constraints. Because the effective series resistance may be substantial in an IC such as a microprocessor, it would be desirable to include its effects in the temperature calculation.
In addition, as the trend in IC design continues toward smaller chips, the power density increases and becomes less uniform. This causes the thermal gradients across the die to become greater. As a result, even though previous ICs were able to suffice with a single thermal diode at a single location on the die, future ICs may require multiple thermal diodes in order to map out the thermal profile in better detail.
Because IC terminals are at a premium on chips, the addition of thermal diodes beyond the first one may be cost prohibitive. Therefore, it would be desirable for a circuit to allow for the placement of multiple thermal diodes on the die while minimizing the number of IC terminals used.



BRIEF DESCRIPTION OF THE DRAWINGS
The embodiments of the present invention are illustrated by way of example and not in the figures of the accompanying drawings, in which like references indicate similar elements and in which:
FIG. 1 is one embodiment of a circuit for sensing on die temperature at multiple locations;
FIG. 2 is one embodiment of a system that measures die temperatures; and
FIG. 3 is a flowchart for calculating the temperature at a die location.



DETAILED DESCRIPTION
In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the invention. However, it will be understood by those skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the present invention.
The use of multiple thermal diodes allow for the determination of thermal gradients on an IC. Multiple diodes may be used to measure die temperature without having to use two times the number of IC terminals per diode by taking advantage of the diodes' electrical properties. A diode has an anode terminal and a cathode terminal. Current flows primarily from the anode terminal of the diode to the cathode terminal.
Therefore, if two diodes having opposite polarity (terminals are flipped with respect to one another) are placed between two parallel conducting wires of differing voltages, current will only flow through the diode having its anode terminal connected to the wire having the higher voltage and its cathode terminal connected to the wire having the lower voltage. The other diode will not conduct because it will be reverse biased. Because the leakage current of the reverse biased diode is substantially smaller than the current passing through the forward biased diode, the leakage current is negligible.
Taking advantage of this theory, FIG. 1 depicts one embodiment of the invention. The circuit of FIG. 1 has six diodes (101–106) and three IC terminals (121–123). Depending on the packaging used, the IC terminals 121–123 may be implemented as bumps or pins. Diodes 101 and 102 are coupled to IC terminals 121 and 122. Diodes 103 and 104 are coupled to IC terminals 122 and 123. Diodes 105 and 106 are coupled to IC terminals 121 and 123.
Each of the diodes 101–106 has an anode terminal, a cathode terminal, and a clamping voltage of approximately 0.7 volts (V). When two voltages are applied to a diode such that the cathode terminal is coupled to a higher voltage than the anode terminal, a forward biased current is generated across that diode.
As an example, if 0.7 V is applied to IC terminal 121, 0 V is applied to IC terminal 123, and IC terminal 122 is left in a high impedance state such that no current flows into or out of IC terminal 122, a forward biased current will flow through diode 106. Because diode 105 has the opposite polarity as diode 106, diode 105 is reverse biased. Thus, no current will flow across diode 105.
Note that diodes 102 and 104 will also be forward biased. However, because only 0.7 volts is applied across IC terminals 121 and 123, the forward biased current traveling through diodes 102 and 104 are orders of magnitude less than the current traveling through diode 106. As a result, the current measured across the IC terminals 121 and 123 will predominately reflect the forward biased current traveling through diode 106. From the current measurement, the temperature at diode 106 may be calculated. The temperature calculation process is depicted in FIG. 3 and described below.
From FIG. 1 and the example above, it can be seen that a pair of diodes having opposite polarity may be placed between each set of IC terminals. Specifically, the number of diodes that may be used on an IC may be defined by the equation:

D=N*(N−1)  (equation 5)

where D is the number of diodes and N is the number of IC terminals.

FIG. 2 depicts one embodiment of a system that uses thermal diodes to prevent an IC from overheating. For this embodiment of the invention, IC 100 has a plurality of diodes distributed throughout the chip to measure temperatures. Signals 210 and 220 are diode measurements obtained from IC 100. A temperature sensing circuit 230 is coupled to integrated circuit 100 and calculates temperatures based upon signals 210 and 220. If the calculated temperature is greater than a predetermined threshold value, the temperature sensing circuit 230 reduces the power of integrated circuit 100.
For another embodiment of the invention, the temperature sensing circuit 230 is manufactured on the same die as integrated circuit 100.
A process for calculating IC temperatures is depicted in FIG. 3. In operation 310, a plurality of diodes is placed on an IC to determine temperatures of the IC. The number of diodes on the IC may be approximately equal to n*(n−1), where n is the number of IC terminals.
In operation 320, the diodes are calibrated to determine their electrical characteristics across a range of possible operating temperatures. The calibration helps to determine voltage or current values that may be safely applied to a thermal diode. Calibration may be accomplished by soaking the die in a chemical bath at different temperatures. Moreover, the effective series resistance of the diode is also calibrated. As stated above, the effective series resistance of diodes may be caused by long traces. For one embodiment of the invention, the traces are copper wires. For another embodiment of the invention, the traces are aluminum wires.
The resistance of copper and aluminum wires vary with temperature. Thus, the relationship of the trace resistivity and its corresponding temperature may be defined by a curve. This curve may have a known series resistance value Rs0 at a temperature T0, a known series resistance value ρ0 at 0 Kelvin, and a slope M. Series resistance Rs may be represented by: 



  
    
      
        
          
            R
            S
          
          =
          
            
              R
              S0
            
            (
            
              1
              +
              
                
                  T
                  -
                  
                    T
                    0
                  
                
                
                  
                    T
                    0
                  
                  +
                  
                    
                      ρ
                      0
                    
                    m
                  
                
              
            
            )
          
        
        ,
        
          *
          All
          ⁢
          
            
          
          ⁢
          temperatures
          ⁢
          
            
          
          ⁢
          are
          ⁢
          
            
          
          ⁢
          in
          ⁢
          
            
          
          ⁢
          
            Kelvin
            .
          
        
      
    
    
      
        (
        
          equation
          ⁢
          
            
          
          ⁢
          6
        
        )
      
    
  




Following operation 320, a known current i1 is sent through a diode on the IC in operation 330. The current is sent through the diode through an IC terminal and allowed to return via another IC terminal. As previously discussed, it is possible to have two diodes having opposite polarity coupled between any two IC terminals. Thus, the selected diode is determined by which IC terminal the current is sourced since current will not conduct across a reverse biased diode.
The voltage drop v1 is then measured across the diode's terminals in operation 340. A second set of current and voltage values, i2 and v2, may then be obtained. To calculate the temperature of the diode in operation 350, the voltage drop across the diode may be represented by: 



  
    
      
        v
        =
        
          
            
              (
              
                nkT
                q
              
              )
            
            ⁢
            
              ln
              ⁡
              
                (
                
                  i
                  
                    I
                    s
                  
                
                )
              
            
          
          +
          
            i
            ·
            
              R
              S
            
          
        
      
    
    
      
        (
        
          equation
          ⁢
          
            
          
          ⁢
          7
        
        )
      
    
  




which includes the effective series resistance. Accordingly, the temperature equation of equation 4 may be rewritten as: 



  
    
      
        T
        =
        
          
            (
            
              q
              
                kn
                ⁢
                
                  
                
                ⁢
                
                  ln
                  ⁡
                  
                    (
                    
                      
                        i
                        1
                      
                      
                        i
                        2
                      
                    
                    )
                  
                
              
            
            )
          
          ⁢
          
            
              (
              
                
                  v
                  1
                
                -
                
                  v
                  2
                
                -
                
                  
                    R
                    S
                  
                  ⁡
                  
                    (
                    
                      
                        i
                        1
                      
                      -
                      
                        i
                        2
                      
                    
                    )
                  
                
              
              )
            
            .
          
        
      
    
    
      
        (
        
          equation
          ⁢
          
            
          
          ⁢
          8
        
        )
      
    
  




Equation 8 assumes that the series resistance of the trace is approximately equal in temperature as the diode being measured. Equation 8 may be rewritten as: 



  
    
      
        T
        =
        
          
            
              (
              
                q
                
                  kn
                  ⁢
                  
                    
                  
                  ⁢
                  
                    ln
                    ⁡
                    
                      (
                      
                        
                          i
                          1
                        
                        
                          i
                          2
                        
                      
                      )
                    
                  
                
              
              )
            
            ⁢
            
              (
              
                
                  v
                  1
                
                -
                
                  v
                  2
                
              
              )
            
          
          -
          
            
              (
              
                
                  qR
                  S
                
                
                  kn
                  ⁢
                  
                    
                  
                  ⁢
                  
                    ln
                    ⁡
                    
                      (
                      
                        
                          i
                          1
                        
                        
                          i
                          2
                        
                      
                      )
                    
                  
                
              
              )
            
            ⁢
            
              
                (
                
                  
                    i
                    1
                  
                  -
                  
                    i
                    2
                  
                
                )
              
              .
            
          
        
      
    
    
      
        (
        
          equation
          ⁢
          
            
          
          ⁢
          9
        
        )
      
    
  




From equation 6, Rs, may alternatively be represented by: 



  
    
      
        
          R
          S
        
        =
        
          
            
              R
              S0
            
            (
            
              1
              +
              
                
                  T
                  0
                
                
                  
                    T
                    0
                  
                  +
                  
                    
                      ρ
                      0
                    
                    m
                  
                
              
            
            )
          
          +
          
            
              T
              (
              
                
                  R
                  S0
                
                
                  
                    T
                    0
                  
                  +
                  
                    
                      ρ
                      0
                    
                    M
                  
                
              
              )
            
            .
          
        
      
    
    
      
        (
        
          equation
          ⁢
          
            
          
          ⁢
          10
        
        )
      
    
  




The equation 10 can be substituted into equation 9 such that 



  T
  =
  
    
      
        (
        
          q
          
            kn
            ⁢
            
              
            
            ⁢
            
              ln
              ⁡
              
                (
                
                  
                    i
                    1
                  
                  
                    i
                    2
                  
                
                )
              
            
          
        
        )
      
      ⁢
      
        (
        
          
            v
            1
          
          -
          
            v
            2
          
        
        )
      
    
    -
    
      
        (
        
          q
          
            kn
            ⁢
            
              
            
            ⁢
            
              ln
              ⁡
              
                (
                
                  
                    i
                    1
                  
                  
                    i
                    2
                  
                
                )
              
            
          
        
        )
      
      ⁢
      
        (
        
          
            i
            1
          
          -
          
            i
            2
          
        
        )
      
      ⁢
      
        (
        
          
            
              R
              S0
            
            (
            
              1
              -
              
                
                  T
                  0
                
                
                  
                    T
                    0
                  
                  +
                  
                    
                      ρ
                      0
                    
                    M
                  
                
              
            
            )
          
          +
          
            T
            (
            
              
                R
                S0
              
              
                
                  T
                  0
                
                +
                
                  
                    ρ
                    0
                  
                  M
                
              
            
            )
          
        
        )
      
    
  




Resolve for T: 



  
    
      
        
          
            
              
                
                  
                    T
                    =
                    
                    ⁢
                    
                      
                        
                          (
                          
                            q
                            
                              kn
                              ⁢
                              
                                
                              
                              ⁢
                              
                                ln
                                ⁡
                                
                                  (
                                  
                                    
                                      i
                                      1
                                    
                                    
                                      i
                                      2
                                    
                                  
                                  )
                                
                              
                            
                          
                          )
                        
                        ⁢
                        
                          (
                          
                            
                              v
                              1
                            
                            -
                            
                              v
                              2
                            
                          
                          )
                        
                      
                      -
                      
                        
                          (
                          
                            q
                            
                              kn
                              ⁢
                              
                                
                              
                              ⁢
                              
                                ln
                                ⁡
                                
                                  (
                                  
                                    
                                      i
                                      1
                                    
                                    
                                      i
                                      2
                                    
                                  
                                  )
                                
                              
                            
                          
                          )
                        
                        ⁢
                        
                          (
                          
                            
                              i
                              1
                            
                            -
                            
                              i
                              2
                            
                          
                          )
                        
                        ⁢
                        
                          (
                          
                            R
                            S0
                          
                          )
                        
                        ⁢
                        
                          (
                          
                            1
                            -
                            
                              
                                T
                                0
                              
                              
                                
                                  T
                                  0
                                
                                +
                                
                                  
                                    ρ
                                    0
                                  
                                  M
                                
                              
                            
                          
                          )
                        
                      
                      -
                      
                        
                          T
                          (
                          
                            
                              R
                              S0
                            
                            
                              
                                T
                                0
                              
                              +
                              
                                
                                  ρ
                                  0
                                
                                M
                              
                            
                          
                          )
                        
                        ⁢
                        
                        ⁢
                        
                          (
                          
                            q
                            
                              kn
                              ⁢
                              
                                
                              
                              ⁢
                              
                                ln
                                ⁡
                                
                                  (
                                  
                                    
                                      i
                                      1
                                    
                                    
                                      i
                                      2
                                    
                                  
                                  )
                                
                              
                            
                          
                          )
                        
                        ⁢
                        
                          (
                          
                            
                              i
                              1
                            
                            -
                            
                              i
                              2
                            
                          
                          )
                        
                      
                    
                  
                
              
              
                
                  
                    
                      T
                      (
                      
                        1
                        +
                        
                          
                            (
                            
                              
                                R
                                S0
                              
                              
                                
                                  T
                                  0
                                
                                +
                                
                                  
                                    ρ
                                    0
                                  
                                  M
                                
                              
                            
                            )
                          
                          ⁢
                          
                            (
                            
                              q
                              
                                kn
                                ⁢
                                
                                  
                                
                                ⁢
                                
                                  ln
                                  ⁡
                                  
                                    (
                                    
                                      
                                        i
                                        1
                                      
                                      
                                        i
                                        2
                                      
                                    
                                    )
                                  
                                
                              
                            
                            )
                          
                          ⁢
                          
                            (
                            
                              
                                i
                                1
                              
                              -
                              
                                i
                                2
                              
                            
                            )
                          
                        
                      
                      )
                    
                    =
                    
                      
                        
                          (
                          
                            q
                            
                              kn
                              ⁢
                              
                                
                              
                              ⁢
                              
                                ln
                                ⁡
                                
                                  (
                                  
                                    
                                      i
                                      1
                                    
                                    
                                      i
                                      2
                                    
                                  
                                  )
                                
                              
                            
                          
                          )
                        
                        ⁢
                        
                          (
                          
                            
                              v
                              1
                            
                            -
                            
                              v
                              2
                            
                          
                          )
                        
                      
                      -
                      
                        
                          (
                          
                            q
                            
                              kn
                              ⁢
                              
                                
                              
                              ⁢
                              
                                ln
                                ⁡
                                
                                  (
                                  
                                    
                                      i
                                      1
                                    
                                    
                                      i
                                      2
                                    
                                  
                                  )
                                
                              
                            
                          
                          )
                        
                        ⁢
                        
                          (
                          
                            
                              i
                              1
                            
                            -
                            
                              i
                              2
                            
                          
                          )
                        
                        ⁢
                        
                          (
                          
                            R
                            S0
                          
                          )
                        
                        ⁢
                        
                          (
                          
                            1
                            -
                            
                              
                                T
                                0
                              
                              
                                
                                  T
                                  0
                                
                                +
                                
                                  
                                    ρ
                                    0
                                  
                                  M
                                
                              
                            
                          
                          )
                        
                      
                    
                  
                
              
            
          
        
        
          
            
              T
              =
              
                
                  
                    
                    ⁢
                    
                      
                        
                          (
                          
                            q
                            
                              kn
                              ⁢
                              
                                
                              
                              ⁢
                              
                                ln
                                ⁡
                                
                                  (
                                  
                                    
                                      i
                                      1
                                    
                                    
                                      i
                                      2
                                    
                                  
                                  )
                                
                              
                            
                          
                          )
                        
                        ⁢
                        
                          (
                          
                            
                              v
                              1
                            
                            -
                            
                              v
                              2
                            
                          
                          )
                        
                      
                      -
                      
                        
                          (
                          
                            q
                            
                              kn
                              ⁢
                              
                                
                              
                              ⁢
                              
                                ln
                                ⁡
                                
                                  (
                                  
                                    
                                      i
                                      1
                                    
                                    
                                      i
                                      2
                                    
                                  
                                  )
                                
                              
                            
                          
                          )
                        
                        ⁢
                        
                          (
                          
                            
                              i
                              1
                            
                            -
                            
                              i
                              2
                            
                          
                          )
                        
                        ⁢
                        
                          (
                          
                            R
                            S0
                          
                          )
                        
                        ⁢
                        
                          (
                          
                            1
                            -
                            
                              
                                T
                                0
                              
                              
                                
                                  T
                                  0
                                
                                +
                                
                                  
                                    ρ
                                    0
                                  
                                  M
                                
                              
                            
                          
                          )
                        
                      
                    
                  
                  
                    1
                    +
                    
                      
                        (
                        
                          
                            R
                            S0
                          
                          
                            
                              T
                              0
                            
                            +
                            
                              
                                ρ
                                0
                              
                              M
                            
                          
                        
                        )
                      
                      ⁢
                      
                        (
                        
                          q
                          
                            kn
                            ⁢
                            
                              
                            
                            ⁢
                            
                              ln
                              ⁡
                              
                                (
                                
                                  
                                    i
                                    1
                                  
                                  
                                    i
                                    2
                                  
                                
                                )
                              
                            
                          
                        
                        )
                      
                      ⁢
                      
                        (
                        
                          
                            i
                            1
                          
                          -
                          
                            i
                            2
                          
                        
                        )
                      
                    
                  
                
                .
              
            
          
        
      
    
    
      
        (
        
          equation
          ⁢
          
            
          
          ⁢
          11
        
        )
      
    
  




Alternatively, equation 11 can be expressed as: 



  
    
      
        
          
            
              T
              =
              
                
                  
                    (
                    
                      
                        v
                        1
                      
                      -
                      
                        v
                        2
                      
                    
                    )
                  
                  -
                  
                    
                      (
                      
                        
                          i
                          1
                        
                        -
                        
                          i
                          2
                        
                      
                      )
                    
                    ⁢
                    
                      (
                      
                        R
                        S0
                      
                      )
                    
                    ⁢
                    
                      (
                      
                        1
                        -
                        
                          
                            T
                            0
                          
                          a
                        
                      
                      )
                    
                  
                
                
                  
                    1
                    g
                  
                  +
                  
                    
                      (
                      
                        
                          R
                          S0
                        
                        α
                      
                      )
                    
                    ⁢
                    
                      (
                      
                        
                          i
                          1
                        
                        -
                        
                          i
                          2
                        
                      
                      )
                    
                  
                
              
            
          
        
        
          
            
              
                
                  where
                  ⁢
                  
                    
                  
                  ⁢
                  a
                
                =
                
                  
                    T
                    0
                  
                  +
                  
                    
                      ρ
                      0
                    
                    M
                  
                
              
              ,
              
                g
                =
                
                  
                    q
                    
                      kn
                      ⁢
                      
                        
                      
                      ⁢
                      
                        ln
                        ⁡
                        
                          (
                          
                            
                              i
                              1
                            
                            
                              i
                              2
                            
                          
                          )
                        
                      
                    
                  
                  .
                
              
            
          
        
      
    
    
      
        (
        
          equation
          ⁢
          
            
          
          ⁢
          12
        
        )
      
    
  




Equation 12 compensates for effective series resistance and effective series resistance changes due to thermal variation. Note that the values v1 and v2 were obtained based on i1 and i2 inputs. The values for R0, T0, ρ0, and M were obtained during the series resistance calibration of operation 320. By substituting these values into equation 12, the temperature T of the diode may be calculated.

After the temperature calculation, operation 360 determines whether there are further temperature measurement requests. If there are further measurement requests, a first known current and a second known current are sent through another diode in operation 330, the voltage is measured across the diode's terminals in operation 340, and the temperature is calculated in operation 350. Otherwise, the process is terminated in operation 370.
For another embodiment of the invention, only one known current is sent through a diode. The voltage is then measured and translated into a temperature by applying a linear approximation. The equation of the linear approximation may be determined by characterizing many parts to determine the average voltage response to temperature at a given current.
For yet another embodiment of the invention, instead of sending a known current through a diode and measuring the voltage across the diode's terminals as in operations 330 and 340 of FIG. 3, a known voltage source is placed across a diode's terminals in operation 330 and the corresponding current is measured in operation 340. The remaining operations of FIG. 3 remain the same.
In the foregoing specification the invention has been described with reference to specific exemplary embodiments thereof. It will, however, be evident that various modification and changes may be made thereto without departure from the broader spirit and scope of the invention as set forth in the appended claims. The specification and drawings are, accordingly, to be regarded in an illustrative rather than restrictive sense.

## Claims

1. An apparatus comprising: an integrated circuit (IC) having
a first, second, and third IC terminal;
a first diode to measure a first temperature at a first location on the IC, wherein an anode terminal of the first diode is coupled to the first IC terminal and a cathode terminal of the first diode is coupled to the second IC terminal;
a second diode to measure a second temperature at a second location on the IC, which is spaced apart from the first location, wherein the second diode is coupled between the first and second IC terminals in an opposite polarity of the first diode;
a third diode to measure a third temperature at a third location on the IC, which is spaced apart from the first and second locations, wherein the anode terminal of the third diode is coupled to the second IC terminal and a cathode terminal of the third diode is coupled to the third IC terminal; and
a fourth diode to measure a fourth temperature at a fourth location on the IC, which is spaced apart from the first, second, and third locations, wherein the fourth diode is coupled between the second and third IC terminals in the opposite polarity of the third diode.

2. The circuit of claim 1, further comprising:
a fifth diode having an anode terminal and a cathode terminal, wherein the anode terminal is coupled to the first IC terminal and the cathode terminal is coupled to the third IC terminal.

3. The circuit of claim 2, further comprising:
a sixth diode having an anode terminal and a cathode terminal, wherein the anode terminal is coupled to the third IC terminal and the cathode terminal is coupled to the first IC terminal.

4. A system comprising:
an integrated circuit (IC);
n number of pins coupled to the IC for measuring temperature, wherein n is an integer greater than or equal to three;
d number of diodes coupled to the n pins, each of the d number of diodes to measure a temperature at a separate location on the integrated circuit, wherein d is an integer equal to n*(n−1), wherein any two of the n pins has two diodes having opposite polarity coupled between them; and
a power source coupled to the IC, wherein the power source supplies a voltage to the IC.

5. The system of claim 4, further comprising:
a temperature sensing circuit coupled to the IC to calculate a temperature of the IC.

6. The system of claim 5, wherein the temperature sensing circuit reduces the voltage supplied to the IC if the calculated IC temperature is greater than a predetermined value.

7. The system of claim 4, wherein the IC is a microprocessor.

8. An apparatus comprising:
an integrated circuit (IC) having at least a first bump, a second bump, and a third bump, wherein a first and second diode are coupled between the first and second bumps to have opposite polarity, and wherein a third and fourth diode are coupled between the second and third bumps to have opposite polarity;
each of the diodes distributed on the IC to measure a temperature at a different location.

9. The apparatus of claim 8, wherein the integrated circuit further comprises a fifth and a sixth diode coupled between the first and third bumps to have opposite polarity, both of the fifth and sixth diodes distributed on the IC to measure temperature at a different location.

10. The apparatus of claim 9 further comprising a temperature sensing circuit to apply current to the first, second, and third bumps and to measure temperatures based on voltage drops.

11. The apparatus of claim 10 wherein a location to measure a temperature is selected by the temperature sensing circuit by applying current to a bump coupled to an anode terminal of one of the six diodes at the selected location.