A computing device apparatus facilitates use of a deep low power mode that includes powering off the device's CPU by including a software routine configured to be run by the CPU that effects saving to a non-volatile memory a state of the CPU and/or the device's peripherals before entering the deep low-power mode. The software routine can be configured to control this state storage in response to detecting a low power event, i.e., loss of power sufficient to run the CPU, or a software command to enter the deep low power mode to save power as part of an efficiency program. Then, upon wake up from the deep low power mode, the software routine is first run by the CPU to effect restoring from the non-volatile memory the state of the CPU and the peripherals before execution of a primary application for the central processing unit.
|
5. A method comprising:
operating a processing device having a central processing unit and using a plurality of volatile storage elements;
switching off, by a power management unit, power to the central processing unit, a plurality of peripheral devices, and a memory subsystem;
detecting a deep sleep event including one or both of a low power event for the processing device or a software signal to enter a deep low power mode;
in response to detecting the deep sleep event and before allowing entry into a deep low power mode by the central processing unit, using a software routine operating on the central processing unit to effect storage of a state comprising contents of the plurality of volatile storage elements of the central processing unit and/or one or more peripherals for the central processing unit to non-volatile memory comprising FRAM;
detecting while in the deep low power mode a wake up event including one or both of restoration of power to the processing device or a software signal to wake up;
in response to detecting the wake up event, using the software routine to effect restoring at least a portion of the state from the non-volatile memory in lieu of execution of a wake up process for the central processing unit from the deep low power mode.
1. A computing device apparatus comprising:
a central processing unit;
a memory sub-system;
a non-volatile memory comprising FRAM (ferro-magnetic random access memory);
a power management unit or peripheral power sensing device configured to detect presence or absence of power for the central processing unit;
wherein the power management unit is configured to effect switching off power applied to the central processing unit, peripherals for the computing device apparatus, and the memory sub-system to reach a deep low-power mode;
a software routine configured to be run by the central processing unit to effect saving to the non-volatile memory a state of the central processing unit and the peripherals before entering the deep low-power mode and to effect restoring the state of the central processing unit and the peripherals from the non-volatile memory before execution of a primary application for the central processing unit;
wherein the software routine is configured to be triggered to effect saving the state and entry into the deep low power mode in response to one or more of receiving indication of a power loss from the power management unit or the peripheral power sensing device, a software request to enter the deep low power mode, or a peripheral driven interrupt event.
8. A computing device apparatus comprising:
a central processing unit;
a memory sub-system;
a non-volatile memory comprising FRAM;
a power management unit or peripheral power sensing device configured to detect presence or absence of power for the central processing unit;
wherein the power management unit is configured to effect switching off power applied to the central processing unit, peripherals for the computing device apparatus, and the memory sub-system to reach a deep low-power mode;
a software routine configured to be run by the central processing unit to effect saving to the non-volatile memory a state of the central processing unit and the peripherals before entering the deep low-power mode and to effect restoring the state of the central processing unit and the peripherals from the non-volatile memory before execution of a primary application for the central processing unit;
wherein the non-volatile memory software routine is configured to store the state of the central processing unit by storing one or more of program counters, stack pointers, status registers, general purpose registers, or other key state information of the central processing unit;
wherein the non-volatile memory software routine is configured to store the state of the one or more peripherals associated with the central processing unit by storing one or more of peripheral configuration registers, peripheral state registers, peripheral status registers, peripheral data buffers, and other key peripheral state information;
wherein the software routine is configured to be triggered to save the state and enter the deep low power mode in response to one or more of receiving indication of a power loss from the power management unit or the peripheral power sensing device, a software request to enter the deep low power mode, or a peripheral driven interrupt event;
wherein, in response to detecting sufficient power to exit a low power mode or recover from a power loss condition, the power management unit is configured to issue a power up signal regarding exiting a deep low power mode or power loss condition.
2. The computing device apparatus of
3. The computing device apparatus of
4. The computing device apparatus of
6. The method of
7. The method of
|
This application claims the benefit of U.S. Provisional application No. 62/120,830, filed Feb. 25, 2015, which is incorporated by reference in its entirety herein.
This invention generally relates to processing devices having nonvolatile memory and, in particular, to operations for entering and exiting deep low power modes for such processing devices.
Electronic devices are continually facing performance pressures including providing increased computing power and providing varied control capabilities. The performance pressures also include needing ever increasing abilities to extend battery life or generally improve power efficiency of a computing device's operation. Accordingly, computing devices of various types include varying ways of enter low power modes that allow the given device to use less power. Low power modes generally include stopping use of various features or powering down certain peripherals for the device.
The lowest of the low power modes typically include actually removing power from a device's central processing unit (“CPU”). Entering into the lowest power modes, however, typically results in such devices not retaining the CPU state. Therefore, the device must be reset upon wakeup to restore an operating state of the CPU and other peripherals. A programmer of applications running on such a device is forced to handle this reset condition and manually restore the application's state to where it was before the device entered into deep low power mode, i.e., power down of the CPU. This is a painful process for customers using such a computing or processing device, which may cause such customers to engage application engineers for assistance with this difficult challenge. As such, the deepest low power modes are not fully or readily available for use by those using these computing devices.
Generally speaking, pursuant to these various embodiments, a computing device apparatus facilitates use of a deep low power mode that includes powering off the device's CPU by including a software routine configured to be run by the CPU that effects saving to a non-volatile memory a state of the CPU and/or the device's peripherals before entering the deep low-power mode. The software routine can be configured to control this state storage in response to detecting a low power event, i.e., loss of power sufficient to run the CPU, or a software command to enter the deep low power mode to save power as part of an efficiency program. Then, upon wake up from the deep low power mode, the software routine is first run by the CPU to effect restoring from the non-volatile memory the state of the CPU and the peripherals before execution of a primary application for the central processing unit, e.g., continuing with the application task.
So configured, the device need not execute a full reset of the CPU during the wake up from the deep low power mode. Instead, the CPU's and associated peripheral's stable operating state parameters are readily available and restorable from the non-volatile storage, which is able to store such information without consuming power. Also, the software routine can be configured to trigger the storage process at a level of applied power sufficient to guarantee availability of enough power (even in a total power loss event) of storage of the CPU's and/or associated peripheral's state. Also, state information known to be corruptible during sudden power down events can be selectively ignored and not stored during the state storage process thereby allowing for only a limited wake up process, which is quicker and less power consuming that a full wake up routine for the CPU. These and other benefits will become apparent through study of the following description and drawings.
Skilled artisans will appreciate that elements in the figures are illustrated for simplicity and clarity and have not necessarily been drawn to scale. For example, the dimensions and/or relative positioning of some of the elements in the figures may be exaggerated relative to other elements to help to improve understanding of various embodiments of the present invention. Also, common but well-understood elements that are useful or necessary in a commercially feasible embodiment are often not depicted in order to facilitate a less obstructed view of these various embodiments. It will further be appreciated that certain actions and/or steps may be described or depicted in a particular order of occurrence while those skilled in the art will understand that such specificity with respect to sequence is not actually required. It will also be understood that the terms and expressions used herein have the ordinary technical meaning as is accorded to such terms and expressions by persons skilled in the technical field as set forth above except where different specific meanings have otherwise been set forth herein.
Turning now to the figures, especially
In one approach to conserving power, the power management unit 130 is configured to effect switching off power applied to the CPU 105, the peripherals 120 for the computing device apparatus 100, and the memory sub-system 110 to reach a deep low-power mode. A software routine 150 is configured to be run by the CPU 105 to effect saving to the non-volatile memory 115 a state of the CPU 105 and the peripherals 120 before entering the deep low-power mode. The software routine 150 is configured to be triggered to save the state and enter the deep low power mode in response to one or more of receiving indication of a power loss from the power management unit 130 or the peripheral power sensing device 135, a software request to enter the deep low power mode, or a peripheral driven interrupt event. In effect, any of a number of deep sleep events can be monitored by the software routine and be used by the routine to effect storage of the state of the device immediately prior (or a previously stable state) to the non-volatile memory, which preserves the information without drawing power. The deep sleep events can include determination of a loss of power sufficient to operate the computing device or simply a command to enter a deep low power mode to converse power even if it is otherwise available.
Instead of saving the critical system state upon power loss (and thus tracking changes in machine state over time), the software routines can be configured to allow a static snapshot of the system state to be captured. For example, the software routine is configured to store the state of the CPU 105 by storing one or more of program counters, stack pointers, status registers, general purpose registers, or other key state information of the CPU 105. Similarly, the software routine can be configured to store the state of the one or more peripherals 120 associated with the CPU 105 by storing one or more of peripheral configuration registers, peripheral state registers, peripheral status registers, peripheral data buffers, and other key peripheral state information that may be stored in active settings configuration registers 160 associated with the peripherals 120. The state's static image could be restored upon each system reset or power up reset so that a stable and repeatable machine state can be recovered instead. This capability would be most useful for applications that must repeat a specific function without deviation once the device is powered up. Starting up in a repeatable state is beneficial for this class of application.
Upon wakeup from low power mode the special software routine 150 is called instead of the normal device initialization code. The software routine 150 is configured to effect restoring the state of the CPU 105 and the peripherals 120 from the non-volatile memory 115 before execution of a primary application for the central processing unit. With the CPU state restored, the software routine 150 then returns control to the main application for the computing device 100.
The change in approach from prior solutions is illustrated through comparison of
In contrast, as illustrated in
The method further includes detecting 430 while in the deep low power mode a wake up event including one or both of restoration of power to the processing device or a software signal to wake up, such as an intercepted reset signal. In response to detecting the wake up event, the software routine 420 is called before the application 405. The software routine 420 is used to effect restoring at least a portion of the state from the non-volatile memory in lieu of execution of a wake up process for the CPU from the deep low power mode. More specifically, the state information regarding the CPU stack is restored 432 from the non-volatile memory, and the state information regarding the peripherals is restored 434 from the non-volatile memory. After this restoration, control passes to the application 405 without proceeding through the typical wake up or reset routine used to set such operating parameters for the CPU and associated peripherals on a cold boot.
So configured, this configuration saves the time and energy required to reboot and/or reconfigure the computing device, such as a system on a chip (“SOC”) device, and also the energy required to re-initialize the high level software programming language used to implement the required application functionality. Because the solution does not require additional hardware to be integrated into the SOC, the solution is available for existing devices. This solution is particularly well suited to FRAM based non-volatile memory technology because FRAM has essentially unlimited write endurance (at least as high as 1014) and low write power and high write speed.
Those skilled in the art will recognize that a wide variety of modifications, alterations, and combinations can be made with respect to the above described embodiments without departing from the scope of the invention, and that such modifications, alterations, and combinations are to be viewed as being within the ambit of the inventive concept.
Dannenberg, Andreas, Peterson, Brent, Goh, Aik K., Schreiner, Joerg, Zwerg, Michael, Bartling, Steven Craig
Patent | Priority | Assignee | Title |
11243903, | Oct 20 2015 | Texas Instruments Incorporated | Nonvolatile logic memory for computing module reconfiguration |
11914545, | Oct 20 2015 | Texas Instruments Incorporated | Nonvolatile logic memory for computing module reconfiguration |
11953969, | Dec 29 2015 | Texas Instruments Incorporated | Compute through power loss hardware approach for processing device having nonvolatile logic memory |
Patent | Priority | Assignee | Title |
6081752, | Jun 07 1995 | Lenovo PC International | Computer system having power supply primary sense to facilitate performance of tasks at power off |
6198651, | Sep 08 1997 | Samsung Electronics Co., Ltd. | Ferroelectric memory devices which utilize boosted plate line voltages to improve reading reliability and methods of operating same |
6226556, | Jul 09 1998 | SHENZHEN XINGUODU TECHNOLOGY CO , LTD | Apparatus with failure recovery and method therefore |
6711692, | Jan 04 2000 | Renesas Electronics Corporation; NEC Electronics Corporation | Data processing unit including central unit and peripheral unit driven by separate power supplies |
6901298, | Sep 30 2002 | Rockwell Automation Technologies, Inc.; ROCKWELL AUTOMATION TECHNOLOGIES, INC | Saving and restoring controller state and context in an open operating system |
7639056, | May 26 2005 | Texas Instruments Incorporated | Ultra low area overhead retention flip-flop for power-down applications |
8056088, | Dec 13 2005 | Nvidia Corporation | Using scan chains for context switching |
9092206, | May 03 2010 | Texas Instruments Incorporated | Microprocessor unit capable of multiple power modes having a register with direct control bits and register pointer bits for indirect control |
20040073818, | |||
20040085846, | |||
20050141260, | |||
20060015683, | |||
20060072369, | |||
20060080515, | |||
20060242398, | |||
20060279977, | |||
20070083743, | |||
20070136523, | |||
20070217404, | |||
20080155242, | |||
20080235471, | |||
20080265962, | |||
20090237570, | |||
20090292937, | |||
20100006378, | |||
20110119506, | |||
20110197018, | |||
20110202794, | |||
20120036346, | |||
20120042206, | |||
20120137075, | |||
20120317343, | |||
20130031388, | |||
20130042052, | |||
20140006887, | |||
20140047247, | |||
20140075088, | |||
20140075174, | |||
20140075232, | |||
20140153325, | |||
20140208004, | |||
20150323983, | |||
20170109054, | |||
20170185139, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Oct 20 2015 | Texas Instruments Incorporated | (assignment on the face of the patent) | / | |||
Oct 20 2015 | DANNENBERG, ANDREAS | Texas Instruments Incorporated | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 036954 | /0428 | |
Oct 20 2015 | PETERSON, BRENT | Texas Instruments Incorporated | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 036954 | /0428 | |
Oct 20 2015 | GOH, AIK K | Texas Instruments Incorporated | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 036954 | /0428 | |
Oct 20 2015 | ZWERG, MICHAEL | Texas Instruments Incorporated | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 036954 | /0428 | |
Oct 20 2015 | BARTLING, STEVEN CRAIG | Texas Instruments Incorporated | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 036954 | /0428 | |
Oct 25 2015 | SCHREINER, JOERG | Texas Instruments Deutschland GmbH | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 036984 | /0395 | |
Jan 16 2018 | Texas Instruments Deutschland GmbH | Texas Instruments Incorporated | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 044830 | /0826 | |
Feb 15 2021 | Texas Instruments Deutschland GmbH | Texas Instruments Incorporated | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 055314 | /0255 |
Date | Maintenance Fee Events |
Dec 17 2021 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Date | Maintenance Schedule |
Jul 31 2021 | 4 years fee payment window open |
Jan 31 2022 | 6 months grace period start (w surcharge) |
Jul 31 2022 | patent expiry (for year 4) |
Jul 31 2024 | 2 years to revive unintentionally abandoned end. (for year 4) |
Jul 31 2025 | 8 years fee payment window open |
Jan 31 2026 | 6 months grace period start (w surcharge) |
Jul 31 2026 | patent expiry (for year 8) |
Jul 31 2028 | 2 years to revive unintentionally abandoned end. (for year 8) |
Jul 31 2029 | 12 years fee payment window open |
Jan 31 2030 | 6 months grace period start (w surcharge) |
Jul 31 2030 | patent expiry (for year 12) |
Jul 31 2032 | 2 years to revive unintentionally abandoned end. (for year 12) |