energy consumption in embedded systems abstractions for
play

Energy consumption in embedded systems; abstractions for software - PowerPoint PPT Presentation

Energy consumption in embedded systems; abstractions for software models, programming languages and verification methods Florence Maraninchi orcid.org/0000-0003-0783-9178 thanks to M. Moy, L. Mounier, L. Maillet-Contoz, D. Barthel, J.


  1. Energy consumption in embedded systems; abstractions for software models, programming languages and verification methods Florence Maraninchi — orcid.org/0000-0003-0783-9178 thanks to M. Moy, L. Mounier, L. Maillet-Contoz, D. Barthel, J. Cornet, C. Helmstetter, T. Bouhadiba, N. Berthier, L. Samper, ... www-verimag.imag.fr/ ˜ maraninx EMSOFT’16, Pittsburgh F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 1 / 28

  2. Lessons Learned in Various Contexts... Modeling energy consumption and temperature at the transactional level for systems-on-a-chip (with STMicroelectronics) - Validation of low-level software that implements power-domain control F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 2 / 28

  3. Lessons Learned in Various Contexts... Modeling energy consumption and Modeling energy consumption in temperature at the transactional sensor networks (with Orange level for systems-on-a-chip (with Labs) - trade-offs between energy STMicroelectronics) - Validation consumption and security at the of low-level software that routing level, precise modeling of implements power-domain control idle-listening in MAC protocols, ... F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 2 / 28

  4. The Big Picture: from Physics to Software The Big Picture: from Physics to Software 1 Models 2 Compulsory Abstractions for Verification/Optimization/... 3 Conclusion 4 F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 3 / 28

  5. The Big Picture: from Physics to Software From Physics to (Application) Software Application SW Decide what to switch on/off control sleep modes OS real−time scheduling and adjusting V, F Components’ operational modes Power Domains and DVFS Temperature Sensors Static+Dynamic Energy Consumption Battery behaviour and Discharge time F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 4 / 28

  6. The Big Picture: from Physics to Software Discharge time is not a Simple Function of Power Consumption Estimating energy consumption does not give easily an estimate of the battery discharge time. More details available if needed. see “rate-dependency effect” in David Linden et Thomas B. Reddy — Handbook of batteries. McGraw-Hill 2002 Ravishankar Rao, Sarma Vrudhula et Naehyuck Chang — Battery optimization vs energy optimization: which to choose and when?. ICCAD’05 F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 5 / 28

  7. The Big Picture: from Physics to Software Sources of Power Consumption P = P static due to leakage currents + P dynamic due to the switching of transistors P static = V × K 1 × g ( T ) ր when transistor size ց P dynamic = F × V 2 × α × K 2 V : Voltage, F : Frequency, T : Temperature g : increasing function α : activity ratio, or amount of computation performed K i s: various “constants” depending on the module area and on the synthesis technology F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 6 / 28

  8. The Big Picture: from Physics to Software Power Control in Modern Circuits Clock Gating (turn off the clock): P dynamic = 0, but P static unchanged Dynamic Voltage and Frequency Scaling (DVFS) reduces V , hence F has to be reduced too. A circuit can have a (small) number of operating points ( V , F ). Switching between them has a cost. Power Gating (switch a component on/off); Switching is very costly (save/restore state); application-level information is needed (e.g., GPS is not longer used, switch the sub-circuit off). F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 7 / 28

  9. The Big Picture: from Physics to Software Complex Feedback Interactions Consumption F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 8 / 28

  10. The Big Picture: from Physics to Software Complex Feedback Interactions Consumption Temperature F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 8 / 28

  11. The Big Picture: from Physics to Software Complex Feedback Interactions Consumption Temperature F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 8 / 28

  12. The Big Picture: from Physics to Software Complex Feedback Interactions Consumption Temperature F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 8 / 28

  13. The Big Picture: from Physics to Software Complex Feedback Interactions Consumption Consumption Temperature Temperature F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 8 / 28

  14. The Big Picture: from Physics to Software Complex Feedback Interactions Consumption Consumption Temperature SW Temperature switches component off F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 8 / 28

  15. The Big Picture: from Physics to Software Complex Feedback Interactions Consumption Consumption Consumption Temperature SW Temperature switches component off F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 8 / 28

  16. The Big Picture: from Physics to Software Complex Feedback Interactions Temperature Consumption Consumption Consumption Temperature SW Temperature switches component off F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 8 / 28

  17. The Big Picture: from Physics to Software Complex Feedback Interactions SW switches on C Temperature Consumption Consumption Consumption Temperature SW Temperature switches component off F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 8 / 28

  18. The Big Picture: from Physics to Software Complex Feedback Interactions SW switches on C Temperature Consumption Consumption Consumption Temperature SW Temperature switches component off F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 8 / 28

  19. The Big Picture: from Physics to Software Complex Feedback Interactions SW switches on C Temperature Consumption Consumption Consumption Temperature SW Temperature switches Control loop component off (needs a model of the object under control) F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 8 / 28

  20. Models The Big Picture: from Physics to Software 1 Models 2 (Formal) State-Based Models Simulation Models Compulsory Abstractions for Verification/Optimization/... 3 Conclusion 4 F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 9 / 28

  21. Models Models for What? Estimate/improve the discharge time of the battery Reduce temperature peaks and temperature gradient to improve the lifetime of the circuit Estimate the loss of QoS due to low-consumption operating modes Write control code that plays with the operating modes of the components, validate the power-management policies Detect “energy bugs” in applications (try to use a component that has been switched off; fail to switch off a component that is no longer needed...) Overall design space exploration F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 10 / 28

  22. Models (Formal) State-Based Models Models 2 (Formal) State-Based Models Simulation Models F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 11 / 28

  23. Models (Formal) State-Based Models Power-State Machines ISLPED’98 International symposium on Low Power Electronics and Design F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 12 / 28

  24. Models (Formal) State-Based Models Power-State Machines with Transition Penalties States have an associated power consumption (per time unit) Transitions have an associated penalty: transition time, power F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 13 / 28

  25. Models (Formal) State-Based Models Linearly-Priced Timed-Automata “LPTA are an extension of timed automata with prices on both transitions and locations: the price of a transition gives the cost for taking it and the price on a location specifies the cost per time-unit for staying in that location” Minimum-Cost Reachability for Priced Timed Automata; Gerd Behrmann Ansgar Fehnker, Thomas S. Hune, Kim G. Larsen, Paul Pettersson, Judi Romijn, Frits W. Vaandrager, 2001 F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 14 / 28

  26. Models (Formal) State-Based Models Questions Where to use such power-state machines (or their LPTA counterpart)? Easy: for the DVFS operating points of the CPU, the operational modes of a sensor node radio (TX, RX, Idle...), ... Not so easy: the bus or NoC, the memories? What does it hide? What phenomena cannot be captured like that? Let’s look at “precise” and “complete” simulation models to try and understand what’s not captured by those formal models. F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 15 / 28

  27. Models Simulation Models Models 2 (Formal) State-Based Models Simulation Models F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 16 / 28

  28. Models Simulation Models Main Ideas Capture all potential interactions between: voltage, frequency, consumption, temperature, software decisions, state of the battery, ... Recall: SW switches on C Temperature Consumption Consumption Consumption Temperature SW Temperature switches Control loop component off (needs a model of the object under control) In the most detailed models one can play the actual software on top of a functional+extra-functional model of the hardware. F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 17 / 28

  29. Models Simulation Models Precise Simulation Models with Temperature Models and Actual Embedded Code Floorplan Bus ... CPU other MEM Temperature model F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 18 / 28

  30. Models Simulation Models Precise Simulation Models with Temperature Models and Actual Embedded Code if (T > thr) { switch "other" off; turn CPU to (V1,F1) } Embedded code Floorplan Bus HW ... CPU CPU other temp BUS MEM mem other Temperature model F. Maraninchi (UGA/VERIMAG) Oct 3rd, 2016 18 / 28

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend