Embedded Systems Architecture

Similar documents
Embedded System Architecture

Power Management for Embedded Systems

POWER MANAGEMENT AND ENERGY EFFICIENCY

Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be

Lecture 15. Power Management II Devices and Algorithms CM0256

The mobile computing evolution. The Griffin architecture. Memory enhancements. Power management. Thermal management

Six-Core AMD Opteron Processor

Operating Systems Design 25. Power Management. Paul Krzyzanowski

AN4749 Application note

19: I/O Devices: Clocks, Power Management

How to get realistic C-states latency and residency? Vincent Guittot

XMEGA Series Of AVR Processor. Presented by: Manisha Biyani ( ) Shashank Bolia (

STM32L4 System operating modes

Power Management as I knew it. Jim Kardach

BIOS SETUP UTILITY Main Advanced H/W Monitor Boot Security Exit. v02.54 (C) Copyright , American Megatrends, Inc. BIOS SETUP UTILITY

Ultra Low Power Microcontroller - Design Criteria - June 2017

v02.54 (C) Copyright , American Megatrends, Inc.

COL862 - Low Power Computing

AN4311 Application note

Last Time. Making correct concurrent programs. Maintaining invariants Avoiding deadlocks

STM8L and STM32 L1 series. Ultra-low-power platform

BIOS SETUP UTILITY Main OC Tweaker Advanced H/W Monitor Boot Security Exit. v02.54 (C) Copyright , American Megatrends, Inc.

Crusoe Processor Model TM5800

v02.54 (C) Copyright , American Megatrends, Inc. BIOS SETUP UTILITY v02.54 (C) Copyright , American Megatrends, Inc.

BIOS SETUP UTILITY Main OC Tweaker Advanced H/W Monitor Boot Security Exit. v02.54 (C) Copyright , American Megatrends, Inc.

Optimizing A3200 Performance Guide. Revision:

BIOS SETUP UTILITY Main OC Tweaker Advanced H/W Monitor Boot Security Exit. v02.54 (C) Copyright , American Megatrends, Inc.

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

Intelligent Middleware. Smart Embedded Management Agent. Cloud. Remote Management and Analytics. July 2014 Markus Grebing Product Manager

Power Management. José Costa. Software for Embedded Systems. Departamento de Engenharia Informática (DEI) Instituto Superior Técnico

AMD Fusion APU: Llano. Marcello Dionisio, Roman Fedorov Advanced Computer Architectures

v02.54 (C) Copyright , American Megatrends, Inc.

Age nda. Intel PXA27x Processor Family: An Applications Processor for Phone and PDA applications

BIOS SETUP UTILITY. v02.54 (C) Copyright , American Megatrends, Inc. BIOS SETUP UTILITY

BIOS SETUP UTILITY Main Advanced H/W Monitor Boot Security Exit. v02.54 (C) Copyright , American Megatrends, Inc. BIOS SETUP UTILITY

Server-Related Policy Configuration

BIOS SETUP UTILITY. v02.54 (C) Copyright , American Megatrends, Inc.

IS 258 PC Maintenance. Lecture 7: Installing, Upgrading and Troubleshooting Processor Instructor: Henry Kalisti

A+ Guide to Hardware: Managing, Maintaining, and Troubleshooting, 5e. Chapter 4 Supporting Processors

BIOS User Guide RACING P1A

Chapter 4 Using BIOS 1

BIOS SETUP UTILITY. v02.54 (C) Copyright , American Megatrends, Inc. BIOS SETUP UTILITY

v02.54 (C) Copyright , American Megatrends, Inc. BIOS SETUP UTILITY v02.54 (C) Copyright , American Megatrends, Inc.

BIOS SETUP UTILITY. v02.54 (C) Copyright , American Megatrends, Inc.

8. Power Management and Sleep Modes

BIOS SETUP UTILITY Main Smart Advanced H/W Monitor Boot Security Exit. v02.54 (C) Copyright , American Megatrends, Inc. BIOS SETUP UTILITY

Introduction to Energy-Efficient Software 2 nd life talk

BIOS SETUP UTILITY Main Smart Advanced H/W Monitor Boot Security Exit. v02.54 (C) Copyright , American Megatrends, Inc. BIOS SETUP UTILITY

v02.54 (C) Copyright , American Megatrends, Inc. BIOS SETUP UTILITY v02.54 (C) Copyright , American Megatrends, Inc.

BIOS SETUP UTILITY Main Advanced H/W Monitor Boot Security Exit. v02.54 (C) Copyright , American Megatrends, Inc. BIOS SETUP UTILITY

IP Cam Secure Pre-Installation Notes

Low Power Design. Renesas Electronics America Inc Renesas Electronics America Inc. All rights reserved.

Best Practices for Setting BIOS Parameters for Performance

v02.54 (C) Copyright , American Megatrends, Inc.

DDR3 Memory Buffer: Buffer at the Heart of the LRDIMM Architecture. Paul Washkewicz Vice President Marketing, Inphi

BIOS SETUP UTILITY. v02.54 (C) Copyright , American Megatrends, Inc. BIOS SETUP UTILITY

REAL TIME OPERATING SYSTEMS. Lesson-15:

P4B533-X. Motherboard

AT-501 Cortex-A5 System On Module Product Brief

BIOS SETUP UTILITY. v02.54 (C) Copyright , American Megatrends, Inc. BIOS SETUP UTILITY

Blackfin Optimizations for Performance and Power Consumption

BIOS SETUP UTILITY Main Smart Advanced H/W Monitor Boot Security Exit. v02.54 (C) Copyright , American Megatrends, Inc.

CPU Clock Ratio, CPU Frequency The settings above are synchronous to those under the same items on the Advanced Frequency Settings menu.

Incorporating a Capacitive Touch Interface into Your Design

EXP8049. User s Manual TABLE OF CONTENTS

Classification of Semiconductor LSI

Computer Architecture

BIOS SETUP UTILITY Main Smart Advanced H/W Monitor Boot Security Exit. v02.54 (C) Copyright , American Megatrends, Inc. BIOS SETUP UTILITY

BIOS SETUP UTILITY. v02.54 (C) Copyright , American Megatrends, Inc. BIOS SETUP UTILITY

MICROPROCESSOR BASED SYSTEM DESIGN

BIOS Parameters by Server Model

v02.54 (C) Copyright , American Megatrends, Inc.

BIOS SETUP UTILITY. v02.54 (C) Copyright , American Megatrends, Inc. BIOS SETUP UTILITY

TA990FXE UEFI BIOS Manual

Power Management in Intel Architecture Servers

Product Technical Brief S3C2416 May 2008

BIOS SETUP UTILITY. v02.54 (C) Copyright , American Megatrends, Inc. BIOS SETUP UTILITY

Low Power Design Michael Thomas, Applications Engineer

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

UEFI BIOS Setup Main Menu Advanced Menu Chipset Menu Security Menu Boot Menu Performance Menu...

Clock and Fuses. Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar

NEC Express5800/ft series

ECE 471 Embedded Systems Lecture 2

Chapter 5. Introduction ARM Cortex series

Maximizing Six-Core AMD Opteron Processor Performance with RHEL

NUC BOX 3000/3050/3150. User Manual

Ultra-low-power pioneers: TI slashes total MCU power by 50 percent with new Wolverine MCU platform

TPOWER X79 UEFI BIOS Manual

Optimizing Performance Guide

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Msystems Ltd. P8H61-M. Specifications. REV New H61 B3 Revision Compact and powrful ASUS H61 with igpu graphics boost

Universität Dortmund. MCUs Low-Power Features

Getting Started With the Stellaris EK-LM4F120XL LaunchPad Workshop. Version 1.05

Introduction to the Personal Computer

BIOS SETUP UTILITY Main Smart Advanced H/W Monitor Boot Security Exit. v02.54 (C) Copyright , American Megatrends, Inc.

2-bit ARM Cortex TM -M3 based Microcontroller FM3 Family MB9A130 Series

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

CS 261 Fall Mike Lam, Professor. Memory

ARM Cortex core microcontrollers 12 th Energy efficient operation

BIOS SETUP UTILITY. v02.54 (C) Copyright , American Megatrends, Inc. BIOS SETUP UTILITY

Transcription:

Embedded System Architecture Software and hardware minimizing energy consumption Conscious engineer protects the natur M. Eng. Mariusz Rudnicki 1/47

Software and hardware minimizing energy consumption µcontrollers HW solutions SW solutions DSP processors HW solutions SW solutions Intel and AMD processors ACPI and other technologies 2/47

Power Software and hardware minimizing energy consumption Minimizing power consumption in practice the action in order to reach a compromise between the energy consumed by the system, and its performance. Power vs Voltage/Frequency CLK Frequency Supply voltage 3/47

Software and hardware minimizing energy consumption In many applications, it is required at the same time low power consumption and high performance, which is contradictory, forcing designers to seek compromise. Energy demand should be considered at the concept stage of the system. 4/47

Software and hardware minimizing energy consumption 5/47

Software and hardware minimizing energy consumption Acceptance HW and SW TESTS PASS TESTS PASS System conception System design HW and SW HW testing SW testing HW and SW integration System Testing Production System meets all requirements Time 6/47

Software and hardware minimizing energy consumption Tests fail Tests fail Tests fail System conception System design HW and SW HW testing SW testing HW and SW integration System Testing Production delay delay delay Time 7/47

Software and hardware minimizing energy consumption - µcontrollers Hardware minimizing energy consumption Work with a supply voltage as low as possible - power consumption is proportional to the square of the supply voltage. Consequence of the above Lower system performance 8/47

Software and hardware minimizing energy consumption - µcontrollers Hardware minimizing energy consumption Work with a system clock frequency as low as possible - power consumption is proportional to the system clock frequency. Consequence of the above Extended processing time 9/47

Software and hardware minimizing energy consumption - µcontrollers Frequency versus supply voltage ATxmega family. 10/47

Software and hardware minimizing energy consumption - µcontrollers How to save energy? By using of available power-saving modes, as follows: µcontroller should spend as much time as possible in sleep modes. In Active mode µcontroller should work with maximum performance. Active mode should be as short as possible. It is a well known method. Effectiveness of this method depends on: how the designer can deal with the effective use of power-saving modes and shorten the duration of the application with maximum performance. 11/47

Software and hardware minimizing energy consumption - µcontrollers Estimating the energy demand of the system using power-saving modes designer has to take into account in the energy balance energy needed to wake up CPU (wake-up energy). Estimating excluding wake-up energy Estimating including wake-up energy 12/47

Software and hardware minimizing energy consumption - µcontrollers TI MSP430 operating modes 13/47

Software and hardware minimizing energy consumption - µcontrollers ATMEL XMEGA operating modes 14/47

Software and hardware minimizing energy consumption - µcontrollers STMicroelectronics STM32L1 operating modes Mode Power consumption CPU Flash / EEPROM RAM DMA & Periph Clock LCD RTC Sleep 100µA/MHz (R1) NO On On Active Any Enable Low power run Low power sleep 10,4µA Flash OFF, 32 khz YES On or Off On Active MSI Enable 5,1µA (periph. Off) NO Off On Active MSI Enable Stop with RTC 1,3µA (1,8V) NO Off On Stopped LSE, LSI Enable Stop 500nA NO Off On Stopped LSE, LSI Off Off Standby with RTC 1µA (1,8V) Off Off Off Off LSE, LSI Off Off Standby 270nA Off Off Off Off LSE, LSI Off Off 15/47

Software and hardware minimizing energy consumption - µcontrollers Other possibilities of minimizing power consumption. 16/47

Software and hardware minimizing energy consumption - µcontrollers Sotfware compilation with code optimization: optimization option max. speed: Cost: larger code size; Benefits: shorter work time with max. performance; smaller number of instructions to execute. Example: Compilation option Code size Energy consumed within 1 sec Max. speed 5456b (+38%) 41 µj Min. size 3944b 77,6 µj (+92%) 17/47

Software and hardware minimizing energy consumption - µcontrollers Other exemplary methods: Repeated explicit substitutions reduce the number of jump instructions; Replacement of a single complex instruction set of simple instructions e.g. modulo instruction (may take from 2 to 12 clock cycles) may be replaced by a simple control of the variable state. 18/47

Software and hardware minimizing energy consumption DSP processors Frequency scaling. Supply voltage scaling. Usage of the power-saving modes: Power STANDBY mode; Power SLEEP mode; Power DEEPSLEEP mode. Proper use of the above mentioned options. 19/47

Software and hardware minimizing energy consumption DSP processors Effective usage of the Interrupt system; Data transfer via DMA channels; Effective usage of the Event system; Code optimization; FFT hardware acceleration; 20/47

Software and hardware minimizing energy consumption TI DSP processors C5XXX Power Scaling Library: Scaling operation to scale frequency and voltage or frequency only; Query operations that return current frequency and voltage settings; Query operations that return available frequencies settings and the required voltage settings for those frequencies Query operation that returns the latencies associated with a scaling operation; Callbacks to user code before and after scaling operations. These callbacks will enable users to perform any necessary peripheral modifications that may be required as a result of the upcoming/just completed scaling operation. 21/47

Software and hardware minimizing energy consumption TI DSP processors C5XXX 22/47

Software and hardware minimizing energy consumption TI DSP processors The DSP/BIOS Power Manager, PWRM module that lets you reduce the power consumption of your application. The PWRM module provides the following capabilities: Resource Tracking. Scaling Voltage and Frequency. Using Sleep Modes. Coordinating Sleep and Scaling. C55x PWRM additional capabilities: Idling Clock Domains. Saving Power at Boot Time. DSP Device Initialization. 23/47

Software and hardware minimizing energy consumption Analog Devices DSP processors Dynamic Power Management Controller consists of two main components which allows flexibility in managing power dissipation on the processor: Operating Modes; Peripheral Clocking; Dynamic Voltage Control. Operating modes: Full-on mode; Active mode; Sleep mode; Deep Sleep mode. 24/47

SW and HW minimizing energy consumption INTEL processors Various power states: System Sleep States (S-States) Processor Power States (C-States) Processor Performance Power States (P-States) Power Management Technologies: C-State Auto Demotion Intel Turbo Boost Technology Virtualization Power Management Memory Power Management 25/47

SW and HW minimizing energy consumption INTEL processors Advanced Configuration and Power Interface (ACPI) Supported States S0 C0 P0 P1 Pn-1 Pn C1 C1E C3 C6 S4 S3 S5 P-States are a sub-state of the C0 state Offer reduced power consumption while the processor is executing code. C-States are a sub-state of the S0 state Offer reduced power consumption while the system is fully on. 26/47

SW and HW minimizing energy consumption INTEL processors System Sleeping Power States (S-States) S-States allow the system to save a power when not being used. S0 Full on: Processor Operating. Individual devices may be shut down or be placed into lower power states to save power. S3 Suspend-to-RAM: System context maintained in DRAM. Power shut off to non-critical circuits. Memory is retained and refreshes continue. All clocks are stopped except RTC clock. S4 Suspend-to-Disk: System context maintained on disk. All power is then shut off except for that needed to resume. 27/47

SW and HW minimizing energy consumption INTEL processors S5 Soft off: System context not maintained. All power is shut off except for that needed to restart. A full boot is required when waking. S-States reduce power consumption significantly. Latency back to S0 is in the order of seconds. Wake event can be trigged by: a motion sensor; remotely using Intel Active Management Technology (Intel AMT); a timer or another activity (LAN or GPIO) pins. 28/47

SW and HW minimizing energy consumption INTEL processors Processor Power and Performance Power States Processor Power States (C-States): Reduces power consumption by sleeping the processor when it doesn t have code to execute. Entry and Exit delays are much smaller compared to S-States. Processor Performance Power States (P-States): Enhanced Intel SpeedStep Technology Reduces power consumption without preventing the processor from executing code. 29/47

SW and HW minimizing energy consumption INTEL processors Processor C-States: C-States ensure lower processor power during idle light workloads; C-State limits can be set by BIOS; A processor can go into sleep states several thousand times per second; OS controls the C-states in its idle process. 30/47

SW and HW minimizing energy consumption INTEL processors Processor C States 31/47

SW and HW minimizing energy consumption INTEL processors C-State Auto Demotion: C0 C1 C1E C3 C6 In general, Latency and Energy entry/exit costs increase with deeper C-States. C-State Auto Demotion prevents unnecessary excursions into C6 & C3 states to improve latency. 32/47

SW and HW minimizing energy consumption INTEL processors C6 C3 Two C-State auto-demotion options. Requests for C6 or C3 will route to C3 or C1 until sufficient residency is established. Decision to demote is based on each core s immediate residency history. This feature is disabled by default. C6 C3 See your BIOS vender to enable this feature. C1 33/47

SW and HW minimizing energy consumption INTEL processors Processor Performance Power States (P-States): P0 P1 Pn Processor consumes max power and is at max performance. Processor consumes less power and performance capabilities are limited below max. Performance is at minimal level and lowest power consumption. n must not exceed 16. ACPI Spec Rev. 4.0a Defined 34/47

SW and HW minimizing energy consumption INTEL processors Multiple voltage and frequency operating points: Software controlled by writing to MSRs; The voltage is optimized based on the selected frequency and number of active processor cores; All active processor cores share the same frequency and voltage. Number of supported states is processor dependent. 35/47

SW and HW minimizing energy consumption INTEL processors P-states (Where are they useful?): P-States are useful when the system runs non-critical workloads that don t require higher performance. P States are useful when the system in power sensitive markets that don t care so much about performance. i.elonger battery life. P States is useful under interactive modes where the system is waiting for user inputs. When I/O or memory is throttled. 36/47

SW and HW minimizing energy consumption INTEL processors The Aggressiveness of P states. Set via OS: Linux P States can be configured based on the end users using governors: On Demand (Preferred) can be customized; Performance Aggressive Performance; Power save Aggressive Power; User space- User can set upper and lower limits. Windows has power management schemes to set the values: Balanced; Max Battery; Max Performance; Custom. 37/47

SW and HW minimizing energy consumption INTEL processors Virtualization Power Management - Workload consolidation during off peak usage. Memory Power Management. Intel Turbo Boost Technology. 38/47

SW and HW minimizing energy consumption INTEL Core TM 2 Duo Processor 39/47

SW and HW minimizing energy consumption INTEL Core TM 2 Duo Processor Improved power saving in an Idle state. Enhanced Deeper Sleep state both the CPU cores and chipset will power down without shutting the system down completely. 40/47

SW and HW minimizing energy consumption INTEL Core TM 2 Duo Processor Intel Dynamic Acceleration Technology support applications executed via a single thread. Smart Cache Technology single pool of memory for both cores in case that only one core was under load, it had access to all the cache. 41/47

SW and HW minimizing energy consumption AMD processors AMD-P technologies: Enhanced AMD PowerNow! Technology for reduced power consumption by the entire processor. Native quad-core technology enables enhanced power management across all four cores. High Performance mode; Power-Saver mode; Automatic mode. 42/47

SW and HW minimizing energy consumption AMD processors Independent Dynamic Core Technology allows each core to vary its frequency, based on the specific needs of the system. This allows for more precise power management to reduce data center energy consumption and thereby reduce total cost of ownership (TCO). Dual Dynamic Power Management - allows each processor to maximize the power-saving benefi ts of Enhanced AMD PowerNow! technology without compromising performance. Dual Dynamic Power Management can reduce idle power consumption and allow for perprocessor power management in multi-socket systems to decrease power consumption. 43/47

SW and HW minimizing energy consumption AMD processors AMD CoolCore Technology To reduce power consumption within each core AMD CoolCore Technology evaluates which parts of the die the cores, the memory, or both are needed to support currently running applications. It can cut power to unused transistor areas to reduce power consumption and lower heat generation. AMD Smart Fetch Technology AMD Smart Fetch Technology helps reduce power consumption by allowing idle cores to enter a halt state, causing them to draw even less power during processing idle times. 44/47

SW and HW minimizing energy consumption AMD processors Integrated DDR3 DRAM Memory Controller: low-power memory to help reduce power consumption. AMD s integrated memory controller works with high bandwidth, energy-efficient DDR3 memory, both standard power 1.5v and low voltage 1.35v memory. It incorporates memory RAS for increased fault tolerance to help reduce system downtime and increase system reliability. 45/47

Minimizing energy consumption ACPI Advanced Configuration and Power Interface The principal goals of ACPI and OSPM are to: Enable all computer systems to implement motherboard configuration and power management functions, using appropriate cost/function tradeoffs. Enhance power management functionality and robustness. Power management policies too complicated to implement in a ROM BIOS can be implemented and supported in the OS, allowing inexpensive power managed hardware to support very elaborate power management policies. Gathering power management information from users, applications, and the hardware together into the OS will enable better power management decisions and execution. Unification of power management algorithms in the OS will reduce conflicts between the firmware and OS and will enhance reliability. Facilitate and accelerate industry-wide implementation of power management. Create a robust interface for configuring motherboard devices. 46/47

SW and HW minimizing energy consumption links and references http://www.atmel.com/images/atmel-8386-8-and-16-bit-avr-microcontroller-atxmega64a3u- 128A3U-192A3U-256A3U_datasheet.pdf http://www.ti.com/lit/ds/symlink/msp430g2231.pdf http://www.ti.com/lit/ug/spru423i/spru423i.pdf http://www.analog.com/media/en/technical-documentation/application-notes/ee-172.pdf http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/doc/ols2006-ondemand-paper.pdf http://www.acpi.info/downloads/acpispec10b.pdf http://www.microsoft.com/whdc/system/pnppwr/powermgmt/procpowermgmtwin7.mspx Next Generation Intel Microarchitecture(Nehalem): Architectural Insights and Power Management by Steve Gunther, RonakSinghalpresented at IDF http://www.intel.com/idf/ Introduction to Intel Core Duo Processor Architecture Intel Technology Journal http://developer.intel.com/technology/itj/2006/volume10issue02/art01_intro_to_core_duo/p01_ abstract.htm AdvancedConfiguration and Power Interface Specification, Revision 4.0a http://www.acpi.info/ Intel Core 2 Processor Family Power States (P-States) Results Graph, Source: http://download.intel.com/design/mobile/datashts/32012001.pdf http://edc.intel.com/intel-product-technologies/ http://edc.intel.com/training/courses.aspx?ttag=ttipt 47/47