Dynamic Frequency Scaling using onchip Thermal Sensors in














- Slides: 14

Dynamic Frequency Scaling using on-chip Thermal Sensors in ASAP 7 7 nm Predictive PDK Vaibhav Verma Mandi Das Wole Jaiyeoba

• • We wanted to build an on -chip thermal sensing unit. And we wanted to scale voltage and frequency of the processor based on thermal sensor data. Presentation tomorrow!!!! We will build a beautiful DVFS unit 30 25 310, 00% 260, 00% 210, 00% Well voltage scaling isn’t our cup of tea 20 15 160, 00% 110, 00% 10 5 No. of days till deadline 60, 00% Percentage Motivation Levels of Motivation 0

System Block Diagram Thermal Sensor (TS) Time-to-Digital Converter (TDC) Actuation Unit (AU) - DFS

Thermal Sensor (TS) Temperature Dependent Delay Clock IN Temperature Independent Delay Based on Chen et al. , “A Time-to-Digital-Converter-Based CMOS Smart Temperature Sensor”, IEEE Journal Of Solid-State Circuits, Vol. 40, No. 8, August 2005 Temperature Dependent Pulse Width

Why temperature Independent Delay? Well why not? • • • Essentially we could have just used wire delay to get the desired temperature dependent pulse width. But that leads to huge “minimum pulse” for lower range of temperatures. Hence we designed temperature (mostly) invariant delay line to offset the pulse width for better accuracy. And anyway what’s VLSI project without a li’l circuit design!!

Schematics – Temperature Sensor Temperature Invariant Delay element Temperature Sensor

Performance of TS across temperature Pulse width vs Temperature Dependent TS output vs Temp 5, 70 E-10 Temp Independent 5, 80 E-10 5, 50 E-10 5, 60 E-10 5, 50 E-10 60. 9 ps 5, 40 E-10 5, 30 E-10 Pulse width (s) 5, 70 E-10 2. 3 ps 5, 20 E-10 5, 30 E-10 Mostly linear output across temperature range (-40°C to 125 °C) 5, 10 E-10 4, 90 E-10 64. 3 ps 4, 70 E-10 5, 10 E-10 -40 5, 00 E-10 -20 0 20 40 60 Temperature (°C) 80 100 120 -40 4, 50 E-10 -20 0 20 40 60 80 Temperature (°C) 100 120

Time to Digital Converter (TDC) • The output of thermal sensor is a pulse width varying with temperature. • We need TDC to convert this analog information to digital output. • This digital output is then used to control frequency scaling.

Schematics – Time to Digital Converter D-Flip Flop

Dynamic Frequency Scalar (DFS) Why do we need it? ? The DFS (Dynamic Frequency Scalar) collects digitalized data from the Time to Digital Converter (DTC) and scales the frequency of the master clock accordingly. This output clock becomes the new clock which drives the chip.

Dynamic Frequency Scalar Final system output clock Features: § **Glitch free** (via use of the two synchronizing flip -flops) § Easily scalable to larger frequency variations. Glitch-free dynamic frequency controller. Based on Browne B. Richard et al. , “Low-Latency, HDL-Synthesizable Dynamic Clock Frequency Controller with Self-Referenced Hybrid Clocking”, Circuits and Systems Conference (2006)

Dynamic Frequency Scalar: Schematic DFFs: clock dividers System clock DFFs: clock synchronizers MUX: clock select Fig: DFS Schematic from ASAP 7 PDK Cadence Fig: schematic of the Digital Frequency Scalar

DFS – Simulation Waveform Diagram Fig: simulation of the DFS schematic

Difficulties encountered during design and simulation • The hardest part of the project was to tune the delays in TDC to match the range of pulse widths for different temperatures. • Also, using relative ground, we got unexpected results from simulating the design schematic. However, when we connected Vss and Vpw to absolute ground, we got the correct, required behavior. • We also faced hspice DC convergence issues in many of our final runs.