WO2024036452A1 - Processing apparatus, and related control method for low-power-consumption standby - Google Patents

Processing apparatus, and related control method for low-power-consumption standby Download PDF

Info

Publication number
WO2024036452A1
WO2024036452A1 PCT/CN2022/112593 CN2022112593W WO2024036452A1 WO 2024036452 A1 WO2024036452 A1 WO 2024036452A1 CN 2022112593 W CN2022112593 W CN 2022112593W WO 2024036452 A1 WO2024036452 A1 WO 2024036452A1
Authority
WO
WIPO (PCT)
Prior art keywords
management unit
power
soc
power management
internal memory
Prior art date
Application number
PCT/CN2022/112593
Other languages
French (fr)
Chinese (zh)
Inventor
杨春杰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2022/112593 priority Critical patent/WO2024036452A1/en
Publication of WO2024036452A1 publication Critical patent/WO2024036452A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J9/00Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power

Definitions

  • the present invention relates to the field of chip technology, and in particular, to a processing device and related low-power standby control method.
  • the standby power consumption of the terminal device mainly includes SoC standby power consumption, and also includes other power consumption such as memory, power management unit and board level.
  • Embodiments of the present invention provide a processing device and related low-power standby control method to reduce standby power consumption, increase standby time, and improve user experience.
  • an embodiment of the present invention provides a processing device, characterized in that the processing device includes a power management unit, a system-on-chip SoC and an internal memory, wherein the SoC and the internal memory are coupled to the power management unit.
  • the power management unit supplies power to the SoC through the first power domain, and supplies power to the internal memory through the second power domain;
  • the power management unit is used to: receive the first instruction sent by the SoC, The first instruction is used to instruct the processing device to enter a standby state; control to disconnect the first power domain and keep part or all of the power supply of the second power domain in a power supply state; wherein the processing device is in After entering the standby state, the SoC is in a completely power-off state and some or all devices of the internal memory are in a power-on state; a first control signal is sent to the internal memory, and the first control signal is used to maintain The internal memory is in a first mode, wherein in the first mode the internal memory stores currently stored data.
  • the SoC when the processing device enters the standby state, the SoC can first control the internal memory to enter the self-refresh mode, and then the power management unit takes over some of the control signals of the internal memory to maintain the internal memory in the self-refresh state, and then the power management unit The unit can shut down the entire power supply to the SoC, thereby reducing the overall standby power consumption of the processing device. Furthermore, when the processing device is woken up (that is, the processing device returns to normal working status), since the data in the internal memory is not lost, there is no need to re-read relevant data from the external memory to the internal memory (that is, the processing device does not need to be powered on and initialized again). process), thereby reducing the power-on recovery time of the processing device.
  • the SoC needs to continue to control and manage the internal memory, that is, the SoC needs to maintain the internal memory in the self-refresh mode to ensure that the data currently stored in the internal memory is not lost. Therefore, in the existing It is technically impossible to completely power off the SoC.
  • the power management unit in this application, by improving the power management unit in the processing device, when the processing device enters the standby state, the power management unit can take over the internal memory after the SoC is completely powered off and maintain the internal memory in the self-refresh mode. , which not only ensures that the processing device can return to normal working status in a short period of time, but also reduces the standby power consumption of the processing device, increases the standby time, and improves the user experience.
  • the power management unit includes a status register and a first control module; the power management unit is specifically configured to: after receiving the first instruction sent by the SoC, The status register is set to a first state; in the first state, the signal output by the SoC to the internal memory is shielded through the first control module, and the first control signal is sent to the internal memory. signal to maintain the internal memory in the first mode.
  • the power management unit includes a status register and a first control module.
  • the power management unit receives the first instruction sent by the SoC, it can first set the status register to 1 (that is, the first state) , which in turn can indicate that the processing device enters a standby state, and then the power management unit can take over the internal memory.
  • the signal sent by the SoC to the internal memory through the power management unit becomes unstable, causing the control signal sent by the power management unit to the internal memory to be disordered and destroying the self-refresh state of the internal memory.
  • the first control module in the management unit will shield the signal sent by the SoC to the internal memory (for example, the signal sent by the SoC to the internal memory can be shielded before the SoC is completely powered off), and the power management unit will fully control and manage the internal memory. Furthermore, the first control module of the power management unit can send a first control signal to the internal memory to maintain the internal memory in the self-refresh mode, so that the internal memory can still save the currently stored data when the processing device is in the standby state.
  • the SoC after the processing device enters the standby state, the SoC is completely powered off and the internal memory can still retain the currently stored data. This ensures that the processing device can resume normal operation in a short period of time. status, it also reduces the standby power consumption of the processing device, increases the standby time, and improves the user experience.
  • the internal memory is configured to: receive the first control signal sent by the power management unit, and maintain the first mode to save currently stored data.
  • the power management unit can control and manage the state of the internal memory. Therefore, after the internal memory receives the first control signal sent by the power management unit, it can maintain the self-refresh mode (ie, the first mode), that is, the internal memory continuously refreshes the currently stored data, so that the processing device enters the standby state. Afterwards, the internal memory can still retain the currently stored data.
  • the SoC is completely powered off and the internal memory can still retain the currently stored data. This ensures that the processing device can resume normal operation in a short period of time. status, it also reduces the standby power consumption of the processing device, increases the standby time, and improves the user experience.
  • the processing device further includes an external memory
  • the power management unit is further coupled with the external memory, and the power management unit supplies power to the external memory through a third power domain
  • the power management unit is further configured to: after receiving the first instruction sent by the SoC, keep part or all of the power supply of the third power domain in a power supply state, wherein the processing device enters the standby state. After the state, some or all devices of the external memory are in the power-on state; a second control signal is sent to the external memory, and the second control signal is used to maintain the external memory in the second mode, wherein, in the In the second mode, the external memory retains current configuration parameters.
  • the power management unit after the power management unit receives the first instruction sent by the SoC, in order to avoid the problem of losing the current configuration parameters of the external memory after the processing device enters the standby state, the power management unit will maintain the third power domain. In power supply state. In order to reduce the power consumed in standby, some power domains in the third power domain can also be powered off, that is, some or all devices that do not affect the storage of current configuration parameters in the external memory can be powered off. Further, when the processing device enters the standby state, the SoC can be powered off, and the power management unit takes over the internal memory and external memory. After the power management unit takes over the external memory, it can send a second control signal to the external memory to maintain the external memory in the second mode.
  • the second mode can be understood as a low power consumption mode of the external memory.
  • the external memory can still retain the current configuration parameters and configuration status.
  • the SoC is completely powered off and the internal memory can still retain the currently stored data.
  • the external memory also retains the current configuration parameters, which ensures that the processing The device can return to normal working status in a shorter period of time, which also reduces the standby power consumption of the processing device, increases the standby time, and improves user experience.
  • the power management unit further includes a second control module; when the status register is set to the first state, the power management unit is specifically configured to: A second control module, shields the signal output by the SoC to the external memory, and sends the second control signal to the external memory to maintain the external memory in the second mode.
  • the power management unit may also include a second control module.
  • the power management unit After receiving the first instruction sent by the SoC, the power management unit can first set the status register to 1 (ie, the first state), which can indicate that the processing device enters the standby state, and then the power management unit can take over the external memory.
  • the status register ie, the first state
  • the power management unit can take over the external memory.
  • the signal sent by the SoC to the external memory through the power management unit becomes unstable, causing the signal sent by the power management unit to the external memory to be disordered.
  • the second control module in the power management unit will The signal sent by the SoC to the external memory is shielded, and the power management unit fully controls and manages the external memory.
  • the second control module of the power management unit can then send a second control signal to the external memory, so that the external memory can be maintained at low power. consumption mode, so that the external memory can still save the current configuration parameters and configuration status when the processing device is in standby mode.
  • the SoC is completely powered off and the internal memory can still retain the currently stored data.
  • the external memory also retains the current configuration parameters, which ensures that the processing The device can return to normal working status in a shorter period of time, which also reduces the standby power consumption of the processing device, increases the standby time, and improves user experience.
  • the external memory is configured to receive the second control signal sent by the power management unit and maintain the second mode to retain current configuration parameters.
  • the power management unit can control and manage the status of the external memory. Therefore, when the external memory receives the second control signal sent by the power management unit, it can remain in the low power consumption mode (second mode), that is, the external memory can still retain the current configuration information and data after the processing device enters the standby state. Configuration status.
  • the SoC is completely powered off and the internal memory can still retain the currently stored data.
  • the external memory also retains the current configuration parameters, which ensures that the processing The device can return to normal working status in a shorter period of time, which also reduces the standby power consumption of the processing device, increases the standby time, and improves user experience.
  • the power management unit is further configured to: upon receiving an indication that the processing device needs to resume its working state, restore the first power domain and supply power to the SOC; receive The second instruction sent by the SOC sets the status register to a second state; in the second state, the signal output by the SoC to the internal memory is unshielded, and the signal output by the SoC to the internal memory is forwarded.
  • the signal output by the internal memory is sent to the internal memory; or, the signal output by the SoC to the external memory is unblocked, and the signal output by the SoC to the external memory is forwarded to the external memory.
  • the SoC can unblock the control signals from the SoC to the power management unit by controlling the relevant logic of the power management unit, and at the same time transparently transmit the relevant control signals to the internal memory and external memory through the power management unit.
  • the processing device returns to normal working condition.
  • the SoC is completely powered off and the internal memory can still retain the currently stored data.
  • the external memory also retains the current configuration parameters, which ensures that the processing The device can return to normal working status in a shorter period of time, which also reduces the standby power consumption of the processing device, increases the standby time, and improves user experience.
  • the SoC is configured to: after the first power domain is turned on, determine whether the status register in the power management unit is in the first state; if the If the status register is in the first state, the second instruction is sent to the power management unit.
  • the SoC after the SoC is powered on again, it can first be determined whether the status register in the power management unit is in the first state. If the status register is in the first state, a second instruction can be sent to the power management unit to The relevant logic of the control power management unit unblocks the control signals sent by the SoC to the power management unit. At the same time, the SoC can transparently transmit the relevant control signals to the internal memory and external memory through the power management unit. If the status register is not in the first state, the processing device will perform a power-on restart process, which requires reconfiguring the external memory and re-reading the required data from the external memory to the internal memory.
  • the SoC is completely powered off and the internal memory can still retain the currently stored data.
  • the external memory also retains the current configuration parameters, which ensures that the processing The device can return to normal working status in a shorter period of time, which also reduces the standby power consumption of the processing device, increases the standby time, and improves user experience.
  • embodiments of the present invention provide a low-power standby control method, which is characterized in that it is applied to a processing device.
  • the processing device includes a power management unit, a system-on-chip SoC and an internal memory, wherein the SoC and the The internal memory is coupled to the power management unit, the power management unit supplies power to the SoC through a first power domain, and supplies power to the internal memory through a second power domain;
  • the method includes: using the power management unit A unit that receives a first instruction sent by the SoC, where the first instruction is used to instruct the processing device to enter a standby state; and controls to disconnect the first power domain through the power management unit and maintain the first power domain.
  • Part or all of the power supplies in the second power domain are in a power supply state; wherein, after the processing device enters the standby state, the SoC is in a completely power-off state and some or all devices of the internal memory are in a power-on state; by The power management unit sends a first control signal to the internal memory.
  • the first control signal is used to maintain the internal memory in a first mode, wherein in the first mode, the internal memory saves the current stored data.
  • the power management unit includes a status register and a first control module; sending a first control signal to the internal memory through the power management unit includes: upon receiving the After the first instruction is sent by the SoC, the status register is set to the first state; in the first state, the signal output by the SoC to the internal memory is shielded through the first control module, and sending the first control signal to the internal memory to maintain the internal memory in the first mode.
  • the method further includes: receiving the first control signal sent by the power management unit through the internal memory, and maintaining the internal memory in the first mode to Save currently stored data.
  • the processing device further includes an external memory
  • the power management unit is further coupled with the external memory, and the power management unit supplies power to the external memory through a third power domain
  • the method further includes: using the power management unit, after receiving the first instruction sent by the SoC, keeping part or all of the power supply of the third power domain in a power supply state, wherein the processing device enters After the standby state, some or all components of the external memory are in a powered-on state; a second control signal is sent to the external memory through the power management unit, and the second control signal is used to maintain the external memory.
  • the memory is in a second mode, wherein the external memory retains current configuration parameters in the second mode.
  • the power management unit further includes a second control module; when the status register is set to the first state, the power management unit sends a signal to the external memory through the power management unit.
  • Sending a second control signal includes: shielding the signal output by the SoC to the external memory through the second control module, and sending the second control signal to the external memory to maintain the external memory in The second mode.
  • the method further includes: receiving the second control signal sent by the power management unit through the external memory, and maintaining the external memory in the second mode to Keep current configuration parameters.
  • the method further includes: upon receiving an indication that the processing device needs to resume its working state, restoring the first power domain and powering the SoC through the power management unit; Through the power management unit, the second instruction sent by the SoC is received, and the status register is set to the second state; in the second state, the power management unit is used to unblock the SoC to the the signal output by the internal memory, and forward the signal output by the SoC to the internal memory; or, unblock the signal output by the SoC to the external memory, and forward the signal output by the SoC to the external memory.
  • the external memory outputs the signal to the external memory.
  • the method further includes: after the first power domain is turned on, determining whether the status register in the power management unit is in the first state through the SoC; If the status register is in the first state, the second indication is sent to the power management unit through the SoC.
  • the present application provides a terminal device that has the function of implementing any of the above low-power standby control methods.
  • This function can be implemented by hardware, or it can be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • embodiments of the present invention provide a computer program.
  • the computer program includes instructions.
  • the computer program can perform any one of the low-power standby control methods in the second aspect. process.
  • the present application provides a semiconductor chip, characterized in that the semiconductor chip includes the processing device described in any one of the above first aspects.
  • the present application provides an electronic device, characterized in that the electronic device includes the semiconductor chip described in the fifth aspect.
  • Figure 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • Figure 2 is a schematic structural diagram of a processing device provided by an embodiment of the present invention.
  • Figure 3 is a schematic diagram of a power domain in a power management unit provided by an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a user interface of an electronic device entering a standby state according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a power domain after a processing device is in a standby state according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a power management unit after a processing device enters a standby state according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a power management unit after another processing device is in a standby state according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of another power management unit after the processing device is in a standby state according to an embodiment of the present invention.
  • Figure 9 is a schematic structural diagram of another processing device provided by an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of another power management unit after another processing device is in a standby state according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of a power management unit in the working state of a processing device provided by an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of a power management unit in the working state of another processing device provided by an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of a user interface for waking up an electronic device according to an embodiment of the present invention.
  • Figure 14 is a schematic flowchart of a processing device entering a standby state according to an embodiment of the present invention.
  • Figure 15 is a flow chart of a low-power standby control method provided by an embodiment of the present invention.
  • an embodiment means that a particular feature, structure or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application.
  • the appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those skilled in the art understand, both explicitly and implicitly, that the embodiments described herein may be combined with other embodiments.
  • a component may be, but is not limited to, a process, processor, object, executable file, thread of execution, program and/or computer running on a processor.
  • applications running on the computing device and the computing device may be components.
  • One or more components can reside in a process and/or thread of execution and a component can be localized on one computer and/or distributed between 2 or more computers. Additionally, these components can execute from various computer-readable media having various data structures stored thereon.
  • a component may, for example, be based on a signal having one or more data packets (eg, data from two components interacting with another component, a local system, a distributed system, and/or a network, such as the Internet, which interacts with other systems via signals) Communicate through local and/or remote processes.
  • data packets eg, data from two components interacting with another component, a local system, a distributed system, and/or a network, such as the Internet, which interacts with other systems via signals
  • FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • the electronic device 100 may include but is not limited to a smartphone, a smart wearable device (such as a smart watch), a tablet computer, a personal digital assistant, etc. Various types of equipment that rely on battery power.
  • the electronic device 100 may have a built-in chip or chipset or a circuit board equipped with the chip or chipset, and the chip or chipset or the circuit board equipped with the chip or chipset can work under necessary software drivers.
  • the chip or chipset or the circuit board equipped with the chip or chipset may include a power management unit 101, a system on chip 102, an internal memory 103, an external memory 104, a battery 105, and further may also include components not shown in Figure 1 Interfaces, peripherals and other components. specific,
  • the power management unit 101 can manage the power supply of the electronic device 100 .
  • the power management unit 101 can be used to connect the battery 105, the system on chip 102, the internal memory 103, the external memory 104 and other devices.
  • the power management unit 101 can receive input from the battery 105 and/or the charge management unit to provide power to the system-on-chip 102, internal memory 103, external memory 104, etc.
  • the power management unit 101 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • Batteries 105 may include rechargeable batteries, and/or lithium batteries, etc.
  • the power management unit 101 when the electronic device 100 enters the standby state, the power management unit 101 can completely power off the system-on-chip 102, and the power management unit 101 can take over the internal memory 103 and the external memory 104 to maintain the internal memory 103 in the standby state.
  • the self-refresh state and the external memory 104 are in a low power consumption state, which not only reduces standby power consumption, increases standby time, and improves user experience, but also enables quick power-on recovery of the system-on-chip 102. How the power management unit 101 takes over the internal memory 103 and the external memory 104 in the standby state will be described in detail in subsequent embodiments, and will not be described in detail here.
  • System On Chip 102 may include a processor 1021 and a controller 1022.
  • the power management unit 101 supplies power to the system-on-chip 102.
  • the processor 1021 in the system-on-chip 102 can run an operating system, a file system (such as a flash file system) or an application program to control the connection to the system.
  • Processor 1021 is a plurality of hardware or software elements and can process various data and perform operations.
  • the processor 1021 can load the instructions or data stored in the external memory 104 into the internal memory 103, and transfer the instructions or data that require operation to the processor 1021 for operation. When the operation is completed, the processor 1021 temporarily stores the results.
  • the processor 1021 may include one or more processing units (also called processing cores).
  • the processor 1021 may include a central processing unit (CPU), an application processor (application processor, AP), a modem processing unit, a graphics unit Processing unit (graphics processing unit, GPU), image signal processing unit (image signal processor, ISP), video encoding and decoding unit, digital signal processing unit (digital signal processor, DSP), baseband processing unit and neural network processing unit (neural- One or more of network processing unit, NPU), etc.
  • different processing units can be independent devices or integrated in one or more devices.
  • the processor 1021 may also be provided with a memory for storing instructions and data.
  • the memory in processor 1021 is a cache memory (Cache).
  • the Cache can store instructions or data just used or recycled by the processor 1021. If the processor 1021 needs to use the instruction or data again, it can be directly called from the Cache. Repeated access is avoided and the waiting time of the processor 1021 is reduced, thus improving the efficiency of the system.
  • the controller 1022 in the system-on-chip 102 can be used to manage and control the data reading and writing between the processor 1021 and the internal memory 103 and the external memory 104.
  • the controller 1022 can convert the instructions or data into data packets supporting a certain protocol through encapsulation. For data received by the processor 1021, the controller 1022 Then perform the reverse operation. In some embodiments, when the electronic device 100 is in the standby state, all devices in the system-on-chip 102 may be in a power-off state, that is, the power management unit 101 may stop powering the system-on-chip 102 .
  • the internal memory 103 is usually a power-off volatile memory, which will lose its stored contents when the power is off. It can also be called memory or main memory.
  • the internal memory 103 in this application includes readable and writable running memory, which is used to temporarily store the operation data in the processor 1021, and to interact with the external memory 104 or other external memories. It can be used as an operating system or other ongoing memory.
  • a storage medium for temporary data of running programs For example, the operating system running on the processor 1021 transfers the data that needs to be calculated from the internal memory 103 to the processor 1021 for calculation. When the calculation is completed, the processor 1021 transmits the result.
  • the power management unit 101 when the electronic device 100 enters the standby state, the power management unit 101 will continue to supply power to the internal memory 103 and put the internal memory 103 in a self-refresh mode to ensure that the data currently stored in the internal memory 103 is not lost, thus avoiding This eliminates the need to load the required data or instructions in the external memory 104 into the internal memory 103 again after the system-on-chip 102 is powered on again, thereby reducing the power-on recovery time of the system-on-chip 102 so that the electronic device 100 can recover more quickly. to normal working condition.
  • the internal memory 103 may include one or more of dynamic random access memory (DRAM), static random access memory (SRAM), synchronous dynamic random access memory (SDRAM), and the like.
  • DRAM also includes Double Data Rate Synchronous Dynamic Random Access Memory (DDR SDRAM), referred to as DDR, second-generation double-rate synchronous dynamic random access memory (DDR2), and third-generation double-rate synchronous dynamic random access memory (DDR SDRAM).
  • DDR SDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • DDR2 second-generation double-rate synchronous dynamic random access memory
  • DDR SDRAM third-generation double-rate synchronous dynamic random access memory
  • DDR3 the fourth generation of low power double data rate synchronous dynamic random access memory
  • LPDDR4 Low Power Double Data Rate 4
  • LPDDR5 Low Power Double Data Rate 5
  • LPDDR5 Low Power Double Data Rate 5
  • the external memory 104 is a non-volatile memory, and its stored contents will not be lost after power failure.
  • the external memory 104 can be used for long-term storage of instructions and data involved in the operation of the processor 1021, such as startup programs, operating systems, application programs, and data. Since the processor 1021 cannot directly read instructions and data in the external memory 104 nor directly write instructions or data to the external memory 104, when the processor 1021 executes a read (or load) instruction, it actually passes the controller 1022.
  • the content to be read (including instructions and/or data) stored in the external memory 104 is temporarily loaded into the internal memory 103, and then the processor 1021 reads it from the internal memory 103; while performing writing (i.e., storing)
  • the processor 1021 actually first temporarily writes the data to be stored (including instructions and/or data) into the internal memory 103 , and then stores the data from the internal memory 103 to the external memory 104 through the controller 1022 .
  • the power management unit 101 when the electronic device 100 enters the standby state, the power management unit 101 will continue to supply power to the external memory 104 and put the external memory 104 in a low power consumption mode to ensure that the external memory 104 retains the current configuration parameters, preventing This eliminates the need for the external memory 104 to re-perform the power-on initialization process after the system-on-chip 102 is powered on again, thereby reducing the power-on recovery time of the system-on-chip 102, so that the electronic device 100 can return to a normal working state more quickly.
  • the external memory 104 may include Flash memory (for example, NAND flash memory, NOR flash memory, etc.), universal flash memory (universal flash storage, UFS), embedded multimedia card eMMC, universal flash memory storage multi-chip package uMCP memory, embedded multimedia card, etc. Chip package one or more of eMCP memory, solid state drive (SSD), etc.
  • Flash memory for example, NAND flash memory, NOR flash memory, etc.
  • universal flash memory universal flash storage, UFS
  • embedded multimedia card eMMC universal flash memory storage multi-chip package uMCP memory
  • embedded multimedia card etc.
  • Chip package one or more of eMCP memory, solid state drive (SSD), etc.
  • the structure of the electronic device 100 in FIG. 1 is only some exemplary implementations provided by the embodiment of the present invention.
  • the structure of the electronic device in the embodiment of the present invention includes but is not limited to the above implementations.
  • FIG. 2 is a schematic structural diagram of a processing device provided by an embodiment of the present invention.
  • the processing device in the embodiment of the present application will be described in detail below with reference to Figure 2.
  • the processing device 200 may include but is not limited to a power management unit 201, a system on chip 202 and an internal memory 203, wherein the system on a chip SoC 202 and the internal memory 203 are coupled to the power management unit 201.
  • Unit 201 powers the SoC 202 through a first power domain and the internal memory 203 through a second power domain.
  • the processing device 200 can be built into various types of equipment that require battery power, such as the electronic equipment 100 in Figure 1 above.
  • the functions of the power management unit 201 can include parts of the power management unit 101 in Figure 1 above. or all functions.
  • the functions of the SoC 202 may include part or all of the functions of the system-on-chip 102 in FIG. 1
  • the internal memory 203 may include part or all of the functions of the internal memory 103 in FIG. 1 . in,
  • the power management unit 201 is configured to receive a first instruction sent by the SoC 202, where the first instruction is used to instruct the processing device 200 to enter a standby state.
  • the power management unit 201 can manage the power supply of each module in the processing device 200.
  • Figure 3 is a schematic diagram of the power domain in a power management unit provided by an embodiment of the present invention.
  • the power management The unit 201 supplies power to the SoC 202 through the first power domain, where the first power domain may include multiple sub-power domains, such as the system interface power supply (also called IO power supply), the low-voltage normally open area (Always ON, AO) power supply of the SoC 202 , memory control signal power supply and other power supplies; the power management unit 201 supplies power to the internal memory 203 (such as LPDDR4) through the second power domain, where the second power domain can also include multiple sub-power domains, such as the IO power supply inside the DDR, Control signal power supply, etc.
  • the system interface power supply also called IO power supply
  • the low-voltage normally open area Always ON, AO
  • the power management unit 201 supplies power to the internal memory 203 (such as LPDDR4) through the second power
  • SoC System On Chip
  • SoC can refer to the integration of a complete system on a single chip.
  • the so-called complete system generally includes a central processing unit (CPU), peripheral circuits, etc.
  • the internal memory 203 is usually a power-off volatile memory, and the contents stored therein will be lost when the power is off. It can also be called memory or main memory.
  • the internal memory 203 in this application includes readable and writable running memory, which is used to temporarily store the operation data in the SoC 202, and can exchange data with external memory or other external memories, and can be used as an operating system or other running memory.
  • a storage medium for temporary data of a program is used to temporarily store the operation data in the SoC 202, and can exchange data with external memory or other external memories, and can be used as an operating system or other running memory.
  • Figure 4 is a schematic user interface diagram of an electronic device that enters a standby state according to an embodiment of the present invention.
  • the electronic device such as a smart phone, a smart wearable device, a tablet computer, etc.
  • Battery-powered equipment has a built-in processing device 200.
  • the electronic device in (a) of Figure 4 can display an operation interface during normal operation.
  • the SoC 202 can be triggered to send a first instruction to the power management unit 201, so that the processing device 200 enters the standby state, and then the electronic device will be in a black screen standby state as shown in Figure 4(b).
  • the power management unit 201 is also configured to control the disconnection of the first power domain and keep part or all of the power supply of the second power domain in the power supply state; wherein the processing device 200 enters the standby state. After the state is reached, the SoC 202 is in a completely powered-off state and some or all devices of the internal memory 203 are in a powered-on state.
  • the power management unit 201 may disconnect the first power domain.
  • Figure 5 is a schematic diagram of a power domain after a processing device is in a standby state according to an embodiment of the present invention.
  • the first power domain may include multiple sub-power domains.
  • the power management unit 201 receives After receiving the first instruction sent by the SoC 202, all sub-power supplies in the first power domain will be disconnected, so that the SoC 202 is in a completely powered off state when the processing device 200 is in the standby state.
  • the power management unit 201 will keep the second power domain in the power supply state. Further, in order to reduce the power consumed in standby, some power domains in the second power domain can be powered off, that is, some or all devices that do not affect the storage of currently stored data in the internal memory 203 can be powered off. For example, The IO power supply of the internal memory 203 is powered off (the internal memory 203 does not need to interact with other modules when the processing device 200 is in the standby state, so the IO power supply can be powered off).
  • the power management unit 201 is further configured to: send a first control signal to the internal memory 203, where the first control signal is used to maintain the internal memory 203 in a first mode, wherein in the first mode
  • the internal memory 203 described below stores currently stored data.
  • the power management unit 201 when the power management unit 201 disconnects the first power domain, the SoC 202 is in a power-off state and cannot continue to control and manage the internal memory 203.
  • the power management unit 201 can take over the internal memory 203, and the power management unit 201 can send data to the internal memory 203.
  • the first control signal is to maintain the internal memory 203 in the first mode (that is, the first mode can be understood as the self-refresh mode of the internal memory 203).
  • the first control signal is a signal (which can be a fixed level signal) that maintains the internal memory 203 in the self-refresh mode, and can be a signal composed of multiple signals, such as a signal composed of a clock enable signal and a reset signal.
  • the clock enable signal sent by the power management unit 201 to the internal memory 203 is 0 and the reset signal is 1, the internal memory 203 can always remain in the self-refresh mode.
  • the SoC 202 may first send the control signal and related control commands to the internal memory 203, so that the internal memory 203 can enter the self-refresh state.
  • FIG. 6 is a schematic diagram of a power management unit after a processing device enters a standby state according to an embodiment of the present invention.
  • a control logic module such as a first control module
  • the SoC 202 when the SoC 202 is in the power-off state, the first control signal can be sent to the internal memory 203 through the control logic module, that is, the reset signal is 1 and the clock enable signal is 0, so as to maintain the internal memory 203 in the self-refresh mode. Therefore, when the processing device 200 is in the standby state, the internal memory 203 can still save the currently stored data.
  • the internal memory 203 can save the currently stored data to avoid the need to re-read relevant data from the external memory after the processing device 200 wakes up, thereby reducing the power-on recovery time of the processing device 200 time.
  • the first control signal can also be a single signal, such as a reset signal.
  • SoC 202 can first send a clock enable signal of 0 to the internal memory 203 before powering off. When SoC 202 is powered off, the clock enable signal can be maintained through a pull-down resistor. The power signal is always 0, and then when the power management unit 201 sends a reset signal of 1 to the internal memory 203, the internal memory 203 can remain in the self-refresh mode.
  • the SoC 202 and the internal memory 203 can be connected through a transmission line and a pull-down resistor.
  • the SoC 202 can first send a clock enable signal of 0 to the internal memory 203 before powering off, and after the SoC 202 is powered off, The clock enable signal is maintained at 0 through a pull-down resistor. Further, when the power management unit 201 takes over the internal memory 203, it can send a reset signal of 1 to the internal memory 203 to maintain the internal memory 203 in the self-refresh mode, so that the current data can still be saved when the processing device 200 is in the standby state. stored data.
  • the power management unit 201 includes a status register and a first control module; the power management unit 201 is specifically configured to: after receiving the first instruction sent by the SoC 202, The status register is set to a first state; in the first state, the signal output by the SoC 202 to the internal memory is shielded through the first control module, and the first signal is sent to the internal memory. A control signal to maintain the internal memory in the first mode.
  • the first control module in the power management unit 201 may have control logic and may send signals to the internal memory 203 .
  • FIG. 7 is a schematic diagram of the power management unit after another processing device is in a standby state according to an embodiment of the present invention.
  • a status register and a first control unit can be added to the power management unit 201.
  • module when the power management unit 201 receives the first instruction sent by the SoC 202, it can first set the status register to 1 (that is, the first state), which can then indicate that the processing device 200 enters the standby state, and then the power management unit 201 can take over Internal memory 203.
  • the SoC 202 may still send signals to the internal memory 203 through the power management unit 201. Therefore, the first control of the power management unit 201 can be used.
  • the module shields the signal sent by the SoC 202 to the power management unit 201, and the power management unit 201 completely controls and manages the internal memory 203, and then the first control module of the power management unit 201 can send a first control signal to the internal memory 203 to maintain the internal memory 203.
  • the memory 203 may be in a self-refresh mode, so that the memory 203 can still save currently stored data when the processing device 200 is in a standby state.
  • the power management unit 201 fully controls and manages the internal memory 203 after the SoC 202 is completely powered off.
  • the internal memory 203 is configured to receive the first control signal sent by the power management unit 201 and maintain the first mode to save currently stored data.
  • the power management unit 201 can manage the status of the internal memory 203. Therefore, after receiving the first control signal sent by the power management unit 201, the internal memory 203 can maintain the self-refresh mode (ie, the first mode), that is, the internal memory 203 continuously refreshes the currently stored data, so that the processing After the device 200 enters the standby state, the internal memory 203 can still retain the currently stored data.
  • the self-refresh mode ie, the first mode
  • the internal memory 203 continuously refreshes the currently stored data
  • the internal memory 203 can still retain the currently stored data.
  • the SoC 202 is completely powered off and the internal memory 203 can still retain the currently stored data. This ensures that the processing device 200 can Restoring the normal working state also reduces the standby power consumption of the processing device 200 .
  • the SoC 202 and the internal memory 203 can be connected through a transmission line and a pull-down resistor. Further, the SoC 202 can send a clock enable signal of 0 to the internal memory 203 before powering off, and power down the SoC 202. After power-on, the clock enable signal is maintained at 0 through the pull-down resistor. Further, when the power management unit 201 takes over the internal memory 203, it can actively send a reset signal of 1 (ie, the first control signal) to the internal memory 203, and then the internal memory 203 will respond when the clock enable signal is 0 and the reset signal is 1. In the state, the self-refresh mode can always be maintained, that is, the internal memory 203 continuously refreshes the currently stored data, so that after the processing device 200 enters the standby state, the internal memory 203 can still retain the currently stored data.
  • the self-refresh mode can always be maintained, that is, the internal memory 203 continuously refreshes the currently stored data, so that after the processing device 200 enters the standby
  • Figure 8 is a schematic structural diagram of a power management unit after the processing device is in a standby state according to an embodiment of the present invention.
  • the first control module in the power management unit 201 can The internal memory 203 sends a reset signal and can also send a clock enable signal. After the power management unit 201 takes over the internal memory 203, the power management unit 201 can actively send a reset signal of 1 and a clock enable signal of 0 to the internal memory 203 (that is, the first control signal consists of a reset signal of 1 and a clock enable signal of 0).
  • the internal memory 203 can always maintain the self-refresh mode when the clock enable signal is 0 and the reset signal is 1, that is, the internal memory 203 continuously refreshes the currently stored data to After the processing device 200 enters the standby state, the internal memory 203 can still retain the currently stored data.
  • the processing device 200 further includes an external memory 204, and the power management unit 201 is also coupled to the external memory 204.
  • the power management unit 201 provides the power management unit for the external memory 204 through a third power domain.
  • the external memory 204 supplies power; the power management unit 201 is also configured to: after receiving the first instruction sent by the SoC 202, keep part or all of the power supply of the third power domain in the power supply state, wherein the After the processing device 200 enters the standby state, some or all devices of the external memory 204 are in the power-on state; a second control signal is sent to the external memory 204, and the second control signal is used to maintain the external memory 204.
  • the memory 204 is in a second mode, wherein the external memory 204 retains current configuration parameters in the second mode.
  • the external memory 204 is generally a non-volatile memory, and its stored contents will not be lost after a power outage.
  • Common external memory 204 may include Flash memory (for example, NAND flash memory, NOR flash memory, etc.), universal flash memory (universal flash storage, UFS), etc.
  • Flash memory for example, NAND flash memory, NOR flash memory, etc.
  • universal flash memory universal flash storage, UFS
  • Figure 9 is a schematic structural diagram of another processing device provided by an embodiment of the present invention.
  • the power management unit 201 can also provide external memory through the third power domain. 204 (such as EMMC or UFS), where the third power domain may include multiple sub-power domains, such as the IO power supply inside the external memory 204, the control signal power supply, etc.
  • the power management unit 201 After the power management unit 201 receives the first instruction sent by the SoC 202, in order to avoid the problem of losing the current configuration parameters of the external memory 204 after the processing device 200 enters the standby state, the power management unit 201 will keep the third power domain in the power supply state. . In order to reduce the power consumed in standby, some power domains in the third power domain can also be powered off. That is, some or all devices that do not affect the storage of the current configuration parameters in the external memory 204 can be powered off. For example, the external memory 204 can be powered off. The IO power supply is powered off (when the processing device 200 is in the standby state, the external memory 204 does not need to interact with other modules, so the IO power supply can be powered off).
  • the SoC 202 can be powered off, and the power management unit 201 takes over the internal memory 203 and the external memory 204.
  • the power management unit 201 can send a second control signal to the external memory 204, that is, the second control signal can be a reset signal. Since the external memory 204 can always receive a reset signal of 1, the external memory 204 can remain in the second mode, that is, the second mode can be understood as a low power consumption mode of the external memory 204 . In the low power consumption mode, the external memory 204 can still retain the current configuration parameters and configuration status.
  • the SoC 202 may first send the control signal and related control commands to the external memory 204, so that the external memory 204 can enter the low power consumption mode.
  • the processing device 200 when the processing device 200 enters the standby state, the current configuration parameters and configuration status of the external memory 204 can be retained to avoid the need to re-configure the external memory 204 after the processing device 200 wakes up, thus reducing the power-on recovery time of the processing device 200 time.
  • the power management unit 201 further includes a second control module; when the status register is set to the first state, the power management unit 201 is specifically configured to: The second control module shields the signal output by the SoC 202 to the external memory 204 and sends the second control signal to the external memory 204 to maintain the external memory 204 in the second mode.
  • the power management unit 201 may also include a second control module.
  • Figure 10 is a schematic diagram of another power management unit after another processing device is in a standby state according to an embodiment of the present invention.
  • the power management unit 201 In addition to including multiple power domains, a first control module and a status register, a second control module may also be included.
  • the power management unit 201 receives the first instruction sent by the SoC 202, it can first set the status register to 1 (ie, the first state), which can then indicate that the processing device 200 enters the standby state, and then the power management unit 201 can take over the external memory. 204.
  • the SoC 202 may still send signals to the external memory 204 through the power management unit 201 after the power management unit 201 takes over the external memory 204 and before the SoC 202 is completely powered off, the second control module in the power management unit 201 The signal sent by the SoC 202 to the external memory 204 will be shielded, and the power management unit 201 will completely control and manage the external memory 204. Then the second control module of the power management unit 201 can send a second control signal to the external memory 204 to maintain the external memory.
  • the memory 204 can be in a low power consumption mode, so that the current configuration parameters and configuration status can still be saved when the processing device 200 is in a standby state.
  • the second control module will also block the unsteady signal output by the SoC 202 to the external memory 204 through the power management unit 201, so that the power management unit 201 can fully control and manage the external memory 204 after the SoC 202 is completely powered off. .
  • the external memory is configured to receive the second control signal sent by the power management unit and maintain the second mode to retain current configuration parameters.
  • the power management unit 201 can control and manage the status of the external memory 204. Therefore, when the external memory 204 receives the second control signal sent by the power management unit 201, it can remain in the low power consumption mode (second mode), that is, the external memory 204 can still retain the current state after the processing device 200 enters the standby state. configuration information and configuration status.
  • the SoC 202 is completely powered off and the external memory 204 can still retain the current configuration parameters and configuration status. This ensures that the processing device 200 can operate in a short period of time. The normal working state is restored within a certain period of time, which also reduces the standby power consumption of the processing device 200, increases the standby time, and improves the user experience.
  • the power management unit 201 is further configured to: upon receiving an indication that the processing device 200 needs to resume its working state, restore the first power domain and power the SoC 202; Receive the second instruction sent by the SoC 202, set the status register to the second state; in the second state, unblock the signal output by the SoC 202 to the internal memory 203, and forward the SoC 202
  • the signal output to the internal memory 203 is sent to the internal memory 203; or, the signal output by the SoC 202 to the external memory 204 is unblocked, and the signal output by the SoC 202 to the external memory 204 is forwarded to the external memory 204.
  • External memory 204 is further configured to: upon receiving an indication that the processing device 200 needs to resume its working state, restore the first power domain and power the SoC 202; Receive the second instruction sent by the SoC 202, set the status register to the second state; in the second state, unblock the signal output by the SoC 202 to the internal memory 203, and forward the SoC 202
  • the SoC 202 can unblock the control signals from the SoC 202 to the power management unit 201 by controlling the relevant logic of the power management unit 201, and at the same time transparently transmit the relevant control signals to the internal memory 203 and the external memory 204 through the power management unit 201. Finally, the processing device 200 returns to normal working status.
  • Figure 11 is a schematic diagram of a power management unit in the working state of a processing device provided by an embodiment of the present invention.
  • the power management unit 201 receives the second control signal sent by the SoC 202, it can The status register is set to 0, indicating that the power management unit 201 does not need to continue to control the internal memory 203 and the external memory 204, that is, the first control module of the power management unit 201 does not need to continue to control the internal memory 203, and the second control module of the power management unit 201 does not need to continue to control the internal memory 203.
  • the control module does not need to continue to control and manage the external memory 204.
  • the first control module can unblock the signal output by the SoC 202 to the internal memory 203, and forward the signal output by the SoC 202 to the internal memory 203 to the internal memory 203.
  • the first control module can directly forward the reset signal sent by the SoC 202 to the internal memory.
  • the second control module can unblock the signal output by the SoC 202 to the external memory 204, and forward the signal output by the SoC 202 to the external memory 204 to the external memory 204.
  • the second control module can directly forward the reset signal sent by the SoC 202 to the external memory 204.
  • Figure 12 is a schematic diagram of the power management unit in the working state of another processing device provided by an embodiment of the present invention.
  • the status register can be set to 0, indicating that the power management unit 201 does not need to continue to control the internal memory 203 and the external memory 204, that is, the first control module of the power management unit 201 does not need to continue to control the internal memory 203.
  • the second control module does not need to continue to control and manage the external memory 204 .
  • the first control module can unblock the signal output by the SoC 202 to the internal memory 203, and forward the signal output by the SoC 202 to the internal memory 203 to the internal memory 203.
  • the first control module can directly forward the reset signal and clock signal sent by the SoC 202.
  • the signal can be sent to the internal memory 203;
  • the second control module can unblock the signal output by the SoC 202 to the external memory 204, and forward the signal output by the SoC 202 to the external memory 204 to the external memory 204.
  • the second control module can directly forward the reset sent by the SoC 202. signal to external memory 204.
  • Figure 13 is a schematic diagram of a user interface for waking up an electronic device according to an embodiment of the present invention.
  • the electronic device has a built-in processing device 200.
  • the processing device shown in (a) of 13 is in a black screen standby state.
  • the power management unit 201 will receive The processing device 200 needs an instruction to resume the working state to wake up the processing device 200, and then the electronic device can be lit up and the operation interface can be displayed on the electronic device as shown in (b) of FIG. 13 .
  • the SoC 202 is configured to: after the first power domain is turned on, determine whether the status register in the power management unit 201 is in the first state; if If the status register is in the first state, the second instruction is sent to the power management unit 201.
  • the SoC 202 can first determine whether the status register in the power management unit 201 is in the first state. If the status register is in the first state, a second instruction can be sent to the power management unit 201 to control the power supply. The relevant logic of the management unit 201 unblocks the control signal sent by the SoC 202 to the power management unit 201. At the same time, the SoC 202 can transparently transmit the relevant control signal to the internal memory 203 and the external memory 204 through the power management unit 201. If the status register is not in the first state, the processing device 200 will perform a power-on restart process, which requires reconfiguring the external memory 204 and re-reading the required data from the external memory 204 to the internal memory 203 .
  • Figure 14 is a schematic flow chart of a processing device entering a standby state according to an embodiment of the present invention.
  • the mobile phone has a built-in processing device.
  • entering the standby state of the mobile phone may include the following steps S401 to S419. The detailed description is as follows:
  • SoC202 can first enter the normal standby mode after receiving the user's target operation on the mobile phone. It should be emphasized that in the normal standby mode, the power management unit 201 does not completely power off the SoC 202, and the SoC 202 still controls and manages the internal memory 203 and the external memory 204.
  • S402 The SOC returns to the normal working state, and the PMU exits the power saving mode. Specifically, when the time for the mobile phone to enter the normal standby mode exceeds the preset value, the SoC 202 can receive a timeout interrupt to wake up, so that the SoC 202 returns to the normal working state, and the power management unit 201 (ie, PMU) exits the power saving mode.
  • the power management unit 201 ie, PMU
  • S403 SOC saves the DDR training sequence into FLASH. Specifically, SoC 202 saves the training sequence of internal memory 203 (ie, DDR) into external memory 204 (ie, FLASH).
  • S404 SOC saves on-site parameters to DDR and configures DDR to enter self-refresh mode. Specifically, the SoC 202 saves the data into the internal memory 203 and configures the internal memory 203 to enter the self-refresh mode, so that the data saved in the internal memory 203 is not lost after the mobile phone enters the super standby mode.
  • S405 SOC configures PMU Logic control1, shields the input signal PMU_FLASH_RST_N, and fixes the output FLASH_RST_N to 1. Specifically, before SoC 202 is completely powered off, SoC 202 can configure the logic control module in the power management unit 201 so that after SoC 202 is completely powered off, the logic control module can shield the signal output by SoC 202 to the external memory 204 and send the signal to the external memory. 204 outputs a control signal to cause the external memory 204 to enter a low power consumption mode and retain the current configuration parameters and configuration status.
  • S406 configures PMU Logic control2, shields the input signal PMU_DDR_RST_N, and fixes the output DDR_RST_N to 1. Specifically, before SoC 202 is completely powered off, SoC 202 can configure the logic control module in the power management unit 201 so that after SoC 202 is completely powered off, the logic control module can shield the signal output by SoC 202 to the internal memory 203 and transmit the signal to the internal memory. 203 outputs a control signal to cause the internal memory 203 to enter the self-refresh mode to avoid data loss in the internal memory 203 .
  • S408 SOC controls the power off of the PMU, and the PMU enters the Super SR power off process.
  • the SoC 202 may send a first instruction to the power management unit 201, so that the power management unit 201 completely powers off the SoC 202.
  • S409 The entire SOC is powered off, the DDR and FLASH parts are powered on, and the PMU enters the power saving (Economical, ECO) mode. Specifically, after receiving the first instruction sent by the SoC 202, the power management unit 201 can completely power off the SoC 202, or can power off part of the internal memory 203 and the external memory 204.
  • S410 SOC enters super standby mode.
  • S411 The mobile phone enters super standby. Specifically, when the SoC 202 is completely powered off, the mobile phone enters the super standby mode. At this time, the power management unit 201 can take over the internal memory 203 and the external memory 204 .
  • S412 PMU goes through the Super SR power-on process, including the clock start process. Specifically, when the power management unit 201 receives a wake-up interrupt such as the user pressing the power button of the mobile phone, the power management unit 201 can perform the Super SR power-on process including starting the clock.
  • a wake-up interrupt such as the user pressing the power button of the mobile phone
  • the SOC is powered on to run the startup code and access the PMU Super SR to see if it is 1.
  • the power management unit 201 can re-power the SoC 202, and after the SoC 202 resumes normal operation, it can first access whether the status register in the power management unit 201 is 1 to determine whether the mobile phone is in deep standby mode.
  • S414 If yes, the SOC runs the Super standby recovery process. Specifically, if the status of the status register in the power management unit 201 is 1 after the SoC 202 resumes normal operation, it indicates that the mobile phone needs to wake up from the deep standby state. If not, the SOC runs the normal power-on reset process, indicating that the phone needs to wake up from the shutdown state.
  • SOC configures PMU Super SR to 0.
  • the status register in the power management unit 201 can be configured to 0 first to indicate that the mobile phone has entered a normal working state. It can also indicate that the power management unit 201 does not need to continue to control and manage the internal memory 203 and the external memory 204.
  • S416 SOC configures PMU Logic control1 to be in pass-through mode, that is, the signal FLAHS_RST_N is equivalent to the SOC output signal PMU_FLASH_RST_N. Specifically, the power management unit 201 no longer needs to continue to control and manage the external memory 204, so the logic control module can be configured in the pass-through mode.
  • S417 SOC configures PMU Logic control2 to pass-through mode, that is, the signal DDR_RST_N is equal to the SOC output signal PMU_DDR_RST_N. Specifically, the power management unit 201 no longer needs to continue to control the internal memory 203, so the logic control module can be configured in the pass-through mode.
  • S419 SOC returns to Normal mode.
  • the SoC after the processing device enters the standby state, the SoC is completely powered off and the internal memory can still retain the currently stored data.
  • the external memory also retains the current configuration parameters. This ensures that The processing device can return to normal working status in a shorter period of time, which also reduces the standby power consumption of the processing device, increases the standby time, and improves user experience.
  • Figure 15 is a flow chart of a low-power standby control method provided by an embodiment of the present invention. This method is applicable to a processing device in Figure 2 and equipment including the processing device. The method may include the following steps S501 to S503.
  • the processing device includes a power management unit, a system on chip SoC and an internal memory, wherein the SoC and the internal memory are coupled to the power management unit, and the power management unit provides the SoC with a first power domain. Power is supplied to the internal memory through the second power domain.
  • Step S501 Receive the first instruction sent by the SoC through the power management unit.
  • the first instruction is used to instruct the processing device to enter a standby state
  • Step S502 Use the power management unit to control the disconnection of the first power domain and keep part or all of the power supply of the second power domain in the power supply state.
  • the SoC is in a completely powered off state and some or all components of the internal memory are in a powered on state;
  • Step S503 Send a first control signal to the internal memory through the power management unit.
  • the first control signal is used to maintain the internal memory in a first mode, wherein in the first mode, the internal memory saves currently stored data.
  • the power management unit includes a status register and a first control module; sending a first control signal to the internal memory through the power management unit includes: upon receiving the After the first instruction is sent by the SoC, the status register is set to the first state; in the first state, the signal output by the SoC to the internal memory is shielded through the first control module, and sending the first control signal to the internal memory to maintain the internal memory in the first mode.
  • the method further includes: receiving the first control signal sent by the power management unit through the internal memory, and maintaining the internal memory in the first mode to Save currently stored data.
  • the processing device further includes an external memory
  • the power management unit is further coupled with the external memory, and the power management unit supplies power to the external memory through a third power domain
  • the method further includes: using the power management unit, after receiving the first instruction sent by the SoC, keeping part or all of the power supply of the third power domain in a power supply state, wherein the processing device enters After the standby state, some or all components of the external memory are in a powered-on state; a second control signal is sent to the external memory through the power management unit, and the second control signal is used to maintain the external memory.
  • the memory is in a second mode, wherein the external memory retains current configuration parameters in the second mode.
  • the power management unit further includes a second control module; when the status register is set to the first state, the power management unit sends a signal to the external memory through the power management unit.
  • Sending a second control signal includes: shielding the signal output by the SoC to the external memory through the second control module, and sending the second control signal to the external memory to maintain the external memory in The second mode.
  • the method further includes: receiving the second control signal sent by the power management unit through the external memory, and maintaining the external memory in the second mode to Keep current configuration parameters.
  • the method further includes: upon receiving an indication that the processing device needs to resume its working state, using the power management unit to restore the first power domain and supply power to the SOC; Through the power management unit, the second instruction sent by the SOC is received, and the status register is set to the second state; in the second state, the power management unit is used to unblock the SoC to the The signal output by the internal memory, and forward the signal output by the SoC to the internal memory to the internal memory; or, unblock the signal output by the SoC to the external memory, and forward the signal output by the SoC to the external memory.
  • the memory outputs the signal to the external memory.
  • the method further includes: after the first power domain is turned on, determining whether the status register in the power management unit is in the first state through the SoC; If the status register is in the first state, the second indication is sent to the power management unit through the SoC.
  • the SoC after the processing device enters the standby state, the SoC is completely powered off and the internal memory can still retain the currently stored data.
  • the external memory also retains the current configuration parameters. This ensures that The processing device can return to normal working status in a shorter period of time, which also reduces the standby power consumption of the processing device, increases the standby time, and improves user experience.
  • This application provides a terminal device that has the function of implementing any of the above low-power standby control methods.
  • This function can be implemented by hardware, or it can be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the present application provides a terminal device, which includes a processor, and the processor is configured to support the terminal device to perform corresponding functions in the low-power standby control method provided above.
  • the terminal device may also include a memory coupled to the processor, which stores necessary program instructions and data for the terminal device.
  • the terminal device may also include a communication interface for the terminal device to communicate with other devices or communication networks.
  • An embodiment of the present invention provides a computer program.
  • the computer program includes instructions.
  • the computer program can execute the process in any of the above-mentioned low-power standby control methods.
  • the present application provides a semiconductor chip, which is characterized in that the semiconductor chip includes any one of the processing devices mentioned above.
  • the present application provides an electronic device, which is characterized in that the electronic device includes the above-mentioned semiconductor chip.
  • the disclosed device can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the above units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical or other forms.
  • the units described above as separate components may or may not be physically separated.
  • the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the above integrated units can be implemented in the form of hardware or software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which can be a personal computer, a server, a network device, etc., specifically a processor in a computer device) to execute all or part of the steps of the above methods in various embodiments of the present application.
  • a computer device which can be a personal computer, a server, a network device, etc., specifically a processor in a computer device
  • the aforementioned storage media may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (Read-Only Memory, abbreviation: ROM) or random access memory (Random Access Memory, abbreviation: RAM) and other various storage media.
  • the medium for program code may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (Read-Only Memory, abbreviation: ROM) or random access memory (Random Access Memory, abbreviation: RAM) and other various storage media.
  • the medium for program code may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (Read-Only Memory, abbreviation: ROM) or random access memory (Random Access Memory, abbreviation: RAM) and other various storage media.
  • the medium for program code may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (Read-Only Memory, abbreviation: ROM) or random access memory (Random Access Memory, abbreviation

Landscapes

  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Power Sources (AREA)

Abstract

Disclosed in the present application are a processing apparatus, and a related control method for low-power-consumption standby. The present application is characterized in that the processing apparatus comprises a power management unit, a chip system and an on-chip memory, wherein the power management unit supplies power to the chip system by means of a first power domain, and supplies power to the on-chip memory by means of a second power domain; the power management unit is used for receiving a first indication sent by the chip system, which first indication is used for indicating that the processing apparatus has entered a standby state, and the power management unit is also used for controlling the first power domain to turn off, and keeping some or all power sources of the second power domain in a power supply state; after the processing apparatus enters the standby state, the chip system is in a powered-off state and some or all devices of the on-chip memory are in a powered-on state; a first control signal is sent to the on-chip memory, and the first control signal is used for keeping the on-chip memory in a first mode, and in the first mode, the on-chip memory stores currently stored data. By using the embodiments of the present application, standby power consumption can be reduced, thereby increasing a standby duration and improving the user experience.

Description

一种处理装置及相关低功耗待机控制方法A processing device and related low-power standby control method 技术领域Technical field
本发明涉及芯片技术领域,尤其涉及一种处理装置及相关低功耗待机控制方法。The present invention relates to the field of chip technology, and in particular, to a processing device and related low-power standby control method.
背景技术Background technique
在电池容量受限的条件下,智能手机或智能手表等终端设备处于待机状态时,即终端设备处于开机但是不进行任何实质性工作(即不对文件和程序进行操作)的状态,为了获得更长的待机时间,要求的待机功耗也越来越低。Under conditions of limited battery capacity, when terminal devices such as smartphones or smart watches are in standby mode, that is, the terminal device is turned on but not performing any substantial work (i.e., not operating files and programs), in order to obtain longer The standby time required is getting lower and lower.
现有的终端设备在待机状态下,由于考虑到终端设备从待机状态恢复到正常工作状态的时间不宜过长,需要为终端设备的片上系统(System On Chip,SoC)保留至少一个低压常开区(Always ON,AO)电源域和高压接口电源域,以确保在待机状态下保留部分数据或配置,从而降低上电恢复时间。在此场景中,终端设备的待机功耗主要包括SoC待机功耗,此外还会包括内存,电源管理单元和板级等其他功耗。但在实际应用过程中发现,当终端设备进入待机状态后,SoC待机功耗较高且SoC待机功耗最大占比可达到总功耗的一半以上,这大大缩短了终端设备的待机时长。When the existing terminal equipment is in standby state, considering that the time for the terminal equipment to return from standby state to normal working state should not be too long, it is necessary to reserve at least one low-voltage normally open area for the system on chip (SoC) of the terminal equipment. (Always ON, AO) power domain and high-voltage interface power domain to ensure that some data or configurations are retained in standby state, thereby reducing power-on recovery time. In this scenario, the standby power consumption of the terminal device mainly includes SoC standby power consumption, and also includes other power consumption such as memory, power management unit and board level. However, during actual application, it was found that when the terminal device enters the standby state, the SoC standby power consumption is high and the maximum proportion of SoC standby power consumption can reach more than half of the total power consumption, which greatly shortens the standby time of the terminal device.
因此,如何提供一种处理装置及相关的低功耗待机控制方法,以降低待机功耗,增加待机时长,提升用户体验,是亟待解决的问题。Therefore, how to provide a processing device and related low-power standby control method to reduce standby power consumption, increase standby time, and improve user experience is an issue that needs to be solved urgently.
发明内容Contents of the invention
本发明实施例提供一种处理装置及相关低功耗待机控制方法,以降低待机功耗,增加待机时长,提升用户体验。Embodiments of the present invention provide a processing device and related low-power standby control method to reduce standby power consumption, increase standby time, and improve user experience.
第一方面,本发明实施例提供一种处理装置,其特征在于,所述处理装置包括电源管理单元、片上系统SoC和内存储器,其中,所述SoC和所述内存储器耦合于所述电源管理单元,所述电源管理单元通过第一电源域为所述SoC供电,且通过第二电源域为所述内存储器供电;所述电源管理单元,用于:接收所述SoC发送的第一指示,所述第一指示用于指示所述处理装置进入待机状态;控制断开所述第一电源域,且保持所述第二电源域的部分或全部电源处于供电状态;其中,所述处理装置在进入所述待机状态后,所述SoC处于完全下电状态且所述内存储器的部分或全部器件处于上电状态;向所述内存储器发送第一控制信号,所述第一控制信号用于维持所述内存储器处于第一模式,其中,在所述第一模式下所述内存储器保存当前所存储的数据。In a first aspect, an embodiment of the present invention provides a processing device, characterized in that the processing device includes a power management unit, a system-on-chip SoC and an internal memory, wherein the SoC and the internal memory are coupled to the power management unit. unit, the power management unit supplies power to the SoC through the first power domain, and supplies power to the internal memory through the second power domain; the power management unit is used to: receive the first instruction sent by the SoC, The first instruction is used to instruct the processing device to enter a standby state; control to disconnect the first power domain and keep part or all of the power supply of the second power domain in a power supply state; wherein the processing device is in After entering the standby state, the SoC is in a completely power-off state and some or all devices of the internal memory are in a power-on state; a first control signal is sent to the internal memory, and the first control signal is used to maintain The internal memory is in a first mode, wherein in the first mode the internal memory stores currently stored data.
在本发明实施例中,当处理装置进入待机状态后,SoC可先控制内存储器进入自刷新模式,然后由电源管理单元接管内存储器部分控制信号,以维持内存储器处于自刷新状态,进而电源管理单元可关闭SoC整个的电源,从而降低处理装置的整个待机功耗。进一步地,唤醒处理装置(即处理装置恢复到正常工作状态)时,由于内存储器中的数据未丢失,因此无需从外存储器重新读取相关数据到内存储器(即处理装置无需重新走上电初始化流程),从而降低了处理装置的上电恢复时间。而在现有技术中,处理装置进入待机状态后, 由于SoC需要继续控制管理内存储器,即SoC需要维持内存储器处于自刷新模式,以确保内存储器当前所存储的数据不丢失,因此在现有技术中无法将SoC完全下电。综上,在本申请中,通过对处理装置中的电源管理单元进行改进,当处理装置进入待机状态后,电源管理单元在SoC完全下电后能够接管内存储器,并维持内存储器处于自刷新模式,从而既确保了处理装置能够在较短的时间内恢复正常工作状态,也降低了处理装置的待机功耗,增加待机时长,提升用户体验。In the embodiment of the present invention, when the processing device enters the standby state, the SoC can first control the internal memory to enter the self-refresh mode, and then the power management unit takes over some of the control signals of the internal memory to maintain the internal memory in the self-refresh state, and then the power management unit The unit can shut down the entire power supply to the SoC, thereby reducing the overall standby power consumption of the processing device. Furthermore, when the processing device is woken up (that is, the processing device returns to normal working status), since the data in the internal memory is not lost, there is no need to re-read relevant data from the external memory to the internal memory (that is, the processing device does not need to be powered on and initialized again). process), thereby reducing the power-on recovery time of the processing device. In the existing technology, after the processing device enters the standby state, the SoC needs to continue to control and manage the internal memory, that is, the SoC needs to maintain the internal memory in the self-refresh mode to ensure that the data currently stored in the internal memory is not lost. Therefore, in the existing It is technically impossible to completely power off the SoC. In summary, in this application, by improving the power management unit in the processing device, when the processing device enters the standby state, the power management unit can take over the internal memory after the SoC is completely powered off and maintain the internal memory in the self-refresh mode. , which not only ensures that the processing device can return to normal working status in a short period of time, but also reduces the standby power consumption of the processing device, increases the standby time, and improves the user experience.
在一种可能的实现方式中,所述电源管理单元包括状态寄存器和第一控制模块;所述电源管理单元,具体用于:在接收到所述SoC发送的所述第一指示后,将所述状态寄存器置位为第一状态;在所述第一状态下,通过所述第一控制模块屏蔽所述SoC向所述内存储器输出的信号,并向所述内存储器发送所述第一控制信号,以维持所述内存储器处于所述第一模式。In a possible implementation, the power management unit includes a status register and a first control module; the power management unit is specifically configured to: after receiving the first instruction sent by the SoC, The status register is set to a first state; in the first state, the signal output by the SoC to the internal memory is shielded through the first control module, and the first control signal is sent to the internal memory. signal to maintain the internal memory in the first mode.
在本发明实施例中,电源管理单元中包括了状态寄存器和第一控制模块,当电源管理单元接收到SoC发送的第一指示后,可先将状态寄存器置位为1(即第一状态),进而可以表示处理装置进入待机状态,然后电源管理单元可以接管内存储器。在此过程中,为避免SoC下电后,SoC通过电源管理单元发送给内存储器的信号出现不定态,造成电源管理单元发送给内存储器的控制信号出现紊乱,破坏内存储器自刷新状态,因此电源管理单元中的第一控制模块会将SoC发送给内存储器的信号进行屏蔽(如在SoC完全下电前可将SoC发送给内存储器的信号进行屏蔽),由电源管理单元完全控制管理内存储器,进而可以由电源管理单元的第一控制模块向内存储器发送第一控制信号,以维持内存储器处于自刷新模式,从而在处理装置处于待机状态时内存储器依旧能够保存当前所存储的数据。综上,由于在本申请中处理装置进入待机状态后,SoC处于完全下电的状态且内存储器依旧能够保留当前所存储的数据,这样既确保了处理装置能够在较短的时间内恢复正常工作状态,也降低了处理装置的待机功耗,增加待机时长,提升用户体验。In the embodiment of the present invention, the power management unit includes a status register and a first control module. When the power management unit receives the first instruction sent by the SoC, it can first set the status register to 1 (that is, the first state) , which in turn can indicate that the processing device enters a standby state, and then the power management unit can take over the internal memory. During this process, in order to avoid that after the SoC is powered off, the signal sent by the SoC to the internal memory through the power management unit becomes unstable, causing the control signal sent by the power management unit to the internal memory to be disordered and destroying the self-refresh state of the internal memory. Therefore, the power supply The first control module in the management unit will shield the signal sent by the SoC to the internal memory (for example, the signal sent by the SoC to the internal memory can be shielded before the SoC is completely powered off), and the power management unit will fully control and manage the internal memory. Furthermore, the first control module of the power management unit can send a first control signal to the internal memory to maintain the internal memory in the self-refresh mode, so that the internal memory can still save the currently stored data when the processing device is in the standby state. In summary, in this application, after the processing device enters the standby state, the SoC is completely powered off and the internal memory can still retain the currently stored data. This ensures that the processing device can resume normal operation in a short period of time. status, it also reduces the standby power consumption of the processing device, increases the standby time, and improves the user experience.
在一种可能的实现方式中,所述内存储器,用于:接收所述电源管理单元发送的所述第一控制信号,并维持所述第一模式,以保存当前所存储的数据。In a possible implementation, the internal memory is configured to: receive the first control signal sent by the power management unit, and maintain the first mode to save currently stored data.
在本发明实施例中,当电源管理单元接管内存储器后,电源管理单元可以控制并管理内存储器的状态。因此,当内存储器接收到由电源管理单元发送的第一控制信号后,可以维持自刷新模式(即第一模式),即内存储器不断地刷新当前所存储的数据,以使得处理装置进入待机状态后,内存储器依旧能够保留当前所存储的数据。综上,由于在本申请中处理装置进入待机状态后,SoC处于完全下电的状态且内存储器依旧能够保留当前所存储的数据,这样既确保了处理装置能够在较短的时间内恢复正常工作状态,也降低了处理装置的待机功耗,增加待机时长,提升用户体验。In the embodiment of the present invention, after the power management unit takes over the internal memory, the power management unit can control and manage the state of the internal memory. Therefore, after the internal memory receives the first control signal sent by the power management unit, it can maintain the self-refresh mode (ie, the first mode), that is, the internal memory continuously refreshes the currently stored data, so that the processing device enters the standby state. Afterwards, the internal memory can still retain the currently stored data. In summary, in this application, after the processing device enters the standby state, the SoC is completely powered off and the internal memory can still retain the currently stored data. This ensures that the processing device can resume normal operation in a short period of time. status, it also reduces the standby power consumption of the processing device, increases the standby time, and improves the user experience.
在一种可能的实现方式中,所述处理装置还包括外存储器,且所述电源管理单元还与所述外存储器耦合,所述电源管理单元通过第三电源域为所述外存储器供电;所述电源管理单元,还用于:接收到所述SoC发送的所述第一指示后,保持所述第三电源域的部分或全部电源处于供电状态,其中,所述处理装置在进入所述待机状态后,所述外存储器的部分或全部器件处于上电状态;向所述外存储器发送第二控制信号,所述第二控制信号用于维持所述外存储器处于第二模式,其中,在所述第二模式下所述外存储器保留当前的配置 参数。In a possible implementation, the processing device further includes an external memory, and the power management unit is further coupled with the external memory, and the power management unit supplies power to the external memory through a third power domain; The power management unit is further configured to: after receiving the first instruction sent by the SoC, keep part or all of the power supply of the third power domain in a power supply state, wherein the processing device enters the standby state. After the state, some or all devices of the external memory are in the power-on state; a second control signal is sent to the external memory, and the second control signal is used to maintain the external memory in the second mode, wherein, in the In the second mode, the external memory retains current configuration parameters.
在本发明实施例中,当电源管理单元接收到SoC发送的第一指示后,为避免在处理装置进入待机状态后出现外存储器当前的配置参数丢失的问题,电源管理单元会保持第三电源域处于供电状态。为了降低待机损耗的电量,还可以把第三电源域中的部分电源域进行下电,即可以将不影响外存储器保存当前配置参数的部分或全部器件进行下电。进一步地,当处理装置进入待机状态后,可以将SoC下电,并由电源管理单元接管内存储器和外存储器。当电源管理单元接管外存储器后,可以向外存储器发送第二控制信号,以维持外存储器处于第二模式,即第二模式可以理解为外存储器的低功耗模式。在低功耗模式下,外存储器依旧可以保留当前的配置参数和配置状态。综上,由于在本申请中处理装置进入待机状态后,SoC处于完全下电的状态且内存储器依旧能够保留当前所存储的数据,同时外存储器也保留了当前的配置参数,这样既确保了处理装置能够在较短的时间内恢复正常工作状态,也降低了处理装置的待机功耗,增加待机时长,提升用户体验。In the embodiment of the present invention, after the power management unit receives the first instruction sent by the SoC, in order to avoid the problem of losing the current configuration parameters of the external memory after the processing device enters the standby state, the power management unit will maintain the third power domain. In power supply state. In order to reduce the power consumed in standby, some power domains in the third power domain can also be powered off, that is, some or all devices that do not affect the storage of current configuration parameters in the external memory can be powered off. Further, when the processing device enters the standby state, the SoC can be powered off, and the power management unit takes over the internal memory and external memory. After the power management unit takes over the external memory, it can send a second control signal to the external memory to maintain the external memory in the second mode. That is, the second mode can be understood as a low power consumption mode of the external memory. In low power consumption mode, the external memory can still retain the current configuration parameters and configuration status. In summary, after the processing device in this application enters the standby state, the SoC is completely powered off and the internal memory can still retain the currently stored data. At the same time, the external memory also retains the current configuration parameters, which ensures that the processing The device can return to normal working status in a shorter period of time, which also reduces the standby power consumption of the processing device, increases the standby time, and improves user experience.
在一种可能的实现方式中,所述电源管理单元还包括第二控制模块;当所述状态寄存器置位为所述第一状态时,所述电源管理单元,具体用于:通过所述第二控制模块,屏蔽所述SoC向所述外存储器输出的信号,并向所述外存储器发送所述第二控制信号,以维持所述外存储器处于所述第二模式。In a possible implementation, the power management unit further includes a second control module; when the status register is set to the first state, the power management unit is specifically configured to: A second control module, shields the signal output by the SoC to the external memory, and sends the second control signal to the external memory to maintain the external memory in the second mode.
在本发明实施例中,电源管理单元中除了包括多种电源域、第一控制模块和状态寄存器外,还可以包括第二控制模块。当电源管理单元接收到SoC发送的第一指示后,可先将状态寄存器置位为1(即第一状态),进而可以表示处理装置进入待机状态,然后电源管理单元可以接管外存储器。在此过程中,为避免SoC下电后,SoC通过电源管理单元发送给外存储器的信号出现不定态,造成电源管理单元送给外存储器信号出现紊乱,因此电源管理单元中的第二控制模块会将SoC发送给外存储器的信号进行屏蔽,由电源管理单元完全控制管理外存储器,进而可以由电源管理单元的第二控制模块向外存储器发送第二控制信号,以使得外存储器可以维持在低功耗模式,从而在处理装置处于待机状态时外存储器依旧能够保存当前的配置参数和配置状态。综上,由于在本申请中处理装置进入待机状态后,SoC处于完全下电的状态且内存储器依旧能够保留当前所存储的数据,同时外存储器也保留了当前的配置参数,这样既确保了处理装置能够在较短的时间内恢复正常工作状态,也降低了处理装置的待机功耗,增加待机时长,提升用户体验。In the embodiment of the present invention, in addition to multiple power domains, a first control module and a status register, the power management unit may also include a second control module. After receiving the first instruction sent by the SoC, the power management unit can first set the status register to 1 (ie, the first state), which can indicate that the processing device enters the standby state, and then the power management unit can take over the external memory. During this process, in order to avoid that after the SoC is powered off, the signal sent by the SoC to the external memory through the power management unit becomes unstable, causing the signal sent by the power management unit to the external memory to be disordered. Therefore, the second control module in the power management unit will The signal sent by the SoC to the external memory is shielded, and the power management unit fully controls and manages the external memory. The second control module of the power management unit can then send a second control signal to the external memory, so that the external memory can be maintained at low power. consumption mode, so that the external memory can still save the current configuration parameters and configuration status when the processing device is in standby mode. In summary, after the processing device in this application enters the standby state, the SoC is completely powered off and the internal memory can still retain the currently stored data. At the same time, the external memory also retains the current configuration parameters, which ensures that the processing The device can return to normal working status in a shorter period of time, which also reduces the standby power consumption of the processing device, increases the standby time, and improves user experience.
在一种可能的实现方式中,所述外存储器,用于:接收所述电源管理单元发送的所述第二控制信号,并维持所述第二模式,以保留当前的配置参数。In a possible implementation, the external memory is configured to receive the second control signal sent by the power management unit and maintain the second mode to retain current configuration parameters.
在本发明实施例中,当电源管理单元接管外存储器后,电源管理单元可以控制并管理外存储器的状态。因此,当外存储器接收到由电源管理单元发送的第二控制信号后,可以维持在低功耗模式(第二模式),即外存储器在处理装置进入待机状态后依旧可以保留当前的配置信息和配置状态。综上,由于在本申请中处理装置进入待机状态后,SoC处于完全下电的状态且内存储器依旧能够保留当前所存储的数据,同时外存储器也保留了当前的配置参数,这样既确保了处理装置能够在较短的时间内恢复正常工作状态,也降低了处理装置的待机功耗,增加待机时长,提升用户体验。In the embodiment of the present invention, after the power management unit takes over the external memory, the power management unit can control and manage the status of the external memory. Therefore, when the external memory receives the second control signal sent by the power management unit, it can remain in the low power consumption mode (second mode), that is, the external memory can still retain the current configuration information and data after the processing device enters the standby state. Configuration status. In summary, after the processing device in this application enters the standby state, the SoC is completely powered off and the internal memory can still retain the currently stored data. At the same time, the external memory also retains the current configuration parameters, which ensures that the processing The device can return to normal working status in a shorter period of time, which also reduces the standby power consumption of the processing device, increases the standby time, and improves user experience.
在一种可能的实现方式中,所述电源管理单元,还用于:当接收到所述处理装置需要 恢复工作状态的指示后,恢复所述第一电源域并为所述SOC供电;接收所述SOC发送的第二指示,将所述状态寄存器置位为第二状态;在所述第二状态下,解除屏蔽所述SoC向所述内存储器输出的信号,并转发所述SoC向所述内存储器输出的信号到所述内存储器;或者,解除屏蔽所述SoC向所述外存储器输出的信号,并转发所述SoC向所述外存储器输出的信号到所述外存储器。In a possible implementation, the power management unit is further configured to: upon receiving an indication that the processing device needs to resume its working state, restore the first power domain and supply power to the SOC; receive The second instruction sent by the SOC sets the status register to a second state; in the second state, the signal output by the SoC to the internal memory is unshielded, and the signal output by the SoC to the internal memory is forwarded. The signal output by the internal memory is sent to the internal memory; or, the signal output by the SoC to the external memory is unblocked, and the signal output by the SoC to the external memory is forwarded to the external memory.
在本发明实施例中,当电源管理单元接收到需要唤醒处理装置的指示后,可以重新恢复第一电源域并继续为SoC供电,当SoC上电后可以继续控制管理内存储器和外存储器。进一步地,SoC上电后可以向电源管理单元发送第二指示,电源管理单元在接收到第二指示后,可以将状态寄存器置位为第二状态(即SR=0),表示处理装置处于正常工作状态,也可以表示电源管理单元可以不用继续控制管理内存储器和外存储器。接下来,SoC可通过控制电源管理单元相关逻辑,解除屏蔽SoC向电源管理单元的控制信号,同时通过电源管理单元将相关控制信号透明传输给内存储器和外存储器。最后,处理装置恢复正常的工作状态。综上,由于在本申请中处理装置进入待机状态后,SoC处于完全下电的状态且内存储器依旧能够保留当前所存储的数据,同时外存储器也保留了当前的配置参数,这样既确保了处理装置能够在较短的时间内恢复正常工作状态,也降低了处理装置的待机功耗,增加待机时长,提升用户体验。In the embodiment of the present invention, when the power management unit receives an instruction to wake up the processing device, it can restore the first power domain and continue to supply power to the SoC. After the SoC is powered on, it can continue to control and manage the internal memory and external memory. Further, after the SoC is powered on, it can send a second instruction to the power management unit. After receiving the second instruction, the power management unit can set the status register to the second state (ie, SR=0), indicating that the processing device is in normal condition. The working state can also indicate that the power management unit no longer needs to continue to control and manage the internal memory and external memory. Next, the SoC can unblock the control signals from the SoC to the power management unit by controlling the relevant logic of the power management unit, and at the same time transparently transmit the relevant control signals to the internal memory and external memory through the power management unit. Finally, the processing device returns to normal working condition. In summary, after the processing device in this application enters the standby state, the SoC is completely powered off and the internal memory can still retain the currently stored data. At the same time, the external memory also retains the current configuration parameters, which ensures that the processing The device can return to normal working status in a shorter period of time, which also reduces the standby power consumption of the processing device, increases the standby time, and improves user experience.
在一种可能的实现方式中,所述SoC,用于:当接通所述第一电源域后,判断所述电源管理单元中的所述状态寄存器是否处于所述第一状态;若所述状态寄存器处于所述第一状态,则向所述电源管理单元发送所述第二指示。In a possible implementation, the SoC is configured to: after the first power domain is turned on, determine whether the status register in the power management unit is in the first state; if the If the status register is in the first state, the second instruction is sent to the power management unit.
在本发明实施例中,当SoC重新上电后,可以先判断电源管理单元中的状态寄存器是否处于第一状态,如果状态寄存器处于第一状态,则可以向电源管理单元发送第二指示,以控制电源管理单元相关逻辑解除屏蔽SoC向电源管理单元发送的控制信号,同时SoC可通过电源管理单元将相关控制信号透明传输给内存储器和外存储器。如果状态寄存器未处于第一状态,则处理装置将会执行开机重启流程,即需要重新配置外存储器,以及重新从外存储器中读取所需的数据到内存储器。综上,由于在本申请中处理装置进入待机状态后,SoC处于完全下电的状态且内存储器依旧能够保留当前所存储的数据,同时外存储器也保留了当前的配置参数,这样既确保了处理装置能够在较短的时间内恢复正常工作状态,也降低了处理装置的待机功耗,增加待机时长,提升用户体验。In the embodiment of the present invention, after the SoC is powered on again, it can first be determined whether the status register in the power management unit is in the first state. If the status register is in the first state, a second instruction can be sent to the power management unit to The relevant logic of the control power management unit unblocks the control signals sent by the SoC to the power management unit. At the same time, the SoC can transparently transmit the relevant control signals to the internal memory and external memory through the power management unit. If the status register is not in the first state, the processing device will perform a power-on restart process, which requires reconfiguring the external memory and re-reading the required data from the external memory to the internal memory. In summary, after the processing device in this application enters the standby state, the SoC is completely powered off and the internal memory can still retain the currently stored data. At the same time, the external memory also retains the current configuration parameters, which ensures that the processing The device can return to normal working status in a shorter period of time, which also reduces the standby power consumption of the processing device, increases the standby time, and improves user experience.
第二方面,本发明实施例提供一种低功耗待机控制方法,其特征在于,应用于处理装置,所述处理装置包括电源管理单元、片上系统SoC和内存储器,其中,所述SoC和所述内存储器耦合于所述电源管理单元,所述电源管理单元通过第一电源域为所述SoC供电,且通过第二电源域为所述内存储器供电;所述方法包括:通过所述电源管理单元,接收所述SoC发送的第一指示,所述第一指示用于指示所述处理装置进入待机状态;通过所述电源管理单元,控制断开所述第一电源域,且保持所述第二电源域的部分或全部电源处于供电状态;其中,所述处理装置在进入所述待机状态后,所述SoC处于完全下电状态且所述内存储器的部分或全部器件处于上电状态;通过所述电源管理单元,向所述内存储器发送第一控制信号,所述第一控制信号用于维持所述内存储器处于第一模式,其中,在所述第 一模式下所述内存储器保存当前所存储的数据。In a second aspect, embodiments of the present invention provide a low-power standby control method, which is characterized in that it is applied to a processing device. The processing device includes a power management unit, a system-on-chip SoC and an internal memory, wherein the SoC and the The internal memory is coupled to the power management unit, the power management unit supplies power to the SoC through a first power domain, and supplies power to the internal memory through a second power domain; the method includes: using the power management unit A unit that receives a first instruction sent by the SoC, where the first instruction is used to instruct the processing device to enter a standby state; and controls to disconnect the first power domain through the power management unit and maintain the first power domain. Part or all of the power supplies in the second power domain are in a power supply state; wherein, after the processing device enters the standby state, the SoC is in a completely power-off state and some or all devices of the internal memory are in a power-on state; by The power management unit sends a first control signal to the internal memory. The first control signal is used to maintain the internal memory in a first mode, wherein in the first mode, the internal memory saves the current stored data.
在一种可能的实现方式中,所述电源管理单元包括状态寄存器和第一控制模块;所述通过所述电源管理单元,向所述内存储器发送第一控制信号,包括:在接收到所述SoC发送的所述第一指示后,将所述状态寄存器置位为第一状态;在所述第一状态下,通过所述第一控制模块屏蔽所述SoC向所述内存储器输出的信号,并向所述内存储器发送所述第一控制信号,以维持所述内存储器处于所述第一模式。In a possible implementation, the power management unit includes a status register and a first control module; sending a first control signal to the internal memory through the power management unit includes: upon receiving the After the first instruction is sent by the SoC, the status register is set to the first state; in the first state, the signal output by the SoC to the internal memory is shielded through the first control module, and sending the first control signal to the internal memory to maintain the internal memory in the first mode.
在一种可能的实现方式中,所述方法还包括:通过所述内存储器,接收所述电源管理单元发送的所述第一控制信号,并维持所述内存储器处于所述第一模式,以保存当前所存储的数据。In a possible implementation, the method further includes: receiving the first control signal sent by the power management unit through the internal memory, and maintaining the internal memory in the first mode to Save currently stored data.
在一种可能的实现方式中,所述处理装置还包括外存储器,且所述电源管理单元还与所述外存储器耦合,所述电源管理单元通过第三电源域为所述外存储器供电;所述方法还包括:通过所述电源管理单元,接收到所述SoC发送的所述第一指示后,保持所述第三电源域的部分或全部电源处于供电状态,其中,所述处理装置在进入所述待机状态后,所述外存储器的部分或全部器件处于上电状态;通过所述电源管理单元,向所述外存储器发送第二控制信号,所述第二控制信号用于维持所述外存储器处于第二模式,其中,在所述第二模式下所述外存储器保留当前的配置参数。In a possible implementation, the processing device further includes an external memory, and the power management unit is further coupled with the external memory, and the power management unit supplies power to the external memory through a third power domain; The method further includes: using the power management unit, after receiving the first instruction sent by the SoC, keeping part or all of the power supply of the third power domain in a power supply state, wherein the processing device enters After the standby state, some or all components of the external memory are in a powered-on state; a second control signal is sent to the external memory through the power management unit, and the second control signal is used to maintain the external memory. The memory is in a second mode, wherein the external memory retains current configuration parameters in the second mode.
在一种可能的实现方式中,所述电源管理单元还包括第二控制模块;当所述状态寄存器置位为所述第一状态时,所述通过所述电源管理单元,向所述外存储器发送第二控制信号,包括:通过所述第二控制模块,屏蔽所述SoC向所述外存储器输出的信号,并向所述外存储器发送所述第二控制信号,以维持所述外存储器处于所述第二模式。In a possible implementation, the power management unit further includes a second control module; when the status register is set to the first state, the power management unit sends a signal to the external memory through the power management unit. Sending a second control signal includes: shielding the signal output by the SoC to the external memory through the second control module, and sending the second control signal to the external memory to maintain the external memory in The second mode.
在一种可能的实现方式中,所述方法还包括:通过所述外存储器,接收所述电源管理单元发送的所述第二控制信号,并维持所述外存储器处于所述第二模式,以保留当前的配置参数。In a possible implementation, the method further includes: receiving the second control signal sent by the power management unit through the external memory, and maintaining the external memory in the second mode to Keep current configuration parameters.
在一种可能的实现方式中,所述方法还包括:当接收到所述处理装置需要恢复工作状态的指示后,通过所述电源管理单元恢复所述第一电源域并为所述SoC供电;通过所述电源管理单元,接收所述SoC发送的第二指示,将所述状态寄存器置位为第二状态;在所述第二状态下,通过所述电源管理单元解除屏蔽所述SoC向所述内存储器输出的信号,并转发所述SoC向所述内存储器输出的信号到所述内存储器;或者,解除屏蔽所述SoC向所述外存储器输出的信号,并转发所述SoC向所述外存储器输出的信号到所述外存储器。In a possible implementation, the method further includes: upon receiving an indication that the processing device needs to resume its working state, restoring the first power domain and powering the SoC through the power management unit; Through the power management unit, the second instruction sent by the SoC is received, and the status register is set to the second state; in the second state, the power management unit is used to unblock the SoC to the the signal output by the internal memory, and forward the signal output by the SoC to the internal memory; or, unblock the signal output by the SoC to the external memory, and forward the signal output by the SoC to the external memory. The external memory outputs the signal to the external memory.
在一种可能的实现方式中,所述方法还包括:当接通所述第一电源域后,通过所述SoC判断所述电源管理单元中的所述状态寄存器是否处于所述第一状态;若所述状态寄存器处于所述第一状态,则通过所述SoC向所述电源管理单元发送所述第二指示。In a possible implementation, the method further includes: after the first power domain is turned on, determining whether the status register in the power management unit is in the first state through the SoC; If the status register is in the first state, the second indication is sent to the power management unit through the SoC.
第三方面,本申请提供一种终端设备,该终端设备具有实现上述任意一种低功耗待机控制方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a third aspect, the present application provides a terminal device that has the function of implementing any of the above low-power standby control methods. This function can be implemented by hardware, or it can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
第四方面,本发明实施例提供了一种计算机程序,该计算机程序包括指令,当该计算机程序被计算机执行时,使得计算机可以执行上述第二方面中任意一项的低功耗待机控制 方法中的流程。In a fourth aspect, embodiments of the present invention provide a computer program. The computer program includes instructions. When the computer program is executed by a computer, the computer can perform any one of the low-power standby control methods in the second aspect. process.
第五方面,本申请提供一种半导体芯片,其特征在于,所述半导体芯片中包括上述第一方面中任意一项所述的处理装置。In a fifth aspect, the present application provides a semiconductor chip, characterized in that the semiconductor chip includes the processing device described in any one of the above first aspects.
第六方面,本申请提供一种电子设备,其特征在于,所述电子设备包括上述第五方面所述的半导体芯片。In a sixth aspect, the present application provides an electronic device, characterized in that the electronic device includes the semiconductor chip described in the fifth aspect.
附图说明Description of drawings
图1为本发明实施例提供的一种电子设备的结构示意图。Figure 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
图2为本发明实施例提供的一种处理装置的结构示意图。Figure 2 is a schematic structural diagram of a processing device provided by an embodiment of the present invention.
图3为本发明实施例提供的一种电源管理单元中的电源域示意图。Figure 3 is a schematic diagram of a power domain in a power management unit provided by an embodiment of the present invention.
图4为本发明实施例提供的一种进入待机状态的电子设备的用户界面示意图。FIG. 4 is a schematic diagram of a user interface of an electronic device entering a standby state according to an embodiment of the present invention.
图5为本发明实施例提供的一种处理装置处于待机状态后的电源域的示意图。FIG. 5 is a schematic diagram of a power domain after a processing device is in a standby state according to an embodiment of the present invention.
图6为本发明实施例提供的一种处理装置进入待机状态后的电源管理单元示意图。FIG. 6 is a schematic diagram of a power management unit after a processing device enters a standby state according to an embodiment of the present invention.
图7为本发明实施例提供的另一种处理装置处于待机状态后的电源管理单元示意图。FIG. 7 is a schematic diagram of a power management unit after another processing device is in a standby state according to an embodiment of the present invention.
图8为本发明实施例提供的又一种处理装置处于待机状态后的电源管理单元的结构示意图。FIG. 8 is a schematic structural diagram of another power management unit after the processing device is in a standby state according to an embodiment of the present invention.
图9为本发明实施例提供的另一种处理装置的结构示意图。Figure 9 is a schematic structural diagram of another processing device provided by an embodiment of the present invention.
图10为本发明实施例提供的另一种处理装置处于待机状态后的另一种电源管理单元示意图。FIG. 10 is a schematic diagram of another power management unit after another processing device is in a standby state according to an embodiment of the present invention.
图11为本发明实施例提供的一种处理装置工作状态时的电源管理单元示意图。FIG. 11 is a schematic diagram of a power management unit in the working state of a processing device provided by an embodiment of the present invention.
图12为本发明实施例提供的另一种处理装置工作状态时的电源管理单元示意图。FIG. 12 is a schematic diagram of a power management unit in the working state of another processing device provided by an embodiment of the present invention.
图13为本发明实施例提供的一种唤醒电子设备的用户界面示意图。FIG. 13 is a schematic diagram of a user interface for waking up an electronic device according to an embodiment of the present invention.
图14为本发明实施例提供的一种处理装置进入待机状态的流程示意图。Figure 14 is a schematic flowchart of a processing device entering a standby state according to an embodiment of the present invention.
图15是本发明实施例提供的一种低功耗待机控制方法的流程图。Figure 15 is a flow chart of a low-power standby control method provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例进行描述。The embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms “first”, “second”, “third” and “fourth” in the description, claims and drawings of this application are used to distinguish different objects, rather than to describe a specific sequence. . Furthermore, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes Other steps or units inherent to such processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those skilled in the art understand, both explicitly and implicitly, that the embodiments described herein may be combined with other embodiments.
在本说明书中使用的术语“部件”、“模块”、“系统”等用于表示计算机相关的实体、硬件、固件、硬件和软件的组合、软件、或执行中的软件。例如,部件可以是但不限于,在处理 器上运行的进程、处理器、对象、可执行文件、执行线程、程序和/或计算机。通过图示,在计算设备上运行的应用和计算设备都可以是部件。一个或多个部件可驻留在进程和/或执行线程中,部件可位于一个计算机上和/或分布在2个或更多个计算机之间。此外,这些部件可从在上面存储有各种数据结构的各种计算机可读介质执行。部件可例如根据具有一个或多个数据分组(例如来自与本地系统、分布式系统和/或网络间的另一部件交互的二个部件的数据,例如通过信号与其它系统交互的互联网)的信号通过本地和/或远程进程来通信。The terms "component", "module", "system", etc. used in this specification are used to refer to computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component may be, but is not limited to, a process, processor, object, executable file, thread of execution, program and/or computer running on a processor. Through the illustrations, both applications running on the computing device and the computing device may be components. One or more components can reside in a process and/or thread of execution and a component can be localized on one computer and/or distributed between 2 or more computers. Additionally, these components can execute from various computer-readable media having various data structures stored thereon. A component may, for example, be based on a signal having one or more data packets (eg, data from two components interacting with another component, a local system, a distributed system, and/or a network, such as the Internet, which interacts with other systems via signals) Communicate through local and/or remote processes.
基于上述,本发明实施例提供一种电子设备。请参见图1,图1为本发明实施例提供的一种电子设备的结构示意图,该电子设备100可以包括但不限于智能手机、智能穿戴设备(如智能手表)、平板电脑、个人数字助理等各类需要依靠电池供电的设备。电子设备100可以内置芯片或芯片组或搭载有芯片或者芯片组的电路板,该芯片或芯片组或搭载有芯片或芯片组的电路板可在必要的软件驱动下工作。该芯片或芯片组或搭载有芯片或芯片组的电路板可以包括电源管理单元101、片上系统102、内存储器103、外存储器104、电池105,进一步地,还可以包括图1中未示出的接口、外设等部件。具体的,Based on the above, an embodiment of the present invention provides an electronic device. Please refer to Figure 1. Figure 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. The electronic device 100 may include but is not limited to a smartphone, a smart wearable device (such as a smart watch), a tablet computer, a personal digital assistant, etc. Various types of equipment that rely on battery power. The electronic device 100 may have a built-in chip or chipset or a circuit board equipped with the chip or chipset, and the chip or chipset or the circuit board equipped with the chip or chipset can work under necessary software drivers. The chip or chipset or the circuit board equipped with the chip or chipset may include a power management unit 101, a system on chip 102, an internal memory 103, an external memory 104, a battery 105, and further may also include components not shown in Figure 1 Interfaces, peripherals and other components. specific,
电源管理单元101,可管理电子设备100的电源。电源管理单元101可用于连接电池105、片上系统102、内存储器103、外存储器104等器件。电源管理单元101可接收电池105和/或充电管理单元的输入,为片上系统102、内存储器103、外存储器104等供电。电源管理单元101还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。电池105可包括再充电电池,和/或锂电池等。在一些实施例中,当电子设备100进入待机状态后,电源管理单元101可将片上系统102完全下电,且可以由电源管理单元101接管内存储器103和外存储器104,以维持内存储器103处于自刷新状态和外存储器104处于低功耗状态,从而不仅能够降低待机功耗,增加待机时长,提升用户体验,还能够快速实现片上系统102的上电恢复。后续实施例中会详细介绍在待机状态下电源管理单元101如何接管内存储器103和外存储器104,这里先不赘述。The power management unit 101 can manage the power supply of the electronic device 100 . The power management unit 101 can be used to connect the battery 105, the system on chip 102, the internal memory 103, the external memory 104 and other devices. The power management unit 101 can receive input from the battery 105 and/or the charge management unit to provide power to the system-on-chip 102, internal memory 103, external memory 104, etc. The power management unit 101 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters. Batteries 105 may include rechargeable batteries, and/or lithium batteries, etc. In some embodiments, when the electronic device 100 enters the standby state, the power management unit 101 can completely power off the system-on-chip 102, and the power management unit 101 can take over the internal memory 103 and the external memory 104 to maintain the internal memory 103 in the standby state. The self-refresh state and the external memory 104 are in a low power consumption state, which not only reduces standby power consumption, increases standby time, and improves user experience, but also enables quick power-on recovery of the system-on-chip 102. How the power management unit 101 takes over the internal memory 103 and the external memory 104 in the standby state will be described in detail in subsequent embodiments, and will not be described in detail here.
片上系统102(System On Chip,SoC),可以包括处理器1021和控制器1022。当电子设备100处于正常工作状态时,电源管理单元101为片上系统102供电,片上系统102中的处理器1021可运行操作系统、文件系统(如闪存文件系统)或应用程序等,以控制连接到处理器1021的多个硬件或软件元件,并且可处理各种数据并执行操作。处理器1021可将外存储器104中存储的指令或数据加载到内存储器103中,并把需要运算的指令或数据调到处理器1021中进行运算,当运算完成后处理器1021再将结果临时存储在内存储器103中,并将需要长期存储的指令或数据通过控制器1022存储至外存储器104中。处理器1021可以包括一个或多个处理单元(也可称处理核),例如:处理器1021可以包括中央处理单元(CPU)、应用处理单元(application processor,AP)、调制解调处理单元、图形处理单元(graphics processing unit,GPU)、图像信号处理单元(image signal processor,ISP)、视频编解码单元、数字信号处理单元(digital signal processor,DSP)、基带处理单元和神经网络处理单元(neural-network processing unit,NPU)等中的一个或多个。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个器件中。可选的,处理器1021中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器1021中的存储器为高速缓冲 存储器(Cache)。所述Cache可以保存处理器1021刚用过或循环使用的指令或数据。如果处理器1021需要再次使用该指令或数据,可从所述Cache中直接调用。避免了重复存取,减少了处理器1021的等待时间,因而提高了系统的效率。片上系统102中的控制器1022,可用于管理并控制处理器1021与内存储器103、外存储器104之间的数据读写,并为处理器1021和内存储器103,处理器1021和外存储器104之间的通信提供标准化(例如通用闪存存储UFS标准)的接口。在一些实施例中,对于从处理器1021发出的指令或数据,控制器1022可将指令或数据通过封装的方式转换为支持某个协议的数据包,而对于处理器1021接收的数据控制器1022则进行反向操作。在一些实施例中,当电子设备100处于待机状态时,片上系统102中的全部器件都可处于下电状态,即电源管理单元101可停止为片上系统102供电。System On Chip 102 (System On Chip, SoC) may include a processor 1021 and a controller 1022. When the electronic device 100 is in a normal working state, the power management unit 101 supplies power to the system-on-chip 102. The processor 1021 in the system-on-chip 102 can run an operating system, a file system (such as a flash file system) or an application program to control the connection to the system. Processor 1021 is a plurality of hardware or software elements and can process various data and perform operations. The processor 1021 can load the instructions or data stored in the external memory 104 into the internal memory 103, and transfer the instructions or data that require operation to the processor 1021 for operation. When the operation is completed, the processor 1021 temporarily stores the results. In the internal memory 103, instructions or data that require long-term storage are stored in the external memory 104 through the controller 1022. The processor 1021 may include one or more processing units (also called processing cores). For example, the processor 1021 may include a central processing unit (CPU), an application processor (application processor, AP), a modem processing unit, a graphics unit Processing unit (graphics processing unit, GPU), image signal processing unit (image signal processor, ISP), video encoding and decoding unit, digital signal processing unit (digital signal processor, DSP), baseband processing unit and neural network processing unit (neural- One or more of network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more devices. Optionally, the processor 1021 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 1021 is a cache memory (Cache). The Cache can store instructions or data just used or recycled by the processor 1021. If the processor 1021 needs to use the instruction or data again, it can be directly called from the Cache. Repeated access is avoided and the waiting time of the processor 1021 is reduced, thus improving the efficiency of the system. The controller 1022 in the system-on-chip 102 can be used to manage and control the data reading and writing between the processor 1021 and the internal memory 103 and the external memory 104. Provide standardized (such as Universal Flash Storage UFS standard) interfaces for communication between In some embodiments, for instructions or data issued from the processor 1021, the controller 1022 can convert the instructions or data into data packets supporting a certain protocol through encapsulation. For data received by the processor 1021, the controller 1022 Then perform the reverse operation. In some embodiments, when the electronic device 100 is in the standby state, all devices in the system-on-chip 102 may be in a power-off state, that is, the power management unit 101 may stop powering the system-on-chip 102 .
内存储器103,通常为掉电易失性存储器,断电时会丢失其上存储的内容,也可称为内存(Memory)或主存储器。本申请中的内存储器103包括可读可写的运行内存,其作用是用于暂时存放处理器1021中的运算数据,以及与外存储器104或其他外部存储器交互数据,可作为操作系统或其他正在运行中的程序的临时数据的存储媒介。例如,运行于处理器1021上的操作系统把需要运算的数据从内存储器103调到处理器1021中进行运算,当运算完成后处理器1021再将结果传送出来。在一些实施例中,当电子设备100进入待机状态后,电源管理单元101会继续向内存储器103供电,且使得内存储器103处于自刷新模式,以确保内存储器103当前存储的数据不丢失,避免了片上系统102重新上电后需要再次将外存储器104中所需的数据或指令加载到所述内存储器103中,降低了片上系统102的上电恢复时间,从而电子设备100能够更加快速地恢复到正常工作状态。The internal memory 103 is usually a power-off volatile memory, which will lose its stored contents when the power is off. It can also be called memory or main memory. The internal memory 103 in this application includes readable and writable running memory, which is used to temporarily store the operation data in the processor 1021, and to interact with the external memory 104 or other external memories. It can be used as an operating system or other ongoing memory. A storage medium for temporary data of running programs. For example, the operating system running on the processor 1021 transfers the data that needs to be calculated from the internal memory 103 to the processor 1021 for calculation. When the calculation is completed, the processor 1021 transmits the result. In some embodiments, when the electronic device 100 enters the standby state, the power management unit 101 will continue to supply power to the internal memory 103 and put the internal memory 103 in a self-refresh mode to ensure that the data currently stored in the internal memory 103 is not lost, thus avoiding This eliminates the need to load the required data or instructions in the external memory 104 into the internal memory 103 again after the system-on-chip 102 is powered on again, thereby reducing the power-on recovery time of the system-on-chip 102 so that the electronic device 100 can recover more quickly. to normal working condition.
内存储器103可以包括,动态随机存取存储器(DRAM)、静态随机存取存储器(SRAM)、同步动态随机存取存储器(SDRAM)等中的一种或多种。其中,DRAM又包括双倍速率同步动态随机存储器(Double Data Rate Synchronous Dynamic Random Access Memory,DDR SDRAM)简称DDR、二代双倍速率同步动态随机存储器(DDR2)、三代双倍速率同步动态随机存储器(DDR3)、四代低功耗双倍数据率同步动态随机存储器(Low Power Double Data Rate 4,LPDDR4)和五代低功耗双倍数据率同步动态随机存储器(Low Power Double Data Rate 5,LPDDR5)等。The internal memory 103 may include one or more of dynamic random access memory (DRAM), static random access memory (SRAM), synchronous dynamic random access memory (SDRAM), and the like. Among them, DRAM also includes Double Data Rate Synchronous Dynamic Random Access Memory (DDR SDRAM), referred to as DDR, second-generation double-rate synchronous dynamic random access memory (DDR2), and third-generation double-rate synchronous dynamic random access memory (DDR SDRAM). DDR3), the fourth generation of low power double data rate synchronous dynamic random access memory (Low Power Double Data Rate 4, LPDDR4) and the fifth generation of low power consumption double data rate synchronous dynamic random access memory (Low Power Double Data Rate 5, LPDDR5), etc. .
外存储器104,为非易失性存储器,断电后其存储的内容不会丢失。外存储器104可用于长期存储处理器1021运行所涉及的指令和数据,如启动程序、操作系统、应用程序和数据等。由于处理器1021不能直接读取外存储器104中的指令和数据也不能直接向外存储器104写入指令或数据,因此,处理器1021在执行读(或加载)指令时,实际上是通过控制器1022将存储在外存储器104中的待读内容(包括指令和/或数据)先临时加载至内存储器103中,然后再由处理器1021从内存储器103中读出;而在执行写(即存储)指令时,实际上是由处理器1021先将待存储数据(包括指令和/或数据)临时写入至内存储器103中,然后再通过控制器1022从内存储器103存储至外存储器104中。在一些实施例中,当电子设备100进入待机状态后,电源管理单元101会继续向外存储器104供电,且使得外存储器104处于低功耗模式,以确保外存储器104保留当前的配置参数,避免了片上系统102重新上电后外存储器104需要重新进行上电初始化流程,降低了片上系统102的上电 恢复时间,从而电子设备100能够更加快速地恢复到正常工作状态。The external memory 104 is a non-volatile memory, and its stored contents will not be lost after power failure. The external memory 104 can be used for long-term storage of instructions and data involved in the operation of the processor 1021, such as startup programs, operating systems, application programs, and data. Since the processor 1021 cannot directly read instructions and data in the external memory 104 nor directly write instructions or data to the external memory 104, when the processor 1021 executes a read (or load) instruction, it actually passes the controller 1022. The content to be read (including instructions and/or data) stored in the external memory 104 is temporarily loaded into the internal memory 103, and then the processor 1021 reads it from the internal memory 103; while performing writing (i.e., storing) When issuing an instruction, the processor 1021 actually first temporarily writes the data to be stored (including instructions and/or data) into the internal memory 103 , and then stores the data from the internal memory 103 to the external memory 104 through the controller 1022 . In some embodiments, when the electronic device 100 enters the standby state, the power management unit 101 will continue to supply power to the external memory 104 and put the external memory 104 in a low power consumption mode to ensure that the external memory 104 retains the current configuration parameters, preventing This eliminates the need for the external memory 104 to re-perform the power-on initialization process after the system-on-chip 102 is powered on again, thereby reducing the power-on recovery time of the system-on-chip 102, so that the electronic device 100 can return to a normal working state more quickly.
外存储器104,可以包括Flash闪存(例如,NAND闪存、NOR闪存等)、通用闪存存储器(universal flash storage,UFS)、嵌入式多媒体卡eMMC、通用闪存存储多芯片封装uMCP存储器、嵌入式多媒体卡多芯片封装eMCP存储器、固态驱动器(SSD)等中的一个或多个。The external memory 104 may include Flash memory (for example, NAND flash memory, NOR flash memory, etc.), universal flash memory (universal flash storage, UFS), embedded multimedia card eMMC, universal flash memory storage multi-chip package uMCP memory, embedded multimedia card, etc. Chip package one or more of eMCP memory, solid state drive (SSD), etc.
可以理解的是,图1中的电子设备100的结构只是本发明实施例提供的一些示例性的实施方式,本发明实施例中的电子设备的结构包括但不仅限于以上实现方式。It can be understood that the structure of the electronic device 100 in FIG. 1 is only some exemplary implementations provided by the embodiment of the present invention. The structure of the electronic device in the embodiment of the present invention includes but is not limited to the above implementations.
下面结合本发明实施例中的附图对本发明实施例进行描述。The embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
请参见图2,图2为本发明实施例提供的一种处理装置的结构示意图,下面将结合附图2对本申请实施例中的处理装置进行详细描述。如图2所示,该处理装置200可以包括但不限于电源管理单元201、片上系统202和内存储器203,其中,片上系统SoC202和内存储器203耦合于所述电源管理单元201,所述电源管理单元201通过第一电源域为所述SoC202供电,且通过第二电源域为所述内存储器203供电。需要说明的是,处理装置200可以内置于各类需要依靠电池供电的设备中,如上述图1中的电子设备100,电源管理单元201的功能可以包括上述图1中的电源管理单元101的部分或全部功能,SoC202的功能可以包括上述图1中的片上系统102的部分或全部功能,内存储器203可以包括上述图1中的内存储器103的部分或全部功能。其中,Please refer to Figure 2. Figure 2 is a schematic structural diagram of a processing device provided by an embodiment of the present invention. The processing device in the embodiment of the present application will be described in detail below with reference to Figure 2. As shown in Figure 2, the processing device 200 may include but is not limited to a power management unit 201, a system on chip 202 and an internal memory 203, wherein the system on a chip SoC 202 and the internal memory 203 are coupled to the power management unit 201. Unit 201 powers the SoC 202 through a first power domain and the internal memory 203 through a second power domain. It should be noted that the processing device 200 can be built into various types of equipment that require battery power, such as the electronic equipment 100 in Figure 1 above. The functions of the power management unit 201 can include parts of the power management unit 101 in Figure 1 above. or all functions. The functions of the SoC 202 may include part or all of the functions of the system-on-chip 102 in FIG. 1 , and the internal memory 203 may include part or all of the functions of the internal memory 103 in FIG. 1 . in,
所述电源管理单元201,用于:接收所述SoC202发送的第一指示,所述第一指示用于指示所述处理装置200进入待机状态。The power management unit 201 is configured to receive a first instruction sent by the SoC 202, where the first instruction is used to instruct the processing device 200 to enter a standby state.
具体的,电源管理单元201可管理处理装置200中各模块的电源,例如,如图3所示,图3为本发明实施例提供的一种电源管理单元中的电源域示意图,图中电源管理单元201通过第一电源域为SoC202供电,其中第一电源域中可以包括多个子电源域,如系统接口电源(也可以称为IO电源),SoC202的低压常开区(Always ON,AO)电源,存储器控制信号电源以及其他电源等;电源管理单元201通过第二电源域为内存储器203(如LPDDR4)供电,其中第二电源域中也可以包括多个子电源域,如DDR内部的IO电源,控制信号电源等。片上系统(System On Chip,SoC)202,可以指在单个芯片上集成一个完整的系统,所谓完整的系统一般包括中央处理器(central processing unit,CPU)、外围电路等。内存储器203通常为掉电易失性存储器,断电时会丢失其上存储的内容,也可称为内存(Memory)或主存储器。本申请中的内存储器203包括可读可写的运行内存,其作用是用于暂时存放SoC202中的运算数据,以及可与外存储器或其他外部存储器交互数据,可作为操作系统或其他正在运行中的程序的临时数据的存储媒介。Specifically, the power management unit 201 can manage the power supply of each module in the processing device 200. For example, as shown in Figure 3, Figure 3 is a schematic diagram of the power domain in a power management unit provided by an embodiment of the present invention. In the figure, the power management The unit 201 supplies power to the SoC 202 through the first power domain, where the first power domain may include multiple sub-power domains, such as the system interface power supply (also called IO power supply), the low-voltage normally open area (Always ON, AO) power supply of the SoC 202 , memory control signal power supply and other power supplies; the power management unit 201 supplies power to the internal memory 203 (such as LPDDR4) through the second power domain, where the second power domain can also include multiple sub-power domains, such as the IO power supply inside the DDR, Control signal power supply, etc. System On Chip (SoC) 202 can refer to the integration of a complete system on a single chip. The so-called complete system generally includes a central processing unit (CPU), peripheral circuits, etc. The internal memory 203 is usually a power-off volatile memory, and the contents stored therein will be lost when the power is off. It can also be called memory or main memory. The internal memory 203 in this application includes readable and writable running memory, which is used to temporarily store the operation data in the SoC 202, and can exchange data with external memory or other external memories, and can be used as an operating system or other running memory. A storage medium for temporary data of a program.
可选的,SoC202接收到用户对处理装置200的目标操作,或者在预设时间段内用户未对该处理装置200进行任何操作,则可触发SoC202向电源管理单元201发送第一指示,以使得处理装置200进入待机状态。例如,如图4所示,图4为本发明实施例提供的一种进入待机状态的电子设备的用户界面示意图,图中该电子设备(如智能手机、智能穿戴设备、平板电脑等各类需要依靠电池供电的设备)内置有处理装置200,图4的(a)电子设备在正常工作时可显示操作界面,当检测到用户作用于电子设备上的按压操作(如用户按 压在电子设备两侧的电源按键),则可触发SoC202向电源管理单元201发送第一指示,以使得处理装置200进入待机状态,然后如图4的(b)所示电子设备会处于黑屏待机状态。Optionally, when the SoC 202 receives the user's target operation on the processing device 200, or the user does not perform any operation on the processing device 200 within a preset time period, the SoC 202 may be triggered to send a first instruction to the power management unit 201, so that The processing device 200 enters a standby state. For example, as shown in Figure 4, Figure 4 is a schematic user interface diagram of an electronic device that enters a standby state according to an embodiment of the present invention. In the figure, the electronic device (such as a smart phone, a smart wearable device, a tablet computer, etc.) Battery-powered equipment) has a built-in processing device 200. The electronic device in (a) of Figure 4 can display an operation interface during normal operation. When a user's pressing operation on the electronic device is detected (such as the user pressing on both sides of the electronic device) power button), the SoC 202 can be triggered to send a first instruction to the power management unit 201, so that the processing device 200 enters the standby state, and then the electronic device will be in a black screen standby state as shown in Figure 4(b).
所述电源管理单元201,还用于:控制断开所述第一电源域,且保持所述第二电源域的部分或全部电源处于供电状态;其中,所述处理装置200在进入所述待机状态后,所述SoC202处于完全下电状态且所述内存储器203的部分或全部器件处于上电状态。The power management unit 201 is also configured to control the disconnection of the first power domain and keep part or all of the power supply of the second power domain in the power supply state; wherein the processing device 200 enters the standby state. After the state is reached, the SoC 202 is in a completely powered-off state and some or all devices of the internal memory 203 are in a powered-on state.
具体的,当电源管理单元201接收到SoC202发送的第一指示后,电源管理单元201可断开第一电源域。例如,如图5所示,图5为本发明实施例提供的一种处理装置处于待机状态后的电源域的示意图,图中第一电源域中可包括多个子电源域,电源管理单元201接收到SoC202发送的第一指示后,会将第一电源域中的全部子电源都断开,以使得SoC202在处理装置200处于待机状态时,SoC202处于完全下电的状态。此外,由于内存储器202为掉电易失性存储器,为避免处理装置200在待机状态下内存储器203中的数据丢失,电源管理单元201会保持第二电源域处于供电状态。进一步地,为了降低待机损耗的电量,可以把第二电源域中的部分电源域进行下电,即可以将不影响内存储器203保存当前所存储的数据的部分或全部器件进行下电,如将内存储器203的IO电源进行下电(在处理装置200处于待机状态时内存储器203无需与其他模块进行交互,因此可以将该IO电源进行下电)。Specifically, after the power management unit 201 receives the first instruction sent by the SoC 202, the power management unit 201 may disconnect the first power domain. For example, as shown in Figure 5, Figure 5 is a schematic diagram of a power domain after a processing device is in a standby state according to an embodiment of the present invention. In the figure, the first power domain may include multiple sub-power domains. The power management unit 201 receives After receiving the first instruction sent by the SoC 202, all sub-power supplies in the first power domain will be disconnected, so that the SoC 202 is in a completely powered off state when the processing device 200 is in the standby state. In addition, since the internal memory 202 is a volatile memory upon power-off, in order to avoid data loss in the internal memory 203 when the processing device 200 is in the standby state, the power management unit 201 will keep the second power domain in the power supply state. Further, in order to reduce the power consumed in standby, some power domains in the second power domain can be powered off, that is, some or all devices that do not affect the storage of currently stored data in the internal memory 203 can be powered off. For example, The IO power supply of the internal memory 203 is powered off (the internal memory 203 does not need to interact with other modules when the processing device 200 is in the standby state, so the IO power supply can be powered off).
所述电源管理单元201,还用于:向所述内存储器203发送第一控制信号,所述第一控制信号用于维持所述内存储器203处于第一模式,其中,在所述第一模式下所述内存储器203保存当前所存储的数据。The power management unit 201 is further configured to: send a first control signal to the internal memory 203, where the first control signal is used to maintain the internal memory 203 in a first mode, wherein in the first mode The internal memory 203 described below stores currently stored data.
具体的,当电源管理单元201断开第一电源域后,SoC202处于下电状态无法继续控制管理内存储器203,可由电源管理单元201接管内存储器203,并且电源管理单元201可向内存储器203发送第一控制信号,以维持内存储器203处于第一模式(即第一模式可以理解为内存储器203的自刷新模式)。其中,第一控制信号为维持内存储器203处于自刷新模式的信号(可为固定电平的信号),可以是由多个信号组成的信号,如由时钟使能信号和复位信号组成的信号,当电源管理单元201向内存储器203发送的时钟使能信号为0,复位信号为1时,内存储器203可以一直维持在自刷模式。Specifically, when the power management unit 201 disconnects the first power domain, the SoC 202 is in a power-off state and cannot continue to control and manage the internal memory 203. The power management unit 201 can take over the internal memory 203, and the power management unit 201 can send data to the internal memory 203. The first control signal is to maintain the internal memory 203 in the first mode (that is, the first mode can be understood as the self-refresh mode of the internal memory 203). The first control signal is a signal (which can be a fixed level signal) that maintains the internal memory 203 in the self-refresh mode, and can be a signal composed of multiple signals, such as a signal composed of a clock enable signal and a reset signal. When the clock enable signal sent by the power management unit 201 to the internal memory 203 is 0 and the reset signal is 1, the internal memory 203 can always remain in the self-refresh mode.
可选的,在SoC202向电源管理单元201发送第一控制信号前,可以先向内存储器203发送控制信号和相关的控制命令,以使得内存储器203能够进入自刷新状态。Optionally, before the SoC 202 sends the first control signal to the power management unit 201, it may first send the control signal and related control commands to the internal memory 203, so that the internal memory 203 can enter the self-refresh state.
例如,如图6所示,图6为本发明实施例提供的一种处理装置进入待机状态后的电源管理单元示意图,图中在电源管理单元201中可增加控制逻辑模块(如第一控制模块),当SoC202处于下电状态时,可通过该控制逻辑模块向内存储器203发送第一控制信号,即复位信号为1,时钟使能信号为0,以维持内存储器203可以处于自刷新模式,从而在处理装置200处于待机状态时内存储器203依旧能够保存当前所存储的数据。For example, as shown in Figure 6, Figure 6 is a schematic diagram of a power management unit after a processing device enters a standby state according to an embodiment of the present invention. In the figure, a control logic module (such as a first control module) can be added to the power management unit 201. ), when the SoC 202 is in the power-off state, the first control signal can be sent to the internal memory 203 through the control logic module, that is, the reset signal is 1 and the clock enable signal is 0, so as to maintain the internal memory 203 in the self-refresh mode. Therefore, when the processing device 200 is in the standby state, the internal memory 203 can still save the currently stored data.
需要说明的是,当处理装置200进入待机状态后,内存储器203可以保存当前所存储的数据,避免处理装置200唤醒后需要重新向外存储器读取相关数据,从而降低处理装置200的上电恢复时间。It should be noted that when the processing device 200 enters the standby state, the internal memory 203 can save the currently stored data to avoid the need to re-read relevant data from the external memory after the processing device 200 wakes up, thereby reducing the power-on recovery time of the processing device 200 time.
可选的,第一控制信号也可以是单一信号,如复位信号,SoC202在下电前可先向内存储器203发送为0的时钟使能信号,当SoC202下电后可通过下拉电阻维持该时钟使能信 号一直为0,然后当电源管理单元201向内存储器203发送为1的复位信号后,内存储器203可以维持在自刷模式。例如,如图5所示,SoC202与内存储器203可通过传输线和下拉电阻建立连接,进一步地,SoC202在下电前可先向内存储器203发送为0的时钟使能信号,并在SoC202下电后通过下拉电阻维持该时钟使能信号一直为0。进一步地,当电源管理单元201接管内存储器203后,可向内存储器203发送为1的复位信号,以维持内存储器203可以处于自刷新模式,从而在处理装置200处于待机状态时依旧能够保存当前所存储的数据。Optionally, the first control signal can also be a single signal, such as a reset signal. SoC 202 can first send a clock enable signal of 0 to the internal memory 203 before powering off. When SoC 202 is powered off, the clock enable signal can be maintained through a pull-down resistor. The power signal is always 0, and then when the power management unit 201 sends a reset signal of 1 to the internal memory 203, the internal memory 203 can remain in the self-refresh mode. For example, as shown in Figure 5, the SoC 202 and the internal memory 203 can be connected through a transmission line and a pull-down resistor. Furthermore, the SoC 202 can first send a clock enable signal of 0 to the internal memory 203 before powering off, and after the SoC 202 is powered off, The clock enable signal is maintained at 0 through a pull-down resistor. Further, when the power management unit 201 takes over the internal memory 203, it can send a reset signal of 1 to the internal memory 203 to maintain the internal memory 203 in the self-refresh mode, so that the current data can still be saved when the processing device 200 is in the standby state. stored data.
在一种可能的实现方式中,所述电源管理单元201包括状态寄存器和第一控制模块;所述电源管理单元201,具体用于:在接收到所述SoC202发送的所述第一指示后,将所述状态寄存器置位为第一状态;在所述第一状态下,通过所述第一控制模块屏蔽所述SoC202向所述内存储器输出的信号,并向所述内存储器发送所述第一控制信号,以维持所述内存储器处于所述第一模式。In a possible implementation, the power management unit 201 includes a status register and a first control module; the power management unit 201 is specifically configured to: after receiving the first instruction sent by the SoC 202, The status register is set to a first state; in the first state, the signal output by the SoC 202 to the internal memory is shielded through the first control module, and the first signal is sent to the internal memory. A control signal to maintain the internal memory in the first mode.
具体的,电源管理单元201中的状态寄存器(status regist,SR)可具有两种状态,当SR=0时,可以表示处理装置200处于正常工作状态;当SR=1时(即可以理解为将状态寄存器置位为第一状态,需要强调的是在第一状态下,SR=1),可以表示处理装置200进入待机状态。电源管理单元201中的第一控制模块可具有控制逻辑,并可向内存储器203发送信号。Specifically, the status register (status register, SR) in the power management unit 201 can have two states. When SR=0, it can mean that the processing device 200 is in a normal working state; when SR=1 (that is, it can be understood as The status register is set to the first state. It should be emphasized that in the first state, SR=1), which can indicate that the processing device 200 enters the standby state. The first control module in the power management unit 201 may have control logic and may send signals to the internal memory 203 .
接下来,将结合图7进行说明,图7为本发明实施例提供的另一种处理装置处于待机状态后的电源管理单元示意图,图中可在电源管理单元201中增加状态寄存器和第一控制模块,当电源管理单元201接收到SoC202发送的第一指示后,可先将状态寄存器置位为1(即第一状态),进而可以表示处理装置200进入待机状态,然后电源管理单元201可以接管内存储器203。在此过程中,由于电源管理单元201接管内存储器203后且在SoC202完全下电前,SoC202依旧可能会通过电源管理单元201向内存储器203发送信号,因此可通过电源管理单元201的第一控制模块屏蔽掉SoC202送给电源管理单元201的信号,由电源管理单元201完全控制管理内存储器203,进而可以由电源管理单元201的第一控制模块向内存储器203发送第一控制信号,以维持内存储器203可以处于自刷新模式,从而在处理装置200处于待机状态时内存储器203依旧能够保存当前所存储的数据。此外,在SoC202完全下电后,由于SoC202通过电源管理单元201发送给内存储器203的信号被电源管理单元201屏蔽,使得SoC202完全下电后由电源管理单元201完全控制管理内存储器203。Next, description will be made with reference to Figure 7. Figure 7 is a schematic diagram of the power management unit after another processing device is in a standby state according to an embodiment of the present invention. In the figure, a status register and a first control unit can be added to the power management unit 201. module, when the power management unit 201 receives the first instruction sent by the SoC 202, it can first set the status register to 1 (that is, the first state), which can then indicate that the processing device 200 enters the standby state, and then the power management unit 201 can take over Internal memory 203. During this process, after the power management unit 201 takes over the internal memory 203 and before the SoC 202 is completely powered off, the SoC 202 may still send signals to the internal memory 203 through the power management unit 201. Therefore, the first control of the power management unit 201 can be used. The module shields the signal sent by the SoC 202 to the power management unit 201, and the power management unit 201 completely controls and manages the internal memory 203, and then the first control module of the power management unit 201 can send a first control signal to the internal memory 203 to maintain the internal memory 203. The memory 203 may be in a self-refresh mode, so that the memory 203 can still save currently stored data when the processing device 200 is in a standby state. In addition, after the SoC 202 is completely powered off, since the signal sent by the SoC 202 to the internal memory 203 through the power management unit 201 is blocked by the power management unit 201, the power management unit 201 fully controls and manages the internal memory 203 after the SoC 202 is completely powered off.
需要说明的是,在SoC202下电前,SoC202还可以向电源管理单元201发送第一控制模块的配置信息,以使得电源管理单元201基于配置信息将第一控制模块配置为,当SR=1时,可向内存储器203发送第一控制信号。It should be noted that before SoC 202 is powered off, SoC 202 may also send the configuration information of the first control module to the power management unit 201, so that the power management unit 201 configures the first control module based on the configuration information as when SR=1 , the first control signal can be sent to the internal memory 203 .
在一种可能的实现方式中,所述内存储器203,用于:接收所述电源管理单元201发送的所述第一控制信号,并维持所述第一模式,以保存当前所存储的数据。In a possible implementation, the internal memory 203 is configured to receive the first control signal sent by the power management unit 201 and maintain the first mode to save currently stored data.
具体的,当电源管理单元201接管内存储器203后,电源管理单元201可以管理内存储器203的状态。因此,当内存储器203接收到由电源管理单元201发送的第一控制信号后,可以维持在自刷新模式(即第一模式),即内存储器203不断地刷新当前所存储的数据, 以使得处理装置200进入待机状态后,内存储器203依旧能够保留当前所存储的数据。综上,由于在本申请中处理装置200进入待机状态后,SoC202处于完全下电的状态且内存储器203依旧能够保留当前所存储的数据,这样既确保了处理装置200能够在较短的时间内恢复正常工作状态,也降低了处理装置200的待机功耗。Specifically, after the power management unit 201 takes over the internal memory 203, the power management unit 201 can manage the status of the internal memory 203. Therefore, after receiving the first control signal sent by the power management unit 201, the internal memory 203 can maintain the self-refresh mode (ie, the first mode), that is, the internal memory 203 continuously refreshes the currently stored data, so that the processing After the device 200 enters the standby state, the internal memory 203 can still retain the currently stored data. In summary, in this application, after the processing device 200 enters the standby state, the SoC 202 is completely powered off and the internal memory 203 can still retain the currently stored data. This ensures that the processing device 200 can Restoring the normal working state also reduces the standby power consumption of the processing device 200 .
可选的,如图7所示,SoC202与内存储器203可通过传输线和下拉电阻建立连接,进一步地,SoC202在下电前可先向内存储器203发送为0的时钟使能信号,并在SoC202下电后通过下拉电阻维持该时钟使能信号一直为0。进一步地,当电源管理单元201接管内存储器203后,可主动向内存储器203发送为1的复位信号(即第一控制信号),然后内存储器203在时钟使能信号为0且复位信号为1的状态下,能够一直维持在自刷新模式,即内存储器203不断地刷新当前所存储的数据,以使得处理装置200进入待机状态后,内存储器203依旧能够保留当前所存储的数据。Optionally, as shown in Figure 7, the SoC 202 and the internal memory 203 can be connected through a transmission line and a pull-down resistor. Further, the SoC 202 can send a clock enable signal of 0 to the internal memory 203 before powering off, and power down the SoC 202. After power-on, the clock enable signal is maintained at 0 through the pull-down resistor. Further, when the power management unit 201 takes over the internal memory 203, it can actively send a reset signal of 1 (ie, the first control signal) to the internal memory 203, and then the internal memory 203 will respond when the clock enable signal is 0 and the reset signal is 1. In the state, the self-refresh mode can always be maintained, that is, the internal memory 203 continuously refreshes the currently stored data, so that after the processing device 200 enters the standby state, the internal memory 203 can still retain the currently stored data.
可选的,如图8所示,图8为本发明实施例提供的又一种处理装置处于待机状态后的电源管理单元的结构示意图,图中电源管理单元201中的第一控制模块可以向内存储器203发送复位信号,也能发送时钟使能信号。当电源管理单元201接管内存储器203之后,电源管理单元201可主动向内存储器203发送为1的复位信号和为0的时钟使能信号(即第一控制信号由为1的复位信号和为0的时钟使能信号组成),然后内存储器203在时钟使能信号为0且复位信号为1的状态下,能够一直维持在自刷新模式,即内存储器203不断地刷新当前所存储的数据,以使得处理装置200进入待机状态后,内存储器203依旧能够保留当前所存储的数据。Optionally, as shown in Figure 8, Figure 8 is a schematic structural diagram of a power management unit after the processing device is in a standby state according to an embodiment of the present invention. In the figure, the first control module in the power management unit 201 can The internal memory 203 sends a reset signal and can also send a clock enable signal. After the power management unit 201 takes over the internal memory 203, the power management unit 201 can actively send a reset signal of 1 and a clock enable signal of 0 to the internal memory 203 (that is, the first control signal consists of a reset signal of 1 and a clock enable signal of 0). (composed of clock enable signal), then the internal memory 203 can always maintain the self-refresh mode when the clock enable signal is 0 and the reset signal is 1, that is, the internal memory 203 continuously refreshes the currently stored data to After the processing device 200 enters the standby state, the internal memory 203 can still retain the currently stored data.
在一种可能的实现方式中,所述处理装置200还包括外存储器204,且所述电源管理单元201还与所述外存储器204耦合,所述电源管理单元201通过第三电源域为所述外存储器204供电;所述电源管理单元201,还用于:接收到所述SoC202发送的所述第一指示后,保持所述第三电源域的部分或全部电源处于供电状态,其中,所述处理装置200在进入所述待机状态后,所述外存储器204的部分或全部器件处于上电状态;向所述外存储器204发送第二控制信号,所述第二控制信号用于维持所述外存储器204处于第二模式,其中,在所述第二模式下所述外存储器204保留当前的配置参数。In a possible implementation, the processing device 200 further includes an external memory 204, and the power management unit 201 is also coupled to the external memory 204. The power management unit 201 provides the power management unit for the external memory 204 through a third power domain. The external memory 204 supplies power; the power management unit 201 is also configured to: after receiving the first instruction sent by the SoC 202, keep part or all of the power supply of the third power domain in the power supply state, wherein the After the processing device 200 enters the standby state, some or all devices of the external memory 204 are in the power-on state; a second control signal is sent to the external memory 204, and the second control signal is used to maintain the external memory 204. The memory 204 is in a second mode, wherein the external memory 204 retains current configuration parameters in the second mode.
具体的,外存储器204一般为非易失性存储器,断电后其存储的内容不会丢失。常见的外存储器204可以包括Flash闪存(例如,NAND闪存、NOR闪存等)、通用闪存存储器(universal flash storage,UFS)等。接下来,将结合图9进行说明,如图9所示,图9为本发明实施例提供的另一种处理装置的结构示意图,图中电源管理单元201还可通过第三电源域为外存储器204(如EMMC或UFS)供电,其中第三电源域中可以包括多个子电源域,如外存储器204内部的IO电源,控制信号电源等。当电源管理单元201接收到SoC202发送的第一指示后,为避免在处理装置200进入待机状态后出现外存储器204当前的配置参数丢失的问题,电源管理单元201会保持第三电源域处于供电状态。为了降低待机损耗的电量,还可以把第三电源域中的部分电源域进行下电,即可以将不影响外存储器204保存当前配置参数的部分或全部器件进行下电,如将外存储器204的IO电源进行下电(在处理装置200处于待机状态时外存储器204无需与其他模块进行交互,因此可以将该IO电源进行下电)。进一步地,当处理装置200进入待机状态后,可以将SoC202下电,并由电源 管理单元201接管内存储器203和外存储器204。当电源管理单元201接管外存储器204后,可以向外存储器204发送第二控制信号,即第二控制信号可以为复位信号。由于外存储器204可一直接收到为1的复位信号,因此外存储器204可以维持在第二模式,即第二模式可以理解为外存储器204的低功耗模式。在低功耗模式下,外存储器204依旧可以保留当前的配置参数和配置状态。Specifically, the external memory 204 is generally a non-volatile memory, and its stored contents will not be lost after a power outage. Common external memory 204 may include Flash memory (for example, NAND flash memory, NOR flash memory, etc.), universal flash memory (universal flash storage, UFS), etc. Next, description will be made with reference to Figure 9. As shown in Figure 9, Figure 9 is a schematic structural diagram of another processing device provided by an embodiment of the present invention. In the figure, the power management unit 201 can also provide external memory through the third power domain. 204 (such as EMMC or UFS), where the third power domain may include multiple sub-power domains, such as the IO power supply inside the external memory 204, the control signal power supply, etc. After the power management unit 201 receives the first instruction sent by the SoC 202, in order to avoid the problem of losing the current configuration parameters of the external memory 204 after the processing device 200 enters the standby state, the power management unit 201 will keep the third power domain in the power supply state. . In order to reduce the power consumed in standby, some power domains in the third power domain can also be powered off. That is, some or all devices that do not affect the storage of the current configuration parameters in the external memory 204 can be powered off. For example, the external memory 204 can be powered off. The IO power supply is powered off (when the processing device 200 is in the standby state, the external memory 204 does not need to interact with other modules, so the IO power supply can be powered off). Further, when the processing device 200 enters the standby state, the SoC 202 can be powered off, and the power management unit 201 takes over the internal memory 203 and the external memory 204. After the power management unit 201 takes over the external memory 204, it can send a second control signal to the external memory 204, that is, the second control signal can be a reset signal. Since the external memory 204 can always receive a reset signal of 1, the external memory 204 can remain in the second mode, that is, the second mode can be understood as a low power consumption mode of the external memory 204 . In the low power consumption mode, the external memory 204 can still retain the current configuration parameters and configuration status.
可选的,在SoC202向电源管理单元201发送第一控制信号前,可以先向外存储器204发送控制信号和相关的控制命令,以使得外存储器204能够进入低功耗模式。Optionally, before the SoC 202 sends the first control signal to the power management unit 201, it may first send the control signal and related control commands to the external memory 204, so that the external memory 204 can enter the low power consumption mode.
需要说明的是,当处理装置200进入待机状态后,可以保留外存储器204当前的配置参数和配置状态,避免处理装置200唤醒后需要重新对外存储器204进行配置,从而降低处理装置200的上电恢复时间。It should be noted that when the processing device 200 enters the standby state, the current configuration parameters and configuration status of the external memory 204 can be retained to avoid the need to re-configure the external memory 204 after the processing device 200 wakes up, thus reducing the power-on recovery time of the processing device 200 time.
在一种可能的实现方式中,所述电源管理单元201还包括第二控制模块;当所述状态寄存器置位为所述第一状态时,所述电源管理单元201,具体用于:通过所述第二控制模块,屏蔽所述SoC202向所述外存储器204输出的信号,并向所述外存储器204发送所述第二控制信号,以维持所述外存储器204处于所述第二模式。In a possible implementation, the power management unit 201 further includes a second control module; when the status register is set to the first state, the power management unit 201 is specifically configured to: The second control module shields the signal output by the SoC 202 to the external memory 204 and sends the second control signal to the external memory 204 to maintain the external memory 204 in the second mode.
具体的,电源管理单元201中还可以包括第二控制模块。接下来,将结合图10进行说明,如图10所示,图10为本发明实施例提供的另一种处理装置处于待机状态后的另一种电源管理单元示意图,图中电源管理单元201中除了包括多种电源域、第一控制模块和状态寄存器外,还可以包括第二控制模块。当电源管理单元201接收到SoC202发送的第一指示后,可先将状态寄存器置位为1(即第一状态),进而可以表示处理装置200进入待机状态,然后电源管理单元201可以接管外存储器204。在此过程中,由于电源管理单元201接管外存储器204后且在SoC202完全下电前,SoC202依旧可能会通过电源管理单元201向外存储器204发送信号,因此电源管理单元201中的第二控制模块会将SoC202发送给外存储器204的信号进行屏蔽,由电源管理单元201完全控制管理外存储器204,进而可以由电源管理单元201的第二控制模块向外存储器204发送第二控制信号,以维持外存储器204可以处于低功耗模式,从而在处理装置200处于待机状态时依旧能够保存当前的配置参数和配置状态。此外,在SoC202完全下电后,第二控制模块也会屏蔽SoC202通过电源管理单元201向外存储器204输出的不定态信号,以使得SoC202完全下电后由电源管理单元201完全控制管理外存储器204。Specifically, the power management unit 201 may also include a second control module. Next, description will be made with reference to Figure 10. As shown in Figure 10, Figure 10 is a schematic diagram of another power management unit after another processing device is in a standby state according to an embodiment of the present invention. In the figure, the power management unit 201 In addition to including multiple power domains, a first control module and a status register, a second control module may also be included. When the power management unit 201 receives the first instruction sent by the SoC 202, it can first set the status register to 1 (ie, the first state), which can then indicate that the processing device 200 enters the standby state, and then the power management unit 201 can take over the external memory. 204. During this process, since the SoC 202 may still send signals to the external memory 204 through the power management unit 201 after the power management unit 201 takes over the external memory 204 and before the SoC 202 is completely powered off, the second control module in the power management unit 201 The signal sent by the SoC 202 to the external memory 204 will be shielded, and the power management unit 201 will completely control and manage the external memory 204. Then the second control module of the power management unit 201 can send a second control signal to the external memory 204 to maintain the external memory. The memory 204 can be in a low power consumption mode, so that the current configuration parameters and configuration status can still be saved when the processing device 200 is in a standby state. In addition, after the SoC 202 is completely powered off, the second control module will also block the unsteady signal output by the SoC 202 to the external memory 204 through the power management unit 201, so that the power management unit 201 can fully control and manage the external memory 204 after the SoC 202 is completely powered off. .
需要说明的是,在SoC202下电前,SoC202还可以向电源管理单元201发送第二控制模块的配置信息,以使得电源管理单元201基于配置信息将第二控制模块配置为,当SR=1时,可向外存储器204发送第二控制信号。It should be noted that before SoC 202 is powered off, SoC 202 may also send the configuration information of the second control module to the power management unit 201, so that the power management unit 201 configures the second control module based on the configuration information as when SR=1 , the second control signal can be sent to the external memory 204.
在一种可能的实现方式中,所述外存储器,用于:接收所述电源管理单元发送的所述第二控制信号,并维持所述第二模式,以保留当前的配置参数。In a possible implementation, the external memory is configured to receive the second control signal sent by the power management unit and maintain the second mode to retain current configuration parameters.
具体的,当电源管理单元201接管外存储器204后,电源管理单元201可以控制并管理外存储器204的状态。因此,当外存储器204接收到由电源管理单元201发送的第二控制信号后,可以维持在低功耗模式(第二模式),即外存储器204在处理装置200进入待机状态后依旧可以保留当前的配置信息和配置状态。综上,由于在本申请中处理装置200进入待机状态后,SoC202处于完全下电的状态且外存储器204依旧能够保留当前的配置参数 和配置状态,这样既确保了处理装置200能够在较短的时间内恢复正常工作状态,也降低了处理装置200的待机功耗,增加待机时长,提升用户体验。Specifically, after the power management unit 201 takes over the external memory 204, the power management unit 201 can control and manage the status of the external memory 204. Therefore, when the external memory 204 receives the second control signal sent by the power management unit 201, it can remain in the low power consumption mode (second mode), that is, the external memory 204 can still retain the current state after the processing device 200 enters the standby state. configuration information and configuration status. In summary, in this application, after the processing device 200 enters the standby state, the SoC 202 is completely powered off and the external memory 204 can still retain the current configuration parameters and configuration status. This ensures that the processing device 200 can operate in a short period of time. The normal working state is restored within a certain period of time, which also reduces the standby power consumption of the processing device 200, increases the standby time, and improves the user experience.
在一种可能的实现方式中,所述电源管理单元201,还用于:当接收到所述处理装置200需要恢复工作状态的指示后,恢复所述第一电源域并为所述SoC202供电;接收所述SoC202发送的第二指示,将所述状态寄存器置位为第二状态;在所述第二状态下,解除屏蔽所述SoC202向所述内存储器203输出的信号,并转发所述SoC202向所述内存储器203输出的信号到所述内存储器203;或者,解除屏蔽所述SoC202向所述外存储器204输出的信号,并转发所述SoC202向所述外存储器204输出的信号到所述外存储器204。In a possible implementation, the power management unit 201 is further configured to: upon receiving an indication that the processing device 200 needs to resume its working state, restore the first power domain and power the SoC 202; Receive the second instruction sent by the SoC 202, set the status register to the second state; in the second state, unblock the signal output by the SoC 202 to the internal memory 203, and forward the SoC 202 The signal output to the internal memory 203 is sent to the internal memory 203; or, the signal output by the SoC 202 to the external memory 204 is unblocked, and the signal output by the SoC 202 to the external memory 204 is forwarded to the external memory 204. External memory 204.
具体的,当电源管理单元201接收到需要唤醒处理装置200的指示后,可以重新恢复第一电源域并继续为SoC202供电,当SoC202上电后可以继续控制管理内存储器203和外存储器204。进一步地,SoC202上电后可以向电源管理单元201发送第二指示,电源管理单元201在接收到第二指示后,可以将状态寄存器置位为第二状态(即SR=0),表示处理装置200处于正常工作状态,也可以表示电源管理单元201可以不用继续控制管理内存储器203和外存储器204。接下来,SoC202可通过控制电源管理单元201相关逻辑,解除屏蔽SoC202向电源管理单元201的控制信号,同时通过电源管理单元201将相关控制信号透明传输给内存储器203和外存储器204。最后,处理装置200恢复正常的工作状态。Specifically, when the power management unit 201 receives an instruction to wake up the processing device 200, it can restore the first power domain and continue to power the SoC 202. When the SoC 202 is powered on, it can continue to control and manage the internal memory 203 and the external memory 204. Further, after the SoC 202 is powered on, it can send a second instruction to the power management unit 201. After receiving the second instruction, the power management unit 201 can set the status register to the second state (ie, SR=0), indicating that the processing device 200 is in a normal working state, which may also indicate that the power management unit 201 does not need to continue to control and manage the internal memory 203 and the external memory 204 . Next, the SoC 202 can unblock the control signals from the SoC 202 to the power management unit 201 by controlling the relevant logic of the power management unit 201, and at the same time transparently transmit the relevant control signals to the internal memory 203 and the external memory 204 through the power management unit 201. Finally, the processing device 200 returns to normal working status.
例如,如图11所示,图11为本发明实施例提供的一种处理装置工作状态时的电源管理单元示意图,图中当电源管理单元201接收到SoC202发送的第二控制信号后,可以将状态寄存器置位为0,表示电源管理单元201可以不用继续控制管理内存储器203和外存储器204,即电源管理单元201的第一控制模块不用继续控制管理内存储器203,电源管理单元201的第二控制模块不用继续控制管理外存储器204。进一步地,第一控制模块可以解除屏蔽SoC202向内存储器203输出的信号,并转发SoC202向内存储器203输出的信号到内存储器203,如第一控制模块可以直接转发SoC202发送的复位信号到内存储器203;第二控制模块可以解除屏蔽SoC202向外存储器204输出的信号,并转发SoC202向外存储器204输出的信号到外存储器204,如第二控制模块可以直接转发SoC202发送的复位信号到外存储器204。For example, as shown in Figure 11, Figure 11 is a schematic diagram of a power management unit in the working state of a processing device provided by an embodiment of the present invention. In the figure, after the power management unit 201 receives the second control signal sent by the SoC 202, it can The status register is set to 0, indicating that the power management unit 201 does not need to continue to control the internal memory 203 and the external memory 204, that is, the first control module of the power management unit 201 does not need to continue to control the internal memory 203, and the second control module of the power management unit 201 does not need to continue to control the internal memory 203. The control module does not need to continue to control and manage the external memory 204. Further, the first control module can unblock the signal output by the SoC 202 to the internal memory 203, and forward the signal output by the SoC 202 to the internal memory 203 to the internal memory 203. For example, the first control module can directly forward the reset signal sent by the SoC 202 to the internal memory. 203; The second control module can unblock the signal output by the SoC 202 to the external memory 204, and forward the signal output by the SoC 202 to the external memory 204 to the external memory 204. For example, the second control module can directly forward the reset signal sent by the SoC 202 to the external memory 204. .
又例如,如图12所示,图12为本发明实施例提供的另一种处理装置工作状态时的电源管理单元示意图,图中当电源管理单元201接收到SoC202发送的第二控制信号后,可以将状态寄存器置位为0,表示电源管理单元201可以不用继续控制管理内存储器203和外存储器204,即电源管理单元201的第一控制模块不用继续控制管理内存储器203,电源管理单元201的第二控制模块不用继续控制管理外存储器204。进一步地,第一控制模块可以解除屏蔽SoC202向内存储器203输出的信号,并转发SoC202向内存储器203输出的信号到内存储器203,如第一控制模块可以直接转发SoC202发送的复位信号和时钟使能信号到内存储器203;第二控制模块可以解除屏蔽SoC202向外存储器204输出的信号,并转发SoC202向外存储器204输出的信号到外存储器204,如第二控制模块可以直接转发SoC202发送的复位信号到外存储器204。For another example, as shown in Figure 12, Figure 12 is a schematic diagram of the power management unit in the working state of another processing device provided by an embodiment of the present invention. In the figure, after the power management unit 201 receives the second control signal sent by the SoC 202, The status register can be set to 0, indicating that the power management unit 201 does not need to continue to control the internal memory 203 and the external memory 204, that is, the first control module of the power management unit 201 does not need to continue to control the internal memory 203. The second control module does not need to continue to control and manage the external memory 204 . Further, the first control module can unblock the signal output by the SoC 202 to the internal memory 203, and forward the signal output by the SoC 202 to the internal memory 203 to the internal memory 203. For example, the first control module can directly forward the reset signal and clock signal sent by the SoC 202. The signal can be sent to the internal memory 203; the second control module can unblock the signal output by the SoC 202 to the external memory 204, and forward the signal output by the SoC 202 to the external memory 204 to the external memory 204. For example, the second control module can directly forward the reset sent by the SoC 202. signal to external memory 204.
可选的,如图13所示,图13为本发明实施例提供的一种唤醒电子设备的用户界面示意图,图中电子设备内置有处理装置200,当处理装置200处于待机状态时,如图13的(a) 所示电子设备处于会处于黑屏待机状态,当检测到用户作用于电子设备上的按压操作(如用户按压在电子设备两侧的电源按键),则电源管理单元201会接收到处理装置200需要恢复工作状态的指示,以唤醒处理装置200,然后如图13的(b)所示能够点亮电子设备,并在电子设备上显示操作界面。Optionally, as shown in Figure 13, Figure 13 is a schematic diagram of a user interface for waking up an electronic device according to an embodiment of the present invention. In the figure, the electronic device has a built-in processing device 200. When the processing device 200 is in a standby state, as shown in Figure The electronic device shown in (a) of 13 is in a black screen standby state. When the user's pressing operation on the electronic device is detected (such as the user pressing the power button on both sides of the electronic device), the power management unit 201 will receive The processing device 200 needs an instruction to resume the working state to wake up the processing device 200, and then the electronic device can be lit up and the operation interface can be displayed on the electronic device as shown in (b) of FIG. 13 .
在一种可能的实现方式中,所述SoC202,用于:当接通所述第一电源域后,判断所述电源管理单元201中的所述状态寄存器是否处于所述第一状态;若所述状态寄存器处于所述第一状态,则向所述电源管理单元201发送所述第二指示。In a possible implementation, the SoC 202 is configured to: after the first power domain is turned on, determine whether the status register in the power management unit 201 is in the first state; if If the status register is in the first state, the second instruction is sent to the power management unit 201.
具体的,当SoC202重新上电后,可以先判断电源管理单元201中的状态寄存器是否处于第一状态,如果状态寄存器处于第一状态,则可以向电源管理单元201发送第二指示,以控制电源管理单元201相关逻辑解除屏蔽SoC202向电源管理单元201发送的控制信号,同时SoC202可通过电源管理单元201将相关控制信号透明传输给内存储器203和外存储器204。如果状态寄存器未处于第一状态,则处理装置200将会执行开机重启流程,即需要重新配置外存储器204,以及重新从外存储器204中读取所需的数据到内存储器203。Specifically, after the SoC 202 is powered on again, it can first determine whether the status register in the power management unit 201 is in the first state. If the status register is in the first state, a second instruction can be sent to the power management unit 201 to control the power supply. The relevant logic of the management unit 201 unblocks the control signal sent by the SoC 202 to the power management unit 201. At the same time, the SoC 202 can transparently transmit the relevant control signal to the internal memory 203 and the external memory 204 through the power management unit 201. If the status register is not in the first state, the processing device 200 will perform a power-on restart process, which requires reconfiguring the external memory 204 and re-reading the required data from the external memory 204 to the internal memory 203 .
接下来,以手机为例并结合图14从SoC202侧进行说明,如图14所示,图14为本发明实施例提供的一种处理装置进入待机状态的流程示意图,图中手机内置有处理装置200,手机进入待机状态可以包括以下步骤S401-步骤S419。详细描述如下:Next, take a mobile phone as an example and illustrate from the SoC 202 side with reference to Figure 14. As shown in Figure 14, Figure 14 is a schematic flow chart of a processing device entering a standby state according to an embodiment of the present invention. In the figure, the mobile phone has a built-in processing device. 200, entering the standby state of the mobile phone may include the following steps S401 to S419. The detailed description is as follows:
S401:手机进入正常待机模式。具体的,SoC202可以在接收到用户针对手机的目标操作后,可先进入正常待机模式。需要强调的是,在该正常待机模式下,电源管理单元201不将SoC202完全下电,且依旧由SoC202控制管理内存储器203和外存储器204。S401: The phone enters normal standby mode. Specifically, SoC202 can first enter the normal standby mode after receiving the user's target operation on the mobile phone. It should be emphasized that in the normal standby mode, the power management unit 201 does not completely power off the SoC 202, and the SoC 202 still controls and manages the internal memory 203 and the external memory 204.
S402:SOC退回到正常工作状态,PMU退出省电模式。具体的,当手机进入正常待机模式的时间超过预设值时,SoC202可以接收到超时中断唤醒,从而SoC202退回到正常工作状态,电源管理单元201(即PMU)退出省电模式。S402: The SOC returns to the normal working state, and the PMU exits the power saving mode. Specifically, when the time for the mobile phone to enter the normal standby mode exceeds the preset value, the SoC 202 can receive a timeout interrupt to wake up, so that the SoC 202 returns to the normal working state, and the power management unit 201 (ie, PMU) exits the power saving mode.
S403:SOC将DDR训练序列保存到FLASH中。具体的,SoC202将内存储器203(即DDR)训练序列保存到外存储器204(即FLASH)中。S403: SOC saves the DDR training sequence into FLASH. Specifically, SoC 202 saves the training sequence of internal memory 203 (ie, DDR) into external memory 204 (ie, FLASH).
S404:SOC保存现场参数到DDR中,配置DDR进入自刷新模式。具体的,SoC202将数据保存到内存储器203中,并配置内存储器203进入自刷新模式,以使得在手机进入超级待机模式后,内存储器203中保存的数据不丢失。S404: SOC saves on-site parameters to DDR and configures DDR to enter self-refresh mode. Specifically, the SoC 202 saves the data into the internal memory 203 and configures the internal memory 203 to enter the self-refresh mode, so that the data saved in the internal memory 203 is not lost after the mobile phone enters the super standby mode.
S405:SOC配置PMU Logic control1,屏蔽输入信号PMU_FLASH_RST_N,固定输出FLASH_RST_N为1。具体的,在SoC202完全下电前,SoC202可配置电源管理单元201中的逻辑控制模块,以使得逻辑控制模块在SoC202完全下电后,能够屏蔽SoC202向外存储器204输出的信号,并向外存储器204输出控制信号,以使得外存储器204进入到低功耗模式,保留当前的配置参数和配置状态。S405: SOC configures PMU Logic control1, shields the input signal PMU_FLASH_RST_N, and fixes the output FLASH_RST_N to 1. Specifically, before SoC 202 is completely powered off, SoC 202 can configure the logic control module in the power management unit 201 so that after SoC 202 is completely powered off, the logic control module can shield the signal output by SoC 202 to the external memory 204 and send the signal to the external memory. 204 outputs a control signal to cause the external memory 204 to enter a low power consumption mode and retain the current configuration parameters and configuration status.
S406:SOC配置PMU Logic control2,屏蔽输入信号PMU_DDR_RST_N,固定输出DDR_RST_N为1。具体的,在SoC202完全下电前,SoC202可以配置电源管理单元201中的逻辑控制模块,以使得逻辑控制模块在SoC202完全下电后,能够屏蔽SoC202向内存储器203输出的信号,并向内存储器203输出控制信号,以使得内存储器203进入自刷新模式,避免内存储器203中的数据丢失。S406: SOC configures PMU Logic control2, shields the input signal PMU_DDR_RST_N, and fixes the output DDR_RST_N to 1. Specifically, before SoC 202 is completely powered off, SoC 202 can configure the logic control module in the power management unit 201 so that after SoC 202 is completely powered off, the logic control module can shield the signal output by SoC 202 to the internal memory 203 and transmit the signal to the internal memory. 203 outputs a control signal to cause the internal memory 203 to enter the self-refresh mode to avoid data loss in the internal memory 203 .
S407:SOC配置PMU Super SR为1。具体的,在SoC202完全下电前,SoC202可以 先配置电源管理单元201中的状态寄存器,以使得SR=1,可以表示手机要进入深度待机状态,且可以由电源管理单元201接管内存储器203和外存储器204。S407: SOC configures PMU Super SR to 1. Specifically, before SoC 202 is completely powered off, SoC 202 can first configure the status register in the power management unit 201 so that SR=1, which can indicate that the mobile phone will enter a deep standby state, and the power management unit 201 can take over the internal memory 203 and External memory 204.
S408:SOC控制PMU下电,PMU进入Super SR下电流程。具体的,SoC202可以向电源管理单元201发送第一指示,以使得电源管理单元201将SoC202完全下电。S408: SOC controls the power off of the PMU, and the PMU enters the Super SR power off process. Specifically, the SoC 202 may send a first instruction to the power management unit 201, so that the power management unit 201 completely powers off the SoC 202.
S409:SOC整个下电,DDR和FLASH部分电源维持,PMU进入省电(Economical,ECO)模式。具体的,当电源管理单元201接收到SoC202发送的第一指示后,可以将SoC202完全下电,也可以将内存储器203和外存储器204的部分电源进行下电。S409: The entire SOC is powered off, the DDR and FLASH parts are powered on, and the PMU enters the power saving (Economical, ECO) mode. Specifically, after receiving the first instruction sent by the SoC 202, the power management unit 201 can completely power off the SoC 202, or can power off part of the internal memory 203 and the external memory 204.
S410:SOC进入超级待机模式。S410: SOC enters super standby mode.
S411:手机进入超级待机。具体的,当SoC202完全下电后,手机进入超级待机模式,此时可以由电源管理单元201接管内存储器203和外存储器204。S411: The mobile phone enters super standby. Specifically, when the SoC 202 is completely powered off, the mobile phone enters the super standby mode. At this time, the power management unit 201 can take over the internal memory 203 and the external memory 204 .
S412:PMU走Super SR上电包括开时钟流程。具体的,当电源管理单元201接收到唤醒中断如用户按压手机的电源按键,电源管理单元201可以走Super SR上电包括开启时钟流程。S412: PMU goes through the Super SR power-on process, including the clock start process. Specifically, when the power management unit 201 receives a wake-up interrupt such as the user pressing the power button of the mobile phone, the power management unit 201 can perform the Super SR power-on process including starting the clock.
S413:SOC上电运行启动代码,访问PMU Super SR是否为1。具体的,电源管理单元201可以重新为SoC202进行供电,且SoC202恢复正常工作后,可以先去访问电源管理单元201中的状态寄存器的状态是否为1,以判断手机是否处于深度待机模式。S413: The SOC is powered on to run the startup code and access the PMU Super SR to see if it is 1. Specifically, the power management unit 201 can re-power the SoC 202, and after the SoC 202 resumes normal operation, it can first access whether the status register in the power management unit 201 is 1 to determine whether the mobile phone is in deep standby mode.
S414:若是,则SOC运行Super待机恢复流程。具体的,若SoC202恢复正常工作后,电源管理单元201中的状态寄存器的状态为1,则表示手机需要从深度待机状态唤醒。若否,则SOC运行正常上电复位流程,表示手机需要从关机状态唤醒。S414: If yes, the SOC runs the Super standby recovery process. Specifically, if the status of the status register in the power management unit 201 is 1 after the SoC 202 resumes normal operation, it indicates that the mobile phone needs to wake up from the deep standby state. If not, the SOC runs the normal power-on reset process, indicating that the phone needs to wake up from the shutdown state.
S415:SOC配置PMU Super SR为0。具体的,可以先将电源管理单元201中的状态寄存器配置为0,以表示手机进入正常工作状态,同时也可以表示电源管理单元201无需在继续控制管理内存储器203和外存储器204。S415: SOC configures PMU Super SR to 0. Specifically, the status register in the power management unit 201 can be configured to 0 first to indicate that the mobile phone has entered a normal working state. It can also indicate that the power management unit 201 does not need to continue to control and manage the internal memory 203 and the external memory 204.
S416:SOC配置PMU Logic control1为直通模式,即信号FLAHS_RST_N等同SOC输出信号PMU_FLASH_RST_N。具体的,电源管理单元201无需再继续控制管理外存储器204,因此可以将逻辑控制模块配置为直通模式。S416: SOC configures PMU Logic control1 to be in pass-through mode, that is, the signal FLAHS_RST_N is equivalent to the SOC output signal PMU_FLASH_RST_N. Specifically, the power management unit 201 no longer needs to continue to control and manage the external memory 204, so the logic control module can be configured in the pass-through mode.
S417:SOC配置PMU Logic control2为直通模式,即信号DDR_RST_N等同SOC输出信号PMU_DDR_RST_N。具体的,电源管理单元201无需再继续控制管理内存储器203,因此可以将逻辑控制模块配置为直通模式。S417: SOC configures PMU Logic control2 to pass-through mode, that is, the signal DDR_RST_N is equal to the SOC output signal PMU_DDR_RST_N. Specifically, the power management unit 201 no longer needs to continue to control the internal memory 203, so the logic control module can be configured in the pass-through mode.
S418:DDR退出自刷新,FLASH完成快速初始化,SOC恢复现场。S418: DDR exits self-refresh, FLASH completes fast initialization, and SOC returns to the scene.
S419:SOC恢复到Normal模式。S419: SOC returns to Normal mode.
在本发明实施例中,由于在处理装置进入待机状态后,SoC处于完全下电的状态且内存储器依旧能够保留当前所存储的数据,同时外存储器也保留了当前的配置参数,这样既确保了处理装置能够在较短的时间内恢复正常工作状态,也降低了处理装置的待机功耗,增加待机时长,提升用户体验。In the embodiment of the present invention, after the processing device enters the standby state, the SoC is completely powered off and the internal memory can still retain the currently stored data. At the same time, the external memory also retains the current configuration parameters. This ensures that The processing device can return to normal working status in a shorter period of time, which also reduces the standby power consumption of the processing device, increases the standby time, and improves user experience.
上述详细阐述了本发明实施例的处理装置,下面提供了本发明实施例的相关方法。The above describes the processing device of the embodiment of the present invention in detail, and the following provides relevant methods of the embodiment of the present invention.
请参见图15,图15是本发明实施例提供的一种低功耗待机控制方法的流程图,该方法适用于上述图2中的一种处理装置以及包含所述处理装置的设备。该方法可以包括以下 步骤S501-步骤S503。其中,所述处理装置包括电源管理单元、片上系统SoC和内存储器,其中,所述SoC和所述内存储器耦合于所述电源管理单元,所述电源管理单元通过第一电源域为所述SoC供电,且通过第二电源域为所述内存储器供电。详细描述如下:Please refer to Figure 15. Figure 15 is a flow chart of a low-power standby control method provided by an embodiment of the present invention. This method is applicable to a processing device in Figure 2 and equipment including the processing device. The method may include the following steps S501 to S503. Wherein, the processing device includes a power management unit, a system on chip SoC and an internal memory, wherein the SoC and the internal memory are coupled to the power management unit, and the power management unit provides the SoC with a first power domain. Power is supplied to the internal memory through the second power domain. The detailed description is as follows:
步骤S501:通过所述电源管理单元,接收所述SoC发送的第一指示。Step S501: Receive the first instruction sent by the SoC through the power management unit.
具体的,所述第一指示用于指示所述处理装置进入待机状态;Specifically, the first instruction is used to instruct the processing device to enter a standby state;
步骤S502:通过所述电源管理单元,控制断开所述第一电源域,且保持所述第二电源域的部分或全部电源处于供电状态。Step S502: Use the power management unit to control the disconnection of the first power domain and keep part or all of the power supply of the second power domain in the power supply state.
其中,所述处理装置在进入所述待机状态后,所述SoC处于完全下电状态且所述内存储器的部分或全部器件处于上电状态;Wherein, after the processing device enters the standby state, the SoC is in a completely powered off state and some or all components of the internal memory are in a powered on state;
步骤S503:通过所述电源管理单元,向所述内存储器发送第一控制信号。Step S503: Send a first control signal to the internal memory through the power management unit.
具体的,所述第一控制信号用于维持所述内存储器处于第一模式,其中,在所述第一模式下所述内存储器保存当前所存储的数据。Specifically, the first control signal is used to maintain the internal memory in a first mode, wherein in the first mode, the internal memory saves currently stored data.
在一种可能的实现方式中,所述电源管理单元包括状态寄存器和第一控制模块;所述通过所述电源管理单元,向所述内存储器发送第一控制信号,包括:在接收到所述SoC发送的所述第一指示后,将所述状态寄存器置位为第一状态;在所述第一状态下,通过所述第一控制模块屏蔽所述SoC向所述内存储器输出的信号,并向所述内存储器发送所述第一控制信号,以维持所述内存储器处于所述第一模式。In a possible implementation, the power management unit includes a status register and a first control module; sending a first control signal to the internal memory through the power management unit includes: upon receiving the After the first instruction is sent by the SoC, the status register is set to the first state; in the first state, the signal output by the SoC to the internal memory is shielded through the first control module, and sending the first control signal to the internal memory to maintain the internal memory in the first mode.
在一种可能的实现方式中,所述方法还包括:通过所述内存储器,接收所述电源管理单元发送的所述第一控制信号,并维持所述内存储器处于所述第一模式,以保存当前所存储的数据。In a possible implementation, the method further includes: receiving the first control signal sent by the power management unit through the internal memory, and maintaining the internal memory in the first mode to Save currently stored data.
在一种可能的实现方式中,所述处理装置还包括外存储器,且所述电源管理单元还与所述外存储器耦合,所述电源管理单元通过第三电源域为所述外存储器供电;所述方法还包括:通过所述电源管理单元,接收到所述SoC发送的所述第一指示后,保持所述第三电源域的部分或全部电源处于供电状态,其中,所述处理装置在进入所述待机状态后,所述外存储器的部分或全部器件处于上电状态;通过所述电源管理单元,向所述外存储器发送第二控制信号,所述第二控制信号用于维持所述外存储器处于第二模式,其中,在所述第二模式下所述外存储器保留当前的配置参数。In a possible implementation, the processing device further includes an external memory, and the power management unit is further coupled with the external memory, and the power management unit supplies power to the external memory through a third power domain; The method further includes: using the power management unit, after receiving the first instruction sent by the SoC, keeping part or all of the power supply of the third power domain in a power supply state, wherein the processing device enters After the standby state, some or all components of the external memory are in a powered-on state; a second control signal is sent to the external memory through the power management unit, and the second control signal is used to maintain the external memory. The memory is in a second mode, wherein the external memory retains current configuration parameters in the second mode.
在一种可能的实现方式中,所述电源管理单元还包括第二控制模块;当所述状态寄存器置位为所述第一状态时,所述通过所述电源管理单元,向所述外存储器发送第二控制信号,包括:通过所述第二控制模块,屏蔽所述SoC向所述外存储器输出的信号,并向所述外存储器发送所述第二控制信号,以维持所述外存储器处于所述第二模式。In a possible implementation, the power management unit further includes a second control module; when the status register is set to the first state, the power management unit sends a signal to the external memory through the power management unit. Sending a second control signal includes: shielding the signal output by the SoC to the external memory through the second control module, and sending the second control signal to the external memory to maintain the external memory in The second mode.
在一种可能的实现方式中,所述方法还包括:通过所述外存储器,接收所述电源管理单元发送的所述第二控制信号,并维持所述外存储器处于所述第二模式,以保留当前的配置参数。In a possible implementation, the method further includes: receiving the second control signal sent by the power management unit through the external memory, and maintaining the external memory in the second mode to Keep current configuration parameters.
在一种可能的实现方式中,所述方法还包括:当接收到所述处理装置需要恢复工作状态的指示后,通过所述电源管理单元恢复所述第一电源域并为所述SOC供电;通过所述电源管理单元,接收所述SOC发送的第二指示,将所述状态寄存器置位为第二状态;在所述第二状态下,通过所述电源管理解除屏蔽所述SoC向所述内存储器输出的信号,并转发所 述SoC向所述内存储器输出的信号到所述内存储器;或者,解除屏蔽所述SoC向所述外存储器输出的信号,并转发所述SoC向所述外存储器输出的信号到所述外存储器。In a possible implementation, the method further includes: upon receiving an indication that the processing device needs to resume its working state, using the power management unit to restore the first power domain and supply power to the SOC; Through the power management unit, the second instruction sent by the SOC is received, and the status register is set to the second state; in the second state, the power management unit is used to unblock the SoC to the The signal output by the internal memory, and forward the signal output by the SoC to the internal memory to the internal memory; or, unblock the signal output by the SoC to the external memory, and forward the signal output by the SoC to the external memory. The memory outputs the signal to the external memory.
在一种可能的实现方式中,所述方法还包括:当接通所述第一电源域后,通过所述SoC判断所述电源管理单元中的所述状态寄存器是否处于所述第一状态;若所述状态寄存器处于所述第一状态,则通过所述SoC向所述电源管理单元发送所述第二指示。In a possible implementation, the method further includes: after the first power domain is turned on, determining whether the status register in the power management unit is in the first state through the SoC; If the status register is in the first state, the second indication is sent to the power management unit through the SoC.
在本发明实施例中,由于在处理装置进入待机状态后,SoC处于完全下电的状态且内存储器依旧能够保留当前所存储的数据,同时外存储器也保留了当前的配置参数,这样既确保了处理装置能够在较短的时间内恢复正常工作状态,也降低了处理装置的待机功耗,增加待机时长,提升用户体验。In the embodiment of the present invention, after the processing device enters the standby state, the SoC is completely powered off and the internal memory can still retain the currently stored data. At the same time, the external memory also retains the current configuration parameters. This ensures that The processing device can return to normal working status in a shorter period of time, which also reduces the standby power consumption of the processing device, increases the standby time, and improves user experience.
本申请提供一种终端设备,该终端设备具有实现上述任意一种低功耗待机控制方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。This application provides a terminal device that has the function of implementing any of the above low-power standby control methods. This function can be implemented by hardware, or it can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
本申请提供一种终端设备,该终端设备中包括处理器,处理器被配置为支持该终端设备执行上述提供的一种低功耗待机控制方法中相应的功能。该终端设备还可以包括存储器,存储器用于与处理器耦合,其保存该终端设备必要的程序指令和数据。该终端设备还可以包括通信接口,用于该终端设备与其他设备或通信网络通信。The present application provides a terminal device, which includes a processor, and the processor is configured to support the terminal device to perform corresponding functions in the low-power standby control method provided above. The terminal device may also include a memory coupled to the processor, which stores necessary program instructions and data for the terminal device. The terminal device may also include a communication interface for the terminal device to communicate with other devices or communication networks.
本发明实施例提供了一种计算机程序,该计算机程序包括指令,当该计算机程序被计算机执行时,使得计算机可以执行上述提及的任意一项的低功耗待机控制方法中的流程。An embodiment of the present invention provides a computer program. The computer program includes instructions. When the computer program is executed by a computer, the computer can execute the process in any of the above-mentioned low-power standby control methods.
本申请提供一种半导体芯片,其特征在于,所述半导体芯片中包括上述提及的任意一项所述的处理装置。The present application provides a semiconductor chip, which is characterized in that the semiconductor chip includes any one of the processing devices mentioned above.
本申请提供一种电子设备,其特征在于,所述电子设备包括上述提及的所述的半导体芯片。The present application provides an electronic device, which is characterized in that the electronic device includes the above-mentioned semiconductor chip.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, each embodiment is described with its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可能可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the sake of simple description, the foregoing method embodiments are expressed as a series of action combinations. However, those skilled in the art should know that the present application is not limited by the described action sequence. Because according to this application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily necessary for this application.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the above units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络 单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以为个人计算机、服务端或者网络设备等,具体可以是计算机设备中的处理器)执行本申请各个实施例上述方法的全部或部分步骤。其中,而前述的存储介质可包括:U盘、移动硬盘、磁碟、光盘、只读存储器(Read-OnlyMemory,缩写:ROM)或者随机存取存储器(RandomAccessMemory,缩写:RAM)等各种可以存储程序代码的介质。If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which can be a personal computer, a server, a network device, etc., specifically a processor in a computer device) to execute all or part of the steps of the above methods in various embodiments of the present application. Among them, the aforementioned storage media may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (Read-Only Memory, abbreviation: ROM) or random access memory (Random Access Memory, abbreviation: RAM) and other various storage media. The medium for program code.
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solution of the present application, but not to limit it. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still make the foregoing technical solutions. The technical solutions described in each embodiment may be modified, or some of the technical features may be equivalently replaced; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions in each embodiment of the present application.

Claims (17)

  1. 一种处理装置,其特征在于,所述处理装置包括电源管理单元、片上系统SoC和内存储器,其中,所述SoC和所述内存储器耦合于所述电源管理单元,所述电源管理单元通过第一电源域为所述SoC供电,且通过第二电源域为所述内存储器供电;所述电源管理单元,用于:A processing device, characterized in that the processing device includes a power management unit, a system on chip SoC and an internal memory, wherein the SoC and the internal memory are coupled to the power management unit, and the power management unit passes through a third One power domain supplies power to the SoC, and supplies power to the internal memory through a second power domain; the power management unit is used to:
    接收所述SoC发送的第一指示,所述第一指示用于指示所述处理装置进入待机状态;Receive a first instruction sent by the SoC, where the first instruction is used to instruct the processing device to enter a standby state;
    控制断开所述第一电源域,且保持所述第二电源域的部分或全部电源处于供电状态;其中,所述处理装置在进入所述待机状态后,所述SoC处于完全下电状态且所述内存储器的部分或全部器件处于上电状态;Control to disconnect the first power domain and keep part or all of the power supply of the second power domain in the power supply state; wherein, after the processing device enters the standby state, the SoC is in a completely powered off state and Some or all components of the internal memory are in a powered-on state;
    向所述内存储器发送第一控制信号,所述第一控制信号用于维持所述内存储器处于第一模式,其中,在所述第一模式下所述内存储器保存当前所存储的数据。A first control signal is sent to the internal memory, and the first control signal is used to maintain the internal memory in a first mode, wherein the internal memory saves currently stored data in the first mode.
  2. 如权利要求1所述的设备,其特征在于,所述电源管理单元包括状态寄存器和第一控制模块;所述电源管理单元,具体用于:The device of claim 1, wherein the power management unit includes a status register and a first control module; the power management unit is specifically used to:
    在接收到所述SoC发送的所述第一指示后,将所述状态寄存器置位为第一状态;After receiving the first indication sent by the SoC, setting the status register to a first state;
    在所述第一状态下,通过所述第一控制模块屏蔽所述SoC向所述内存储器输出的信号,并向所述内存储器发送所述第一控制信号,以维持所述内存储器处于所述第一模式。In the first state, the signal output by the SoC to the internal memory is shielded through the first control module, and the first control signal is sent to the internal memory to maintain the internal memory in the desired state. Describe the first mode.
  3. 如权利要求1或2所述的设备,其特征在于,所述内存储器,用于:The device according to claim 1 or 2, characterized in that the internal memory is used for:
    接收所述电源管理单元发送的所述第一控制信号,并维持所述第一模式,以保存当前所存储的数据。Receive the first control signal sent by the power management unit and maintain the first mode to save currently stored data.
  4. 如权利要求2或3所述的设备,其特征在于,所述处理装置还包括外存储器,且所述电源管理单元还与所述外存储器耦合,所述电源管理单元通过第三电源域为所述外存储器供电;所述电源管理单元,还用于:The device according to claim 2 or 3, characterized in that the processing device further includes an external memory, and the power management unit is further coupled with the external memory, and the power management unit provides power to the external memory through a third power domain. The external memory supplies power; the power management unit is also used for:
    接收到所述SoC发送的所述第一指示后,保持所述第三电源域的部分或全部电源处于供电状态,其中,所述处理装置在进入所述待机状态后,所述外存储器的部分或全部器件处于上电状态;After receiving the first instruction sent by the SoC, keep part or all of the power supply of the third power domain in the power supply state, wherein after the processing device enters the standby state, part of the external memory Or all devices are powered on;
    向所述外存储器发送第二控制信号,所述第二控制信号用于维持所述外存储器处于第二模式,其中,在所述第二模式下所述外存储器保留当前的配置参数。A second control signal is sent to the external memory, and the second control signal is used to maintain the external memory in a second mode, wherein in the second mode, the external memory retains current configuration parameters.
  5. 如权利要求4所述的设备,其特征在于,所述电源管理单元还包括第二控制模块;当所述状态寄存器置位为所述第一状态时,所述电源管理单元,具体用于:The device of claim 4, wherein the power management unit further includes a second control module; when the status register is set to the first state, the power management unit is specifically configured to:
    通过所述第二控制模块,屏蔽所述SoC向所述外存储器输出的信号,并向所述外存储器发送所述第二控制信号,以维持所述外存储器处于所述第二模式。Through the second control module, the signal output by the SoC to the external memory is shielded, and the second control signal is sent to the external memory to maintain the external memory in the second mode.
  6. 如权利要求4或5所述的设备,其特征在于,所述外存储器,用于:The device according to claim 4 or 5, characterized in that the external memory is used for:
    接收所述电源管理单元发送的所述第二控制信号,并维持所述第二模式,以保留当前的配置参数。Receive the second control signal sent by the power management unit, and maintain the second mode to retain current configuration parameters.
  7. 如权利要求4-6任意一项所述的设备,其特征在于,所述电源管理单元,还用于:The device according to any one of claims 4 to 6, characterized in that the power management unit is also used to:
    当接收到所述处理装置需要恢复工作状态的指示后,恢复所述第一电源域并为所述SOC供电;After receiving an indication that the processing device needs to resume working status, restore the first power domain and supply power to the SOC;
    接收所述SOC发送的第二指示,将所述状态寄存器置位为第二状态;Receive the second instruction sent by the SOC and set the status register to the second state;
    在所述第二状态下,解除屏蔽所述SoC向所述内存储器输出的信号,并转发所述SoC向所述内存储器输出的信号到所述内存储器;或者,In the second state, unblock the signal output by the SoC to the internal memory, and forward the signal output by the SoC to the internal memory to the internal memory; or,
    解除屏蔽所述SoC向所述外存储器输出的信号,并转发所述SoC向所述外存储器输出的信号到所述外存储器。Unblock the signal output by the SoC to the external memory, and forward the signal output by the SoC to the external memory to the external memory.
  8. 如权利要求7所述的设备,其特征在于,所述SoC,用于:The device of claim 7, wherein the SoC is used for:
    当接通所述第一电源域后,判断所述电源管理单元中的所述状态寄存器是否处于所述第一状态;After the first power domain is turned on, determine whether the status register in the power management unit is in the first state;
    若所述状态寄存器处于所述第一状态,则向所述电源管理单元发送所述第二指示。If the status register is in the first state, the second instruction is sent to the power management unit.
  9. 一种低功耗待机控制方法,其特征在于,应用于处理装置,所述处理装置包括电源管理单元、片上系统SoC和内存储器,其中,所述SoC和所述内存储器耦合于所述电源管理单元,所述电源管理单元通过第一电源域为所述SoC供电,且通过第二电源域为所述内存储器供电;所述方法包括:A low-power standby control method, characterized in that it is applied to a processing device. The processing device includes a power management unit, a system-on-chip SoC and an internal memory, wherein the SoC and the internal memory are coupled to the power management unit. unit, the power management unit supplies power to the SoC through a first power domain, and supplies power to the internal memory through a second power domain; the method includes:
    通过所述电源管理单元,接收所述SoC发送的第一指示,所述第一指示用于指示所述处理装置进入待机状态;Receive, through the power management unit, a first instruction sent by the SoC, where the first instruction is used to instruct the processing device to enter a standby state;
    通过所述电源管理单元,控制断开所述第一电源域,且保持所述第二电源域的部分或全部电源处于供电状态;其中,所述处理装置在进入所述待机状态后,所述SoC处于完全下电状态且所述内存储器的部分或全部器件处于上电状态;Through the power management unit, the first power domain is controlled to be disconnected and part or all of the power supply of the second power domain is kept in the power supply state; wherein, after the processing device enters the standby state, the The SoC is in a completely powered-off state and some or all of the internal memory devices are in a powered-on state;
    通过所述电源管理单元,向所述内存储器发送第一控制信号,所述第一控制信号用于维持所述内存储器处于第一模式,其中,在所述第一模式下所述内存储器保存当前所存储的数据。Through the power management unit, a first control signal is sent to the internal memory. The first control signal is used to maintain the internal memory in a first mode, wherein in the first mode, the internal memory stores The currently stored data.
  10. 如权利要求9所述的方法,其特征在于,所述电源管理单元包括状态寄存器和第一控制模块;所述通过所述电源管理单元,向所述内存储器发送第一控制信号,包括:The method of claim 9, wherein the power management unit includes a status register and a first control module; and sending a first control signal to the internal memory through the power management unit includes:
    在接收到所述SoC发送的所述第一指示后,将所述状态寄存器置位为第一状态;After receiving the first indication sent by the SoC, setting the status register to a first state;
    在所述第一状态下,通过所述第一控制模块屏蔽所述SoC向所述内存储器输出的信号,并向所述内存储器发送所述第一控制信号,以维持所述内存储器处于所述第一模式。In the first state, the signal output by the SoC to the internal memory is shielded through the first control module, and the first control signal is sent to the internal memory to maintain the internal memory in the desired state. Describe the first mode.
  11. 如权利要求9或10所述的方法,其特征在于,所述方法还包括:The method according to claim 9 or 10, characterized in that the method further includes:
    通过所述内存储器,接收所述电源管理单元发送的所述第一控制信号,并维持所述内 存储器处于所述第一模式,以在所述第一模式下所述内存储器保存当前所存储的数据。Through the internal memory, the first control signal sent by the power management unit is received, and the internal memory is maintained in the first mode, so that in the first mode, the internal memory saves the currently stored The data.
  12. 如权利要求10或11所述的方法,其特征在于,所述处理装置还包括外存储器,且所述电源管理单元还与所述外存储器耦合,所述电源管理单元通过第三电源域为所述外存储器供电;所述方法还包括:The method according to claim 10 or 11, characterized in that the processing device further includes an external memory, and the power management unit is further coupled with the external memory, and the power management unit provides the third power domain for the The external memory supplies power; the method further includes:
    通过所述电源管理单元,接收到所述SoC发送的所述第一指示后,保持所述第三电源域的部分或全部电源处于供电状态,其中,所述处理装置在进入所述待机状态后,所述外存储器的部分或全部器件处于上电状态;Through the power management unit, after receiving the first instruction sent by the SoC, part or all of the power supply of the third power domain is kept in the power supply state, wherein the processing device enters the standby state. , some or all devices of the external memory are in a powered-on state;
    通过所述电源管理单元,向所述外存储器发送第二控制信号,所述第二控制信号用于维持所述外存储器处于第二模式,其中,在所述第二模式下所述外存储器保留当前的配置参数。Through the power management unit, a second control signal is sent to the external memory, the second control signal is used to maintain the external memory in a second mode, wherein in the second mode, the external memory retains Current configuration parameters.
  13. 如权利要求12所述的方法,其特征在于,所述电源管理单元还包括第二控制模块;当所述状态寄存器置位为所述第一状态时,所述通过所述电源管理单元,向所述外存储器发送第二控制信号,包括:The method of claim 12, wherein the power management unit further includes a second control module; when the status register is set to the first state, the power management unit controls The external memory sends a second control signal, including:
    通过所述第二控制模块,屏蔽所述SoC向所述外存储器输出的信号,并向所述外存储器发送所述第二控制信号,以维持所述外存储器处于所述第二模式。Through the second control module, the signal output by the SoC to the external memory is shielded, and the second control signal is sent to the external memory to maintain the external memory in the second mode.
  14. 如权利要求12或13所述的方法,其特征在于,所述方法还包括:The method according to claim 12 or 13, characterized in that the method further includes:
    通过所述外存储器,接收所述电源管理单元发送的所述第二控制信号,并维持所述外存储器处于所述第二模式,以在所述第二模式下所述外存储器保留当前的配置参数。Through the external memory, receive the second control signal sent by the power management unit, and maintain the external memory in the second mode, so that the external memory retains the current configuration in the second mode. parameter.
  15. 如权利要求12-14任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 12-14, characterized in that the method further includes:
    当接收到所述处理装置需要恢复工作状态的指示后,通过所述电源管理单元恢复所述第一电源域并为所述SOC供电;After receiving an indication that the processing device needs to resume working status, restore the first power domain and power the SOC through the power management unit;
    通过所述电源管理单元,接收所述SOC发送的第二指示,将所述状态寄存器置位为第二状态;Through the power management unit, receive the second instruction sent by the SOC and set the status register to the second state;
    在所述第二状态下,通过所述电源管理单元解除屏蔽所述SoC向所述内存储器输出的信号,并转发所述SoC向所述内存储器输出的信号到所述内存储器;或者,通过所述电源管理单元解除屏蔽所述SoC向所述外存储器输出的信号,并转发所述SoC向所述外存储器输出的信号到所述外存储器。In the second state, the power management unit unblocks the signal output by the SoC to the internal memory, and forwards the signal output by the SoC to the internal memory to the internal memory; or, by The power management unit unblocks the signal output by the SoC to the external memory, and forwards the signal output by the SoC to the external memory to the external memory.
  16. 如权利要求15所述的方法,其特征在于,所述方法还包括:The method of claim 15, further comprising:
    当接通所述第一电源域后,通过所述SoC判断所述电源管理单元中的所述状态寄存器是否处于所述第一状态;After the first power domain is turned on, determine whether the status register in the power management unit is in the first state through the SoC;
    若所述状态寄存器处于所述第一状态,则通过所述SoC向所述电源管理单元发送所述第二指示。If the status register is in the first state, the second indication is sent to the power management unit through the SoC.
  17. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求9至16任一项所述的方法。A computer storage medium, characterized by including computer instructions, which when the computer instructions are run on an electronic device, cause the electronic device to perform the method according to any one of claims 9 to 16.
PCT/CN2022/112593 2022-08-15 2022-08-15 Processing apparatus, and related control method for low-power-consumption standby WO2024036452A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/112593 WO2024036452A1 (en) 2022-08-15 2022-08-15 Processing apparatus, and related control method for low-power-consumption standby

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/112593 WO2024036452A1 (en) 2022-08-15 2022-08-15 Processing apparatus, and related control method for low-power-consumption standby

Publications (1)

Publication Number Publication Date
WO2024036452A1 true WO2024036452A1 (en) 2024-02-22

Family

ID=89940333

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/112593 WO2024036452A1 (en) 2022-08-15 2022-08-15 Processing apparatus, and related control method for low-power-consumption standby

Country Status (1)

Country Link
WO (1) WO2024036452A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004362234A (en) * 2003-06-04 2004-12-24 Mitsubishi Electric Corp Information processing system with standby mode, and standby mode transfer/release method therefor
CN101802750A (en) * 2007-09-11 2010-08-11 三星电子株式会社 Apparatus and method for reducing power consumption in system on chip
CN111176408A (en) * 2019-12-06 2020-05-19 福州瑞芯微电子股份有限公司 SoC low-power-consumption processing method and device
CN111506351A (en) * 2020-04-03 2020-08-07 珠海市一微半导体有限公司 Deep sleep method, wake-up method and sleep and wake-up method for system on chip
CN112947738A (en) * 2019-12-10 2021-06-11 珠海全志科技股份有限公司 Intelligent terminal power supply system and intelligent terminal standby and wake-up method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004362234A (en) * 2003-06-04 2004-12-24 Mitsubishi Electric Corp Information processing system with standby mode, and standby mode transfer/release method therefor
CN101802750A (en) * 2007-09-11 2010-08-11 三星电子株式会社 Apparatus and method for reducing power consumption in system on chip
CN111176408A (en) * 2019-12-06 2020-05-19 福州瑞芯微电子股份有限公司 SoC low-power-consumption processing method and device
CN112947738A (en) * 2019-12-10 2021-06-11 珠海全志科技股份有限公司 Intelligent terminal power supply system and intelligent terminal standby and wake-up method
CN111506351A (en) * 2020-04-03 2020-08-07 珠海市一微半导体有限公司 Deep sleep method, wake-up method and sleep and wake-up method for system on chip

Similar Documents

Publication Publication Date Title
US9740645B2 (en) Reducing latency in a peripheral component interconnect express link
TWI464571B (en) A power saving electronic device for a computer motherboard in a standby dormant state and a computer motherboard
JP4515093B2 (en) CPU power-down method and apparatus therefor
US20090292934A1 (en) Integrated circuit with secondary-memory controller for providing a sleep state for reduced power consumption and method therefor
JP3974510B2 (en) Computer apparatus, power management method, and program
US20110131427A1 (en) Power management states
US10338659B2 (en) Power control for use of volatile memory as non-volatile memory
US10394307B2 (en) Information processing apparatus, information processing method, and program
US9798369B2 (en) Indicating critical battery status in mobile devices
AU2017210226A1 (en) Use of volatile memory as non-volatile memory
CN111176408B (en) SoC low-power-consumption processing method and device
CN113253824A (en) MCU system based on RISC-V kernel, power supply method and terminal equipment
WO2019041903A1 (en) Nonvolatile memory based computing device and use method therefor
WO2024036452A1 (en) Processing apparatus, and related control method for low-power-consumption standby
US10430096B2 (en) Hybrid storage device, computer, control device, and power consumption reduction method
US10338664B2 (en) Control module for data retention and method of operating control module
US10289492B2 (en) System for data retention and method of operating system
CN110007739B (en) Noise shielding circuit and chip
WO2021188106A1 (en) Feature modification in standby mode based on power source capacity
EP4020130A1 (en) Power control of a memory device in connected standby state
CN116705088A (en) Power-on and power-off control circuit, power-on and power-off control method, peripheral equipment with SRAM and electronic equipment
WO2013161438A1 (en) Information processing device, information processing method, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22955234

Country of ref document: EP

Kind code of ref document: A1