42
Implementation of On-chip Thermal Sensor using Off-Leakage Current of a Transistor A THESIS SUBMITTED TO THE FACULTY OF THE GRADUATE SCHOOL OF THE UNIVERSITY OF MINNESOTA BY Hussain Firoz Dalal IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF MASTER OF SCIENCE Chris H. Kim, Adviser January 2010

Implementation of On-chip Thermal Sensor using Off-Leakage

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Implementation of On-chip Thermal Sensor using Off-Leakage

Implementation of On-chip Thermal Sensor using Off-Leakage Current of a Transistor

A THESIS SUBMITTED TO THE FACULTY OF THE GRADUATE SCHOOL

OF THE UNIVERSITY OF MINNESOTA BY

Hussain Firoz Dalal

IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF MASTER OF SCIENCE

Chris H. Kim, Adviser

January 2010

Page 2: Implementation of On-chip Thermal Sensor using Off-Leakage

© Hussain Firoz Dalal 2010

Page 3: Implementation of On-chip Thermal Sensor using Off-Leakage

Table of Contents 

Table of Figures .................................................................................................................. ii I. Introduction ..................................................................................................................... 1 II. Effect of Variations ........................................................................................................ 4 III. Preliminary Analysis ..................................................................................................... 6 IV. Proposed Circuit ......................................................................................................... 10 

a. Block Level and Theoretical Explanation ................................................................ 10 b. Circuit Schematics and Design ................................................................................ 16 

V. Calibration .................................................................................................................... 23 a. Non Idealities ........................................................................................................... 23 b. Resolution ................................................................................................................ 24 c. On-Chip Thermal Diode ........................................................................................... 25 d. Steps for Calibration ................................................................................................ 27 

VI. I/O Signals and Circuit Operation .............................................................................. 29 VII. Simulation Results ..................................................................................................... 31 VIII. Beagle Thermal Sensor Layout ................................................................................ 33 IX. Conclusion .................................................................................................................. 36 X. References .................................................................................................................... 37 

i

Page 4: Implementation of On-chip Thermal Sensor using Off-Leakage

List of Figures 

 FIGURE 1. LATERAL PNP TRANSISTOR BASED SCHEME .................................................................. 2 FIGURE 2. A NOVEL BUILT-IN CMOS SENSOR FOR ONLINE THEMAL MONITORING OF VLSI

CIRCUIT ................................................................................................................................... 2 FIGURE 3.DELAY LINE BASED SENSOR DESIGN................................................................................ 3 FIGURE 4. A 1.1V 35ΜM × 35ΜM THERMAL SENSOR WITH SUPPLY VOLTAGE SENSITIVITY OF

2ºC/10%-SUPPLY FOR THERMAL MANAGEMENT ON THE SX-9 SUPERCOMPUTER .................. 6 FIGURE 5. EQUIVALENT CIRCUIT FOR FIGURE 4 .............................................................................. 7 FIGURE 6. (A) CIRCUIT FOR THE CASE WHEN REFERENCE VOLTAGE IS INDEPENDENT OF SUPPLY

VOLTAGE. ................................................................................................................................ 8 FIGURE 7. 2X VARIATION IN TRIPPING TIME FOR IDEAL REFERENCE (BLUE CURVE) COMPARED TO

THE CASE WITH INVERTER TRIP VOLTAGE AS REFERENCE (RED CURVE) ................................ 9 FIGURE 8. BLOCK LEVEL IMPLEMENTATION OF THERMAL SENSOR ............................................... 10 FIGURE 9. VARIATION IN LEAKAGE CURRENT WITH SUPPLY VOLTAGE......................................... 10 FIGURE 10. CHARACTERISTICS SHOW 35% VARIATION IN CLOCK FREQUENCY WITH SUPPLY

VOLTAGE ............................................................................................................................... 11 FIGURE 11. GRAPHS SHOWING IMPLICIT COMPENSATION EFFECT IN PREVIOUS DESIGN PROPOSED

SANEYESHI ET AL AT JSSCC 2005 ........................................................................................ 12 FIGURE 12. GRAPHS SHOWING PROPOSED COMPENSATION EFFECT TO OBTAIN MINIMUM ERROR

FOR A FULLY SELF-CONTAINED DESIGN. ............................................................................... 13 FIGURE 13. NORMALIZED ERROR PLOTS FOR THE THREE CASES DESCRIBED. ............................... 14 FIGURE 14. (A)BASIC SENSOR (B) STACKED SWITCH FOR THE PARALLEL DISCHARGE PATH (C)

GATE CAPACITOR .................................................................................................................. 16 FIGURE 15. SIMULATIONS SHOW NO SUBSTANTIAL VARIATION WITH NON-IDEAL (GATE)

CAPACITOR. ........................................................................................................................... 17 FIGURE 16. REFERENCE GENERATION CIRCUIT SCHEMATIC. ......................................................... 18 FIGURE 17. COMPARATOR CIRCUIT SCHEMATICS. ......................................................................... 20 FIGURE 18. CIRCUIT SCHEMATIC FOR CLOCK GENERATION UNIT ................................................. 21 FIGURE 19. STACKED INVERTER STRUCTURE USED IN CLOCK GENERATION CIRCUIT. .................. 21 FIGURE 20. CALIBRATION ERROR WHEN TWO POINT CALIBRATION IS USED ................................. 23 FIGURE 21. THE JUNCTION CURRENT INCREASES AT HIGH TEMPERATURES AND RESULTS IN NON-

LINEARITY FOR THE SENSOR CHARACTERISTICS ................................................................... 24 FIGURE 22. DIODE TO BE USED AS REFERENCE SENSOR. ............................................................... 25 FIGURE 23. THERMAL DIODE CHARACTERISTICS SHOW EXCELLENT LINEARITY .......................... 26 FIGURE 24. CALIBRATION FOR THE EXPONENT PART OF THE EQUATION ...................................... 27 FIGURE 25. TOP LEVEL CIRCUIT SCHEMATIC ................................................................................. 29 FIGURE 26. TIMING WAVEFORMS FOR SENSOR OPERATION .......................................................... 30 FIGURE 27. SIMULATION RESULTS FOR COUNT V/S TEMPERATURE UNDER +/- 10% SUPPLY

VARIATION. ........................................................................................................................... 31 FIGURE 28. SIMULATION RESULTS FOR COUNT V/S TEMPERATURE UNDER +/-10% SUPPLY

VARIATION AND IDEAL CLOCK SOURCE ................................................................................ 31 FIGURE 29. BEAGLE FULL-CHIP LAYOUT SHOWING THE THERMAL SENSOR AND THE I/O PADS

USED. ..................................................................................................................................... 33 FIGURE 30. BEAGLE THERMAL SENSOR LAYOUT. ......................................................................... 34 

ii

Page 5: Implementation of On-chip Thermal Sensor using Off-Leakage

I. Introduction With advances in VLSI technologies, today we have almost a billion transistors being

integrated on a single chip. While scaling CMOS device dimensions allows designers to pack

more, and faster, transistors on a die, it also leads to an increased heat density and leads to the so-

called “thermal crisis” where the temperature of the chip increases extensively. This increase in

temperature leads to creation of localized hot-spots which results in degradation of device

reliability and performance. Advances in packaging and cooling technologies have been a definite

progress to limit circuit degradation but these technologies by themselves are not sufficient to

solve this problem. On-chip techniques have been proposed to further alleviate circuit

performance degradation due to heating. The Power5 microprocessor (Joachim Clabes et al) (1)

for example uses a thermal-throttling approach. They have 24 digital thermal sensors on the chip

and the throttling system tries to keep the on-chip temperature below some threshold temperature.

Such techniques are used in all modern processors including CELL and Itanium (2-3).With

increase in device density the number of on-chip hot-spots is bound to increase and thus several

such on-chip sensors will be required for effectively controlling die temperature. Thus the key

features for temperature sensors we are aiming for are:

1. Very low area overhead

2. Extremely low power consumption

3. Accuracy within +/- 3oC ~ 5oC even in case of low supply voltages and high supply

variation.

Several thermal sensors have been proposed in literature. Early designs are based on bipolar

transistor based circuits. The base-emitter junction of substrate PNP transistor is used as thermal

diode with the collector connected to the ground as shown in Figure 1a.

1

Page 6: Implementation of On-chip Thermal Sensor using Off-Leakage

For this type of design current source is required and A/D converters are required. Though these

types of sensors provide good accuracy, they incur large area overhead. Figure 1b shows the

operating principle of these types of sensors (4). Wang Nailong et al in their paper A Novel Built-

a bFigure 1. Lateral PNP Transistor based scheme

In CMOS Sensor for On-line Thermal Monitoring of VLSI Circuits (5) propose a sensor based on

temperature dependency of threshold voltage. The circuit is as shown in Figure 2. The transistors

Figure 2. A Novel Built-In CMOS Sensor for Online Themal Monitoring of VLSI Circuit

P2, N2, N3 and N4 need to be biased in saturation region. But with decrease in supply voltage it

becomes increasingly difficult to bias four stack transistors in saturation region as there is not

enough over-drive voltage and the circuit cannot be implemented. Other popular technique

involves delay based circuits for temperature measurement. Poki Chen et al (6) propose a delay

based circuit whose working principle is shown in Figure 3. In this circuit the delay of the delay

line is directly proportional to the supply voltage variation and thus the width of the pulse varies

with supply voltage linearly as it does with temperature. Another design by Chan-Kyung Kim et

al (7) uses starved ring oscillators, one structure serves as a reference and the other has a

2

Page 7: Implementation of On-chip Thermal Sensor using Off-Leakage

frequency dependent on temperature. The drawback of the circuit is the accurate biasing of

reference current generator circuit and a truly temperature independent current cannot be

guaranteed.

Figure 3.Delay line based sensor design Here we propose a digital thermal sensor based on temperature dependency of sub-threshold

leakage current with on-chip knobs for reducing calibration errors due to process variation and

increased robustness to supply voltage variation.

3

Page 8: Implementation of On-chip Thermal Sensor using Off-Leakage

II. Effect of Variations

Incorporating process and parameter variations in modern CMOS designs is a major requirement

for ensuring reliable circuit operation in deep sub-micron technologies. The major factors to

ensure reliability against are:

1. CMOS device parameter variations such as threshold voltage due to inconsistencies

during fabrication.

2. Variation in the operating environment of circuit such as supply noise, temperature

variations etc.

Variation in CMOS device parameters is a static effect i.e. once a circuit has been fabricated the

intra-die and inter-die variations are fixed. Whereas variations in operating conditions such as

supply voltage, temperature variations are dynamic variations. The effect of static variations can

be incorporated during calibration stage of sensors since these effects are static, but errors due to

variations in supply voltage is dynamic and is not known during calibration. Thus it is not

possible to take care of such dynamic variations by calibrating and we require our sensor to

operate reliably with acceptable accuracy for practical variations observed in supply voltage.

From our literature survey in the field of thermal sensors it is evident that with scaling of supply

voltage with device dimensions the effect of supply variations on sensor operation is much more

pronounced in newer technologies than it was in earlier designs. Thus it is extremely important to

have robustness against supply variation. Older designs ([4], [16], [17]) do not mention

performance under supply voltage mainly because supply variations did not have significant

effect on circuit performance but recent works in this field have shown that accurate operation

under supply variations is one of the important challenges now.

A secondary effect also shows that same amount of variation in supply voltage will affect the

circuits to a different extent based on device variations. For example an increase in supply voltage

by 10% may increase leakage current by 10% for the typical device but the same amount of

4

Page 9: Implementation of On-chip Thermal Sensor using Off-Leakage

increase in supply voltage may increase the leakage current by 30% for devices closer to the fast

corner.

In our proposed design we have provision for minimizing the effect of supply variation for

different chips and setting the optimum reference voltage so as to minimize the error in measured

temperature under supply noise.

5

Page 10: Implementation of On-chip Thermal Sensor using Off-Leakage

III. Preliminary Analysis

Saneyoshi et al propose temperature sensor (Figure 4) based on temperature dependency of

leakage current in A 1.1V 35μm × 35μm thermal sensor with supply voltage sensitivity of

he SX-92ºC/10%-supply for thermal management on t supercomputer.

Consider the circuit in Figure 4, when the ‘Trigger’ is activated the capacitor starts charging 

at  the  same  time  the  counter  starts  running.  When  the  capacitor  voltage  reaches  some 

minimum reference voltage, in this case the tripping voltage Vtrip of the inverter, the counter 

is disabled. The value of the counter during this duration indicates the charging time of the 

capacitor i.e.  

rippCount = Isub/Cap * t ing time            (1) 

Isub = Is * exp(B*T)  where T is temperature in oC.        (2) 

Thus we see that the Count value varies exponentially with temperature.  

Figure 4. A 1.1V 35μm × 35μm thermal sensor with supply voltage sensitivity of 2ºC/10%-supply for thermal management on the SX-9 supercomputer

The important advantages of this approach are:  

  n1)  Due to exponential depe dency of leakage current we get high resolution. 

2)  Leakage  current  has  smaller  supply  dependency  compared  to  the  temperature 

dependency of leakage current, hence better robustness towards supply variation. 

6

Page 11: Implementation of On-chip Thermal Sensor using Off-Leakage

Figure 5. Equivalent circuit for figure 4 The authors state that the reason for robustness against supply variation is because the  

leakage current is independent of the supply voltage. A closer analysis of the circuit shows that

there is mutual compensation of change in leakage current with supply voltage by the change in

switching threshold of the inverter. The buffer in Figure 4 basically acts as a comparator whose

one end is connected to the capacitor voltage and the reference end is connected to the tripping

voltage Vtrip. This is illustrated in Figure 5. For the inverter we know that inverter tripping voltage

is directly proportional to the supply voltage i.e. Vtrip α β*Vdd, where β is sizing ratio for inverter.

Also, since the capacitor is being charged by leakage current, it is a slow process, thus 10%

change in supply may greatly affect the tripping time of the comparator (inverter in this case) if

the leakage current is truly independent of the supply voltage.

To illustrate the compensation effect and the effect of +/- 10% variation in supply voltage on the

tripping time of the circuit. We simulated the circuit in Figure 6 below. The supply dependent

reference voltage Vtrip is replaced by an ideal reference voltage which is independent of any

variations in supply voltage. Thus any change in tripping time variation will be due to the effect

of supply voltage on the leakage current. The graph in Figure 6b shows the effect of +/- 10%

variation of supply voltage on the tripping time of the circuit for the this case.

7

Page 12: Implementation of On-chip Thermal Sensor using Off-Leakage

30

35

40

45

50

55

60

65

70

75

0.9 1 1.1 1.2 1.3

Trip Tim

e (µs)

Supply Voltage (V)

Trip Time for ideal reference

2X variation

Figure 6. (a) Circuit for the case when reference voltage is independent of supply voltage. From the graph in Figure 6b we see that the tripping time varies by 2X for +/- 10% change in

supply voltage. Thus we can conclude that there is significant effect of supply variation on

leakage current.

Now, if we consider the original circuit with the buffer used as comparator so that the tripping

time of the inverter is the reference voltage (as shown in Figure 4) we obtain the following

characteristics shown in Figure 7. a b

As shown in Figure 7, the red curve corresponds to the circuit using inverter as a comparator i.e.

the reference voltage varies with supply variation. Thus we can conclude that with increase

(decrease) in supply voltage the leakage current also increases (decreases). This change in the

leakage current is compensated to some extent by the proportional variation of the inverter

tripping voltage and hence we see the robustness against supply variation in this design.

The characteristic in Figure 7 highlight the compensation provided by using a supply dependent

reference voltage, in this case the tripping time of the inverter.

8

Page 13: Implementation of On-chip Thermal Sensor using Off-Leakage

30354045505560657075

0.9 1 1.1 1.2 1.3

Trip Tim

e (µs)

Supply Voltage (V)

Trip Time for ideal reference

Trip Time for inverter

2X variation

Figure 7. 2X Variation in tripping time for ideal reference (blue curve) compared to the case with inverter trip voltage as reference (red curve)

We explore this compensation in our design. The circuit design and schematics are discussed next.

9

Page 14: Implementation of On-chip Thermal Sensor using Off-Leakage

IV. Proposed Circuit

a. Block Level and Theoretical Explanation

The proposed design consists of the blocks as shown in Figure 8.

From this block diagram we identify that there are three components whose variations will affect

the counter output

Figure 8. Block level implementation of thermal sensor .

The change in leakage current due to supply variation in the Leakage Sensor block.

1. Variation in reference voltage level with supply voltage.

2. Variation in clock frequency with supply variation.

170

190

210

230

250

270

1 1.1 1.2 1.3 1.4

Leakage Cu

rren

t (pA) 

Supply Voltage (V)

33.5%variation in leakage 

T = 

Figure 9. Variation in leakage current with supply voltage

10

Page 15: Implementation of On-chip Thermal Sensor using Off-Leakage

Figure 9 shows that the leakage current increases (decreases) when supply voltage increases

(decreases). With increase in leakage current the capacitor charges faster at the same temperature,

hence the time required to reach the reference voltage decreases, thus the counter runs for a

shorter duration and the count decreases.

130

140

150

160

170

180

190

200

1.00 1.05 1.10 1.15 1.20 1.25 1.30 1.35

Freq

uency (M

Hz)

Supply Voltage (V)

35% variation in frequency

T = 250C

Figure 10. Characteristics show 35% variation in clock frequency with supply voltage But Figure 10 shows that with increase in supply voltage the clock frequency increases, hence the

number of clock pulses arriving at the counter increases and the count value increases.

This shows us that decrease in count value due to increase in supply voltage can be compensated

by increase in clock frequency due to increase in supply voltage. The degree of compensation

achieved depends on the variation of clock frequency with supply and the leakage current with

supply i.e.

Count = Trip Time * Frequency (3)

The graphs in Figure 11 and Figure 12 compare the implicit compensation technique used in the

previous work and the idea behind our design.

The first graph on the left show that the count value decreases with increasing supply voltage

since the leakage current increases and hence the trip time decreases. The second graph shows

that if only the reference voltage is proportional to temperature as is the case for previous work

11

Page 16: Implementation of On-chip Thermal Sensor using Off-Leakage

then the count value increases with supply, since it takes longer time to charge the capacitor to

reference voltage.

Temp = T0Reference voltage = const.Clock freq = const.

Supply Voltage (Vdd)

Cou

nt

Leakage current = α*Vdd

Supply Voltage (Vdd)

Temp = T

Clock freq = const.Leakage current = const.

Cou

nt

0Reference voltage = λ*Vdd

Temp = T0Reference voltage = const.

Leakage current = const.

Supply Voltage (Vdd)

Cou

nt

Clock freq = const.

External clock source independent of supply variation

Cou

nt

Supply Voltage (Vdd)

Figure 11. Graphs showing implicit compensation effect in previous design proposed Saneyeshi et al at JSSCC 2005 Since they use external clock, the clock frequency is independent of supply voltage. Thus the

leakage variation is compensated by variation in reference voltage.

In our design, since we use an on-chip clock generator, its frequency increases with supply as

shown in the third graph in Figure 12. We use the sensitivity of the leakage sensor block to

compensate the sensitivity of clock generator block. Since these two dependencies may be

different, we provide a programmable reference generator so as to provide required compensation

to match the two dependencies as close as possible.

12

Page 17: Implementation of On-chip Thermal Sensor using Off-Leakage

Figure 12. Graphs showing proposed compensation effect to obtain minimum error for a fully self-contained design. Let t0 be the nominal tripping time for nominal supply voltage and temperature T0 and f0 be the

nominal clock frequency and let Δt0 be the variation in tripping time caused by variation in

nominal supply voltage and Δf0 be the variation in nominal clock frequency.

Then we have:

Count = (t0 - Δt0) * (f0 + Δf0) (4)

~= t0*f0 *( 1 - Δt0/t0 + Δf0/f0) ignoring the second order term Δt0* Δf0

Thus the aim is to ideally have

Sum = Δt0/t0 – Δf0/f0 = 0, (5)

in case of supply variations at all temperatures.

The graph in Figure 13 plots three scenarios we analyzed.

Case 1 (green curve): The circuit proposed by Saneyoshi et al uses inverter as a comparator and

uses the processor clock generated by crystal oscillator. Thus the clock frequency in this case is

13

Page 18: Implementation of On-chip Thermal Sensor using Off-Leakage

assumed to be constant and independent of supply voltage variation. This case gives robust

performance. But using processor clock has following disadvantages:

1. Increases clock load since the application requires several such sensors on a chip.

2. Sensor resolution and calibration is dependent on system clock.

3. Modern circuits for high performance reasons may modulate clock frequency (Enhancing

beneficial jitter using phase-shifted clock distribution, D Jiao et al)

‐0.3

‐0.2

‐0.1

0

0.1

0.2

0.3

0.9 0.95 1 1.05 1.1 1.15 1.2 1.25 1.3

Sum

Supply Voltage (V)

Sum Ideal Reference

Sum Inverter & RO Clock

Sum Inverter & Ideal Clock

T = 250C

Figure 13. Normalized error plots for the three cases described. Thus we recognize the need to make these sensor circuits self-contained and making use of the

opposite trends in clock frequency and tripping time. 

Case 2 (red curve): The red curve corresponds to the case where we use self-contained design (a

ring oscillator based clock generation instead of ideal clock). This shows that the circuit proposed

by Saneyoshi et al needs modification to preserve the accuracy if ideal clock is not used. The

error in the counter output in this case is solely due to the variation in clock frequency with

supply voltage. 

14

Page 19: Implementation of On-chip Thermal Sensor using Off-Leakage

Case 3 (blue curve): This characteristic corresponds to the case where we use a reference voltage

that is more or less independent of supply variations. This curve shows that for such a case the

clock frequency variations provide good compensation against variation in the leakage current

with supply voltage. This serves as a basis for our circuit.  

15

Page 20: Implementation of On-chip Thermal Sensor using Off-Leakage

b. Circuit Schematics and Design

1. Leakage Sensor

(b) (c) (a)

Figure 14. (a)Basic sensor (b) Stacked switch for the parallel discharge path (c) Gate capacitor

The circuit in Figure 14a shows the implementation of the basic sensor. The PMOS device

charges the capacitor. The gate and source terminals of the PMOS device are connected together

so that the device is switched off. Thus the current flowing through the PMOS is the sub-

threshold leakage current. The RESET terminal is the external trigger input. When the RESET

signal is high the sensor is in off state. The node VC is connected to ground through the switch.

When the RESET signal is low the capacitor charges towards supply voltage. Figure 14b shows

the implementation of the RESET switch. Longer channel devices are used and stacked NMOS

structure is used. This is important to minimize the leakage current through the switch so that the

leakage current through the PMOS is not negated by the leakage through the RESET switch.

Figure 14c shows the capacitor used in the circuit. We have used gate capacitor instead of a more

ideal metal capacitor due the area benefit we get by using gate capacitor. The following plots

show the tripping time of the circuit when an ideal capacitor is used compared to when a gate

capacitor is used.

Thus use of gate capacitor gives significant gain in terms of area and implementation and there is

no significant effect of circuit operation either.

16

Page 21: Implementation of On-chip Thermal Sensor using Off-Leakage

The gate area is 3.28μm2. This gives a capacitance of around 22fF. Enhancement mode gate cap

is used for our purpose as it showed less variation compared to depletion type gate cap.

1.50E+02

3.00E+02

6.00E+02

1.20E+03

20 30 40 50 60 70 80 90 100 110 120 130Temperature (oC)

2.40E+03

4.80E+03

9.60E+03

1.92E+04

Coun

t

Count_1.08

Count_1.2

Count_1.32

Count_1.08_ideal

Count_1.2_ideal

Count_1.32_ideal

Figure 15. Simulations show no substantial variation with non-ideal (gate) capacitor.

17

Page 22: Implementation of On-chip Thermal Sensor using Off-Leakage

2. Reference Voltage generation: The reference voltage generation circuit is shown in Figure

16. The PMOS transistor acts as a current source and operates in velocity saturation region.

Longer length devices are used to reduce channel length modulation effect. Diode connected

NMOS devices are used to generate reference voltage. The circuit acts as a voltage divider, where

the reference voltage depends on the relative strength of the NMOS and PMOS devices. Thus,

Vref = βp/βn * Vdd (6)

∂Vref /∂Vdd = βp/βn (7)

Figure 16. Reference generation circuit schematic. By varying the ratio between the NMOS and PMOS we can adjust the sensitivity of the reference

voltage. This can be used to tune the effect of variation in leakage current so that it can better

compensate for the variation in clock frequency due to supply variation.

We have provided switches SW1X through SW16X so that we can calibrate to find the optimum

reference voltage to compensate for process variations.

Turning on more switches increases the strength of NMOS devices and thus lowers the reference

voltage and also the supply sensitivity. This setting gives a reference voltage in the range of 0.4V

and should be used when the variation in tripping time due to leakage current variation almost

matches the frequency variation. Turning off all the switches raises the reference voltage and

tends to mitigate the effect of tripping time variation, since the reference voltage now changes

more with supply voltage. This combination should be used when the clock characteristics are

close to ideal clock.

18

Page 23: Implementation of On-chip Thermal Sensor using Off-Leakage

Transmission gate are used to minimize the voltage drop across the switches. Low Vt devices are

used to further the cause and make the switches close to ideal. NMOS device sizes are chosen so

as to cover the range from FF to SS corners so as be able to minimize the error within +/- 30C due

to supply variations.

19

Page 24: Implementation of On-chip Thermal Sensor using Off-Leakage

3. Comparator Design

W/L = 0.24µ/0.24µ

W/L = 0.15µ/0.24µ

W/L = 0.15µ/0.24µ

W/L = W/L = 1.2µ/0.24µ 1.2µ/0.24µ

VIN_PLUS VIN_MINUSP1 P2

N1 N2

VOUT

Figure 17. Comparator circuit schematics. Figure 17 shows the comparator circuit used in the design. It is a single stage differential

amplifier with single ended output. Transistors P1 and P2 are the input transistors. NMOS

transistors N1 and N2 are the load devices. Longer channel length is used for all devices in the

comparator to minimize the effect of process variation.

The positive input is connected to the reference voltage. The capacitor node from leakage sensor

is connected to the negative input of the comparator. Since the capacitor is being charged with

leakage current, the voltage at the negative terminal rises very slowly and the effect is further

increased since the leakage current reduces as the capacitor node charges towards Vdd. So any

noise on this node may cause false switching of the comparator. Buffers are added at the output of

the comparator to isolate the node from clock driven circuits and prevent any clock feedback

noise.

20

Page 25: Implementation of On-chip Thermal Sensor using Off-Leakage

4. Clock Generation:

Figure 18. Circuit schematic for clock generation unit Simple ring oscillator design is used for the purpose of clock generation. A maximum of twenty-

three stages of inverters can be connected to give the minimum frequency (Figure 18). A two-

stack structure is used for the inverters as shown in Figure 18. This structure helps in obtaining

lower oscillation frequency with less number of stages because of the stacking effect in sub-

micron devices.

Figure 19. Stacked inverter structure used in clock generation circuit.

21

Page 26: Implementation of On-chip Thermal Sensor using Off-Leakage

The switches are inserted in the inverter chain as shown in Figure 18. These are used to select the

length of inverter chain to obtain step change in oscillator frequency. For finer tuning of

frequency we use an external voltage Vadj to vary the bias on the header and footer transistors

shown in Figure 19. Step change in frequency is required to obtain the desired resolution under

process variations. The leakage current may vary significantly with process variation, which

requires us to use appropriate clock frequency for resolution purpose. The problem of resolution

is further explained in the section on Calibration.

22

Page 27: Implementation of On-chip Thermal Sensor using Off-Leakage

V. Calibration a. Non Idealities

It is desirable for sensor output (count value) to have a linear relationship with temperature over

the range of interest. As explained earlier, the temperature dependence of leakage current is an

exponential relation. Thus the count values obtained over the temperature range from 250C to

1250C has a log-linear characteristic. The easiest method for calibration for fitting a linear curve

is to do a two-point calibration using the count values obtained at 250C and 1250C.

But simulation results show that the relation is not purely exponential and we have some non-

linearity in the output characteristic. Thus two-point calibration technique gives a large error for

the middle range of temperatures as shown in Figure 20. The non-linearity in the characteristics

can be deliberated if we take a closer look at the leakage current equation given below:

Wε v 2Te1.8 exp(Vgs −Vth )(1− exp(−Vds /vT )Isub = μ0 * 0

Tox

(8) L

where vT = kT/q and μ0 are temperature dependent parameters. Thus we see that the sub-threshold

current is not a pure exponential function of temperature.

50

500

0 10 20 30 40 50 60 70 80 90 100 110 120 130 140

Coun

t

Temperature  (0C)

5000Vdd = 1.08v

Vdd = 1.14v

Vdd = 1.2v

Vdd = 1.26v

Vdd = 1.32v2‐point calibration

Error  90C

Figure 20. Calibration error when two point calibration is used

23

Page 28: Implementation of On-chip Thermal Sensor using Off-Leakage

Figure 21. The junction current increases at high temperatures and results in non-linearity for the sensor characteristics

Another possibility for the non-linearity in the characteristics can be due to other leakage sources

at lower temperature. From the characteristics we see that the curve bends to the right if we draw

a tangent at 250C point. This implies that the capacitor charges slower than it should have if the

exponential dependency had remained the same as it was at 250C. Since we know that the sub-

threshold leakage increases exponentially with rise in temperature. Therefore at higher

temperatures sub-threshold leakage is the dominant source responsible for charging the capacitor

and hence the slope of the exponential curve changes.

For our purpose we will use single-point calibration technique. Before explaining the calibration

process we need to consider the sensor resolution issue. We approximate the sensor

characteristics by the equation

Count = A*exp(−B*T) (9)

b. Resolution

We can write equation (9) as,

ln(Count ) = −B * T + ln(A) (10)

y = m * x + c (11) i.e.

∂Count= −B *Count (12)

∂T

24

Page 29: Implementation of On-chip Thermal Sensor using Off-Leakage

As we know for a decreasing exponential function, the ‘y’ value, i.e. ln( changes very

slowly at higher temperatures, thus the resolution at high temperatures decreases rapidly. Thus we

need to ensure that even at 1250C, -B*Count should be greater 1.

Count )

To get a resolution of greater than 1 Count/0C at 1250C, from simulation data across all corners

we need to have a count of greater than 4000 at 250C. The critical case for resolution is the FF

corner. Since the leakage current is large for this case the charging takes place very fast, so we

need to have a fast clock to get high count. Whereas for SS corner, the leakage current is low and

the charging time is more so we need a slower clock to prevent the count from going out of

counter range.

The switches provided in the clock generation circuit are precisely for this reason.

c. On-Chip Thermal Diode

Due to absence of precise heating source and oven for heating the test chip to precise

temperatures, we have also added an additional resource to facilitate better calibration and error

measurements.

Figure 22. Diode to be used as reference sensor. We have put a diode along with our test circuit. It is a very simple idea just to provide for an

alternate means of measuring chip temperature and to determine the accuracy of our design. The

idea is illustrated in Figure 22.

Iin is the external current source. The diode current equation is given by:

))//(exp(* qkTVII Dsd = (13)

25

Page 30: Implementation of On-chip Thermal Sensor using Off-Leakage

Thus by passing two currents I1 and I2 and then taking the ratio we have:

(14) ))/ln(*)//(()( 2121 IIqkVVT DD −=

Thus the measured temperature is just dependent on the difference between the diode voltage for

the two currents and is independent of and other device parameters.

y = 0.044x + 13.187

14

15

16

17

18

19

0 20 40 60 80 100 120 140

Voltage (m

V)

Temperature (0C)

Exact linear fitΔVD

Linear (ΔVD)

Figure 23. Thermal Diode characteristics show excellent linearity The characteristics for (VD1 – VD2) v/s temperature is shown in Figure 23. There is no non-

linearity and a two point calibration technique can be accurately applied for the diode scheme.

Thus this gives us an on-chip reference design which we can use to determine the accuracy of our

design.

26

Page 31: Implementation of On-chip Thermal Sensor using Off-Leakage

d. Steps for Calibration

Calibrating Thermal Diode:

For calibrating the thermal diode:

1. Heat the test chip by blowing hot air etc and measure the chip temperature using a thermometer.

Let this temperature be T1.

2. Pass current I1 through the diode circuit and measure the voltage VD1 and the pass current I2

and measure voltage VD2.

ΔVD1 = VD1 - VD2 at temperature T1

3. Repeat step 1&2 for temperature T2.

4. Fit a straight line passing through points (T1, ΔVD1) and (T2, ΔVD2). This is the calibration curve

for the reference diode.

Calibrating Leakage Sensor:

The following procedure will be followed for calibrating leakage based sensor:

1. The parameter B is plotted against count value at different corners measured at room

temperature (250C) for the case when all switches are turned on, in the reference generator circuit

and, for clock frequency corresponding to 15 stage ring-oscillator. The graph is as shown below.

0.045

0.046

0.047

0.048

0.049

0.05

0.051

0.052

0 2000 4000 6000 8000 10000

Parameter B 

Count Value at Different Process Corners

FF corner

TT corner

SS corner

Figure 24. Calibration for the exponent part of the equation

27

Page 32: Implementation of On-chip Thermal Sensor using Off-Leakage

2. Next we obtain the count value corresponding to the circuit conditions mentioned

above(temperature 250C and reference voltage corresponding to all on switches in reference

generator circuit) for the on-chip circuit. The corresponding B value can be read from the graph.

The parameter B characterizes the exponential dependence on temperature of the sub-threshold

leakage current.

3. Once we obtain parameter B, we may need to change the clock frequency so as to obtain

resolution less than 10C at 1250C. For this we require a count value of more than 4000 at 250C.

4. To obtain optimum the reference voltage to get minimum error due to supply voltage variation

we need to vary the supply voltage in +/-10% range and obtain the count value for different

combination of switches in the reference generation circuit. The combination that results in

minimum error is thus selected.

5. Once the clock frequency is selected and the reference voltage is fixed, the count value at room

temperature (250C) is used to obtain the parameter ‘A’ in equation (9) above.

6. Since ‘A’ and ‘B’ are now determined, we can construct the log-linear calibration curve which

gives us ‘Count’ v/s ‘Temperature’.

The calibrated thermal diode should be used to achieve accurate on-chip temperature for

calibration of the leakage sensor.

28

Page 33: Implementation of On-chip Thermal Sensor using Off-Leakage

VI. I/O Signals and Circuit Operation

Figure 23 shows the top level circuit schematic with all the input and output signals. Table 1 lists

the I/O signals for the circuit.

ircuit OperationC : Timing diagram for circuit operation is shown in Figure 26. The RESET signal

Figure 25. Top level circuit schematic

is made high to discharge any stored charge on the capacitor shown in Figure 13. To set the

various switches in the circuit appropriate data is applied at the SCANIN pin and input scan clock

is applied at SCANINCLK pin. Twelve pulses are applied at the SCANINCLK pin along with

appropriate data sequence at SCANIN pin to set the status of 12 switches in the circuit. Once the

scan registers are set, the RESET signal goes low to allow the capacitor to charge towards

reference voltage. When the capacitor reaches the reference voltage the comparator output trips

and latches the data from the counter into the scan-out registers. The circuit now sits ideal till the

RESET signal is made high. This will disable the scan-out registers and the 16-bit counter value

can now be read out through the SERIALCOUNT pin by applying 16 pulses at the

29

Page 34: Implementation of On-chip Thermal Sensor using Off-Leakage

SCANOUTCLK pin. The 16-bit counter output corresponds to the leakage at temperature T. By

mapping this count value to the sensor calibration curve obtained during the calibration process

will give you the measured temperature.

Figure 26. Timing waveforms for sensor operation

Signal Name Direction Purpose

Iin Input Input current through on-chip diode for calibration

VADJ Input Analog voltage for fine tuning of clock frequency

EXTREF Input External analog voltage threshold voltage provision for

debugging

RESET Input Trigger input for the sensor

SCANIN Input Data for setting various switches

SCANINCLK Input Clock for scan-in registers

SCANOUTCLK Input Clock for scan-out registers

GND_TS Input/Output Ground terminal

VDD_TS Input/Output Supply terminal

SERIALCOUNT Output Serial output data from 16-bit counter

VCO_FREQ_DIV_64k Output Ring oscillator waveform for determining clock frequency

VD Output On-chip diode pn-junction voltage

T able 1

30

Page 35: Implementation of On-chip Thermal Sensor using Off-Leakage

VII. Simulation Results

Case 1: The graphs below show the results based on the final circuit layout netlists. Figure 27

shows the variation in count value with +/- 10% variation in supply voltage. The curve in black

corresponds to the calibration curve, obtained by the procedure outlined earlier. The maximum

error due to calibration is 3.90C and the error due to supply vartiation is 1.50C over the

temperature range from 250C to 1100C.

The clock frequency is chosen so as to obtain a resolution greater than 1Count/0C.

5120

1280

2560 Vdd=1.2

Vdd=1.08

Vdd=1.32

Calibration equation y = 21709e‐0.051x

40

80

160

320

10 30 50 70 90 110

Cou 640nt

Temperature (0C)

Calibration Curve

n. Figure 27. Simulation results for count v/s temperature under +/- 10% supply variatio

Calibration equation y = 119939e‐0.05x

512

2048

8192

32768

10 30 50 70 90 110

Coun

t

Temperature 0C

Vdd=1.2

Vdd=1.08

Vdd=1.32

Calibration Curve

Figure 28. Simulation results for count v/s temperature under +/-10% supply variation and ideal clock source

31

Page 36: Implementation of On-chip Thermal Sensor using Off-Leakage

Case 2: To demonstrate the effectiveness of the reference voltage knob provided to match the

leakage current variation with supply voltage to the clock frequency variation due to supply

variations, Figure 28 shows simulation results for the case when we have an ideal on-chip clock

i.e. a crystal based clock which is not affected by the variations in supply voltage. For this case,

we get the best result when all the switches in the refernce generation circuit are switched off and

we use the maximum is case we get an error of only 2.30C

for supply variations.

refernce voltage available. Even for th

32

Page 37: Implementation of On-chip Thermal Sensor using Off-Leakage

VIII. Beagle Thermal Sensor Layout

Thermal sensor

Figure 29. Beagle full-chip layout showing the thermal sensor and the I/O pads used. Figure 29. shows the full-chip layout for Beagle 2009. The highlighted part shows the Thermal

Sensor test circuit. Our circuit uses most of the pads from the right-hand side I/O pads.

Figure 30 shows the layout of Thermal Sensor. The SCANIN registers are used to set the various

switches provided in the reference generator unit and the clock generator. The SCANOUT

registers are use to serially read out the final count value. Figure 30 also shows the zoomed-in

part at the bottom where the off-PMOS devices are layed-out. While laying-out the proposed

sensor and the reference diode, we made sure they are placed close to each other so that they both

see similar temperature conditions. The net corresponding to the capacitor is the critical net in our

circuit and therefore we made sure there is not much routing around that net.

Thus the proposed circuit provides compensation and an ability to match clock frequency

variation with leakage current variation to overcome the error introduced by voltage variation.

33

Page 38: Implementation of On-chip Thermal Sensor using Off-Leakage

Figure 30. Beagle Thermal Sensor layout.

34

Page 39: Implementation of On-chip Thermal Sensor using Off-Leakage

The power consumption of the circuit is shown in Table 2 below:

  VDD_TS 

(V) I(VDD_TS) @  250C Power @ 250C

(μA)  (μW) 

Sensor, comparator,  1.2  32.288  38.746 scan Clock RO circuitry  1.2  260.67  312.804 

Total power      351.55 Table 2 The area of the circuit is = (105.85x25.06)µm2. This includes the sensor, comparator, clock

generation and the scan-in circuit.

35

Page 40: Implementation of On-chip Thermal Sensor using Off-Leakage

IX. Conclusion

Thermal sensor based on te ature dep cy of leaka rent of cmos devices is

uit ope n has bee d using de mulation. The circuit has

the simula results ha compared urement results.

contained sensor makes a totally independent unit and the calibration and sensitivity does

th scaling and increased integration density on die more and

more of these small sensors for thermal monitoring will be required to be integrated.

Compensation and robustness against supply variation and process variation is an important issue

in sub-micron and low voltage circuits. The tuning knob introduced in this scheme helps in

minimizing errors due to variability and supply voltage variations. Table 3 below gives circuit

performance and specifications based on simulation results.

mper enden ge cur

implemented. The circ ratio n verifie tailed si

been fabricated and tion ve to be with meas

The self

not depend on the clocking scheme used in the top level design. It does not add load to the system

clock which is important since wi

Technology 65nm 7-metal CMOS

Leakage sensor area 105.85x25.06µm2

Supply voltage 1.2V

Accuracy against 1.50C from 25

0C to 110

0C supply variation

Calibration error 3.690C from 25

0C to 110

0C

Power consumption 351.55µW @ 250C

Table 3

36

Page 41: Implementation of On-chip Thermal Sensor using Off-Leakage

X. Re

[1] J. Clabes, J. Friedrich, M. Sweet, et al., “Design and Implementation of the POWER5TM

Microprocessor,” IEEE Int. Solid State Circuits Conf., pp. 670-672, 2004.

[2] D. Pham, S. Asano, M. Bolliger, M. N. Day, H. P. Hofstee, C, et al., “The Design and

Implementation of a First-Generation CELL Processor,” ISSCC Dig. Tech. Papers, Paper 10.2,

pp. 184−185, Feb., 2005.

[3] Christopher Poirier, Richard McGowen, Christopher Bostak, Samuel Naffziger, “

Temperature Control on a 90nm Itanium-Family Processor,” ISSCC Dig. Tech. Papers, Paper

16.7, pp. 304−305, Feb., 2005.

[4] Michiel A. P. Pertijs, Kofi A. A. Makinwa and Johan H. Huijsing, “A CMOS Smart

Temperature Sensor With a 3σ Inaccuracy of 0.1 C From 55 C to 125 C,” ISSCC 2003

[5] Wang Nailong et al., “A Novel Built-In CMOS Sensor for On-line Thermal Monitoring of

VLSI Circuits,” International Conference on ASIC.

Tsai, and W. Lu, “ sed CMOS Smart

E te Circuits, Vol. 40, No. 8, pp. 1642-1648, Aug

g, C. Lee, Y. Jun, “CMOS Temperature Sensor with Ring Oscillator for

Systems, pp. 3094-3097, 2008.

[8] E. Saneyoshi, K. Nose, M. Kajita, and M. Mizuno, “A 1.1V 35μm × 35μm thermal sensor with

2ºC/10%-supply for thermal management on the SX-9

supercomputer,” IEEE Symp. on VLSI Circuits, pp. 152-153, 2008.

[9] J. Altet, A. Rubio, A. Salhi, J. L. Gálvez, S. Dilhaire, A. Syal, and A. Ivanov, “Sensing

temperature in CMOS circuits for Thermal Testing”, IEEE VLSI Test Symposium, 2004

[10] R. McGowen, C. A. Poirier, C. Bostak, J. Ignowski, M. Millican, W. H. Parks, and S.

Naffziger, “Power and Temperature Control on a 90-nm Itanium Family Processor”, IEEE

Journal of Solid-State Circuits, Vol. 41, No. 1, pp. 229-237, Jan 2006.

ferences

Power and

0

[6] P. Chen, C. Chen, C. A Time-to-Digital-Converter-Ba

Temperature Sensor,” IEE Journal of Solid-Sta

2005.

[7] C. Kim, B. Kon

Mobile DRAM Self-refresh Control,” IEEE Sy p. on Circuits and m

supply voltage sensitivity of

37

Page 42: Implementation of On-chip Thermal Sensor using Off-Leakage

38

s, A. Niederkorn, X. Ma, B. McKillop, A. Bakker, and J. H. Huijsing, “A

CMOS Smart Temperature Sensor With a 3σ Inaccuracy of ±0.5 C From -50ºC to 120ºC,” IEEE

Journal of Solid-State Circuits, Vol. 40, No. 2, pp. 454-461, Feb 2005.

[12] D. E. Duarte, G. Geannopoulos, U. Mughal, K. L. Wong, and G. Taylor, “Temperature

Sensor Design in a High Volume Manufacturing 65nm CMOS Digital Process,” IEEE Custom

Intergrated Circuits Conference, pp. 221-224, 2007.

[13] Y. W. Li, H. Lakdawala, A. Raychowdhury, G. Taylor, K. Soumyanath, “A 1.05V 1.6mW

0.45°C 3σ-Resolution ΔΣ-Based Temperature Sensor with Parasitic-Resistance Compensation in

32nm CMOS,” IEEE Int. Solid State Circuits Conf., pp. 340-342, 2009.

[14] K. Kim, H. Lee, S. Jung, C. Kim, “366kS/s 400uW 0.0013mm2 Frequency-to-Digital

Converter Based CMOS Temperature Sensor Utilizing Multiphase Clock,” IEEE Custom

Intergrated Circuits Conference, pp. 203-206, 2009.

[15] T. H. Kim, R. Persaud, and C. H. Kim, “Silicon Odometer: An On-Chip Reliability Monitor

for Measuring Frequency Degradation of Digital Circuits,” IEEE Journal of Solid-State Circuits,

Vol. 43, No. 4, pp. 1642-1648, Apr 2008.

[16] Michiel A. P. Pertijs, Gerard C. M. Meijer,et al., “Precision Temperature Measurement

Using CMOS Substrate PNP Transistors,” IEEE SENSORS JOURNAL, VOL. 4, NO. 3, JUNE

2004.

[17] Vladimir SzCkely, Cs. MBrta, Zs. Kohki, and Mhrta Rencz, “CMOS Sensors for On-Line

Thermal Monitoring of VLSI Circuits,” IEEE TRANSACTIONS ON VERY LARGE SCALE

INTEGRATION (VLSI) SYSTEMS, VOL. 5, NO. 3, SEPTEMBER 1997

[11] M. A. P. Pertij